From hp@redhat.com Thu May 31 19:25:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 80D1B2BEA3 for ; Thu, 31 May 2001 19:25:58 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f4VNSI721110; Thu, 31 May 2001 19:28:18 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: object_data -> qdata? References: <15126.51607.39215.891459@beluga.mojam.com> From: Havoc Pennington Date: 31 May 2001 19:28:18 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 31 May 2001 17:45:43 -0500" Message-ID: Lines: 60 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > Where in 1.2 you have > > >K_OBJECT (widget)->object_data > Yikes, you shouldn't be using this I don't think. What are you trying to do, maybe we can give you what you should be using in that context. > Owen pointed me at some stuff on his website earlier today that helped, and > the Changes-2.0.txt file looks like a goldmine. Are there other places to > read up on to get a nuts-n-bolts education on the Gtk type/class structure > and the changes it's gone through recently? > I have a half-done porting document, but it's fairly concise on this matter, not going to be super-useful for language binding authors. GObject The GTK+ type system and object system have been moved to GLib, as "libgobject," and modified somewhat in transit. GtkObject still exists for compatibility reasons, but should not be used as a base class for new object implementations. GObject differs from GtkObject in two main application-programmer-visible respects. First, it is strictly reference counted, with no "floating flag"; so when you create a new GObject, you own a reference to it and must always unref. With GtkObject, you don't own a reference on a new object, there's only the owned-by-no-one floating reference. Second, there's no "destroy" signal. The "destroy" signal on GtkObject was semantically broken, leading to a lot of implementation difficulties; it means both "request that all weak references drop their handle to this object to break cycles" and "this object is about to be finalized." GObject does not have a "please break cycles" signal, and notification of finalization should be done with "weak references." Notification of finalization is not done with a signal, because signal emission adds references to an object and depends on the object being alive. It's not possible to add references to an object that's already being finalized. GObject will be most visible to authors of custom widgets. The "correct way" to write a widget has changed a bit; look at some of the widgets new in GTK+ 2.0 to get an idea how signals, object properties, and so on work with GObject. Havoc From skip@beluga.mojam.com Thu May 31 21:02:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-131-167-214.ce.mediaone.net [24.131.167.214]) by mail.gnome.org (Postfix) with ESMTP id 1106D2BDDD for ; Thu, 31 May 2001 21:02:22 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id CA0D52814; Thu, 31 May 2001 20:02:23 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15126.59807.757971.704953@beluga.mojam.com> Date: Thu, 31 May 2001 20:02:23 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: object_data -> qdata? In-Reply-To: References: <15126.51607.39215.891459@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Havoc" == Havoc Pennington writes: Havoc> Skip Montanaro writes: >> Where in 1.2 you have >> >> >K_OBJECT (widget)->object_data >> Havoc> Yikes, you shouldn't be using this I don't think. ;-) Havoc> What are you trying to do, maybe we can give you what you should Havoc> be using in that context. I'm just trying to get Tim Janik's Gerd app running under 1.3.5: http://www.gtk.org/~timj/gerd/ I'm trying to take the simplest path possible at this point. I figure if I can get it running, someone else can make it pretty... Skip From zxjdz@21cn.com Fri Jun 1 04:54:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from 21cn.com (unknown [202.104.32.251]) by mail.gnome.org (Postfix) with SMTP id BA3FA2BBE7; Fri, 1 Jun 2001 04:54:03 -0400 (EDT) Received: from zzz([61.165.154.208]) by 21cn.com(AIMC 2.9.5.1) with SMTP id jm03b17bd44; Fri, 01 Jun 2001 16:53:37 +0800 Message-ID: <016601c0ea78$b7e6df70$b100a8c0@Dazheng.com> From: "Zou xiaojun" To: Cc: , References: <010701c0e98c$709e4e10$b100a8c0@Dazheng.com> <3B161431.8049A2F@ng-london.org.uk> Subject: The problem about jpeg solved! Thank you all! Date: Fri, 1 Jun 2001 16:56:13 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: base64 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: aGksDQoNCiAgICBUaGFuayB5b3UgZm9yIHJlcGx5LlRob3NlIGxldHRlcnMgaGVscCBtZSBtdWNo IQ0KDQogICAgTm93IEkgdXNlIGpwZWctNmIgJiBHZGtSR0IgaW1wbGVtZW50aW5nIGl0IHN1Y2Nl c3NmdWxseSENCg0KQmVzdCBSZWdhcmRzDQpab3UNCg== From otaylor@redhat.com Fri Jun 1 09:22:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 68CB72BEF2 for ; Fri, 1 Jun 2001 09:22:30 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 08741242226; Fri, 1 Jun 2001 09:22:29 -0400 (EDT) To: Mark Leisher Cc: gtk-list@gnome.org Subject: Re: Some cut,copy and paste thoughts References: <991197305.7414.7.camel@dhcp-64-104-195-74.cisco.com> <15125.1642.372420.281433@helion.crl.nmsu.edu> <991273192.997.1.camel@dhcp-64-104-195-74.cisco.com> <15126.19119.603419.917486@helion.crl.nmsu.edu> <15126.35568.331688.319880@helion.crl.nmsu.edu> From: Owen Taylor Date: 01 Jun 2001 09:22:29 -0400 In-Reply-To: Mark Leisher's message of "Thu, 31 May 2001 12:18:24 -0600 (MDT)" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Mark Leisher writes: > Owen> I'm not sure why it is working for you, but there AFAIK nothing of > Owen> this nature in the selection protocol as described in the ICCCM, and > Owen> I don't remember implementing it in GTK+ either. > > We must be talking about different things. > > Calling XGetWindowProperty() with a selection and type just returns a buffer > of bytes. If the number of bytes returned is > 0, there is something in the > selection. This is generally sufficient for dynamically setting menu item > sensitivity during a "map_event". Why do you think there will be a property holding the contents of the selection? (What target would it correspond to? Nothing has been requested yet.) Can you point out the place in the ICCCM where this is described? ftp://ftp.x.org/pub/R6.6/xc/doc/hardcopy/ICCCM/icccm.PS.gz Regards, Owen From www-data@emacinc.com Fri Jun 1 10:47:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.emacinc.com (unknown [208.248.202.76]) by mail.gnome.org (Postfix) with ESMTP id B7C4A2E0CD for ; Fri, 1 Jun 2001 10:47:40 -0400 (EDT) Received: from www-data by mail.emacinc.com with local (Exim 3.12 #1 (Debian)) id 155qMZ-0005DD-00 for ; Fri, 01 Jun 2001 09:57:19 -0500 To: gtk-list@gnome.org Subject: error messages From: ngustavson@emacinc.com Reply-To: ngustavson@emacinc.com Cc: X-Mailer: AeroMail (http://the.cushman.net/reverb/aeromail/) Message-Id: Date: Fri, 01 Jun 2001 09:57:19 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: need to be able to suppress error messages while my program is running. Does anyone know how? From hp@redhat.com Fri Jun 1 11:52:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AE0312E8D5 for ; Fri, 1 Jun 2001 11:52:41 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f51FskR21621; Fri, 1 Jun 2001 11:54:46 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: ngustavson@emacinc.com Cc: gtk-list@gnome.org Subject: Re: error messages References: From: Havoc Pennington Date: 01 Jun 2001 11:54:46 -0400 In-Reply-To: ngustavson@emacinc.com's message of "Fri, 01 Jun 2001 09:57:19 -0500" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ngustavson@emacinc.com writes: > need to be able to suppress error messages while my program is running. Does anyone > know how? > Redirect stderr to /dev/null, or you can use g_log_set_handler(). Havoc From king@eiffel.com Fri Jun 1 12:51:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 253F32CDC3 for ; Fri, 1 Jun 2001 12:51:53 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 155s9P-0008Al-00 for gtk-list@gnome.org; Fri, 01 Jun 2001 09:51:51 -0700 Message-ID: <092201c0eabc$37fb2110$750a000a@naples> From: "Ian King" To: Subject: Left Alt and Right Alt Date: Fri, 1 Jun 2001 09:59:27 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there anyway to dynamically query whether a Left Alt key is pressed and not the right, I am using GDK_MOD1_MASK at the moment but this seems to do both. Ian King From hp@redhat.com Fri Jun 1 14:03:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7FA932C7E9 for ; Fri, 1 Jun 2001 14:03:51 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f51I66X12914; Fri, 1 Jun 2001 14:06:06 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Left Alt and Right Alt References: <092201c0eabc$37fb2110$750a000a@naples> From: Havoc Pennington Date: 01 Jun 2001 14:06:06 -0400 In-Reply-To: "Ian King"'s message of "Fri, 1 Jun 2001 09:59:27 -0700" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > Is there anyway to dynamically query whether a Left Alt key is pressed and > not the right, I am using GDK_MOD1_MASK at the moment but this seems to do > both. > If you're using Alt as a modifier, then it will produce broken/surprising behavior for end users if you distinguish these (mod1 doesn't actually even have to be on the keys labeled "Alt", on my system it's only on one of them, etc.). But the basic way you'd do this is to track key press / key release events and keep a flag whether the left/right alt keys are pressed. event->keyval == GDK_Alt_L, event->keyval == GDK_Alt_R. Also some disabled users may be using a "sticky modifiers" feature where they tap alt, release, then tap another key. I'm not sure if you get the key release event before or after the MOD1_MASK flag disappears in this case. Havoc From king@eiffel.com Fri Jun 1 14:08:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 243ED2E308 for ; Fri, 1 Jun 2001 14:08:27 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 155tLV-0002cT-00 for gtk-list@gnome.org; Fri, 01 Jun 2001 11:08:25 -0700 Message-ID: <09a201c0eac6$ea6fe600$750a000a@naples> From: "Ian King" To: Subject: Ctree in scrolled window Date: Fri, 1 Jun 2001 11:16:02 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I place a ctree in a scrollable window (with horizontal and vertical automatic policy) with gtk_container_add, I only get the vertical scrollbar, no matter how wide the ctree is. How do I hack the ctree so that I do not get size allocation errors and so that the horizontal scrollbar is actually shown when required. Ian King From skip@beluga.mojam.com Fri Jun 1 17:08:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 18A622BAC2 for ; Fri, 1 Jun 2001 17:08:56 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id EEF972814; Fri, 1 Jun 2001 16:08:59 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15128.1131.913997.532592@beluga.mojam.com> Date: Fri, 1 Jun 2001 16:08:59 -0500 To: gtk-list@gnome.org Subject: Gerd for Gtk 1.3.x X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I made some progress porting Tim Janik's Gerd program to Gtk 1.3.x. If anyone's interested in the results, let me know and I'll shoot you a context diff. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From jdiago@escher.puj.edu.co Fri Jun 1 19:28:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from escher.puj.edu.co (c3281-136.impsat.com.co [200.32.81.136]) by mail.gnome.org (Postfix) with ESMTP id 7F8E52BAE9 for ; Fri, 1 Jun 2001 19:28:30 -0400 (EDT) Received: from localhost (jdiago@localhost) by escher.puj.edu.co (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id SAA13469; Fri, 1 Jun 2001 18:28:27 -0500 Date: Fri, 1 Jun 2001 18:28:26 -0500 (COT) From: Jose Fernando Diago To: Havoc Pennington Cc: GTK+ List Subject: Question about printing a drawable 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. This question goes to Havoc. I read this message from the GTK+ mailing list archives: >Re: Printing snapshot of a window > From: Havoc Pennington > To: "Tim Betts" > Cc: gtk-app-devel-list gnome org > Subject: Re: Printing snapshot of a window > Date: 01 Jun 2000 13:12:06 -0400 >"Tim Betts" writes: >> Just wondered if anyone knew of a C library or way of programmically >>taking a snapshot of a given X GtkWindow and printing it to a lazer >>printer. I would like to do it all from within the application via a >>print button. Any ideas, references or code would be greatly >>appreciated. >gdk-pixbuf can take a snapshot of a drawable, and gnome-print has a >routine to print a GdkPixbuf. You can copy the code if you don't want >to use the libraries. >Havoc So my question is: What's the gdk-pixbuf? How can I use it? Thanks. Jose. From skip@beluga.mojam.com Fri Jun 1 22:22:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 743972BE13 for ; Fri, 1 Jun 2001 22:22:10 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id AD6AC2814; Fri, 1 Jun 2001 21:22:13 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15128.19924.937913.885668@beluga.mojam.com> Date: Fri, 1 Jun 2001 21:22:12 -0500 To: Jose Fernando Diago Cc: GTK+ List Subject: Re: Question about printing a drawable In-Reply-To: References: X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jose> So my question is: What's the gdk-pixbuf? How can I use it? Gdk-pixbuf is an image manipulation library. The reference manual is at http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/index.html I'm not aware of any tutorial documentation and all the links I could find to Imlib tutorials (gdk-pixbuf's predecessor) seem to be broken. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Fri Jun 1 23:26:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 54AFE2D3D6 for ; Fri, 1 Jun 2001 23:26:33 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f523S0X22341; Fri, 1 Jun 2001 23:28:00 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Jose Fernando Diago Cc: GTK+ List Subject: Re: Question about printing a drawable References: From: Havoc Pennington Date: 01 Jun 2001 23:27:59 -0400 In-Reply-To: Jose Fernando Diago's message of "Fri, 1 Jun 2001 18:28:26 -0500 (COT)" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jose Fernando Diago writes: > > So my question is: What's the gdk-pixbuf? How can I use it? > There's a new app that does exactly this (gdk-pixbuf for screenshots, gnome-print to print): http://lists.eazel.com/pipermail/nautilus-list/2001-May/003389.html Will probably come with the panel sooner or later. Havoc From needles@industrialmusic.com Sun Jun 3 15:32:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from industrialmusic.com (unknown [216.101.163.50]) by mail.gnome.org (Postfix) with ESMTP id AB95B2D45F for ; Sun, 3 Jun 2001 15:32:03 -0400 (EDT) Received: (from needles@localhost) by industrialmusic.com (8.9.3/8.9.3) id MAA10514 for gtk-list@gnome.org; Sun, 3 Jun 2001 12:56:47 -0700 From: "needles@industrialmusic.com" Message-Id: <200106031956.MAA10514@industrialmusic.com> Subject: Programming Help. Determing what line the user clicks in GtkText To: gtk-list@gnome.org Date: Sun, 3 Jun 2001 12:56:47 -0700 (PDT) X-Mailer: ELM [version 2.5 PL3] 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm using gtk+ 1.2.10 on RedHat 7.1. I'm trying to display text in a scrollable window, then get a callback when the user clicks on the text. I did that by using a GtkText widget and connecting it to the "button-press-event" signal. That gives me the callback when I want it, but I can't figure out what line the user clicked on. I tried using the GList textWidget->current_line and counting till I got to the start of the list which almost work. It gave me the previous line that was clicked on. Does anyone have any ideas of the best way to do what I want? I'm not opposed to modifying gtktext.c or using a different widget. I realize that Gtk+2.0 will have a lot of changes in the text area, but I don't know if it is in usable form yet. Some other requirements I need is the ability to highlight different lines. I'm trying to write a TMS320C54x DSP simulator under the GPL license. Thanks for any help Kerry -- Windows 95: n. 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition. From bowman@montana.com Mon Jun 4 00:47:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailA.montana.com (mailA.montana.com [199.2.139.116]) by mail.gnome.org (Postfix) with ESMTP id E08732BA98 for ; Mon, 4 Jun 2001 00:46:59 -0400 (EDT) Received: from odin (mso1-114.montana.com [208.4.224.114]) by mailA.montana.com (8.11.2/8.11.2) with SMTP id f544fOw26028 for ; Sun, 3 Jun 2001 22:41:24 -0600 (MDT) Message-ID: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> From: "bowman" To: Subject: getting a GtkWidget* Date: Sun, 3 Jun 2001 22:46:15 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I haven't been able to hit on quite the right thing in the FAQ or docs. I've been working with glade, which doesn't expose the widgets used in the generated interface.c file. If I have connected a callback to a button click, for instance, and I would like to get the text from an GetEntry widget, is there a graceful way to get a pointer to the entry? It looks like my options are passing a GList of the widget pointers I'll be interested in during the callback, or getting the ancestor container of the button and iterating through the children. Is there anything analogous to XtNameToWidget? thanks. From tvv@sparc.spb.su Mon Jun 4 04:11:58 2001 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 913742DC31 for ; Mon, 4 Jun 2001 04:11:57 -0400 (EDT) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.10.1/8.10.1) with ESMTP id f548BuC02849 for ; Mon, 4 Jun 2001 12:11:56 +0400 (MSD) Received: from sparc.spb.su (norwich.sparc.spb.su [192.168.205.226]) by mail.sparc.spb.su (8.11.3/8.11.1) with ESMTP id f548CZE61308 for ; Mon, 4 Jun 2001 12:12:35 +0400 (MSD) (envelope-from tvv@sparc.spb.su) Message-ID: <3B1B430A.C1BDD77D@sparc.spb.su> Date: Mon, 04 Jun 2001 12:12:58 +0400 From: Vitaly Tishkov 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_tree_view_column_set_min_width (column, 0) segvs Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, The following example segvs. #include int main (int argc, char** argv) { GtkTreeViewColumn* column; gtk_init (&argc, &argv); column = gtk_tree_view_column_new (); gtk_tree_view_column_set_min_width (column, 1); } What am I doing wrong or is it a bug? Thanks, Vitaly. From 4dadio@telkom.net Mon Jun 4 06:46:38 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 3D9AF2BDE3 for ; Mon, 4 Jun 2001 06:46:36 -0400 (EDT) Received: out-mta3.plasa.com; Mon, 04 Jun 2001 17:46:27 +0700 Received: out-mta2.plasa.com; Mon, 04 Jun 2001 17:46:27 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 61793 for ; Mon, 04 Jun 2001 17:46:27 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: problem with gtk_entry_get_text() To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Mon, 04 Jun 2001 17:46:27 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've some problems in gtk+ ver. 1.2.0. Well, I thimk the funtion, gtk_entry_get_text(), make a problem. I can't get any character from entries. dadio From niklas.hoglund@telia.com Mon Jun 4 07:40:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by mail.gnome.org (Postfix) with ESMTP id CBF4F2DE6A for ; Mon, 4 Jun 2001 07:40:56 -0400 (EDT) Received: from d1o828.telia.com (d1o828.telia.com [213.65.100.241]) by mailc.telia.com (8.11.2/8.11.0) with ESMTP id f54BetY06075 for ; Mon, 4 Jun 2001 13:40:55 +0200 (CEST) Received: from zero (h204n1fls33o828.telia.com [213.65.102.204]) by d1o828.telia.com (8.10.2/8.10.1) with ESMTP id f54Betb28805 for ; Mon, 4 Jun 2001 13:40:55 +0200 (CEST) Received: from niklas by zero with local (Exim 3.22 #1 (Debian)) id 156sjE-0001FW-00 for ; Mon, 04 Jun 2001 13:41:00 +0200 Date: Mon, 4 Jun 2001 13:41:00 +0200 To: gtk-list@gnome.org Subject: Drawing in window gives it focus in win32 Message-ID: <20010604134059.A4790@mail.canit.se> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.18i From: Niklas Hoglund Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems that whenever I draw in a custom widget and whenever I add items to a clist the GTK window containing it gets keyboard focus. This is unbearable as it happens in a window containing a status display which monitors actions that happen in the background. During background activities this renders the machine practically unusable. This happens on Windows NT. I don't know if it happens on other systems. What can I do about this? I have code to draw the relevant things using native windows calls, but I'd rather use GTK/GDK. -- Niklas From bowman@montana.com Mon Jun 4 09:28:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailB.montana.com (mailB.montana.com [199.2.139.117]) by mail.gnome.org (Postfix) with ESMTP id 02D0D2D2DB for ; Mon, 4 Jun 2001 09:28:47 -0400 (EDT) Received: from odin (mso1-163.montana.com [208.4.224.163]) by mailB.montana.com (8.11.2/8.11.2) with SMTP id f54DMIS00860; Mon, 4 Jun 2001 07:22:30 -0600 (MDT) Message-ID: <004101c0ecfa$31228960$0100a8c0@mshome.net> From: "bowman" To: "dodi-nug" <4dadio@telkom.net>, References: Subject: Re: problem with gtk_entry_get_text() Date: Mon, 4 Jun 2001 07:27:53 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "dodi-nug" <4dadio@telkom.net> > > Well, I thimk the funtion, gtk_entry_get_text(), make a > problem. > I can't get any character from entries. The docs say this is a deprecated function. Why don't you try: something like: msg = gtk_editable_get_chars ((GtkEditable*) msg_text, 0, -1); where 0 is the start_pos, and -1 the default 'get everything' end_pos. From rbultje@ronald.bitfreak.net Mon Jun 4 09:36:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 66AD92DFC3 for ; Mon, 4 Jun 2001 09:36:40 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f54ELCC13549 for ; Mon, 4 Jun 2001 16:21:12 +0200 (CEST) From: "Ronald Bultje" To: Subject: wait for a condition to be satisfied Date: Mon, 4 Jun 2001 15:42:41 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, I'm looking for a function which returns if a certain condition is satisfied. I'm now using: /* now, we need to pause until scene detection is done */ while (scene_detection_reply == 1) usleep(100000); but this is ugly (imho, that is ;-) ). Is there something like waitfor(scenedetection != 1) in Gtk, glib or anything? Secondly, sleep() (and usleep()) are not thread-safe, are they? is there anything thread-safe as a replacement for sleep()? (I heard about g_sleep but "grep -r g_sleep /usr/include/*" gives no results) Regards and thanks in advance, Ronald Bultje From sven@gimp.org Mon Jun 4 10:03:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A1A.dip.t-dialin.net [217.80.26.26]) by mail.gnome.org (Postfix) with ESMTP id B163D2BC79 for ; Mon, 4 Jun 2001 10:03:42 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 156urP-0001as-00; Mon, 04 Jun 2001 15:57:35 +0200 To: "Ronald Bultje" Cc: Subject: Re: wait for a condition to be satisfied References: From: Sven Neumann Date: 04 Jun 2001 15:57:35 +0200 In-Reply-To: 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "Ronald Bultje" writes: > I'm looking for a function which returns if a certain condition is > satisfied. since you seem to be using threads, why not use pthread_cond_wait() ? Salut, Sven From hoshem@mel.comcen.com.au Mon Jun 4 10:47:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem056.mnementh.comcen.com.au [203.23.238.115]) by mail.gnome.org (Postfix) with ESMTP id A292D2BA99 for ; Mon, 4 Jun 2001 10:47:48 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f54ExrT11518; Tue, 5 Jun 2001 00:59:53 +1000 Date: Tue, 5 Jun 2001 00:59:53 +1000 From: Helmethead To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: wait for a condition to be satisfied Message-ID: <20010605005953.A11070@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , gtk-list@gnome.org 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 rbultje@ronald.bitfreak.net on Mon, Jun 04, 2001 at 03:42:41PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 04, 2001 at 03:42:41PM +0200, Ronald Bultje wrote: > Hi there, > > I'm looking for a function which returns if a certain condition is > satisfied. I'm now using: > > /* now, we need to pause until scene detection is done */ > while (scene_detection_reply == 1) > usleep(100000); > > but this is ugly (imho, that is ;-) ). Is there something like > waitfor(scenedetection != 1) in Gtk, glib or anything? Well in a normal program this kind of problem doesn't come up, since it has a single thread of execution. It does in threaded programs though, and pthreads condition variables probably fit the bill nicely ;) If your code snippet is waiting for something even more external to modify the variable (variable lives in shared memory perhaps), then you'd have to roll your own mechanism from pipes or signals or something. If you don't wanna poll (sleep,test,sleep,test etc), it basically comes down to getting the thread that changed the variable, to notify the thread that's waiting for the variable to be changed. > Secondly, sleep() (and usleep()) are not thread-safe, are they? is there > anything thread-safe as a replacement for sleep()? (I heard about g_sleep > but "grep -r g_sleep /usr/include/*" gives no results) Dahm, I heard something like this but I can't remember or find anything in the pthreads docs. I don't program in threads.. I can do a better job of scheduling my simultaneous tasks than the linux kernel any day ;-) From loban@ugcs.caltech.edu Mon Jun 4 10:53:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from spew.ugcs.caltech.edu (spew.ugcs.caltech.edu [131.215.43.154]) by mail.gnome.org (Postfix) with ESMTP id 26B8D2E18E for ; Mon, 4 Jun 2001 10:53:39 -0400 (EDT) Received: by spew.ugcs.caltech.edu (Postfix, from userid 9289) id DBA902446E; Mon, 4 Jun 2001 07:53:37 -0700 (PDT) Date: Mon, 4 Jun 2001 07:53:37 -0700 From: Loban Amaan Rahman To: bowman Cc: gtk-list@gnome.org Subject: Re: getting a GtkWidget* Message-ID: <20010604075337.A12312@spew.ugcs.caltech.edu> References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net>; from bowman@montana.com on Sun, Jun 03, 2001 at 10:46:15PM -0600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes, but in order to do this you need to use libglade to dynamically load the XML file at runtime to create the widgets. You can give each widget a name, and then call glade_xml_get_widget(GladeXML *self, char *name) to get a pointer to the GtkWidget. If you aren't using libglade, but having glade pregenerate the code for you, i'm not perfectly sure what the proper solution is. Loban. > I haven't been able to hit on quite the right thing in the FAQ or docs. I've > been working with glade, which doesn't expose the widgets used in the > generated interface.c file. If I have connected a callback to a button > click, for instance, and I would like to get the text from an GetEntry > widget, is there a graceful way to get a pointer to the entry? > > It looks like my options are passing a GList of the widget pointers I'll be > interested in during the callback, or getting the ancestor container of the > button and iterating through the children. > > Is there anything analogous to XtNameToWidget? /-------------------------------------------------------------------\ | Loban Amaan Rahman <-- anagram of --> Aha! An Abnormal Man! | | loban@earthling.net, loban@ugcs.caltech.edu, http://i.am/loban | \-------------------------------------------------------------------/ From edsonlima@magnumsa.com.br Mon Jun 4 14:21:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ncc1701.magnumsa.com.br (unknown [200.189.50.122]) by mail.gnome.org (Postfix) with ESMTP id 57F862DC17 for ; Mon, 4 Jun 2001 14:21:44 -0400 (EDT) Received: from edson (edson.magnumsa.com.br [172.16.0.121]) by ncc1701.magnumsa.com.br (8.9.3/8.9.3) with SMTP id PAA10470 for ; Mon, 4 Jun 2001 15:26:04 -0300 Posted-Date: Mon, 4 Jun 2001 15:26:04 -0300 Message-ID: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Reply-To: "Edson Lima" From: "Edson Lima" To: Subject: GTK+ with PHP Date: Mon, 4 Jun 2001 15:18:00 -0300 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like to know somebody already knows some thing of GTK+ with PHP. From hp@redhat.com Mon Jun 4 14:49:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0F0F52BAC0 for ; Mon, 4 Jun 2001 14:49:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f54IpUv05371; Mon, 4 Jun 2001 14:51:30 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Vitaly Tishkov Cc: gtk-list@gnome.org Subject: Re: gtk_tree_view_column_set_min_width (column, 0) segvs References: <3B1B430A.C1BDD77D@sparc.spb.su> From: Havoc Pennington Date: 04 Jun 2001 14:51:30 -0400 In-Reply-To: Vitaly Tishkov's message of "Mon, 04 Jun 2001 12:12:58 +0400" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vitaly Tishkov writes: > > #include > int > main (int argc, char** argv) > { > GtkTreeViewColumn* column; > > gtk_init (&argc, &argv); > > column = gtk_tree_view_column_new (); > gtk_tree_view_column_set_min_width (column, 1); > } > > What am I doing wrong or is it a bug? > Probably a bug, looks reasonable to me. Havoc From skip@beluga.mojam.com Mon Jun 4 15:23:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id C46A02E318 for ; Mon, 4 Jun 2001 15:23:57 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id D3C5B2813; Mon, 4 Jun 2001 14:23:58 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15131.57422.598775.865140@beluga.mojam.com> Date: Mon, 4 Jun 2001 14:23:58 -0500 To: gtk-list@gnome.org Subject: themes & key bindings? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen Taylor's theme architecture guide: http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html doesn't mention key/button bindings at all. Do themes only deal with the visual aspects of the user interface? If I create a new widget for an application, what hooks (if any) do I need to provide to make it "themeable"? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From erik@turner.org Mon Jun 4 15:36:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c000.snv.cp.net (c000-h000.c000.snv.cp.net [209.228.32.64]) by mail.gnome.org (Postfix) with SMTP id 5F4C92DC1E for ; Mon, 4 Jun 2001 15:32:58 -0400 (EDT) Received: (cpmta 24969 invoked from network); 4 Jun 2001 12:32:57 -0700 Received: from cpe-66-1-218-98.fl.sprintbbd.net (HELO ECTGateway) (66.1.218.98) by smtp.turner.org (209.228.32.64) with SMTP; 4 Jun 2001 12:32:57 -0700 X-Sent: 4 Jun 2001 19:32:57 GMT Message-ID: <012c01c0ed2c$de7c35c0$6664a8c0@riocasa> From: "Erik Turner" To: References: <15131.57422.598775.865140@beluga.mojam.com> Subject: Drop down signal for GtkCombo Date: Mon, 4 Jun 2001 15:30:52 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've got a GtkCombo and I would like to see a signal for the dropdown event so that I can refresh the dropdown list before it's displayed. Is there an easy way to do this? Thanks in advance, Erik Turner From 4dadio@telkom.net Mon Jun 4 18:26:09 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 9D3EE2CFD8 for ; Mon, 4 Jun 2001 18:26:07 -0400 (EDT) Received: out-mta3.plasa.com; Tue, 05 Jun 2001 05:26:01 +0700 Received: out-mta2.plasa.com; Tue, 05 Jun 2001 05:26:01 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 289900; Tue, 05 Jun 2001 05:26:01 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: Re: problem with gtk_entry_get_text() To: "bowman" Cc: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Tue, 05 Jun 2001 05:26:01 +0700 Message-ID: In-Reply-To: <004101c0ecfa$31228960$0100a8c0@mshome.net> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: erouter=gtk_entry_new(); gtk_widget_show(erouter); gtk_box_pack_start(GTK_BOX(hbox1),erouter,TRUE,TRUE,0); isi = gtk_editable_get_chars(GTK_EDITABLE(erouter),0,-1); gtk_editable_chars cause the same problem with gtk_entry_get_text() On Mon, 4 Jun 2001 07:27:53 -0600 "bowman" wrote: > > From: "dodi-nug" <4dadio@telkom.net> > > > > Well, I thimk the funtion, gtk_entry_get_text(), make a > > problem. > > I can't get any character from entries. > > The docs say this is a deprecated function. Why don't you > try: > something like: > > msg = gtk_editable_get_chars ((GtkEditable*) msg_text, > 0, -1); > > where 0 is the start_pos, and -1 the default 'get > everything' end_pos. > > From damon@ximian.com Mon Jun 4 18:49:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id D78E22E3B8 for ; Mon, 4 Jun 2001 18:49:56 -0400 (EDT) Received: from ximian.com (IDENT:damon@karuna.ximian.com [141.154.95.114]) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id SAA24045; Mon, 4 Jun 2001 18:49:50 -0400 Message-ID: <3B1C1014.798F27BA@ximian.com> Date: Mon, 04 Jun 2001 18:47:48 -0400 From: Damon Chaplin X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: bowman Cc: gtk-list@gnome.org Subject: Re: getting a GtkWidget* References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: bowman wrote: > > I haven't been able to hit on quite the right thing in the FAQ or docs. I've > been working with glade, which doesn't expose the widgets used in the > generated interface.c file. If I have connected a callback to a button > click, for instance, and I would like to get the text from an GetEntry > widget, is there a graceful way to get a pointer to the entry? > > It looks like my options are passing a GList of the widget pointers I'll be > interested in during the callback, or getting the ancestor container of the > button and iterating through the children. > > Is there anything analogous to XtNameToWidget? Glade outputs a lookup_widget() function in support.c that you can use. See the FAQ on http://glade.gnome.org Damon From hp@redhat.com Mon Jun 4 21:22:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8141C2BAB6 for ; Mon, 4 Jun 2001 21:22:41 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f551PB128575; Mon, 4 Jun 2001 21:25:11 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: themes & key bindings? References: <15131.57422.598775.865140@beluga.mojam.com> From: Havoc Pennington Date: 04 Jun 2001 21:25:11 -0400 In-Reply-To: Skip Montanaro's message of "Mon, 4 Jun 2001 14:23:58 -0500" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > Owen Taylor's theme architecture guide: > > http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html > > doesn't mention key/button bindings at all. Do themes only deal with the > visual aspects of the user interface? Yes. Keybindings are done with GtkBindingSet. GTK 2 uses binding set fairly extensively, so there are lots of examples in the source. > If I create a new widget for an application, what hooks (if any) do I need > to provide to make it "themeable"? Draw with colors in widget->style, be sure any computations based on widget->style are recalculated either on size_request/size_allocate or in a style_set handler, use the gtk_paint_ routines to draw rather than gdk_draw_ whenever a gtk_paint_ routine is appropriate. Again, many examples in GTK source. Havoc From switk@yahoo.com Mon Jun 4 22:30:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx08.cluster1.charter.net (dc-mx08.cluster0.hsacorp.net [209.225.8.18]) by mail.gnome.org (Postfix) with ESMTP id 1D3DD2BDFD for ; Mon, 4 Jun 2001 22:30:50 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx08.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 7106414; Mon, 04 Jun 2001 22:36:44 -0400 Subject: Re: GTK+ with PHP From: Stephen Witkop To: Edson Lima Cc: gtk-list@gnome.org In-Reply-To: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> References: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Jun 2001 22:30:45 -0400 Message-Id: <991708249.27473.0.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: http://gtk.php.net Stephen On 04 Jun 2001 15:18:00 -0300, Edson Lima wrote: > Hello, > I would like to know somebody already knows some thing of GTK+ with PHP. > From bowman@montana.com Mon Jun 4 23:18:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailC.montana.com (mailC.montana.com [199.2.139.118]) by mail.gnome.org (Postfix) with ESMTP id F03A22BAB6 for ; Mon, 4 Jun 2001 23:18:03 -0400 (EDT) Received: from odin (mso1-76.montana.com [208.4.224.76]) by mailC.montana.com (8.11.2/8.11.2) with SMTP id f553CI211221 for ; Mon, 4 Jun 2001 21:12:20 -0600 (MDT) Message-ID: <004d01c0ed6e$20d9bd20$4ce004d0@mshome.net> From: "bowman" To: References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> <3B1C1014.798F27BA@ximian.com> Subject: Re: getting a GtkWidget* Date: Mon, 4 Jun 2001 21:17:55 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "Damon Chaplin" > > Glade outputs a lookup_widget() function in support.c that you can use. Thanks. I eventually worked my way down to the Glade FAQ in the tarball. I was looking for something native to Gtk, where the lookup_widget depends on Glade sticking the name/pointer pair into the top level widget and later retrieving it. It certainly works. I'm a little sensitive about user data; I work with a suite of Motif apps that go back almost 10 years -- appending data to a widget has be used and abused over those years to the point you never know just what might be lurking in some widget. From bowman@montana.com Mon Jun 4 23:24:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from maild.montana.com (mailD.montana.com [199.2.139.119]) by mail.gnome.org (Postfix) with ESMTP id 5EBF12BABF for ; Mon, 4 Jun 2001 23:24:44 -0400 (EDT) Received: from odin (mso1-76.montana.com [208.4.224.76]) by maild.montana.com (8.11.2/8.11.2) with SMTP id f553oUB04390 for ; Mon, 4 Jun 2001 21:50:30 -0600 (MDT) Message-ID: <005a01c0ed6f$0f58bb40$4ce004d0@mshome.net> From: "bowman" To: References: <20010605005953.A11070@BuffyRox.localdomain> Subject: Re: wait for a condition to be satisfied Date: Mon, 4 Jun 2001 21:24:38 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "Helmethead" > > Secondly, sleep() (and usleep()) are not thread-safe, are they? is there > > anything thread-safe as a replacement for sleep()? (I heard about g_sleep > > but "grep -r g_sleep /usr/include/*" gives no results) > > Dahm, I heard something like this but I can't remember or find anything in the pthreads docs. I don't program in threads.. I can do a better job of scheduling my simultaneous tasks than the linux kernel any day ;-) for what it's worth, nanosleep() is the usual thread-safe sleep. it works a little differently, but the man nanosleep page should clarify it. From chris.l.pettit@lmco.com Tue Jun 5 08:38:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailgw1a.lmco.com (mailgw1a.lmco.com [192.31.106.7]) by mail.gnome.org (Postfix) with ESMTP id C2DD02BE02 for ; Tue, 5 Jun 2001 08:38:19 -0400 (EDT) Received: from emss02g01.ems.lmco.com (relay2.ems.lmco.com [166.29.2.54]) by mailgw1a.lmco.com (8.8.8/8.8.8) with ESMTP id GAA02523 for ; Tue, 5 Jun 2001 06:38:19 -0600 (MDT) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-33 #38887) id <0GEG00H01J3UOR@lmco.com> for gtk-list@gnome.org; Tue, 5 Jun 2001 06:38:18 -0600 (MDT) Received: from emss06m01.ems.lmco.com ([134.5.45.74]) by lmco.com (PMDF V5.2-33 #38887) with ESMTP id <0GEG00ECWJ3QCG@lmco.com> for gtk-list@gnome.org; Tue, 05 Jun 2001 06:38:14 -0600 (MDT) Received: by emss06m01.ems.lmco.com with Internet Mail Service (5.5.2653.19) id ; Tue, 05 Jun 2001 08:38:19 -0400 Content-return: allowed Date: Tue, 05 Jun 2001 08:38:13 -0400 From: "Pettit, Chris L" Subject: Need a 3D diagram of Gtk window stack up for presentation tomorro w (6/6) To: "Gtk-List (E-mail)" Message-id: MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Help !! I'm assembling a presentation on open source GUI development. Recently, i saw a schematic 3D stack-up diagram for the gtk window elements and structure ... and didn't save it. ( Yes, i should know better. A classic lesson from running scanning electron microscopes +20 yrs ) Well, now I can't find it. I was hoping someone could point me to a similar source. I'm pretty sure it was at one of the gtk sites... but, I am getting older ;-). The presentation is tomorrow and I'd really like to have this to talk about. Thx, chris ====================================== Chris Pettit Aircraft Vehicle Integration Facility Embedded Systems Programming * Lockheed Martin Aeronautics Company D/6H52 Z/0698 86 South Cobb Drive Marietta, GA 30063-0698 * Chris.L.Pettit@lmco.com * 770-793-2595 (Voice) * 770-793-2001 (FAX) ====================================== "They have computers, and they may have other weapons of mass destruction." - Janet Reno "If you think there's a solution, you're a part of the problem." - George Carlin ====================================== From jrb@redhat.com Mon Jun 4 14:54:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aware-of-vacuity.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 94CE52DE1F for ; Mon, 4 Jun 2001 14:54:31 -0400 (EDT) Received: (from jrb@localhost) by aware-of-vacuity.labs.redhat.com (8.11.2/8.11.2) id f54IrMH10144; Mon, 4 Jun 2001 14:53:22 -0400 X-Authentication-Warning: aware-of-vacuity.labs.redhat.com: jrb set sender to jrb@redhat.com using -f To: gtk-list@gnome.org Cc: Vitaly Tishkov Subject: Re: [Vitaly Tishkov ] gtk_tree_view_column_set_min_width (column, 0) segvs References: X-URL: From: Jonathan Blandford Date: 04 Jun 2001 14:53:22 -0400 In-Reply-To: Message-ID: Lines: 24 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vitaly Tishkov Writes: > Hi, > > The following example segvs. > > > #include > int > main (int argc, char** argv) > { > GtkTreeViewColumn* column; > > gtk_init (&argc, &argv); > > column = gtk_tree_view_column_new (); > gtk_tree_view_column_set_min_width (column, 1); > } > > What am I doing wrong or is it a bug? It's a bug. I'm fixing it now. -Jonathan From mnatsu@cicese.mx Tue Jun 5 08:03:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 98CD42DF49 for ; Tue, 5 Jun 2001 08:03:02 -0400 (EDT) Received: from matrix.cicese.mx (matrix.cicese.mx [158.97.23.247]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f55C31f25139 for ; Tue, 5 Jun 2001 05:03:01 -0700 (PDT) Received: (from mnatsu@localhost) by matrix.cicese.mx (8.9.3+Sun/8.9.1) id FAA26163; Tue, 5 Jun 2001 05:03:00 -0700 (PDT) Date: Tue, 5 Jun 2001 05:02:58 -0700 (PDT) From: Masaru Natsu Cardenas To: gtk-list@gnome.org Subject: Help 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello i'm new in the gtk programming subject.. i ave only 3 days programming in Gtk and im trayng to make a simple prog: i'm trayng to open a xpm file and dsiplay it into a window and thats all. if anyone know where i can found some code .. to read and learn.. it will be very usefull thanks.. Hello from Mexico =) From jiang.xu@echostar.com Tue Jun 5 11:31:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 0B4102BBB2 for ; Tue, 5 Jun 2001 11:31:10 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA02991 for ; Tue, 5 Jun 2001 11:31:09 -0400 Received: from linux0.echostar.com (w146-253.echostar.com [205.172.146.253]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f55FTTb04256 for ; Tue, 5 Jun 2001 11:29:29 -0400 Received: from echostar.com (linux7.echostar.com [10.79.98.107]) by linux0.echostar.com (Postfix) with ESMTP id 64F7979085; Tue, 5 Jun 2001 09:30:45 -0600 (MDT) Message-ID: <3B1CFB25.B8676254@echostar.com> Date: Tue, 05 Jun 2001 09:30:45 -0600 From: Jiang XU X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.4.0 i686) X-Accept-Language: zh-CN, en MIME-Version: 1.0 To: "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" Subject: where I can find more API information about GdkImlib Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Guys, I try to use GdkImlib to load transparent pixmap, such as using gdk_imlib_XXX calls. I wonder where I can find more API document about GdkImlib? Thanks Jiang From rhfreeman@micron.com Tue Jun 5 12:10:43 2001 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 007A12BDFD for ; Tue, 5 Jun 2001 12:10:42 -0400 (EDT) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.9.2/8.9.2) with ESMTP id KAA11080 for ; Tue, 5 Jun 2001 10:10:42 -0600 (MDT) Received: from ntexchange01.micron.com (ntexchange01 [137.201.104.84]) by mail-srv1.micron.com (8.9.2/8.9.2) with ESMTP id KAA11054 for ; Tue, 5 Jun 2001 10:10:41 -0600 (MDT) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Tue, 5 Jun 2001 10:10:40 -0600 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: Compiling GTK apps with Sun's Forte compiler Date: Tue, 5 Jun 2001 10:10:31 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, Sun's compiler doesn't seem to get on with GTK too well. Anyone got any ideas what I can do to change this rather odd behaviour? /opt/SUNWspro/bin/../WS6U1/bin/cc -g -mt -xCC -c -I. -I/opt/gnu/include -I/opt/gnu/include/glib -I/opt/gnu/lib/glib/include -I/usr/openwin/include -I/usr/dt/include -o output/rwaves2-filehandler.o rwaves2-filehandler.c *** Error code 2 "/opt/gnu/include/glib.h", line 1554: undefined or not a type: inline "/opt/gnu/include/glib.h", line 1555: parameter not in identifier list: g_bit_nth_lsf "/opt/gnu/include/glib.h", line 1557: only "register" valid as formal parameter storage class "/opt/gnu/include/glib.h", line 1557: parameter not in identifier list: inline "/opt/gnu/include/glib.h", line 1557: syntax error before or at: gint "/opt/gnu/include/glib.h", line 1560: parameter not in identifier list: g_bit_nth_lsf "/opt/gnu/include/glib.h", line 1560: parameter not in identifier list: __func__ "/opt/gnu/include/glib.h", line 1560: cannot initialize parameter: __func__ "/opt/gnu/include/glib.h", line 1563: undefined symbol: nth_bit "/opt/gnu/include/glib.h", line 1564: undefined symbol: mask "/opt/gnu/include/glib.h", line 1567: undefined symbol: nth_bit "/opt/gnu/include/glib.h", line 1569: warning: statement not reached "/opt/gnu/include/glib.h", line 1569: cannot recover from previous errors : cc: acomp failed for rwaves2-filehandler.c dmake: Fatal error: Command failed for target `output/rwaves2-filehandler.o' Thanks! Rich From skip@beluga.mojam.com Tue Jun 5 12:40:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 345FF2E469 for ; Tue, 5 Jun 2001 12:40:25 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id E64FC2818; Tue, 5 Jun 2001 11:40:24 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.2936.859775.496672@beluga.mojam.com> Date: Tue, 5 Jun 2001 11:40:24 -0500 To: gtk-list@gnome.org Subject: adjustment property on scales and scrollbars get/set methods on range X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: According to the 2.0 reference manual the GtkHScale, GtkVScale, GtkHScrollbar and GtkVScrollbar classes all define an adjustment property, but get_adjustment and set_adjustment methods are defined at the GtkRange level. Is this an inconsistency in the documentation or do each of the scale and scrollbar classes define adjustment properties? If they do, why isn't this defined at the level of the GtkRange class instead? -- Skip Montanaro (skip@pobox.com) (847)971-7098 From skip@beluga.mojam.com Tue Jun 5 12:58:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id E364D2E482 for ; Tue, 5 Jun 2001 12:58:06 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 4B71D2818; Tue, 5 Jun 2001 11:58:06 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.3998.127554.140938@beluga.mojam.com> Date: Tue, 5 Jun 2001 11:58:06 -0500 To: rhfreeman Cc: "'gtk-list@gnome.org'" Subject: Re: Compiling GTK apps with Sun's Forte compiler In-Reply-To: References: X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Rich> Sun's compiler doesn't seem to get on with GTK too well. ... Rich> "/opt/gnu/include/glib.h", line 1554: undefined or not a type: inline For starters it looks like it doesn't understand the "inline" keyword. I'd check a few things: 1. Make sure that configure used the Sun compiler when it ran. 2. Check the various inline-related defines in config.h: /* Have __inline keyword */ #define G_HAVE___INLINE 1 /* Have __inline__ keyword */ #define G_HAVE___INLINE__ 1 /* Have inline keyword */ #define G_HAVE_INLINE 1 If you comment them out does the situation improve? 3. Delete config.cache and try reconfiguring. If it insists on using gcc, set the (I think) CC environment variable explicitly. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Tue Jun 5 14:40:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 669D52E4A4 for ; Tue, 5 Jun 2001 14:38:10 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f55IeYV02037; Tue, 5 Jun 2001 14:40:34 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: rhfreeman Cc: "'gtk-list@gnome.org'" Subject: Re: Compiling GTK apps with Sun's Forte compiler References: From: Havoc Pennington Date: 05 Jun 2001 14:40:34 -0400 In-Reply-To: rhfreeman's message of "Tue, 5 Jun 2001 10:10:31 -0600" Message-ID: Lines: 11 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: rhfreeman writes: > > Sun's compiler doesn't seem to get on with GTK too well. Anyone got any > ideas what I can do to change this rather odd behaviour? You have to build GLib apps with the same compiler used to build GLib, since GLib uses compiler-specific features according to compile-time checks. That might explain it. Havoc From hp@redhat.com Tue Jun 5 14:41:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7499A2DC11 for ; Tue, 5 Jun 2001 14:41:02 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f55IhUC02040; Tue, 5 Jun 2001 14:43:30 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: adjustment property on scales and scrollbars get/set methods on range References: <15133.2936.859775.496672@beluga.mojam.com> From: Havoc Pennington Date: 05 Jun 2001 14:43:30 -0400 In-Reply-To: Skip Montanaro's message of "Tue, 5 Jun 2001 11:40:24 -0500" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > According to the 2.0 reference manual the GtkHScale, GtkVScale, > GtkHScrollbar and GtkVScrollbar classes all define an adjustment property, > but get_adjustment and set_adjustment methods are defined at the GtkRange > level. Is this an inconsistency in the documentation or do each of the > scale and scrollbar classes define adjustment properties? If they do, why > isn't this defined at the level of the GtkRange class instead? > It is at the GtkRange level in the code, I'm not sure what's up with the docs. Havoc From cone@moritz.mine.nu Tue Jun 5 15:24:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prototype (pD9012D3D.dip.t-dialin.net [217.1.45.61]) by mail.gnome.org (Postfix) with ESMTP id 8F1992CC48 for ; Tue, 5 Jun 2001 15:24:48 -0400 (EDT) Received: from cone by prototype with local (Exim 3.22 #1 (Debian)) id 157OJL-0000Ap-00 for ; Tue, 05 Jun 2001 23:24:23 +0200 Date: Tue, 5 Jun 2001 23:24:22 +0200 From: Moritz Angermann To: gtk-list@gnome.org Subject: Re: GTK+ with PHP Message-ID: <20010605232422.B537@prototype> References: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br>; from edsonlima@magnumsa.com.br on Mon, Jun 04, 2001 at 20:18:00 +0200 X-Mailer: Balsa 1.0.pre5 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: yea i do, my latest project is a PHP / GTK based Napster Client ... On Mon, 04 Jun 2001 20:18:00 Edson Lima wrote: > Hello, > I would like to know somebody already knows some thing of GTK+ with PHP. > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > From skip@beluga.mojam.com Tue Jun 5 15:35:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 2990E2DC11 for ; Tue, 5 Jun 2001 15:35:33 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 976BA2819; Tue, 5 Jun 2001 14:35:32 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.13444.459493.270927@beluga.mojam.com> Date: Tue, 5 Jun 2001 14:35:32 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: adjustment property on scales and scrollbars get/set methods on range In-Reply-To: References: <15133.2936.859775.496672@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> According to the 2.0 reference manual the GtkHScale, GtkVScale, >> GtkHScrollbar and GtkVScrollbar classes all define an adjustment >> property, but get_adjustment and set_adjustment methods are defined >> at the GtkRange level. Havoc> It is at the GtkRange level in the code, I'm not sure what's up Havoc> with the docs. I went to file a bug report and discovered I was in error. I was referring to a local snapshot of the 2.0 docs I took in late April. It looks like the current docs on developer.gnome.org are correct. Skip From 4dadio@telkom.net Tue Jun 5 17:29:46 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 35A2B2BDDA for ; Tue, 5 Jun 2001 17:25:14 -0400 (EDT) Received: out-mta3.plasa.com; Wed, 06 Jun 2001 04:25:06 +0700 Received: out-mta2.plasa.com; Wed, 06 Jun 2001 04:25:06 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 640545 for ; Wed, 06 Jun 2001 04:25:05 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: gtk_editable_get_chars=gtk_entry_get_text To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Wed, 06 Jun 2001 04:25:05 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: i failed to get text from entry text's widget, it seem that in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html) doesn't work too. i have tried gtk_editable_get_chars ( Mr. bowman's advise), but i didn't work too. so i need advise from all of you guys thanks dadio From mathew@fugue.jpl.nasa.gov Tue Jun 5 19:38:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ampersand.jpl.nasa.gov (ampersand.jpl.nasa.gov [137.78.28.29]) by mail.gnome.org (Postfix) with ESMTP id E73D52E107 for ; Tue, 5 Jun 2001 19:38:33 -0400 (EDT) Received: from fugue.jpl.nasa.gov (fugue.jpl.nasa.gov [137.78.28.46]) by ampersand.jpl.nasa.gov (8.9.3/8.9.3/RSE-jhk-1.15) with ESMTP id QAA19531 for ; Tue, 5 Jun 2001 16:38:29 -0700 (PDT) Received: from fugue.jpl.nasa.gov (localhost [127.0.0.1]) by fugue.jpl.nasa.gov (8.9.1a/8.9.1/JPLRsol2.jhk-1.7a) with ESMTP id QAA11326 for ; Tue, 5 Jun 2001 16:38:27 -0700 (PDT) Message-Id: <200106052338.QAA11326@fugue.jpl.nasa.gov> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.3 #8[UCI] To: gtk-list@gnome.org Subject: gtk.themes.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 05 Jun 2001 16:38:27 -0700 From: Mathew Yeates Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Has been down for awhile. Anybody know why and when it's going to be back up? Mathew From king@eiffel.com Tue Jun 5 20:05:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 5FE782BCB1 for ; Tue, 5 Jun 2001 20:05:36 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 157QpH-0001RE-00 for gtk-list@gnome.org; Tue, 05 Jun 2001 17:05:31 -0700 Message-ID: <06ca01c0ee1d$6ede5260$750a000a@naples> From: "Ian King" To: Subject: Removing a selected list item from a combo box Date: Tue, 5 Jun 2001 17:12:54 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way that a listitem can remove itself from a combo box on its selection without the application seg faulting. Thanks for your time Ian King From Adam.K@klografx.de Tue Jun 5 11:38:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id A6E6A2DFFD for ; Tue, 5 Jun 2001 11:38:11 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA04516 for ; Tue, 5 Jun 2001 11:38:11 -0400 Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f55FaUb04913 for ; Tue, 5 Jun 2001 11:36:30 -0400 Received: from [195.20.224.208] (helo=mrvdom01.schlund.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 157IuD-0003xQ-00; Tue, 5 Jun 2001 17:38:05 +0200 Received: from p3e9e004a.dip.t-dialin.net ([62.158.0.74] helo=klografx.de) by mrvdom01.schlund.de with smtp (Exim 2.12 #2) id 157ItA-0004hx-00; Tue, 5 Jun 2001 17:37:00 +0200 From: Adam Kopacz To: jiang.xu@echostar.com Cc: gtk-app-devel-list@gnome.org, gtk-list@redhat.com Subject: Re: where I can find more API information about GdkImlib In-Reply-To: <3B1CFB25.B8676254@echostar.com> Organization: kLoGraFX Network Date: Tue, 05 Jun 2001 17:37:29 +0200 (CEST) X-Mailer: XCmail 1.3 - with PGP support, PGP engine version 0.5 (Linux) X-Mailerorigin: http://www.fsai.fh-trier.de/~schmitzj/Xclasses/XCmail/ MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-Id: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Reply to eMail from 'jiang.xu@echostar.com' about 'where I can find more API information about GdkImlib' Hi Jiang XU, > I try to use GdkImlib to load transparent pixmap, such as using > gdk_imlib_XXX calls. > I wonder where I can find more API document about GdkImlib? there is a html-file in the imlib.tgz.. you can download it from my www.klografx.net/qiv/ site.. -- Adam Kopacz kLoGraFX Network Kieselgrund 39 http://klografx.de/ D-68239 Mannheim http://kopacz.de/ ___________________________________________________________ Tel: 06214816775 - Mobil: 01736602174 - ICQ UIN: 257499 From hoshem@mel.comcen.com.au Tue Jun 5 22:42:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 0B0EB2DBD1 for ; Tue, 5 Jun 2001 22:42:48 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id WAA09671 for ; Tue, 5 Jun 2001 22:42:47 -0400 Received: from BuffyRox.localdomain (modem039.mnementh.comcen.com.au [203.23.238.98]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f562f5b02815 for ; Tue, 5 Jun 2001 22:41:05 -0400 Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5604Jj17107; Wed, 6 Jun 2001 10:04:19 +1000 Date: Wed, 6 Jun 2001 10:04:18 +1000 From: Helmethead To: Jiang XU Cc: "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" Subject: Re: where I can find more API information about GdkImlib Message-ID: <20010606100418.A16987@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Jiang XU , "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" References: <3B1CFB25.B8676254@echostar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1CFB25.B8676254@echostar.com>; from jiang.xu@echostar.com on Tue, Jun 05, 2001 at 09:30:45AM -0600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 05, 2001 at 09:30:45AM -0600, Jiang XU wrote: > Guys, > > I try to use GdkImlib to load transparent pixmap, such as using > gdk_imlib_XXX calls. > I wonder where I can find more API document about GdkImlib? > > Thanks > > Jiang Imlib api docs should have come with your imlib development package. Look in /usr/doc or /usr/share/doc. From hoshem@mel.comcen.com.au Tue Jun 5 23:23:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem039.mnementh.comcen.com.au [203.23.238.98]) by mail.gnome.org (Postfix) with ESMTP id E368D2BAC0 for ; Tue, 5 Jun 2001 23:23:43 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f563aI318004; Wed, 6 Jun 2001 13:36:18 +1000 Date: Wed, 6 Jun 2001 13:36:18 +1000 From: Helmethead To: Masaru Natsu Cardenas Cc: gtk-list@gnome.org Subject: Re: Help Message-ID: <20010606133618.A17955@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Masaru Natsu Cardenas , gtk-list@gnome.org 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 mnatsu@cicese.mx on Tue, Jun 05, 2001 at 05:02:58AM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 05, 2001 at 05:02:58AM -0700, Masaru Natsu Cardenas wrote: > Hello i'm new in the gtk programming subject.. i ave only 3 days > programming in Gtk and im trayng to make a simple prog: > > i'm trayng to open a xpm file and dsiplay it into a window and thats all. > > if anyone know where i can found some code .. to read and learn.. it will > be very usefull > > thanks.. > > Hello from Mexico > =) GTK+ can't read image files by itself, you use either gdk-pixbuf or imlib to do that. You probably have one or the other already on your system. If you have imlib installed (development packages) it should have installed some documentation somewhere, probably /usr/doc or /usr/share/doc. From tjlewis@link.com Wed Jun 6 06:09:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from issun6.hti.com (sunmgr.hti.com [130.210.206.69]) by mail.gnome.org (Postfix) with ESMTP id B0BBC2E161 for ; Wed, 6 Jun 2001 06:09:25 -0400 (EDT) Received: from issun5.hti.com ([130.210.202.3]) by issun6.hti.com (Netscape Messaging Server 3.6) with ESMTP id AAA46E9 for ; Wed, 6 Jun 2001 04:36:05 -0500 Received: from home.com ([130.210.4.11]) by issun5.hti.com (Netscape Messaging Server 3.6) with ESMTP id AAA536B for ; Wed, 6 Jun 2001 05:09:34 -0500 Message-ID: <3B1E0006.ACBD2BEC@home.com> Date: Wed, 06 Jun 2001 06:03:50 -0400 From: "Thomas J Lewis" 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: seg fault, gtk_fixed_expose 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: get segmentation fault when clicking on windows. doesn't happen all the time. doesn't point to a line of code in my software. running xxgdb get error message: Program received signal SIGSEGV, Segmentation fault. 0x401ba306 in gtk_fixed_expose () from /usr/lib/libgtk-1.2.so.0 (xxgdb) thanks in advance, tom From john.cupitt@ng-london.org.uk Wed Jun 6 06:25:24 2001 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 538DF2E4DA for ; Wed, 6 Jun 2001 06:25:10 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43KH; Wed, 6 Jun 2001 11:25:09 +0100 Message-ID: <3B1E03C1.5249BBDE@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:19:45 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Thomas J Lewis Cc: gtk-list@gnome.org Subject: Re: seg fault, gtk_fixed_expose References: <3B1E0006.ACBD2BEC@home.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thomas J Lewis wrote: > get segmentation fault when clicking > on windows. doesn't happen all the time. > doesn't point to a line of code in my software. > running xxgdb get error message: > > Program received signal SIGSEGV, Segmentation fault. > 0x401ba306 in gtk_fixed_expose () from /usr/lib/libgtk-1.2.so.0 > (xxgdb) Hi Tom, if this happens with your application, and other GTK programs on your machine are OK, it's probably a problem in your code somewhere. This sort of thing is uaually a memory problem: you're perhaps freeing something twice, or writing beyond the end of an area of memory you allocated. Try running with electric fence, or try memprof. HTH, John From john.cupitt@ng-london.org.uk Wed Jun 6 06:31:06 2001 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 7643B2BC09 for ; Wed, 6 Jun 2001 06:31:06 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43K4; Wed, 6 Jun 2001 11:31:05 +0100 Message-ID: <3B1E0526.3AAD8ADF@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:25:42 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ian King Cc: gtk-list@gnome.org Subject: Re: Removing a selected list item from a combo box References: <06ca01c0ee1d$6ede5260$750a000a@naples> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ian King wrote: > Is there any way that a listitem can remove itself from a combo box on its > selection without the application seg faulting. Hi Ian, I remember struggling with something like this ... the solution I found was to warp the focus to some other widget (with gtk_widget_grab_focus()) before the delete. John From john.cupitt@ng-london.org.uk Wed Jun 6 06:40:32 2001 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 38A122D026 for ; Wed, 6 Jun 2001 06:40:32 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43LP; Wed, 6 Jun 2001 11:40:31 +0100 Message-ID: <3B1E075C.13F084A2@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:35:08 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: dodi-nug <4dadio@telkom.net> Cc: gtk-list@gnome.org Subject: Re: gtk_editable_get_chars=gtk_entry_get_text 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dodi-nug wrote: > i failed to get text from entry text's widget, it seem that > in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html) > doesn't work too. > i have tried gtk_editable_get_chars ( Mr. bowman's advise), > but i didn't work too. It should work. Try: char *txt = gtk_editable_get_chars( GTK_EDITABLE( text ), 0, -1 ); printf( "You typed: \"%s\"\n", txt ); free( txt ); John From howardzzh@yahoo.com Wed Jun 6 06:56:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13402.mail.yahoo.com (web13402.mail.yahoo.com [216.136.175.60]) by mail.gnome.org (Postfix) with SMTP id BF2E12BC09 for ; Wed, 6 Jun 2001 06:56:13 -0400 (EDT) Message-ID: <20010606105613.89298.qmail@web13402.mail.yahoo.com> Received: from [131.215.103.7] by web13402.mail.yahoo.com; Wed, 06 Jun 2001 03:56:13 PDT Date: Wed, 6 Jun 2001 03:56:13 -0700 (PDT) From: Howard Zhou Subject: Help, how to set background color of a text(window) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everyone, We are currently writing a text editor and I wonder whether there is an easy way to set up the background color of a text widget (or a window). We can set the background of the text we will insert, but that doesn't fill the entire window, so is there something like a function that I can call to accomplish that? Thanks! Howard __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From edsonlima@magnumsa.com.br Wed Jun 6 09:32:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ncc1701.magnumsa.com.br (unknown [200.189.50.122]) by mail.gnome.org (Postfix) with ESMTP id 4BD0D2DE2A for ; Wed, 6 Jun 2001 09:32:38 -0400 (EDT) Received: from edson (edson.magnumsa.com.br [172.16.0.121]) by ncc1701.magnumsa.com.br (8.9.3/8.9.3) with SMTP id KAA07765 for ; Wed, 6 Jun 2001 10:37:03 -0300 Posted-Date: Wed, 6 Jun 2001 10:37:03 -0300 Message-ID: <002b01c0ee8c$a0bdcf80$790010ac@magnumsa.com.br> Reply-To: "Edson Lima" From: "Edson Lima" To: Subject: To Moritz Angermann Date: Wed, 6 Jun 2001 10:28:52 -0300 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Moritz Could you help me with some study aid of GTK+ with PHP, and how to access database?? From hbensaid@ensisun.imag.fr Wed Jun 6 09:36:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imag.imag.fr (imag.imag.fr [129.88.30.1]) by mail.gnome.org (Postfix) with ESMTP id F0E902E537; Wed, 6 Jun 2001 09:36:57 -0400 (EDT) Received: from ensisun.imag.fr (ensisun.imag.fr [195.221.228.2]) by imag.imag.fr (8.11.3/8.11.3) with ESMTP id f56Dauk11061; Wed, 6 Jun 2001 15:36:56 +0200 (MEST) Received: from localhost (hbensaid@localhost) by ensisun.imag.fr (8.9.3/8.8.5) with ESMTP id PAA23625; Wed, 6 Jun 2001 15:38:33 +0200 (MET DST) Date: Wed, 6 Jun 2001 15:38:33 +0200 (MET DST) From: "hicham.bensaid@ensimag.imag.fr" X-X-Sender: To: Cc: gtk , gtk app Subject: Re: Printing In-Reply-To: <3B1E0D92.41F9E806@fi.usj.edu.lb> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Try to use gtkextra library it provides tools for drawing graphics, and for printing in ps format, you can find it in "gtkextra.sourceforge.net" On Wed, 6 Jun 2001 dany.mezher@fi.usj.edu.lb wrote: > Hello!!! > > I am writing an application using gtk and I want to allow the user to > print some graphical results. How can I do it??? > > Thanks > Dany Mezher > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > From dany.mezher@fi.usj.edu.lb Wed Jun 6 09:24:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from estrelita.usj.edu.lb (estrelita.usj.edu.lb [193.227.161.97]) by mail.gnome.org (Postfix) with ESMTP id 7576B2E52C; Wed, 6 Jun 2001 09:20:24 -0400 (EDT) Received: from fi.usj.edu.lb (pc118.esib.edu.lb [192.168.1.118] (may be forged)) by estrelita.usj.edu.lb (8.9.3/8.9.3) with ESMTP id QAA28351; Wed, 6 Jun 2001 16:15:15 +0300 From: dany.mezher@fi.usj.edu.lb Message-ID: <3B1E0D92.41F9E806@fi.usj.edu.lb> Date: Wed, 06 Jun 2001 14:01:38 +0300 X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: gtk , gtk app Subject: Printing 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello!!! I am writing an application using gtk and I want to allow the user to print some graphical results. How can I do it??? Thanks Dany Mezher From pbd@op.net Wed Jun 6 10:37:41 2001 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 E97952CEDE for ; Wed, 6 Jun 2001 10:37:40 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0f.ppp.op.net [209.152.194.111]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA23956; Wed, 6 Jun 2001 10:37:36 -0400 (EDT) Message-Id: <200106061437.KAA23956@renoir.op.net> To: Howard Zhou Cc: gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-reply-to: Your message of "Wed, 06 Jun 2001 03:56:13 PDT." <20010606105613.89298.qmail@web13402.mail.yahoo.com> Date: Wed, 06 Jun 2001 10:37:40 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi everyone, > We are currently writing a text editor and I wonder despite the mellifluous superfluousness of existing text based applications for unix like operating systems, we have decided to implement yet another text editor that will no doubt include bits and pieces of the functionality offered by the other 3 dozen or more text editors listed at FreshMeat but will still fail to do everything done by long lived text editors that don't meet our particular aesthetic criteria. >whether there is an easy way to set up the background >color of a text widget (or a window). Have you read Havoc's color-setting FAQ? Search the archives of this list; it was posted here recently. It would be nice if it showed up in the GTK FAQ. --p From skip@beluga.mojam.com Wed Jun 6 11:11:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id AF3EA2CEDE for ; Wed, 6 Jun 2001 11:11:53 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 03E3D2818; Wed, 6 Jun 2001 10:11:51 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15134.18487.924366.641640@beluga.mojam.com> Date: Wed, 6 Jun 2001 10:11:51 -0500 To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-Reply-To: <200106061437.KAA23956@renoir.op.net> References: <20010606105613.89298.qmail@web13402.mail.yahoo.com> <200106061437.KAA23956@renoir.op.net> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Paul" == Paul Davis writes: Paul> implement yet another text editor that will no doubt ... still Paul> fail to do everything done by long lived text editors that don't Paul> meet our particular aesthetic criteria. Agreed. Is there a move afoot to Gtk-ize XEmacs? I found the following page: http://www.cs.indiana.edu/elisp/gui-xemacs/ I don't know what blessings this project has with the powers-that-be, but it seems to me that working toward completing this project would be more fruitful than writing YATE. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From Valdis.Kletnieks@vt.edu Wed Jun 6 11:20:14 2001 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 B1A582E1F1 for ; Wed, 6 Jun 2001 11:20:14 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f56FIo301273; Wed, 6 Jun 2001 11:18:50 -0400 Message-Id: <200106061518.f56FIo301273@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.3.1 01/19/2001 with nmh-1.0.4+dev To: skip@pobox.com (Skip Montanaro) Cc: Paul Davis , gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-Reply-To: Your message of "Wed, 06 Jun 2001 10:11:51 CDT." <15134.18487.924366.641640@beluga.mojam.com> 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[ <200106061437.KAA23956@renoir.op.net> <15134.18487.924366.641640@beluga.mojam.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1200707942P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 06 Jun 2001 11:18:50 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1200707942P Content-Type: text/plain; charset=us-ascii On Wed, 06 Jun 2001 10:11:51 CDT, Skip Montanaro said: > Agreed. Is there a move afoot to Gtk-ize XEmacs? I found the following > page: > > http://www.cs.indiana.edu/elisp/gui-xemacs/ XEmacs 21.4 and 21.5 have --with-gtk options for configure. Unfortunately, at the current time, you have to choose Gtk support or the standard X support (the biggest single loss is that the Gtk code doesn't support opening frames on different $DISPLAY devices). -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-1200707942P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOx5J2nAt5Vm009ewEQLwfwCfeSQQ8MxWYYzkZtpki9/FqSNCSNoAn063 SksZenmQg99QLZZLmZFbWhLp =jAaB -----END PGP SIGNATURE----- --==_Exmh_-1200707942P-- From hp@redhat.com Wed Jun 6 12:14:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EE5C32BAE9 for ; Wed, 6 Jun 2001 12:13:59 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f56GGPM28993; Wed, 6 Jun 2001 12:16:25 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Howard Zhou , gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) References: <200106061437.KAA23956@renoir.op.net> From: Havoc Pennington Date: 06 Jun 2001 12:16:25 -0400 In-Reply-To: Paul Davis's message of "Wed, 06 Jun 2001 10:37:40 -0400" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >whether there is an easy way to set up the background > >color of a text widget (or a window). > > Have you read Havoc's color-setting FAQ? Search the archives of this > list; it was posted here recently. It would be nice if it showed up in > the GTK FAQ. > The URL is: http://pobox.com/~hp/gtk-colors.html Havoc From rsteinke@w-link.net Wed Jun 6 13:35:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 8BF5B2BA83 for ; Wed, 6 Jun 2001 13:35:22 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 157hGO-0004ie-00 for ; Wed, 06 Jun 2001 10:38:36 -0700 Date: Wed, 06 Jun 2001 10:38:36 -0700 To: gtk-list@gnome.org Subject: 1 bit GdkVisual Message-ID: <3B1E6A9C.nailDZB1W5P9I@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm trying to add a utility program which will pull certain GdkBitmaps from the code of my main program and save them as xpms. Since nothing I'm doing in the utility program actually uses gtk, I'm running gdk_init() instead. Everything works fine, except that to create a colormap for the bitmaps I need a visual, and the system visual isn't loaded in gdk_init(). What would be a sensible visual for a bitmap? Ron Steinke From inodal@teleline.es Wed Jun 6 18:07:51 2001 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 B17372BC8B for ; Wed, 6 Jun 2001 18:07:50 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp3.ldap.isp (Netscape Messaging Server 4.15) with ESMTP id GEJ42T03.K3I for ; Thu, 7 Jun 2001 00:06:29 +0200 Message-ID: <3B1E9B48.796ACCDD@teleline.es> Date: Wed, 06 Jun 2001 23:06:16 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: Segmetation fault using assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, May 24, 2001 at 07:29:29PM +0100, Ignacio Nodal wrote: > Hi, > > I want to write a function to read a pixmap string and store it into a > GdkPixmap, but without having to know which widget it will be added into.By > the way the widget could be still not created at all. > The problem is if I use gdk_pixmap_create_from_xpm_d() one of its parameters > force me to specify a "GdkWindow *window". I'm not using any transparent > color, so the "style" isn't a real problem for me... > If I use a non-existing widget I obviously get this error: > "Gdk-WARNING **: Creating pixmap from xpm with NULL window and colormap" > This was written by me a long long time ago ;)) Now, I've been working again on it. Helmethead told me to do it using pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(),&mask, NULL, xpm_structure); I used it, and it seems to work fine, the problem is i'm using C++ (yes yes.. don't tell me to use the Gtk-- again, I already know ;)) and I'm getting a Segmentation fault when trying to assign the GdkPixmap *pixmap returned by "gdk_pixmap_colormap_create_from_xpm_d()" to my "GdkPixmap& pix" parameter.. Here is my C++ function... gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **) pixstring); g_print("The program arrives this point\n"); (GdkPixmap *) pix = pixmap; g_print("Segmentation fault is in the line above\n"); if (&pix == NULL) {return (FALSE);} else {return (TRUE);} } ...any idea about what can be wrong? Thanks in advance, Ignacio Nodal From inodal@teleline.es Wed Jun 6 18:18:12 2001 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 B85762E664 for ; Wed, 6 Jun 2001 18:18:11 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEJ4K106.E3M for ; Thu, 7 Jun 2001 00:16:49 +0200 Message-ID: <3B1E9DB5.1BE2D28B@teleline.es> Date: Wed, 06 Jun 2001 23:16:37 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sorry,there was a fault on the function I pasted ;)) gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **) pixstring); g_print("The program arrives this point\n"); pix = *pixmap; g_print("Segmentation fault is in the line above\n"); if (&pix == NULL) {return (FALSE);} else {return (TRUE);} } In the previous mail I put "(GdkPixmap *) pix = pixmap;" instead of "pix = *pixmap;"... that returns me this error: cannot convert `pix' from type `_GdkWindow' to type `GdkPixmap *' but not the segmentation fault I get with "pix = *pixmap;" which I don't really understand ;(( Thanks again, Ignacio Nodal From hp@redhat.com Wed Jun 6 20:43:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AA75F2BBA9 for ; Wed, 6 Jun 2001 20:43:50 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f570kF323291; Wed, 6 Jun 2001 20:46:15 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ignacio Nodal Cc: GTK-List Subject: Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) References: <3B1E9DB5.1BE2D28B@teleline.es> From: Havoc Pennington Date: 06 Jun 2001 20:46:15 -0400 In-Reply-To: Ignacio Nodal's message of "Wed, 06 Jun 2001 23:16:37 +0200" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > but not the segmentation fault I get with "pix = *pixmap;" which I don't > really understand ;(( You can't copy GdkPixmap by value. It can only be manipulated as a pointer. Havoc From hoshem@mel.comcen.com.au Thu Jun 7 02:07:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp48.angel.comcen.com.au [203.23.238.48]) by mail.gnome.org (Postfix) with ESMTP id 9AC4D2BAF1 for ; Thu, 7 Jun 2001 02:07:43 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f576Kdh29499; Thu, 7 Jun 2001 16:20:39 +1000 Date: Thu, 7 Jun 2001 16:20:39 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) Message-ID: <20010607162039.A29408@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1E9DB5.1BE2D28B@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1E9DB5.1BE2D28B@teleline.es>; from inodal@teleline.es on Wed, Jun 06, 2001 at 11:16:37PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Jun 06, 2001 at 11:16:37PM +0200, Ignacio Nodal wrote: > Sorry,there was a fault on the function I pasted ;)) > > gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) > //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix > { > > GdkPixmap *pixmap; > GdkBitmap *mask; > > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **) > pixstring); > > > > g_print("The program arrives this point\n"); > pix = *pixmap; &pix must be a valid pointer, or this will segfault, just like if (char *)ptr is not a valid pointer, *ptr = 'f' will segfault. This means you're doing something wrong if.. > g_print("Segmentation fault is in the line above\n"); > > if (&pix == NULL) {return (FALSE);} else {return (TRUE);} ..you're expecting &pix might be NULL here. I've forgotten everything I ever knew about c++ but I don't think it can be NULL anyway. Using GTK structures without any indirection is a bad idea, besides. I suspect what you really wanted to do here is something like this, using a reference to a pointer: gboolean ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, pixstring); pix = pixmap; if (pix == NULL) return FALSE; else return TRUE; } Then you would use the function like this: #include "myxpm.xpm" // declares char *myxpm[] GdkPixmap *pixmap; ParameterKernel::ReadPixmap (myxpm, pixmap); From inodal@teleline.es Thu Jun 7 06:12:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id 61B712CB09 for ; Thu, 7 Jun 2001 06:12:12 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEK1M301.M1G for ; Thu, 7 Jun 2001 12:10:51 +0200 Message-ID: <3B1F450E.D98882E4@teleline.es> Date: Thu, 07 Jun 2001 11:10:38 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: (gtk_pixmap_new): assertion `val != NULL' failed 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje wrote: > > Hi Ignacio, > > [...] . Why not try this: > > gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap *pix) > /* "&" changed into "*" */ > [...] > GdkPixmap *pixmap; > [...] > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), ... > [...] > pix = pixmap; /* got rid of the "*" because you're allocating a > pointer to a pointer - so they're the same */ > > That's the good way of doing it, I guess. > Regards, > > Ronald This avoids the segmentation fault... but then.. when I use gtk_pixmap_new() I get this other error: "Gtk-CRITICAL **: file gtkpixmap.c: line 97 (gtk_pixmap_new): assertion `val != NULL' failed." Here is the part of the code involve... Somewhere in the main program I create a button, ParameterButton is subclass of ParameterKernel [...] ParameterButton* button = new ParameterButton(PixmapButton); [...] Then I call the ReadPixmap function in the class constructor: if (_type = PixmapButton) { _pixmap_read = ReadPixmap(pixstring, _pixmap);} [...] Then I try to use my "stored" _pixmap, declared as GdkPixmap* _pixmap being a field of the ParameterButton class, in another member-function I have to create/show the buttons: [...] if (_pixmap_read) { GtkWidget* pixmapwidget; g_print("_pixmap_read seems to have been correctly updated\n"); if (_pixmap == NULL) { g_print("Why the hell isn't my GdkPixmap* _pixmap correctly updated ;(\n");} pixmapwidget = gtk_pixmap_new( _pixmap, NULL ); gtk_widget_show( pixmapwidget); gtk_container_add(GTK_CONTAINER(_button), pixmapwidget); [...] Why isn't my _pixmap field being updated? Thanks again and again and again ;) Ignacio Nodal From hoshem@mel.comcen.com.au Thu Jun 7 06:49:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 517922D033 for ; Thu, 7 Jun 2001 06:49:33 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57B2R731002; Thu, 7 Jun 2001 21:02:27 +1000 Date: Thu, 7 Jun 2001 21:02:27 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607210227.A30953@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1F450E.D98882E4@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1F450E.D98882E4@teleline.es>; from inodal@teleline.es on Thu, Jun 07, 2001 at 11:10:38AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:10:38AM +0200, Ignacio Nodal wrote: > Why isn't my _pixmap field being updated? > > Thanks again and again and again ;) > > Ignacio Nodal Sigh :) Have you ever tried doing this when you were learning C: void foo (int i) { i = 10; printf ("%d\n", i); } int main () { int a = 5; printf ("%d\n", a); foo (a); printf ("%d\n", a); return 0; } the output will be: 5 10 5 and not: 5 10 10 That's the same reason why ronald's proposal won't work. Mine will tho unless I've made some silly screw up too :) By the way I didn't make much sense when I was talking about the cause of the segfault, I was confusing myself. Are you sure it was on the line you said it was? Did you actually try out the g_prints to see if they print? From rbultje@ronald.bitfreak.net Thu Jun 7 07:37:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 7DF8E2DBDC for ; Thu, 7 Jun 2001 07:37:00 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f57CL3C01561; Thu, 7 Jun 2001 14:21:03 +0200 (CEST) From: "Ronald Bultje" To: "Helmethead" Cc: Subject: RE: (gtk_pixmap_new): assertion `val != NULL' failed Date: Thu, 7 Jun 2001 13:42:54 +0200 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: <20010607210227.A30953@BuffyRox.localdomain> Importance: Normal 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Helmethead, >Have you ever tried doing this when you were learning C: [nice code] This is true. >That's the same reason why ronald's proposal won't work. Mine will tho >unless I've made some silly screw up too :) >By the way I didn't make much sense when I was talking about the cause >of the segfault, I was confusing myself. Are you sure it was on the >line you said it was? Did you actually try out the g_prints to see if >they print? But this is not. Because I work with pointers, so the data should be saved. Right? Or am I really missing a big big big big point here? I do see your point here - but as far as I see my code did work with pointers - so the data should be kept in place. --- #include "image.xpm" void create_pixmap(GtkWidget *w) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **)image_xpm); w = gtk_pixmap_new (pixmap, mask); } void test() { GtkWidget *w = NULL; create_pixmap(w); if (w == NULL) g_print("I am stupid\n"); else g_print("I am not that stupid\n"); } --- Should return "I am not that stupid", right? (I don't have a xwindows computer on my hands here so I can't test it - grom). w is a pointer in itself, so although I'm not making pointers to this pointer, we're still working with pointers so your point in the simple-C example is a good point but does not apply here. Right? But I might have missed your point completely :-). Regards, Ronald From lah@micropp.se Thu Jun 7 07:59:38 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from albert.micropp.se (unknown [62.168.157.3]) by mail.gnome.org (Postfix) with ESMTP id AC45F2BBA9 for ; Thu, 7 Jun 2001 07:59:37 -0400 (EDT) Received: by albert.micropp.se (Postfix, from userid 1000) id BB6C24145; Thu, 7 Jun 2001 13:59:34 +0200 (CEST) Date: Thu, 7 Jun 2001 13:59:34 +0200 To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607135934.A21230@albert.micropp.se> References: <20010607210227.A30953@BuffyRox.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 01:42:54PM +0200 From: lah@micropp.se (Lars Hallberg) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:42:54PM +0200, Ronald Bultje wrote: > > --- > #include "image.xpm" > void create_pixmap(GtkWidget *w) { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > w = gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w = NULL; > create_pixmap(w); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } > --- > > Should return "I am not that stupid", right? (I don't have a xwindows > computer on my hands here so I can't test it - grom). unless create_pixmap(w) is C++ with an referens argument this program *will* output "I am stupid\n". In C, ther is *no* way the create_pixmap funktion can change its argument. It can change the memory the pointer points to (but then it have to be pointing to valid memory, not NULL), but it can *not* change the pointer itself. So, i C, w is garanteed to still point to NULL! You actuly have to send a pointer to a pointer for the funktion to be able to change the pointer. That is a poor interface tho, in C a initsilasion funktion (like fopen) that returns a alocated chunk of memory whit a fiting pointer type is commonly used. /Lars From inodal@teleline.es Thu Jun 7 08:54:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id E01222BD69 for ; Thu, 7 Jun 2001 08:54:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEK94L04.U0G for ; Thu, 7 Jun 2001 14:53:09 +0200 Message-ID: <3B1F6B18.3F9E4233@teleline.es> Date: Thu, 07 Jun 2001 13:52:56 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Helmethead wrote: >Sigh :) hehehe, be patient with me :))) > > Have you ever tried doing this when you were learning C: > void foo (int i) > { > i = 10; > printf ("%d\n", i); > } int main () > { > int a = 5; printf ("%d\n", a); > foo (a); > printf ("%d\n", a); > return 0; >} > the output will be: > 5 > 10 > 5 > and not: > 5 > 10 > 10 > That's the same reason why ronald's proposal won't work. > Mine will tho unless I've made some silly screw up too :) > By the way I didn't make much sense when I was talking about > the cause of the segfault, I was confusing myself. Are you > sure it was on the line you said it was? Did you actually try > out the g_prints to see if they print? Yeah, but.. gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap *pix) is more like void foo(int* i), or not? Well, I suppose not, since then my program would be working fine :))) The program crahsed on the line I said, because it printed "The program arrives this point\n" and then returned me the segmentation fault, not printing "Segmentation fault is in the line above\n". [...] g_print("The program arrives this point\n"); pix = *pixmap; g_print("Segmentation fault is in the line above\n"); [...] When I use Ronald's proposal it doesn't return me any segmentation fault (both g_prints are shown) but then, when using gtk_pixmap_new() out from the ReadPixmap() function I get the "assertion `val != NULL' failed" error mentioned in my previous mail... Is there anyway to use my GdkPixmap* _pixmap as a parameter for gtk_pixmap_new(), outside from the function where I create it using gdk_pixmap_colormap_create_from_xpm_d()??? really, anyway... Thanks again... And sorry if my bad programming skills turn you nervous, just some more sighs and I hope it will work :)))) Ignacio Nodal From rwan@cs.mu.oz.au Thu Jun 7 09:44:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 5E1B52BAF1 for ; Thu, 7 Jun 2001 09:43:58 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id XAA22540 for ; Thu, 7 Jun 2001 23:43:08 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id EB24775AA; Thu, 7 Jun 2001 23:43:07 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id E93F2AC94 for ; Thu, 7 Jun 2001 23:43:07 +1000 (EST) Date: Thu, 7 Jun 2001 23:43:07 +1000 (EST) From: Raymond Wan To: GTK-List Subject: Installing gtk without root access 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, A few weeks ago, someone posted a message about having problems installing GTK without root access. I'm having problems with it now, but before I go digging through the scripts, can someone confirm to me whether or not it is possible to install GTK without root access? Unfortunately, our system administrator is overloaded with work (as most sysadmins are :) ), so I would like to try to install it myself. The person who posted that message got a lot of helpful advice but no one said that it was not possible to install GTK without root permission, so can I presume it is possible? BTW, I'm talking about the current version of GTK v1.3 (v1.2.9 is already installed) and I guess I would need to install it and any required components such as GDK. Thanks! Ray From rbultje@ronald.bitfreak.net Thu Jun 7 09:57:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 13DF62DF00 for ; Thu, 7 Jun 2001 09:57:17 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f57EfPC23205; Thu, 7 Jun 2001 16:41:25 +0200 (CEST) From: "Ronald Bultje" To: "Lars Hallberg" Cc: Subject: RE: (gtk_pixmap_new): assertion `val != NULL' failed Date: Thu, 7 Jun 2001 16:03:16 +0200 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: <20010607135934.A21230@albert.micropp.se> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, mr. stupid was playing in my head again. >> #include "image.xpm" >> void create_pixmap(GtkWidget *w) { >> GdkPixmap *pixmap; >> GdkBitmap *mask; >> pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, >> gtk_widget_get_default_colormap(), >> &mask, NULL, (gchar **)image_xpm); >> w = gtk_pixmap_new (pixmap, mask); >> } >> void test() { >> GtkWidget *w = NULL; >> create_pixmap(w); >> if (w == NULL) g_print("I am stupid\n"); >> else g_print("I am not that stupid\n"); >> } >> --- >> >> Should return "I am not that stupid", right? (I don't have a xwindows >> computer on my hands here so I can't test it - grom). > >unless create_pixmap(w) is C++ with an referens argument this program >*will* output "I am stupid\n". In C, ther is *no* way the >create_pixmap >funktion can change its argument. It can change the memory the pointer >points to (but then it have to be pointing to valid memory, not NULL), >but it can *not* change the pointer itself. So, i C, w is garanteed >to still point to NULL! You actuly have to send a pointer to a pointer >for the funktion to be able to change the pointer. Double oops. I forgot that. Let's try this one then: #include "image.xpm" void create_pixmap(GtkWidget **w) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **)image_xpm); *w = gtk_pixmap_new (pixmap, mask); } void test() { GtkWidget *w = NULL; create_pixmap(&w); if (w == NULL) g_print("I am stupid\n"); else g_print("I am not that stupid\n"); } This better? :-) Stupid me... Regards, Ronald From lah@micropp.se Thu Jun 7 10:13:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from albert.micropp.se (unknown [62.168.157.3]) by mail.gnome.org (Postfix) with ESMTP id E2BFA2BEF8 for ; Thu, 7 Jun 2001 10:13:00 -0400 (EDT) Received: by albert.micropp.se (Postfix, from userid 1000) id 0B9C84145; Thu, 7 Jun 2001 16:13:00 +0200 (CEST) Date: Thu, 7 Jun 2001 16:13:00 +0200 To: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607161300.A21786@albert.micropp.se> References: <20010607135934.A21230@albert.micropp.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 04:03:16PM +0200 From: lah@micropp.se (Lars Hallberg) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 04:03:16PM +0200, Ronald Bultje wrote: > > Double oops. I forgot that. Let's try this one then: Shuld work if the pixmap stuf is right (haven't used that). But I would predere: > #include "image.xpm" > GtkWidget *create_pixmap() { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > return gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w; > w = create_pixmap(); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } It is not only a cuestion of taste, 99% of C-code use this convention, so it is more consistent and easy to remember and understand. /Lars From sven@gimp.org Thu Jun 7 11:26:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 26A7F2DF20 for ; Thu, 7 Jun 2001 11:26:57 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 1581Zp-0001Qg-00; Thu, 07 Jun 2001 17:20:01 +0200 To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access References: From: Sven Neumann Date: 07 Jun 2001 17:20:01 +0200 In-Reply-To: Message-ID: Lines: 22 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Raymond Wan writes: > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. ./configure --prefix= make make install Then you'll have to add $prefix/bin to your PATH environment variable, $prefix/lib to LD_LIBRARY_PATH and $prefix/lib/pkgconfig to PKG_CONFIG_PATH and you are done. Salut, Sven From erik@arthur.ubicom.tudelft.nl Thu Jun 7 11:35:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhst2.its.tudelft.nl (mailhst2.its.tudelft.nl [130.161.34.250]) by mail.gnome.org (Postfix) with ESMTP id 3B6ED2E74F for ; Thu, 7 Jun 2001 11:34:45 -0400 (EDT) Received: from arthur.ubicom.tudelft.nl (root@arthur.ubicom.tudelft.nl [130.161.43.222]) by mailhst2.its.tudelft.nl (8.9.3/8.9.3) with ESMTP id RAA28086; Thu, 7 Jun 2001 17:34:42 +0200 (METDST) Received: (from erik@localhost) by arthur.ubicom.tudelft.nl (8.9.3/8.9.3/Debian 8.9.3-21) id RAA11614; Thu, 7 Jun 2001 17:31:14 +0200 Date: Thu, 7 Jun 2001 17:31:14 +0200 From: Erik Mouw To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010607173113.B10688@arthur.ubicom.tudelft.nl> 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 rwan@cs.mu.oz.au on Thu, Jun 07, 2001 at 11:43:07PM +1000 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy! Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. Sure, no problem. > The person who posted that message got a lot of helpful advice but > no one said that it was not possible to install GTK without root > permission, so can I presume it is possible? Yes. export MY_GTK=/home/myhome/gtk export PATH=$MY_GTK/bin:$PATH export LD_LIBRARY_PATH=$MY_GTK/lib Now configure install GTK the usual way, but use the flag --prefix=$MY_GTK for all configure scripts. Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ From hoshem@mel.comcen.com.au Thu Jun 7 11:49:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id AC0832E782 for ; Thu, 7 Jun 2001 11:49:21 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57G2PA00489; Fri, 8 Jun 2001 02:02:25 +1000 Date: Fri, 8 Jun 2001 02:02:25 +1000 From: Helmethead To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010608020225.A31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , gtk-list@gnome.org References: <20010607210227.A30953@BuffyRox.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 01:42:54PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:42:54PM +0200, Ronald Bultje wrote: > Hi Helmethead, > > >Have you ever tried doing this when you were learning C: > [nice code] > > This is true. > > >That's the same reason why ronald's proposal won't work. Mine will tho > >unless I've made some silly screw up too :) > >By the way I didn't make much sense when I was talking about the cause >of > the segfault, I was confusing myself. Are you sure it was on the > >line you said it was? Did you actually try out the g_prints to see if > >they print? > > But this is not. Because I work with pointers, so the data should be saved. > Right? Or am I really missing a big big big big point here? Actually, that's not true :) To pass a variable to a function so the function can modify it, you need to pass the address of the variable (like the mask argument to gdk_pixmap_colormap_create_from_xpm_d). That means the function parameter's type is another level of pointerness (indirection is the technical word) past your original variable. If your original variable is an int, the function has to take int*. If the original variable is GtkWidget*, the function has to take a GtkWidget**. I'll use your example for another example (heh) > I do see your point here - but as far as I see my code did work with > pointers - so the data should be kept in place. > > --- > #include "image.xpm" > void create_pixmap(GtkWidget *w) { void create_pixmap(GtkWidget **w) { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > w = gtk_pixmap_new (pixmap, mask); *w = gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w = NULL; > create_pixmap(w); create_pixmap(&w); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } > --- From hoshem@mel.comcen.com.au Thu Jun 7 12:06:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 15EB02CE45 for ; Thu, 7 Jun 2001 12:06:23 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57GEYl00519; Fri, 8 Jun 2001 02:14:34 +1000 Date: Fri, 8 Jun 2001 02:14:33 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010608021433.B31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.localdomain> <3B1F6B18.3F9E4233@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1F6B18.3F9E4233@teleline.es>; from inodal@teleline.es on Thu, Jun 07, 2001 at 01:52:56PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:52:56PM +0200, Ignacio Nodal wrote: > Helmethead wrote: > > >Sigh :) > hehehe, be patient with me :))) No worries, I have nothing else to do ;) > > > > Have you ever tried doing this when you were learning C: > > void foo (int i) > > { > > i = 10; > > printf ("%d\n", i); > > } int main () > > { > > int a = 5; printf ("%d\n", a); > > foo (a); > > printf ("%d\n", a); > > return 0; > > } [snip] > Yeah, but.. gboolean ParameterKernel::ReadPixmap(gchar **pixstring, > GdkPixmap *pix) is more like void foo(int* i), or not? Well, I suppose > not, since then my program would be working fine :))) Nope, it's like foo(int i) ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap*& pix) is like foo(int &i) you can use a GdkPixmap ** if you really want it to be like foo(int *i) :) > The program crahsed on the line I said, because it printed "The program > arrives this point\n" and then returned me the segmentation fault, not > printing "Segmentation fault is in the line above\n". Hmm... gdk_pixmap_colormap_create_from_xpm_d must be failing (as well!) Write a g_print that prints out the value of pixmap and see if it's NULL > > [...] > g_print("The program arrives this point\n"); > pix = *pixmap; > g_print("Segmentation fault is in the line above\n"); > [...] > > When I use Ronald's proposal it doesn't return me any segmentation fault > (both g_prints are shown) but then, when using gtk_pixmap_new() out from > the ReadPixmap() function I get the "assertion `val != NULL' failed" > error mentioned in my previous mail... The variable passed to ReadPixmap isn't getting set, though if I'm right about what I said above it'd be set to NULL anyway. :( > Is there anyway to use my GdkPixmap* _pixmap as a parameter for > gtk_pixmap_new(), outside from the function where I create it using > gdk_pixmap_colormap_create_from_xpm_d()??? really, anyway... With exactly one change, change the function declarations from ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap* pix) to ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) and it will automagically set the variable you pass in properly. C++ references are pretty cute. From hoshem@mel.comcen.com.au Thu Jun 7 12:09:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 08E5A2DC49 for ; Thu, 7 Jun 2001 12:09:39 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57GMsh00547; Fri, 8 Jun 2001 02:22:54 +1000 Date: Fri, 8 Jun 2001 02:22:54 +1000 From: Helmethead To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010608022254.C31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Raymond Wan , GTK-List 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 rwan@cs.mu.oz.au on Thu, Jun 07, 2001 at 11:43:07PM +1000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > > Hi all, > > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. > > The person who posted that message got a lot of helpful advice but > no one said that it was not possible to install GTK without root > permission, so can I presume it is possible? > > BTW, I'm talking about the current version of GTK v1.3 (v1.2.9 is > already installed) and I guess I would need to install it and any required > components such as GDK. Thanks! I have a nice collection of installed gtk/glib/pango/atk/pkg-config files in my /home/helmet/progs/gtk/newgtk directory. Works fine. Just make sure you set LD_LIBRARY_PATH to /lib and add /bin to your path BEFORE configuring, building and installing, and nothing should croak. And pass --prefix= to configure or autogen.sh. That's all there is to it. From inodal@teleline.es Thu Jun 7 12:23:18 2001 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 EC2E32DECD for ; Thu, 7 Jun 2001 12:23:17 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEKISD05.K0X; Thu, 7 Jun 2001 18:21:49 +0200 Message-ID: <3B1F9C00.C1D966B7@teleline.es> Date: Thu, 07 Jun 2001 17:21:37 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: Helmethead Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.localdomain> <3B1F6B18.3F9E4233@teleline.es> <20010608021433.B31663@BuffyRox.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Helmethead wrote: > With exactly one change, change the function declarations from > > ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap* pix) > to > ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) > > and it will automagically set the variable you pass in properly. C++ references are pretty cute. Ok, thanks a lot.. all seems to work fine now. I've learned a lot about pointers, hehehe It works fine using ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) //the C++ way and also using ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap** pix) //the C way with some little internal changes, of course ;) Thanks for being so patient, I know this was basic pointers UNknowledge :)) Ignacio Nodal From king@eiffel.com Thu Jun 7 15:00:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 63B3C2BB2D for ; Thu, 7 Jun 2001 15:00:16 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15850g-0005Jt-00; Thu, 07 Jun 2001 11:59:58 -0700 Message-ID: <0af601c0ef85$196d0d80$750a000a@naples> From: "Ian King" To: "Erik Mouw" , "Raymond Wan" Cc: "GTK-List" References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> Subject: Re: Installing gtk without root access Date: Thu, 7 Jun 2001 12:07:30 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root access. How would I get my application to dynamically use the 1.2.9 shared libraries (which would be in my home/gtk/lib directory) without editing ld.so.conf (root access needed), or breaking any other applications? Thanks for your time Ian King ----- Original Message ----- From: "Erik Mouw" To: "Raymond Wan" Cc: "GTK-List" Sent: Thursday, June 07, 2001 8:31 AM Subject: Re: Installing gtk without root access > On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > > A few weeks ago, someone posted a message about having problems > > installing GTK without root access. I'm having problems with it now, but > > before I go digging through the scripts, can someone confirm to me whether > > or not it is possible to install GTK without root access? Unfortunately, > > our system administrator is overloaded with work (as most sysadmins are :) > > ), so I would like to try to install it myself. > > Sure, no problem. > > > The person who posted that message got a lot of helpful advice but > > no one said that it was not possible to install GTK without root > > permission, so can I presume it is possible? > > Yes. > > export MY_GTK=/home/myhome/gtk > export PATH=$MY_GTK/bin:$PATH > export LD_LIBRARY_PATH=$MY_GTK/lib > > Now configure install GTK the usual way, but use the flag > --prefix=$MY_GTK for all configure scripts. > > > Erik > > -- > J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department > of Electrical Engineering, Faculty of Information Technology and Systems, > Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands > Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl > WWW: http://www-ict.its.tudelft.nl/~erik/ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From erik@arthur.ubicom.tudelft.nl Thu Jun 7 15:07:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhst2.its.tudelft.nl (mailhst2.its.tudelft.nl [130.161.34.250]) by mail.gnome.org (Postfix) with ESMTP id B4FB52DB5A for ; Thu, 7 Jun 2001 15:07:43 -0400 (EDT) Received: from arthur.ubicom.tudelft.nl (root@arthur.ubicom.tudelft.nl [130.161.43.222]) by mailhst2.its.tudelft.nl (8.9.3/8.9.3) with ESMTP id VAA09745; Thu, 7 Jun 2001 21:07:37 +0200 (METDST) Received: (from erik@localhost) by arthur.ubicom.tudelft.nl (8.9.3/8.9.3/Debian 8.9.3-21) id VAA18730; Thu, 7 Jun 2001 21:07:27 +0200 Date: Thu, 7 Jun 2001 21:07:27 +0200 From: Erik Mouw To: Ian King Cc: Raymond Wan , GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010607210727.D10688@arthur.ubicom.tudelft.nl> References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> <0af601c0ef85$196d0d80$750a000a@naples> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0af601c0ef85$196d0d80$750a000a@naples>; from king@eiffel.com on Thu, Jun 07, 2001 at 12:07:30PM -0700 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy! Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 12:07:30PM -0700, Ian King wrote: > Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older > version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root > access. How would I get my application to dynamically use the 1.2.9 shared > libraries (which would be in my home/gtk/lib directory) without editing > ld.so.conf (root access needed), or breaking any other applications? By using LD_LIBRARY_PATH. "export LD_LIBRARY_PATH=/my/home/gtk/lib" does the trick. See "man ld.so" for more information. Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ From hoshem@mel.comcen.com.au Thu Jun 7 22:23:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem015.ramoth.comcen.com.au [203.23.238.134]) by mail.gnome.org (Postfix) with ESMTP id BC0872C8BC for ; Thu, 7 Jun 2001 22:23:48 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f582aU401945; Fri, 8 Jun 2001 12:36:30 +1000 Date: Fri, 8 Jun 2001 12:36:29 +1000 From: Helmethead To: Ian King Cc: Erik Mouw , Raymond Wan , GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010608123629.A1906@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ian King , Erik Mouw , Raymond Wan , GTK-List References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> <0af601c0ef85$196d0d80$750a000a@naples> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0af601c0ef85$196d0d80$750a000a@naples>; from king@eiffel.com on Thu, Jun 07, 2001 at 12:07:30PM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 12:07:30PM -0700, Ian King wrote: > Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older > version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root > access. How would I get my application to dynamically use the 1.2.9 shared > libraries (which would be in my home/gtk/lib directory) without editing > ld.so.conf (root access needed), or breaking any other applications? > > Thanks for your time > > Ian King Yup, LD_LIBRARY_PATH is ready willing and able in GNU ld on linux. From David.Bourguignon@imag.fr Thu Jun 7 06:53:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ebene.inrialpes.fr (ebene.inrialpes.fr [194.199.18.70]) by mail.gnome.org (Postfix) with ESMTP id 29AD92CF6B for ; Thu, 7 Jun 2001 06:53:53 -0400 (EDT) Received: from safran.inrialpes.fr (safran.inrialpes.fr [194.199.26.1]) by ebene.inrialpes.fr (8.11.3/8.11.3) with ESMTP id f57AqFg28545; Thu, 7 Jun 2001 12:52:15 +0200 (MEST) Received: from imag.fr (estragon [194.199.26.93]) by safran.inrialpes.fr (980427.SGI.8.8.8/8.8.5) with ESMTP id MAA17863; Thu, 7 Jun 2001 12:53:49 +0200 (MDT) Message-ID: <3B1F5C68.A34E8B0@imag.fr> Date: Thu, 07 Jun 2001 12:50:16 +0200 From: David Bourguignon Organization: iMAGIS X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem with gxid_lib 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I apologize in advance if my question is not related to this list topic. I'm using an sgi workstation running irix (sgi unix), a wacom tablet with a wacom irix driver. I tried to use my tablet with gimp. Unfortunately, when configuring gimp to recognize my tablet, using the "File -> Dialogs -> Input Devices" window, I get the following error message : gxid_lib: can't connect to 127.0.0.1:6951 Gdk-WARNING **: Could not get device (is gxid running?) Do you know what does this mean ? Thank you very much for your help. David. -- iMAGIS project, GRAVIR lab INRIA Rhône-Alpes, 655 avenue de l'Europe 38330 Montbonnot Saint Martin, France http://www-imagis.imag.fr/~David.Bourguignon/index.gb.html From otaylor@redhat.com Thu Jun 7 23:25:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 03D9B2D2D6 for ; Thu, 7 Jun 2001 23:25:07 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 9D0A82422B3; Thu, 7 Jun 2001 23:25:01 -0400 (EDT) To: David Bourguignon Cc: gtk-list@gnome.org Subject: Re: problem with gxid_lib References: <3B1F5C68.A34E8B0@imag.fr> From: Owen Taylor Date: 07 Jun 2001 23:25:01 -0400 In-Reply-To: David Bourguignon's message of "Thu, 07 Jun 2001 12:50:16 +0200" Message-ID: Lines: 55 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David Bourguignon writes: > Hi all, > > I apologize in advance if my question is not related to this list topic. Certainly on topic for this list. > I'm using an sgi workstation running irix (sgi unix), a wacom tablet with a > wacom irix driver. I tried to use my tablet with gimp. Unfortunately, when > configuring gimp to recognize my tablet, using the "File -> Dialogs -> Input > Devices" window, I get the following error message : > > gxid_lib: can't connect to 127.0.0.1:6951 > > Gdk-WARNING **: Could not get device (is gxid running?) > > Do you know what does this mean ? > Thank you very much for your help. Well, note the warning in GTK+'s README: ==== The --with-xinput flag specifies whether to compile with support for the XInput extension (mainly used for graphics tablets), and which form of support to use: no : no support xfree : Use special features in the Wacom drivers in XFree86 3.3.1 and later. gxi : Use generic XInput support (not recommended) The XInput support is not known to work with any other XServer than XFree86. For more information about XInput, see: ==== The gxi support was added for and tested with versions of XFree86 older than 3.3.1, and hasn't been tested at all for several years. That being said, what the message means is that you need to start the 'gxid' programming that was built and installed with GTK+ when you compile --with-xinput=gxi. The gxid program is responsible for switching a graphics tablet between controlling the core pointer and sending extended input events that GTK+ and the GIMP can interpret for getting pressure/tilt information. Regards, Owen From Michael.Mitton@millersville.edu Fri Jun 8 08:56:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail1.millersville.edu (mail1.millersville.edu [166.66.56.75]) by mail.gnome.org (Postfix) with ESMTP id C862C2E120 for ; Fri, 8 Jun 2001 08:56:06 -0400 (EDT) Received: by mail1.millersville.edu with Internet Mail Service (5.5.2653.19) id ; Fri, 8 Jun 2001 08:52:00 -0400 Message-ID: From: Michael Mitton To: gtk-list@gnome.org Subject: Glade link off of www.gtk.org Date: Fri, 8 Jun 2001 08:52:00 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. On http://www.gtk.org, the link for glade is set to http://glade.pn.org, but the link is really http://glade.gnome.org. This change happened around 4-19-2001. Could somebody please update the website accordingly? There has been quite a few messages in the glade forum about "Where is the website", and this may help. Thank you. -Michael From howardzzh@yahoo.com Fri Jun 8 12:46:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13405.mail.yahoo.com (web13405.mail.yahoo.com [216.136.175.63]) by mail.gnome.org (Postfix) with SMTP id 84DE22BBFC for ; Fri, 8 Jun 2001 12:46:49 -0400 (EDT) Message-ID: <20010608164648.48317.qmail@web13405.mail.yahoo.com> Received: from [131.215.103.7] by web13405.mail.yahoo.com; Fri, 08 Jun 2001 09:46:48 PDT Date: Fri, 8 Jun 2001 09:46:48 -0700 (PDT) From: Howard Zhou Subject: Help: why Gtk::Bin.remove() deletes my object 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am back. Thanks for your advice last time. Now I have a new one. I tried to switch between text object in a scrolled window by calling remove() then add(*_) because the trial with just calling add(*_) does not work. But I found that remove() will actually delete the text object I put in first(this maybe my misunderstanding). Is this really true? If so, is there a function that I can call so that it will replace the text widget in that window without deleting the old one, or is there any other way going around. Thanks! Howard __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From topper@virginia.edu Fri Jun 8 16:42:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 36AE42DEBA for ; Fri, 8 Jun 2001 16:42:59 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab09715; 8 Jun 2001 16:42 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id QAA19988 for ; Fri, 8 Jun 2001 16:42:58 -0400 (EDT) Message-ID: <3B213847.BBB97D7B@virginia.edu> Date: Fri, 08 Jun 2001 16:40:39 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to keep (force) window focus? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, Is there a way for me to force a window to remain in focus? I've got some popup windows on a canvas, that of course drop to back when focus moves off them. I'm looking for an easy way to force them to remain on top. Thanks, Dave Topper -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From sven@gimp.org Fri Jun 8 19:09:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD90020A1.dip.t-dialin.net [217.0.32.161]) by mail.gnome.org (Postfix) with ESMTP id 92DE52DF1B for ; Fri, 8 Jun 2001 19:09:00 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 158VGo-00025H-00; Sat, 09 Jun 2001 01:02:22 +0200 To: Howard Zhou Cc: gtk-list@gnome.org Subject: Re: Help: why Gtk::Bin.remove() deletes my object References: <20010608164648.48317.qmail@web13405.mail.yahoo.com> From: Sven Neumann Date: 09 Jun 2001 01:02:21 +0200 In-Reply-To: <20010608164648.48317.qmail@web13405.mail.yahoo.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Howard Zhou writes: > I tried to switch between text object > in a scrolled window by calling remove() then add(*_) > because the trial with just calling add(*_) does not > work. But I found that remove() will actually delete > the text object I put in first. the container (scrolled window) takes ownership of the object you add to it and sinks it. All GTK+ containers behave like this. You need to change your code to: gtk_object_ref (object1); container_add (container, object1); ... container_remove (container, object1); container_add (container, object2); Then don't forget to unref your object as soon as you don't need it anymore. Salut, Sven From king@eiffel.com Fri Jun 8 19:36:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 71B5C2E234 for ; Fri, 8 Jun 2001 19:36:21 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 158Vnf-0004Yq-00 for gtk-list@gnome.org; Fri, 08 Jun 2001 16:36:19 -0700 Message-ID: <101f01c0f074$e2607a20$750a000a@naples> From: "Ian King" To: Subject: Hacks needed. Date: Fri, 8 Jun 2001 16:43:56 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a few questions that hopefully someone could help me with. 1) Does anyone know why the vertical scrollbar in a scrollable gtklist doesn't function when the list contains more than 2500 items? 2) Does anyone know why the pixmap in a gtkctreenode disappears when the node is expanded? 3) Does anyone know why the horizontal scrollbar for a ctree doesn't appear at all (with Automatic scroll Policy)? If anyone knows any hacks around these bugs then that would be great, especially number two as that is the most annoying. Thanks for your time Ian King From hp@redhat.com Fri Jun 8 19:55:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 69E7D2E266 for ; Fri, 8 Jun 2001 19:55:14 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f58NvYV12794; Fri, 8 Jun 2001 19:57:34 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> From: Havoc Pennington Date: 08 Jun 2001 19:57:34 -0400 In-Reply-To: "David J. Topper"'s message of "Fri, 08 Jun 2001 16:40:39 -0400" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > Is there a way for me to force a window to remain in focus? I've got > some popup windows on a canvas, that of course drop to back when focus > moves off them. I'm looking for an easy way to force them to remain on > top. > By "popup" do you mean a dialog or a menu or a tooltip type of thing? Are they toplevel GtkWindows? Are they GTK_WINDOW_POPUP? Do you actually want keyboard focus on these, or do you just mean you want them to remain on top? (You mean on top of another window, or on top of the other widgets in a canvas?) Havoc From skip@beluga.mojam.com Fri Jun 8 21:08:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 735612BCF9 for ; Fri, 8 Jun 2001 21:08:47 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 28D632818; Fri, 8 Jun 2001 20:08:44 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15137.30492.15858.792431@beluga.mojam.com> Date: Fri, 8 Jun 2001 20:08:44 -0500 To: gtk-list@gnome.org Subject: odd assertion in gtktextiter.c X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm getting an assertion error in forward_line_leaving_caches_unmodified in gtktextiter.c (this is from the vanilla 1.3.5 distribution). There is a test of new_line: if (new_line != NULL) { ... do some stuff ... } else { /* There is no way to move forward; we were already at the "end" index. (the end index is the last line pointer, segment_byte_offset of 0) */ g_assert (real->line_char_offset == 0 || real->line_byte_offset == 0); ... do some other stuff ... } I'm landing in the else clause. The assertion is failing because real_line_char_offset is -1 and real->line_byte_offset is 25. I looked at new_line and discovered its value to be 0xffffffff. So my confusion is two-fold. One, new_line's value looks mighty suspicious to me. (Looks like -1 instead of a valid pointer.) Two, how in the heck could new_line have compared equal to NULL? I don't believe I did anything unusual when compiling Gtk, so the gcc compilation flags where probably just "-g -O2". I'll try rebuilding without any optimization and see if that helps. Any other debugging suggestions would be appreciated. Thanks, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From 4dadio@telkom.net Fri Jun 8 21:24:53 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 23BA62CF20 for ; Fri, 8 Jun 2001 21:24:46 -0400 (EDT) Received: out-mta3.plasa.com; Sat, 09 Jun 2001 08:24:37 +0700 Received: out-mta2.plasa.com; Sat, 09 Jun 2001 08:24:37 +0700 Received: from [192.168.19.56] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 1810391 for ; Sat, 09 Jun 2001 08:24:37 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: examp. of simple graphic using Gdk To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Sat, 09 Jun 2001 08:24:37 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: There is a lack of how to draw graphic using gdk. so if you guys have an example to draw a simple x=y graphic, please tell me. thanks for your help dadio From hp@redhat.com Fri Jun 8 23:58:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4B0B42BACE for ; Fri, 8 Jun 2001 23:58:05 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f593w2T27857; Fri, 8 Jun 2001 23:58:02 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Hacks needed. References: <101f01c0f074$e2607a20$750a000a@naples> From: Havoc Pennington Date: 08 Jun 2001 23:58:02 -0400 In-Reply-To: "Ian King"'s message of "Fri, 8 Jun 2001 16:43:56 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > > 1) Does anyone know why the vertical scrollbar in a scrollable gtklist > doesn't function when the list contains more than 2500 items? The size of GtkList is limited by the size of an X window, which is 32K pixels or so. Using GtkCList is recommended for this reason among others. I don't know the other two, if you have test cases file a bug on bugzilla.gnome.org and someone can investigate. Havoc From hp@redhat.com Sat Jun 9 00:06:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2DF0C2DBA0 for ; Sat, 9 Jun 2001 00:06:24 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5946NQ28955; Sat, 9 Jun 2001 00:06:23 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: odd assertion in gtktextiter.c References: <15137.30492.15858.792431@beluga.mojam.com> From: Havoc Pennington Date: 09 Jun 2001 00:06:23 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 8 Jun 2001 20:08:44 -0500" Message-ID: Lines: 39 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I'm getting an assertion error in forward_line_leaving_caches_unmodified in > gtktextiter.c (this is from the vanilla 1.3.5 distribution). There is a > test of new_line: > > if (new_line != NULL) > { > ... do some stuff ... > } > else > { > /* There is no way to move forward; we were already > at the "end" index. (the end index is the last > line pointer, segment_byte_offset of 0) */ > > g_assert (real->line_char_offset == 0 || > real->line_byte_offset == 0); > ... do some other stuff ... > } > > I'm landing in the else clause. The assertion is failing because > real_line_char_offset is -1 and real->line_byte_offset is 25. I looked at > new_line and discovered its value to be 0xffffffff. So my confusion is > two-fold. One, new_line's value looks mighty suspicious to me. (Looks like > -1 instead of a valid pointer.) Two, how in the heck could new_line have > compared equal to NULL? I don't believe I did anything unusual when > compiling Gtk, so the gcc compilation flags where probably just "-g -O2". > I'll try rebuilding without any optimization and see if that helps. Any > other debugging suggestions would be appreciated. > The value of new_line is probably either the stack getting messed up or gdb getting confused. If you can make a test case for this so I can reproduce it, I'll try to sort it out. Havoc From inodal@teleline.es Sat Jun 9 08:33:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id 0787A2BA83 for ; Sat, 9 Jun 2001 08:33:13 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GENXFY06.JDB for ; Sat, 9 Jun 2001 14:31:10 +0200 Message-ID: <3B220909.205DA3BF@teleline.es> Date: Sat, 09 Jun 2001 13:31:21 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: hbox widgets with different heights 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, I'm packing a label, a scale and a button in a hbox. If I resize the widget the label and the button should remain of the same size and the scale should be expanded. So I used: [...] _box = gtk_hbox_new(FALSE, 0); _label = gtk_label_new("Integer:"); gtk_box_pack_start(GTK_BOX(_box), _label, FALSE, FALSE, 5); _adj = gtk_adjustment_new(val_default,val_min,val_max,0.1,1.0,1.0); _scale = gtk_hscale_new(GTK_ADJUSTMENT(_adj)); gtk_range_set_update_policy (GTK_RANGE(_scale),GTK_UPDATE_CONTINUOUS); gtk_scale_set_digits (GTK_SCALE(_scale),0); gtk_scale_set_value_pos (GTK_SCALE(_scale), GTK_POS_TOP); gtk_scale_set_draw_value (GTK_SCALE(_scale), TRUE); gtk_box_pack_start(GTK_BOX(_box),_scale, TRUE, TRUE, 0); _button = gtk_button_new_with_label("[-]"); gtk_box_pack_start(GTK_BOX(_box),_button, FALSE, FALSE, 5); [...] That works fine.. the problem is I don't like the height of the button, I would like it a little smaller, so I tried : gtk_widget_set_usize(GTK_WIDGET(_button),20,5); ..but the button widget didn't care at all.. Is there any way to make a widget in a hbox smaller in height than the other widgets?? Thanks in advance, Ignacio Nodal From lsetia78@yahoo.com Sat Jun 9 10:48:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnu.org (unknown [203.195.142.141]) by mail.gnome.org (Postfix) with ESMTP id E9CB62BACE for ; Sat, 9 Jun 2001 10:47:55 -0400 (EDT) Received: (from lsetia@localhost) by gnu.org (8.11.0/8.11.0) id f59F5HY02359; Sat, 9 Jun 2001 20:35:17 +0530 X-Authentication-Warning: milkyway.net.in: lsetia set sender to lsetia78@yahoo.com using -f To: gtk-list@gnome.org Subject: save as dialog... X-please-use: GNU software X-listening-to: Jim Morrison X-personal-homepage: (Still!) Under Construction From: Lokesh Setia Date: 09 Jun 2001 20:35:16 +0530 Message-ID: Lines: 18 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have a couple of questions... o When the file selection widget is used in the context of "Save as", the filename goes off as soon as the directory is changed. Is it a bug in gtk+ 1.2? Or a feature that can be changed? o Is it possible to somehow make the keyboard cursor blink in gtk+ ? Thanks for your time. Loki -- Cricket scoreboard for linux For more info, visit http://scoreboard.sourceforge.net From hp@redhat.com Sat Jun 9 12:27:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 9F6F52D9B8 for ; Sat, 9 Jun 2001 12:27:11 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f59GR7h15824; Sat, 9 Jun 2001 12:27:07 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ignacio Nodal Cc: GTK-List Subject: Re: hbox widgets with different heights References: <3B220909.205DA3BF@teleline.es> From: Havoc Pennington Date: 09 Jun 2001 12:27:07 -0400 In-Reply-To: Ignacio Nodal's message of "Sat, 09 Jun 2001 13:31:21 +0200" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > Is there any way to make a widget in a hbox smaller in height than the > other widgets?? > set_usize() isn't working because it only sets the widget size request, it doesn't force a size. What you want to do is put the button inside a GtkAlignment, then tune the GtkAlignment parameters. Havoc From michaelv@cox-internet.com Sat Jun 9 12:31:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from io.cox-internet.com (unknown [208.180.118.41]) by mail.gnome.org (Postfix) with ESMTP id 8C3102BB31 for ; Sat, 9 Jun 2001 12:31:45 -0400 (EDT) Received: from cdm-233-171-vict.cox-internet.com ([208.180.233.171]) by io.cox-internet.com (InterMail vK.4.02.00.10 201-232-116-110 license dd72657b95c070b1853187e4f5a0d6a7) with ESMTP id <20010609162917.IYJO29067.io@cdm-233-171-vict.cox-internet.com> for ; Sat, 9 Jun 2001 11:29:17 -0500 Subject: themes.org From: Michael Vanderford To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 09 Jun 2001 11:52:20 -0500 Message-Id: <992105540.1078.0.camel@cdm-233-171-vict.cox-internet.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone know what happened to themes.org It's been down for a while now. From alan@clueserver.org Sat Jun 9 12:47:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from clueserver.org (216-99-213-120.dsl.aracnet.com [216.99.213.120]) by mail.gnome.org (Postfix) with ESMTP id 0891A2CC78 for ; Sat, 9 Jun 2001 12:47:56 -0400 (EDT) Received: by clueserver.org (Postfix, from userid 500) id 51DC66E42; Sat, 9 Jun 2001 10:58:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by clueserver.org (Postfix) with ESMTP id 42F045E87; Sat, 9 Jun 2001 10:58:52 -0700 (PDT) Date: Sat, 9 Jun 2001 10:58:52 -0700 (PDT) From: Alan Olsen To: Michael Vanderford Cc: gtk-list@gnome.org Subject: Re: themes.org In-Reply-To: <992105540.1078.0.camel@cdm-233-171-vict.cox-internet.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 9 Jun 2001, Michael Vanderford wrote: > Does anyone know what happened to themes.org > It's been down for a while now. They got hacked when Sourceforge and a bunch of others got hit. I am not certain why it is taking them so long to come back up though. alan@ctrl-alt-del.com | Note to AOL users: for a quick shortcut to reply Alan Olsen | to my mail, just hit the ctrl, alt and del keys. "All power is derived from the barrel of a gnu." - Mao Tse Stallman From Darshan.wakchaure@Vashimail.ltitl.com Fri Jun 8 01:08:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ltitlrelay.ltitl.com (unknown [203.199.54.28]) by mail.gnome.org (Postfix) with ESMTP id 95FDE2D41B for ; Fri, 8 Jun 2001 01:08:14 -0400 (EDT) Received: from Vashimail.ltitl.com ([172.17.9.1]) by ltitlrelay.ltitl.com (Lotus Domino Release 5.0.5) with SMTP id 2001060810371403:29255 ; Fri, 8 Jun 2001 10:37:14 +0530 Received: by Vashimail.ltitl.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id 65256A65.001BE791 ; Fri, 8 Jun 2001 10:34:47 +0530 X-Lotus-FromDomain: VASHI From: Darshan.wakchaure@Vashimail.ltitl.com To: gnome-list@gnome.org Message-ID: <65256A65.001BE5F4.01@Vashimail.ltitl.com> Date: Fri, 8 Jun 2001 10:34:43 +0530 Subject: Help on menu .. Mime-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on ltitlrelay/Ltitl(Release 5.0.5 |September 22, 2000) at 06/08/2001 10:37:14 AM, Serialize by Router on ltitlrelay/Ltitl(Release 5.0.5 |September 22, 2000) at 06/08/2001 10:37:17 AM, Serialize complete at 06/08/2001 10:37:17 AM Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi , I want to have a menu in my application. I have tried to use the sample menu code from the net. Its ok when i am opening notebook kind of appplication, but i want to open multiple windows in from the menu, a mdi - with number of child windows within .. Has anyone used gnome/gtk for building similar kind of stuff??? Thanks, Darshan From reinhard.mueller@bytewise.at Fri Jun 8 10:26:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from email03.aon.at (WARSL401PIP5.highway.telekom.at [195.3.96.112]) by mail.gnome.org (Postfix) with SMTP id 911BA2BAB8 for ; Fri, 8 Jun 2001 10:26:36 -0400 (EDT) Received: (qmail 31834 invoked from network); 8 Jun 2001 14:26:34 -0000 Received: from n813p023.adsl.highway.telekom.at (HELO bytewise.at) ([62.47.45.151]) (envelope-sender ) by qmail3.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 8 Jun 2001 14:26:34 -0000 Message-ID: <3B20E15B.6000003@bytewise.at> Date: Fri, 08 Jun 2001 16:29:47 +0200 From: Reinhard Mueller Organization: GNU Enterprise User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: de, en MIME-Version: 1.0 To: gtk-list@gnome.org Cc: gnue-geas@lists.gnue.org Subject: g_assert vs. g_return[_val]_if_fail 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, We are using glib all over our project (GNU Enterprise) and want to make best use of it's debugging functions. Now the discussion has started on in which cases g_assert should be used and in which g_return... is better. We know the differences: * g_assert is turned off by a different define than g_return..., but both can be turned off. * g_assert terminates the application, where g_return... only terminates the function * therefore, g_assert lets me jump into gdb as soon as it is hit, while g_return... doesn not. This seems to be an advantage for g_assert. * for users, it seems that g_return... is nicer because it doesn't kill the process. So my questions are: Is there a golden rule when to use which? Does it make sense to use both and disable the g_assert for production use and let g_return... in? How do others handle this? Thanks a lot, -- Reinhard Mueller GNU Enterprise project http://www.gnue.org From inodal@teleline.es Sun Jun 10 16:34:31 2001 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 D9D272BEAB for ; Sun, 10 Jun 2001 16:34:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEQEEH05.F3Z for ; Sun, 10 Jun 2001 22:32:41 +0200 Message-ID: <3B23CB67.6CA5C0C2@teleline.es> Date: Sun, 10 Jun 2001 21:32:55 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: problems with gtk_toggle_button_set_active() and check buttons 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, I've create a check button but I've also added a callback which must be called if the right button has been pressed. The calldata is a pointer to my class. When I create it I set the state to TRUE or FALSE according to the value stored in *parameter. [...] _boolean_button = gtk_check_button_new(); _label_widget = gtk_label_new (_label); gtk_container_add(GTK_CONTAINER(_boolean_button), _label_widget); gtk_misc_set_alignment(GTK_MISC(_label_widget), 0.1f, 0.5f); gtk_widget_show(_label_widget); //"button_press_event" instead of "toggled" to know which button was pressed gtk_signal_connect (GTK_OBJECT(_boolean_button), "button_press_event", GTK_SIGNAL_FUNC(CB_ChangedValue), (gpointer) this); //set state as indicated in "*parameter" gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(_boolean_button), (*parameter)); [...] In my callback I look which button has been pressed so I can use differents callbacks for the left and the right button. I know the button only toggles using the left button, that's ok for me. The problem is when I ask in my CB_ChangedValue for "button->active" it returns me FALSE when it's "pressed-in" and TRUE when it's "raised-out". If I don't use gtk_toggle_button_set_active() in the code above all works fine.. Here is the callback function (just testing)... void CB_ChangedValue(GtkWidget* widget, GdkEventButton* event, gpointer cd) { ParameterBoolean * pb = (ParameterBoolean *) cd; switch (event->button) { case 1: *(pb->parameter) = !(*(pb->parameter)); if(pb->_type == BooleanCharCase || pb->_type == BooleanPixmap) pb->Update(); if(pb->_callback != NULL) { void (*pf) (gpointer) = (void (*) (gpointer)) pb->_callback; pf(pb->_calldata); } if (GTK_TOGGLE_BUTTON(widget)->active) { g_print("button activated w:%d p:%d\n",GTK_TOGGLE_BUTTON(widget)->active,*(pb->parameter)); } else { g_print("button desactivated w:%d p:%d\n",GTK_TOGGLE_BUTTON(widget)->active,*(pb->parameter)); } break; case 3: if(pb->_btn3callback != NULL) { void (*pf) (gpointer) = (void (*) (gpointer)) pb->_btn3callback; pf(pb->_btn3data); } break; } What's going wrong? Thanks in advance, Ignacio Nodal From hp@redhat.com Sun Jun 10 17:07:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0AA162DC20 for ; Sun, 10 Jun 2001 17:07:51 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5AL7li07987; Sun, 10 Jun 2001 17:07:47 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Reinhard Mueller Cc: gtk-list@gnome.org, gnue-geas@lists.gnue.org Subject: Re: g_assert vs. g_return[_val]_if_fail References: <3B20E15B.6000003@bytewise.at> From: Havoc Pennington Date: 10 Jun 2001 17:07:47 -0400 In-Reply-To: Reinhard Mueller's message of "Fri, 08 Jun 2001 16:29:47 +0200" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Reinhard Mueller writes: > * g_assert terminates the application, where g_return... only terminates the function > * therefore, g_assert lets me jump into gdb as soon as it is hit, while > g_return... doesn not. This seems to be an advantage for g_assert. You can always run the app with --g-fatal-warnings to also make g_return fatal. > Is there a golden rule when to use which? > Does it make sense to use both and disable the g_assert for production use and let > g_return... in? For GTK, we normally use g_return if the app developer has made a mistake, and g_assert() if GTK itself is confused. Havoc From Simon.Budig@unix-ag.org Sun Jun 10 19:19:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from harley.unix-ag.uni-siegen.de (harley.unix-ag.uni-siegen.de [141.99.42.44]) by mail.gnome.org (Postfix) with ESMTP id 3D3CC2BABF for ; Sun, 10 Jun 2001 19:19:09 -0400 (EDT) Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id BAA17935 for ; Mon, 11 Jun 2001 01:19:07 +0200 Received: (from simon@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id BAA60150 for gtk-list@gnome.org; Mon, 11 Jun 2001 01:19:07 +0200 Date: Mon, 11 Jun 2001 01:19:07 +0200 From: Simon Budig To: gtk-list@gnome.org Subject: "Lightweight GTK+"? Message-ID: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all. I am currently evaluating different Toolkits for an embedded application. I'd like to ask if some people here have made some experiences with GTK+ (on Framebuffer or on X11) in an embedded device. Is it possible to reduce the size of the GTK Library (we don't have unlimited resources) e.g. by removing some unused widgets? Would you recommend to use GTK+ in it's current state? Thanks for opinions, Simon -- Simon.Budig@unix-ag.org http://www.home.unix-ag.org/simon/ From hp@redhat.com Sun Jun 10 23:18:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4192D2BB36 for ; Sun, 10 Jun 2001 23:18:14 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5B3I8U31970; Sun, 10 Jun 2001 23:18:08 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> From: Havoc Pennington Date: 10 Jun 2001 23:18:08 -0400 In-Reply-To: Simon Budig's message of "Mon, 11 Jun 2001 01:19:07 +0200" Message-ID: Lines: 35 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Simon Budig writes: > Is it possible to reduce the size of the GTK Library (we don't have > unlimited resources) e.g. by removing some unused widgets? You can do a custom GTK build and remove a substantial number of the widgets and some other features (e.g. unused image loaders and language modules). Static linking will already strip a lot of unused stuff of course. > Would you recommend to use GTK+ in it's current state? GTK for framebuffer is GTK 1.3.x, which is a development branch - the API is not fixed. Nonetheless it's reasonably stable at this point. If you're willing to tolerate a rough edge or two it should work OK, if you want a full-on shrink-wrapped frozen-solid-API then it's not quite there yet, but will be soon I hope. For embedded you should also consider simply using a small version of X such as the one used for the iPAQ; framebuffer is somewhat smaller but not hugely so, and its smaller size is achieved at the expense of multiprocess support. http://www.redhat.com/devnet/ has an article on GTK framebuffer, scroll down a bit from the top of the front page and you'll see it. The primary advantage of GTK for embedded devices is that you get the same GUI API as a full-fledged computer, and of course the higher-level full-featured nature of that API; GTK will be larger than something like FLTK, but will also be a good bit more powerful if you can afford the size and need the GTK features or the similarity to the non-embedded API. Tradeoffs, tradeoffs. ;-) Havoc From zhu_f@yahoo.com Mon Jun 11 00:09:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id CAF652BF1E for ; Mon, 11 Jun 2001 00:09:15 -0400 (EDT) Message-ID: <20010611040915.71408.qmail@web11502.mail.yahoo.com> Received: from [131.215.103.1] by web11502.mail.yahoo.com; Sun, 10 Jun 2001 21:09:15 PDT Date: Sun, 10 Jun 2001 21:09:15 -0700 (PDT) From: Feng Zhu Subject: get gtk menubar title 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I had some problems with using Gtk-- menu system. Your help will greatly appreciated. First, it looks there is no function to get the title of the menu/menuitem (there is a function to set_title though). If I have a function which takes a menu name and item name, how can I check whether the menu or the item has already exist on the menu bar. Second, why *(menubar->items().begin()) and *(menu->items().begin()) will both return menuitem*? Shouldn't the first return Menu*? How can I traverse the menus given a menubar pointer in that case? Thank you very much, Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From J.B.Huijsmans@chem.rug.nl Mon Jun 11 05:36:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dep.chem.rug.nl (dep.chem.rug.nl [129.125.7.81]) by mail.gnome.org (Postfix) with ESMTP id 1A5702BB4D for ; Mon, 11 Jun 2001 05:36:36 -0400 (EDT) Received: from 00e0291bc23d (chte92.chem.rug.nl [129.125.35.224]) by dep.chem.rug.nl (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id LAA06142 for ; Mon, 11 Jun 2001 11:36:35 +0200 X-Authentication-Warning: dep.chem.rug.nl: Host chte92.chem.rug.nl [129.125.35.224] claimed to be 00e0291bc23d From: "J.B. Huijsmans" To: gtk-list@gnome.org Date: Mon, 11 Jun 2001 11:36:19 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Feature suggestion/request: Display of dotfiles Message-ID: <3B24AD33.8520.D160E7@localhost> Priority: normal X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have just subscribed to this list, so this may have been discussed before. I was looking at a way to change the default behaviour of the fileselection widget to show all files, including 'dotfiles' and it seems to me there is no way to do this currently. I have patched my own version of GTK to include an extra function: gtk_file_selection_show_dotfiles(GtkFileSelection filesel, gboolean dotfiles) I implemented this by adding a global gboolean dot_or_not and addapting the FNMATCH_FLAGS definition, #define FNMATCH_FLAGS(dot_or_not) ( dot_or_not ? FNM_PATHNAME : (FNM_PATHNAME | FNM_PERIOD) ) adding the boolean gboolean dot_or_not=FALSE; and changing every occurance of FNMATCH_FLAGS to FNMATCH_FLAGS(dot_or_not). With this very simple change it was trivial to implement the show dotfiles function to just change the value of dot_or_not. Might this be a useful addition to the gtk fileselection API ? Regards, Jasper -- Ir. J.B. Huijsmans Nijenborgh 4 9747 AG Groningen tel. +31-50-3634503 e-mail: j.b.huijsmans@chem.rug.nl -- From inodal@teleline.es Mon Jun 11 07:43:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp2.teleline.es (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 0C99D2CDF9 for ; Mon, 11 Jun 2001 07:43:01 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp2.teleline.es (Netscape Messaging Server 4.1) with ESMTP id GERKGK04.U12 for ; Mon, 11 Jun 2001 13:41:08 +0200 Message-ID: <3B24A052.E0E184B9@teleline.es> Date: Mon, 11 Jun 2001 12:41:22 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: "button_press_event" signal instead of "toggled" 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, I'll ask it in another way: If I create a check button and want to differentiate between "toggled" event and a "button_press_event" emitted because the right button has been pressed, can I connect only the "button_press_event" signal and then ask in my callback which button has been pressed? Something like this.. gtk_signal_connect_after (GTK_OBJECT(_boolean_button), "button_press_event", GTK_SIGNAL_FUNC(CB_ChangedValue), (gpointer) this); voi CB_ChangedValue (GtkWidget* widget, GdkEventButton* event, gpointer cd) { if (event->button == 1) { /* "toggled" */ } else if (event->button == 3) { /* right button code */ } } The gtk_toggle_button_set_active() function causes the "clicked" and "toggled" signals to be emitted from the button if the state is actually changed. Can this be a problem for me? When I create the button and use gtk_toggle_button_set_active() to set it TRUE it works fine. But then, when I press the button to toggle the state my callback is called because of the "button_press_event". "_boolean_button->active" turns into FALSE but the button toggled twice, so it remains pressed-in. After this first callback, if I press again it toggled only once, but know FALSE is "pressed-in" and TRUE "raise-out". Is there any problem connecting the "button_press_event" signal instead of "toggled"? What's going wrong? Thanks in advance, Ignacio Nodal From john.cupitt@ng-london.org.uk Mon Jun 11 09:47:43 2001 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 77E652BAC0 for ; Mon, 11 Jun 2001 09:47:43 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K44MP; Mon, 11 Jun 2001 14:47:42 +0100 Message-ID: <3B24CAB7.D783B3EF@ng-london.org.uk> Date: Mon, 11 Jun 2001 14:42:15 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Lokesh Setia Cc: gtk-list@gnome.org Subject: Re: save as dialog... 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Lokesh Setia wrote: > o When the file selection widget is used in the context of "Save as", > the filename goes off as soon as the directory is changed. Is it a > bug in gtk+ 1.2? Or a feature that can be changed? It's a feature that can't be changed :-) Lots of people have done new fileselectors, and this is one of the features they almost always put in. Try: http://gtkfilesel.sourceforge.net/ There are lots of others around. > o Is it possible to somehow make the keyboard cursor blink in gtk+ ? I think the next version of GTK has this. It's not easy (as far as I know) in gtk1.2. John From zhu_f@yahoo.com Sun Jun 10 08:45:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id EED4E2DC52 for ; Sun, 10 Jun 2001 08:45:20 -0400 (EDT) Message-ID: <20010610124520.83375.qmail@web11502.mail.yahoo.com> Received: from [131.215.103.1] by web11502.mail.yahoo.com; Sun, 10 Jun 2001 05:45:20 PDT Date: Sun, 10 Jun 2001 05:45:20 -0700 (PDT) From: Feng Zhu Subject: questions about menubar 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I had some problems with using Gtk-- menu system. Your help will greatly appreciated. First, it looks there is no function to get the title of the menu/menuitem (there is a function to set_title though). If I have a function which takes a menu name and item name, how can I check whether the menu or the item has already exist on the menubar. Second, why *(menubar->items().begin()) and *(menu->items().begin()) will both return menuitem*? Shouldn't the first return Menu*? How can I traverse the menus given a menubar pointer in that case? Thank you very much, Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From sven@gimp.org Mon Jun 11 04:19:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id B84722C891 for ; Mon, 11 Jun 2001 04:19:47 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 159Mov-0000Zf-00; Mon, 11 Jun 2001 10:13:09 +0200 To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> From: Sven Neumann Organization: convergence integrated media GmbH Date: 11 Jun 2001 10:13:08 +0200 In-Reply-To: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> Message-ID: Lines: 36 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Simon, Simon Budig writes: > I am currently evaluating different Toolkits for an embedded application. > I'd like to ask if some people here have made some experiences with > GTK+ (on Framebuffer or on X11) in an embedded device. we (http://www.convergence.de/) use GTK+-1.3 ported to DirectFB (http://www.directfb.org/) to avoid the overhead of X and to make use of some advanced features of modern gfx cards like hardware accelerated alpha transparency. > Is it possible to reduce the size of the GTK Library (we don't have > unlimited resources) e.g. by removing some unused widgets? yes, but it's quite a lot of work. It would be nice if we could strip GTK+ down to its basics and provide an easy way to add only the widgets the application really needs. Static linking could be a solution but it does not help if you want to run more than one GTK+ app. Actually we need something like GTK+-Embedded but at the moment I don't see anyone pushing it and we are lacking the resources to do a general solution at the moment. > Would you recommend to use GTK+ in it's current state? it depends on what exactly you are up to. Unfortunately GTK+-1.3 and GLib-1.3 are considerably slower than GTK+-1.2. The major problem here seems to be the bad performance of signal emissions in GObject that has already been pointed out here. Hopefully this will become better before 2.0 is released. Salut, Sven From john.cupitt@ng-london.org.uk Mon Jun 11 09:53:44 2001 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 8EEAA2DCB6 for ; Mon, 11 Jun 2001 09:53:44 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K44NH; Mon, 11 Jun 2001 14:53:43 +0100 Message-ID: <3B24CC20.DBD887FA@ng-london.org.uk> Date: Mon, 11 Jun 2001 14:48:16 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: dodi-nug <4dadio@telkom.net> Cc: gtk-list@gnome.org Subject: Re: examp. of simple graphic using Gdk 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dodi-nug wrote: > There is a lack of how to draw graphic using gdk. > so if you guys have an example to draw a simple x=y graphic, > please tell me. There's the scribble example in the tutorial: http://www.gtk.org/tutorial/ch-scribble.html For fancier GDK stuff, any source covering Xlib graphics will be helpful ... the functions are (mostly) the same: eg. for gdk_gc_set_function(), look up XSetFunction(). HTH, John From lsetia78@yahoo.com Mon Jun 11 13:13:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnu.org (unknown [203.195.140.9]) by mail.gnome.org (Postfix) with ESMTP id 84D0F2CAEF for ; Mon, 11 Jun 2001 13:13:22 -0400 (EDT) Received: (from lsetia@localhost) by gnu.org (8.11.0/8.11.0) id f5BHNv701452; Mon, 11 Jun 2001 22:53:57 +0530 X-Authentication-Warning: milkyway.net.in: lsetia set sender to lsetia78@yahoo.com using -f To: John Cupitt Cc: gtk-list@gnome.org Subject: Re: save as dialog... References: <3B24CAB7.D783B3EF@ng-london.org.uk> X-please-use: GNU software X-listening-to: Jim Morrison X-personal-homepage: (Still!) Under Construction From: Lokesh Setia Date: 11 Jun 2001 22:53:57 +0530 In-Reply-To: <3B24CAB7.D783B3EF@ng-london.org.uk> Message-ID: Lines: 25 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "John" == John Cupitt writes: John> Lokesh Setia wrote: >> o When the file selection widget is used in the context of >> "Save as", the filename goes off as soon as the directory is >> changed. Is it a bug in gtk+ 1.2? Or a feature that can be >> changed? John> It's a feature that can't be changed :-) Lots of people have John> done new fileselectors, and this is one of the features they John> almost always put in. Try: John> http://gtkfilesel.sourceforge.net/ Thanks John for the link, It works with all my existing gtk+ applications with LD_PRELOAD (though I needed it most only for my new galeon :)). Regards, Lokesh. -- When we get back, I'll drop a line -- The Doors. From lestat.lioncourt@innocent.com Mon Jun 11 14:17:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-3-245.abo.wanadoo.fr [193.252.111.245]) by mail.gnome.org (Postfix) with ESMTP id 4E7D52BCA5 for ; Mon, 11 Jun 2001 14:17:10 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 48B3AC95E for ; Mon, 11 Jun 2001 20:17:11 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Mon, 11 Jun 2001 18:17:11 +0000 From: "David Goncalves" To: Subject: Setting fonts to a GtkText widget MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010611181711.48B3AC95E@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, anyone knows how can i force a GtkText widget to use specific fonts ? for example, a widget with fixed fonts. Thanks. From rbultje@ronald.bitfreak.net Mon Jun 11 14:46:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www-server.ucu.uu.nl (www-server.ucu.uu.nl [131.211.104.40]) by mail.gnome.org (Postfix) with ESMTP id 79E2F2D409 for ; Mon, 11 Jun 2001 14:46:47 -0400 (EDT) Received: from ucu-105-112.ucu.uu.nl ([131.211.105.112]) by www-server.ucu.uu.nl (Post.Office MTA v3.5.3 release 223 ID# 0-68709U800L100S0V35) with ESMTP id nl for ; Mon, 11 Jun 2001 20:46:45 +0200 Subject: is this a Gtk-problem? From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 11 Jun 2001 20:46:46 +0200 Message-Id: <992285206.1636.4.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Sometimes, I get really weird bug reports and I have no clue what they mean. I have a user who has severe problems getting the whole thing to start at all, he gets the following notice: [root@localhost temp]# studio Oops, error opening /root/.studio/studio_editlist.eli (open_eli_file) <-- my own error, nothing bad Uh oh, something went wrong when opening the edit list file... <-- my own error, nothing bad Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 1927 error_code 8 request_code 141 minor_code 5 [root@localhost temp]# What does this Gdk-error mean? The user has gtk-1.2.10-1 RPMs from gtk.org on a redhat-7.1 box. (with the initial 1.2.9-4 RPMs, the thing segfaulted, also during gtk_widget_show(window) - I can provide the backtrace if that's interesting). He uses gdk-pixbuf 0.8.0-7. gdb shows no backtrace for this error (because it's not a segfault). And the program starts up, the window appears for 0,1 second but he doesn't get the the notice that it got past gtk_widget_show(window) so something is going wrong in gtk_widget_show(window); - but what? Can anyone shed some light on this for me? It's a unique case. For all other users, it runs fine (but they again don't use redhat-7.1) Thanks in advance (and sorry for bothering you with my users' bug reports but I have no clue where else to ask), Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From andres_giraldo@yahoo.com Mon Jun 11 15:15:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11507.mail.yahoo.com (web11507.mail.yahoo.com [216.136.172.39]) by mail.gnome.org (Postfix) with SMTP id 1F13D2E112 for ; Mon, 11 Jun 2001 15:15:44 -0400 (EDT) Message-ID: <20010611191543.3592.qmail@web11507.mail.yahoo.com> Received: from [208.221.130.25] by web11507.mail.yahoo.com; Mon, 11 Jun 2001 12:15:43 PDT Date: Mon, 11 Jun 2001 12:15:43 -0700 (PDT) From: "Andrés" Giraldo Subject: Newbie questions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm newbie at gtk and I need a little help; I'm trying to create a new Widget its based on a drawingarea, but I have 2 problems: 1. If I declare another widget of the type I'm creating, gtk returns me the following error: Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion `bin->child == NULL' failed. I don't understand the parent class and those things... 2. I have a procedure that repaints the drawing area; I connect a signal to the drawingarea, on the expose event, but... How can I pass it the members of the structure I'm creating? I'm trying to pass a gpointer to the object but in the expose_event function the gpointer data->any_member doesn't work... Please give me any idea... I really apreciate this, Thanks a lot The little header code: /***************************************************/ #ifndef __GTK_NEWLABEL_H__ #define __GTK_NEWLABEL_H__ #include #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define GTK_NEWLABEL(obj) GTK_CHECK_CAST (obj, gtk_newlabel_get_type (), GtkNewLabel) #define GTK_NEWLABEL_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_newlabel_get_type (), GtkNewLabelClass) #define IS_GTK_NEWLABEL(obj) GTK_CHECK_TYPE (obj, gtk_newlabel_get_type ()) typedef struct _GtkNewLabel GtkNewLabel; typedef struct _GtkNewLabelClass GtkNewLabelClass; struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; gchar *str; glong backred; glong backgreen; glong backblue; glong forered; glong foregreen; glong foreblue; }; struct _GtkNewLabelClass { GtkVBoxClass parent_class; }; guint gtk_newlabel_get_type (); GtkWidget* gtk_newlabel_new (gchar *caption); void gtk_newlabel_set_caption (GtkNewLabel *newlabel, gchar *caption); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __GTK_NEWLABEL_H__ */ My Widget's code... /****************************************************/ #include "gtk/gtktable.h" #include "gtk/gtkdrawingarea.h" #include "gtknewlabel.h" #define arial "-ult1mo-arial-medium-r-normal-*-*-160-*-*-p-*-adobe-fontspecific" static void gtk_newlabel_class_init (GtkNewLabelClass *klass); static void gtk_newlabel_init (GtkNewLabel *newlabel); void gtk_newlabel_expose (gpointer data); GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable); GdkColor *NewColor (long red, long green, long blue); guint gtk_newlabel_get_type () { static guint newlabel_type = 0; if (!newlabel_type) { GtkTypeInfo newlabel_info = { "GtkNewLabel", sizeof (GtkNewLabel), sizeof (GtkNewLabelClass), (GtkClassInitFunc) gtk_newlabel_class_init, (GtkObjectInitFunc) gtk_newlabel_init, (GtkArgSetFunc) NULL, (GtkArgGetFunc) NULL }; newlabel_type = gtk_type_unique (gtk_vbox_get_type (), &newlabel_info); } return newlabel_type; } static void gtk_newlabel_class_init (GtkNewLabelClass *class) { } static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; long back_red = 0xb4b4; long back_green = 0xb2b2; long back_blue = 0xb0b0; long fore_red = 0x0000; long fore_green = 0x0000; long fore_blue = 0x0000; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_red", (void *)back_red); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_green", (void *)back_green); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_blue", (void *)back_blue); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_red", (void *)fore_red); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_green", (void *)fore_green); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_blue", (void *)fore_blue); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "caption", ""); gtk_widget_show (newlabel->drawing_area); gtk_signal_connect (GTK_OBJECT (newlabel->drawing_area), "expose_event", GTK_SIGNAL_FUNC (gtk_newlabel_expose), NULL); } GtkWidget* gtk_newlabel_new (gchar *caption) { GtkNewLabel *newlabel; newlabel = gtk_type_new (gtk_newlabel_get_type ()); gtk_newlabel_set_caption (newlabel, caption); return GTK_WIDGET (newlabel); } void gtk_newlabel_set_caption (GtkNewLabel *newlabel, gchar *caption) { gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "caption", (void *)caption); } void gtk_newlabel_expose (gpointer data) { GtkWidget *drawing_area = data; GdkDrawable *drawable = drawing_area->window; GdkGC *gc_back, *gc_fore; GdkFont *font; int x, y, height, width; long back_red = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_red"); long back_green = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_green"); long back_blue = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_blue"); long fore_red = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_red"); long fore_green = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_green"); long fore_blue = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_blue"); char *caption = (char *)gtk_object_get_data (GTK_OBJECT (drawing_area), "caption"); gc_back = GetPen (NewColor (back_red, back_green, back_blue), drawable); gc_fore = GetPen (NewColor (fore_red, fore_green, fore_blue), drawable); gdk_draw_rectangle (drawable, gc_back, TRUE, 0, 0, drawing_area->allocation.width, drawing_area->allocation.height); font = gdk_font_load (arial); height = gdk_text_height (font, caption, strlen(caption)); width = gdk_text_width (font, caption, strlen(caption)); x = ((drawing_area->allocation.width - width) / 2); y = ((drawing_area->allocation.height - height) / 2) + height; gdk_draw_string (drawable, font, gc_fore, x, y, caption); } GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From iweiny@acm.org Mon Jun 11 15:33:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.he.net (mail.he.net [216.218.130.57]) by mail.gnome.org (Postfix) with ESMTP id 60E632E196 for ; Mon, 11 Jun 2001 15:33:36 -0400 (EDT) Received: from acm.org ([216.218.229.236] (may be forged)) by mail.he.net (8.8.6/8.8.2) with ESMTP id MAA22458; Mon, 11 Jun 2001 12:33:32 -0700 Message-ID: <3B251ADF.E6B9ECF5@acm.org> Date: Mon, 11 Jun 2001 12:24:15 -0700 From: Ira Weiny X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.4.5-pre3 ppc) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org, linuxppc Subject: gtk font dependancies 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am running linuxppc-2000-Q4 on my Apple Titanium PowerBook. I am _not_ runnig gnome just straight enlightenment. I have rpm's for XFree86 installed (4.0.99) version. My question is: where does gtk get it's fonts from? (xfs?) I have a couple of programs, namely gscanbus and gaim which don't display certian text correctly. I have messed with xfs and I have _many_ font's installed but I still get "square" characters in certian dialogs. Here is a list of the font packages I have intsalled. $ rpm -qa | grep font ghostscript-fonts-5.50-1 chkfontpath-1.7-2 XFree86-ISO8859-2-100dpi-fonts-4.0.99.3-0b urw-fonts-2.0-4 XFree86-ISO8859-2-75dpi-fonts-4.0.99.3-0b tetex-fonts-1.0.6-11a XFree86-cyrillic-fonts-4.0.99.3-0b XFree86-100dpi-fonts-4.0.99.3-0b XFree86-75dpi-fonts-4.0.99.3-0b XFree86-ISO8859-7-100dpi-fonts-1.0-4 XFree86-ISO8859-7-75dpi-fonts-1.0-4 XFree86-ISO8859-7-Type1-fonts-1.0-4 XFree86-ISO8859-9-100dpi-fonts-2.1.2-10 XFree86-ISO8859-9-75dpi-fonts-2.1.2-10 Thanks in advance, Ira Weiny iweiny@acm.org From Esteban.Quijano@artinsoft.com Mon Jun 11 15:39:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from freedom-srv.intranet (unknown [196.40.21.166]) by mail.gnome.org (Postfix) with ESMTP id DE3402E239 for ; Mon, 11 Jun 2001 15:39:05 -0400 (EDT) Received: by FREEDOM-SRV with Internet Mail Service (5.5.2650.21) id ; Mon, 11 Jun 2001 13:31:10 -0600 Message-ID: From: Esteban Quijano Vincenzi To: gtk-list@gnome.org Subject: RE: Newbie questions Date: Mon, 11 Jun 2001 13:31:10 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0F2AD.117BDFAE" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_01C0F2AD.117BDFAE Content-Type: text/plain; charset="iso-8859-1" Ok, you can pass whatever you want to the callback using your gpointer data: gboolean on_expose_event(GtkWidget *widget, GtkEvent *event, gpointer data) { struct my_struct_t *ms = (my_struct_t *)data; ... /* Use ms as you wish */ ... return TRUE; } or even you can do: gboolean on_expose_event(GtkWidget *widget, GtkEvent *event, struct my_struct_t *ms) { ... /* Use ms as you wish */ ... return TRUE; } later in your code: ... struct my_struct_t ms; ms.something = something; ... gtk_signal_connect(GTK_OBJECT(drawing_area), "expose_event", GTK_SIGNAL_FUNC(on_expose_event), &ms); ... gtk_main(); ... just be carefull about the number of parameters your callback function has: gboolean on_expose_event(GtkWidget *widget, gpointer data); will give you an error when trying to access data as a (my_struct_t *) Esteban Q. ------_=_NextPart_001_01C0F2AD.117BDFAE Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Newbie questions

Ok, you can pass whatever you want to the callback = using your gpointer data:

gboolean on_expose_event(GtkWidget *widget, GtkEvent = *event, gpointer data)
{
   struct my_struct_t *ms =3D (my_struct_t = *)data;
   ...
   /* Use ms as you wish */
   ...
   return TRUE;
}

or even you can do:

gboolean on_expose_event(GtkWidget *widget, GtkEvent = *event, struct my_struct_t *ms)
{
   ...
   /* Use ms as you wish */
   ...
   return TRUE;
}

later in your code:

   ...
   struct my_struct_t ms;
   ms.something =3D something;
   ...
   = gtk_signal_connect(GTK_OBJECT(drawing_area), "expose_event", = GTK_SIGNAL_FUNC(on_expose_event), &ms);
   ...
   gtk_main();
   ...

just be carefull about the number of parameters your = callback function has:

   gboolean on_expose_event(GtkWidget = *widget, gpointer data);

will give you an error when trying to access data as = a (my_struct_t *)


Esteban Q.

------_=_NextPart_001_01C0F2AD.117BDFAE-- From rsteinke@w-link.net Mon Jun 11 17:18:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id B42BF2BD32 for ; Mon, 11 Jun 2001 17:18:33 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159Z8W-0005Sd-00 for ; Mon, 11 Jun 2001 14:22:12 -0700 Date: Mon, 11 Jun 2001 14:22:12 -0700 To: gtk-list@gnome.org Subject: GObject Message-ID: <3B253684.nailG6Z19P8Y1@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Could someone explain how the "properties-changed" signal in GObject is supposed to work? How do you write objects so they use it properly? Ron Steinke From hp@redhat.com Mon Jun 11 17:57:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8037B2BC2D for ; Mon, 11 Jun 2001 17:57:45 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5BLxq113758; Mon, 11 Jun 2001 17:59:52 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ira Weiny Cc: gtk-list@gnome.org, linuxppc Subject: Re: gtk font dependancies References: <3B251ADF.E6B9ECF5@acm.org> From: Havoc Pennington Date: 11 Jun 2001 17:59:51 -0400 In-Reply-To: Ira Weiny's message of "Mon, 11 Jun 2001 12:24:15 -0700" Message-ID: Lines: 8 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ira Weiny writes: > My question is: where does gtk get it's fonts from? (xfs?) They come from the X server, GTK isn't doing anything different from any other X app. Havoc From hp@redhat.com Mon Jun 11 18:01:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5179F2E267 for ; Mon, 11 Jun 2001 18:01:46 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5BM3va24733; Mon, 11 Jun 2001 18:03:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: GObject References: <3B253684.nailG6Z19P8Y1@yggdrasil> From: Havoc Pennington Date: 11 Jun 2001 18:03:57 -0400 In-Reply-To: Ron Steinke's message of "Mon, 11 Jun 2001 14:22:12 -0700" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Could someone explain how the "properties-changed" signal in > GObject is supposed to work? How do you write objects so they use > it properly? > You don't use it - we are campaigning to get it removed because it slows down GTK a lot and is not particularly useful. To get notification you connect to "notify::property_name", or just "notify" to get notification on all properties. To see how to send notifies in your own object implementations, look at most any GTK widget. Typically: void set_foo (Object *obj, Foo *foo) { obj->foo = foo; g_object_notify (obj, "foo"); } obj_set_property (blah blah) { case PROP_FOO: set_foo (obj, g_value_get_foo (value)); break; } Havoc From andrej.prsa@guest.arnes.si Mon Jun 11 18:51:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id A35FA2BF75 for ; Mon, 11 Jun 2001 18:51:11 -0400 (EDT) Received: from arnes.si (ar9-6i.dial-up.arnes.si [194.249.12.6]) by razor.arnes.si (Postfix) with SMTP id 77D35E663 for ; Tue, 12 Jun 2001 00:51:09 +0200 (MET DST) Date: Tue, 12 Jun 2001 00:52:59 +0200 From: Andrej Prsa To: gtk-list@gnome.org Subject: GDK-PixBuf Message-Id: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> X-Mailer: Sylpheed version 0.4.66 (GTK+ 1.2.9; i686-pc-linux-gnu) Organization: University of Astrophysics 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello! I'm going nuts with GDK-Pixbuf... I searched all over the net for a small example but failed to find it. The examples I did find utilize gnome.h, which I try to avoid. Here's my problem: I have to put simple jpg or gif graphics (with known dimensions, bits, ...) to screen. I tried to do it like this: #include #include #include #include "gtk/gtk.h" #include "gdk-pixbuf/gdk-pixbuf.h" int main (int argc, char *argv[]) { GtkWidget *window; GdkPixbuf *image; GdkPixmap *canvas; GdkGC *setup; gtk_init (&argc, &argv); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap()); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); gtk_widget_set_usize (window, 600, 600); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); image = gdk_pixbuf_new_from_file ("test.jpg"); canvas = gdk_pixmap_new (window->window, 262, 392, 8); setup = gdk_gc_new (canvas); gdk_pixbuf_render_to_drawable (image, canvas, setup, 0, 0, 0, 0, 262, 392, GDK_RGB_DITHER_NORMAL, 0, 0); gtk_widget_show_all (window); gtk_main(); return (0); } It compiles without problem, but, however, it crashes with: Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 59 error_code 8 request_code 147 minor_code 3 Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 60 error_code 8 request_code 147 minor_code 3 I'm really clueless... Any ideas? Andrej From rsteinke@w-link.net Mon Jun 11 19:10:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 1719D2DC80 for ; Mon, 11 Jun 2001 19:10:40 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159atF-0008Do-00 for ; Mon, 11 Jun 2001 16:14:33 -0700 Date: Mon, 11 Jun 2001 16:14:33 -0700 To: gtk-list@gnome.org Subject: Error running configure for CVS atk Message-ID: <3B2550D9.nailODH1UY76R@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I try to build atk from CVS, configure gives the following error: ./configure: line 5864: syntax error near unexpected token ``(a' ./configure: line 5864: ` case `(ac_space=' '; set | grep ac_space) 2>&1` in' The surrounding code is: # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache Similar code appears in the configure for pango (and probably glib, I haven't checked) and works fine. What's going on? Ron Steinke From topper@virginia.edu Mon Jun 11 19:26:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (unknown [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id 768BD2BD65 for ; Mon, 11 Jun 2001 19:26:44 -0400 (EDT) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by relay1-us.simplemente.net (Postfix) with SMTP id 5ED49D7829 for ; Mon, 11 Jun 2001 19:26:42 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa25751; 11 Jun 2001 19:26 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA26939 for ; Mon, 11 Jun 2001 19:26:32 -0400 (EDT) Message-ID: <3B252A56.A41BC06F@virginia.edu> Date: Mon, 11 Jun 2001 16:30:14 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Creating GdkEvents? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm having some trouble sending events around CanvasItems and GtkAdjustments. I'm thinking I need to create a new event type, something like "activate" or "trigger_my_event." But the functions listed to do that seem a bit heavy for my used (eg., # of bytes for function() pointer?). Where can I get a list of Gdk/Gtk Events for a given class? Or if anyone has some advice or sample code on creating my own event, I'd really appreciate it. Thanks, Dave Topper -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From topper@virginia.edu Mon Jun 11 19:28:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 5F9642E279 for ; Mon, 11 Jun 2001 19:28:19 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa26898; 11 Jun 2001 19:28 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA27296; Mon, 11 Jun 2001 19:28:15 -0400 (EDT) Message-ID: <3B252ABD.FFF37A9D@virginia.edu> Date: Mon, 11 Jun 2001 16:31:57 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "David J. Topper" writes: > > > > Is there a way for me to force a window to remain in focus? I've got > > some popup windows on a canvas, that of course drop to back when focus > > moves off them. I'm looking for an easy way to force them to remain on > > top. > > > > By "popup" do you mean a dialog or a menu or a tooltip type of thing? > Are they toplevel GtkWindows? Are they GTK_WINDOW_POPUP? > > Do you actually want keyboard focus on these, or do you just mean you > want them to remain on top? (You mean on top of another window, or on > top of the other widgets in a canvas?) I mean a window, they are GtkWindows, not popups. I'm using them to get parameters for items created on the fly (eg., length, width, height) and I don't want the "windows" to drop in back when I accidentally move the mouse off them. Thanks, DT -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From kens@ActiveState.com Mon Jun 11 19:38:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id CC5D92E2A0 for ; Mon, 11 Jun 2001 19:34:41 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5BMYEA13537; Mon, 11 Jun 2001 15:34:14 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5BKZIt20009; Mon, 11 Jun 2001 13:35:18 -0700 Date: Mon, 11 Jun 2001 13:35:18 -0700 (PDT) From: Ken Simpson To: Cc: , David Ascher , Mark Hammond Subject: Automatic focus handling? How do I turn it off? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was told that gtk has a mechanism for automatically setting or removing the focus on widgets in response to events such as keypresses. I think this mechanism has been enabled somewhere inside Mozilla and is causing all kinds of focus-related problems with Mozilla plugins. Can anyone tell me where I can look in gtk to find this automatic focus setting code? Thanks, Ken Simpson Komodo Developer ActiveState From jfbenck@home.nl Mon Jun 11 19:38:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from CP102461-A.home.nl (cp102461-a.landg1.lb.nl.home.com [213.51.21.239]) by mail.gnome.org (Postfix) with ESMTP id 6740A2E2AD for ; Mon, 11 Jun 2001 19:37:13 -0400 (EDT) Received: (from jeroen@localhost) by CP102461-A.home.nl (8.11.0/8.11.0) id f5BNcqP02597; Tue, 12 Jun 2001 01:38:52 +0200 X-Authentication-Warning: CP102461-A.home.nl: jeroen set sender to jfbenck@home.nl using -f Subject: Re: Creating GdkEvents? From: Jeroen Benckhuijsen To: David "J." Topper Cc: gtk-list@gnome.org In-Reply-To: <3B252A56.A41BC06F@virginia.edu> References: <3B252A56.A41BC06F@virginia.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 12 Jun 2001 01:38:52 +0200 Message-Id: <992302732.1367.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 11 Jun 2001 16:30:14 -0400, David J. Topper wrote: > Hi folks, > > I'm having some trouble sending events around CanvasItems and > GtkAdjustments. I'm thinking I need to create a new event type, > something like "activate" or "trigger_my_event." But the functions > listed to do that seem a bit heavy for my used (eg., # of bytes for > function() pointer?). > > Where can I get a list of Gdk/Gtk Events for a given class? > > Or if anyone has some advice or sample code on creating my own event, > I'd really appreciate it. > > Thanks, > > Dave Topper > -- > Technical Director, Virginia Center for Computer Music > http://www.people.virginia.edu/~djt7p > (804) 924-7355 > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list I don't think you want GdkEvents. Most (or all) of them are translations of X Window Events, like an event to redraw a window, resize it, move a mouse, etc, etc. I think what you want is a GtkSignal. The definition of the signals can be found in the .h files (most of the fuction pointers in the class structure) or in the API documentation on http://developer.gnome.org. Often however there isn't really a good description so you'll have to figure out yourselves when a signal is emitted. You can also define you're own signals i believe using a function of GtkObject (think it's called gtk_object_add_user_event or something like that). -- Jeroen Benckhuijsen Software Engineer Phoenix Software From topper@virginia.edu Mon Jun 11 19:45:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 746462E298 for ; Mon, 11 Jun 2001 19:45:13 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab05922; 11 Jun 2001 19:45 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA29639; Mon, 11 Jun 2001 19:42:00 -0400 (EDT) Message-ID: <3B252DF6.D4ED4B2B@virginia.edu> Date: Mon, 11 Jun 2001 16:45:42 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Jeroen Benckhuijsen Cc: gtk-list@gnome.org Subject: Re: Creating GdkEvents? References: <3B252A56.A41BC06F@virginia.edu> <992302732.1367.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jeroen Benckhuijsen wrote: > > I don't think you want GdkEvents. Most (or all) of them are translations > of X Window Events, like an event to redraw a window, resize it, move a > mouse, etc, etc. You're correct. Signals are what I really want. But I'm unable to find a list on the Gnome pages. Similarly, the .h files are a bit elusive too (eg., gtksignal.h doesn't have them). DT -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From king@eiffel.com Mon Jun 11 19:53:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id C157E2E2AD for ; Mon, 11 Jun 2001 19:53:24 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 159bUo-0005Qr-00 for gtk-list@gnome.org; Mon, 11 Jun 2001 16:53:22 -0700 Message-ID: <058e01c0f2d2$bd7c5570$750a000a@naples> From: "Ian King" To: Subject: Pixmaps and focus Date: Mon, 11 Jun 2001 17:00:50 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I were to write a gtktext replacement using gtkpixmap, what are the easiest ways for. 1) Letting the pixmap receive the focus when the user clicks on the editor. 2) Preventing the focus from leaving the widget on tab or arroy key press. Thanks for your time. Ian King. From skip@real-time.com Mon Jun 11 20:03:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id E288F2E2AF for ; Mon, 11 Jun 2001 20:03:58 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5C02R615454; Mon, 11 Jun 2001 19:02:27 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15141.23570.637244.705725@beluga.mojam.com> Date: Mon, 11 Jun 2001 19:02:26 -0500 To: "David J. Topper" Cc: Jeroen Benckhuijsen , gtk-list@gnome.org Subject: Re: Creating GdkEvents? In-Reply-To: <3B252DF6.D4ED4B2B@virginia.edu> References: <3B252A56.A41BC06F@virginia.edu> <992302732.1367.0.camel@CP102461-A.home.nl> <3B252DF6.D4ED4B2B@virginia.edu> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David> Signals are what I really want. But I'm unable to find a list on David> the Gnome pages. Similarly, the .h files are a bit elusive too David> (eg., gtksignal.h doesn't have them). Try the GtkWidget reference manual page: http://developer.gnome.org/doc/API/2.0/gtk/gtkwidget.html (Scroll down to the Signal Prototypes section.) Most signals are defined by GtkWidget. I believe any that end in "-event" are signals tied to X events. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hoshem@mel.comcen.com.au Mon Jun 11 20:47:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (unknown [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id E32A22BC15 for ; Mon, 11 Jun 2001 20:47:15 -0400 (EDT) Received: from BuffyRox.localdomain (ppp19.angel.comcen.com.au [203.23.238.19]) by relay1-us.simplemente.net (Postfix) with ESMTP id 58EB0D7829 for ; Mon, 11 Jun 2001 20:47:04 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5C0oN802922; Tue, 12 Jun 2001 10:50:23 +1000 Date: Tue, 12 Jun 2001 10:50:22 +1000 From: Helmethead To: Andrej Prsa Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf Message-ID: <20010612105022.A2877@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Andrej Prsa , gtk-list@gnome.org References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si>; from andrej.prsa@guest.arnes.si on Tue, Jun 12, 2001 at 12:52:59AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 12, 2001 at 12:52:59AM +0200, Andrej Prsa wrote: > Hello! > > I'm going nuts with GDK-Pixbuf... I searched all over the net for a small example but failed to find it. The examples I did find utilize gnome.h, which I try to avoid. > > Here's my problem: I have to put simple jpg or gif graphics (with known dimensions, bits, ...) to screen. I tried to do it like this: > > #include > #include > #include > #include "gtk/gtk.h" > #include "gdk-pixbuf/gdk-pixbuf.h" > > int main (int argc, char *argv[]) > { > GtkWidget *window; > GdkPixbuf *image; > GdkPixmap *canvas; > GdkGC *setup; > > gtk_init (&argc, &argv); > > gtk_widget_push_visual (gdk_rgb_get_visual ()); > gtk_widget_push_colormap (gdk_rgb_get_cmap()); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); > gtk_widget_set_usize (window, 600, 600); > gtk_widget_pop_visual (); > gtk_widget_pop_colormap (); > > image = gdk_pixbuf_new_from_file ("test.jpg"); > canvas = gdk_pixmap_new (window->window, 262, 392, 8); window->window doesn't exist yet, so that might be why this is failing. You can just pass NULL for the first argument anyway. From hoshem@mel.comcen.com.au Mon Jun 11 21:18:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp19.angel.comcen.com.au [203.23.238.19]) by mail.gnome.org (Postfix) with ESMTP id D01AA2BF58 for ; Mon, 11 Jun 2001 21:18:54 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5C1V3K03010; Tue, 12 Jun 2001 11:31:03 +1000 Date: Tue, 12 Jun 2001 11:31:03 +1000 From: Helmethead To: Ronald Bultje Cc: GTK Mailing List Subject: Re: is this a Gtk-problem? Message-ID: <20010612113103.B2877@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , GTK Mailing List References: <992285206.1636.4.camel@tux> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <992285206.1636.4.camel@tux>; from rbultje@ronald.bitfreak.net on Mon, Jun 11, 2001 at 08:46:46PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 11, 2001 at 08:46:46PM +0200, Ronald Bultje wrote: > gdb shows no backtrace for this error (because it's not a segfault). And > the program starts up, the window appears for 0,1 second but he doesn't > get the the notice that it got past gtk_widget_show(window) so something > is going wrong in gtk_widget_show(window); - but what? Don't know what the error means here, but you can make the error cause a core dump so you can get a useful backtrace by starting the program with the --g-fatal-warnings switch. From hp@redhat.com Mon Jun 11 22:47:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2B4412BE83 for ; Mon, 11 Jun 2001 22:47:20 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2lFM27582; Mon, 11 Jun 2001 22:47:15 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ken Simpson Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Havoc Pennington Date: 11 Jun 2001 22:47:15 -0400 In-Reply-To: Ken Simpson's message of "Mon, 11 Jun 2001 13:35:18 -0700 (PDT)" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson writes: > I was told that gtk has a mechanism for automatically setting or removing > the focus on widgets in response to events such as keypresses. I think > this mechanism has been enabled somewhere inside Mozilla and is causing > all kinds of focus-related problems with Mozilla plugins. > > Can anyone tell me where I can look in gtk to find this automatic focus > setting code? > I don't really understand the question - do you mean GTK widgets take focus when clicked? That code is per-widget, e.g. GtkEntry will call gtk_widget_grab_focus() if it gets a button click. Or do you mean GTK has support for moving focus via the Tab key, etc.? This is handled initially in the key_press_event default handler in gtkwindow.c and from there moves into the "focus" virtual function/signal on specific sub-containers. Havoc From hp@redhat.com Mon Jun 11 22:53:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 937892DC07 for ; Mon, 11 Jun 2001 22:53:36 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2rYW28329; Mon, 11 Jun 2001 22:53:34 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Andrej Prsa Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> From: Havoc Pennington Date: 11 Jun 2001 22:53:34 -0400 In-Reply-To: Andrej Prsa's message of "Tue, 12 Jun 2001 00:52:59 +0200" Message-ID: Lines: 33 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andrej Prsa writes: > image = gdk_pixbuf_new_from_file ("test.jpg"); > canvas = gdk_pixmap_new (window->window, 262, 392, 8); The "8" argument here is totally bogus, it will only work if your display is 8-bit. If window->window existed (and it doesn't here) you could then pass -1 for the depth to use the one from the window. However in this case you might do: gdk_pixmap_new (NULL, 262, 392, gtk_widget_get_visual (window)->depth); > gdk_pixbuf_render_to_drawable (image, canvas, setup, 0, 0, 0, 0, > 262, 392, GDK_RGB_DITHER_NORMAL, 0, 0); You need to look at the "scribble" example in the GTK tutorial for how to go about displaying the pixbuf. The tutorial is on www.gtk.org. > Gdk-ERROR **: BadMatch (invalid parameter attributes) > serial 59 error_code 8 request_code 147 minor_code 3 > Gdk-ERROR **: BadMatch (invalid parameter attributes) > serial 60 error_code 8 request_code 147 minor_code 3 These are from the depth of 8. In GTK 2, you could just do: image = gtk_image_new_from_file ("test.jpg"); gtk_container_add (GTK_CONTAINER (window), image); So look forward to that. ;-) Havoc From hp@redhat.com Mon Jun 11 22:55:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 762C22DC8C for ; Mon, 11 Jun 2001 22:54:35 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2sX828394; Mon, 11 Jun 2001 22:54:33 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Error running configure for CVS atk References: <3B2550D9.nailODH1UY76R@yggdrasil> From: Havoc Pennington Date: 11 Jun 2001 22:54:33 -0400 In-Reply-To: Ron Steinke's message of "Mon, 11 Jun 2001 16:14:33 -0700" Message-ID: Lines: 7 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Get latest pkg-config from http://www.freedesktop.org/software/, and be sure to re-run autogen.sh. Havoc From hp@redhat.com Mon Jun 11 22:56:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 25C192C9EE for ; Mon, 11 Jun 2001 22:56:32 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2uV928534; Mon, 11 Jun 2001 22:56:31 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> From: Havoc Pennington Date: 11 Jun 2001 22:56:31 -0400 In-Reply-To: "David J. Topper"'s message of "Mon, 11 Jun 2001 16:31:57 -0400" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > I mean a window, they are GtkWindows, not popups. I'm using them to get > parameters for items created on the fly (eg., length, width, height) and > I don't want the "windows" to drop in back when I accidentally move the > mouse off them. > I don't understand why they're moving to the back - is your window manager using focus-follows-mouse and raise-on-focus? Havoc From hp@redhat.com Mon Jun 11 23:01:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id E93252DBBA for ; Mon, 11 Jun 2001 23:01:08 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C316R28967; Mon, 11 Jun 2001 23:01:06 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Pixmaps and focus References: <058e01c0f2d2$bd7c5570$750a000a@naples> From: Havoc Pennington Date: 11 Jun 2001 23:01:06 -0400 In-Reply-To: "Ian King"'s message of "Mon, 11 Jun 2001 17:00:50 -0700" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > If I were to write a gtktext replacement using gtkpixmap, This is a totally weird thing to do, btw. > 1) Letting the pixmap receive the focus when the user clicks on the > editor. Set the GTK_CAN_FOCUS flag, handle focus_in_event and focus_out_event, and gtk_widget_grab_focus() on button click. > 2) Preventing the focus from leaving the widget on tab or arroy key press. Return TRUE from your key_press_event handler when receiving those events. Havoc From zhu_f@yahoo.com Mon Jun 11 23:41:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11504.mail.yahoo.com (web11504.mail.yahoo.com [216.136.172.36]) by mail.gnome.org (Postfix) with SMTP id B10222BD90 for ; Mon, 11 Jun 2001 23:41:10 -0400 (EDT) Message-ID: <20010612034106.42829.qmail@web11504.mail.yahoo.com> Received: from [131.215.103.1] by web11504.mail.yahoo.com; Mon, 11 Jun 2001 20:41:06 PDT Date: Mon, 11 Jun 2001 20:41:06 -0700 (PDT) From: Feng Zhu Subject: list select_child signal problem 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: What is wrong with the following code: (SPWorkSpaceView is the class name and FileSelectChild is a method. _file_list is a Gtk::List) _file_list->select_child.connect(bind(slot(this, &SPWorkSpaceView::FileSelectChild), _file_list, _main_window)); Compiler gives: no matching function for call to `Gtk::List::Proxy_select_child::connect (SigC::Slot0)' /usr/local/include/gtk--/list.h:281: candidates are: SigC::Connection Gtk::List::Proxy_select_child::connect (const SigC::Slot1 &) But for Gtk::tree works fine. Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From kens@ActiveState.com Tue Jun 12 01:07:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id E29CF2E236 for ; Tue, 12 Jun 2001 01:07:02 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C46oA09778; Mon, 11 Jun 2001 21:06:50 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C56oE02379; Mon, 11 Jun 2001 22:06:50 -0700 Date: Mon, 11 Jun 2001 22:06:50 -0700 (PDT) From: Ken Simpson To: Havoc Pennington Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Or do you mean GTK has support for moving focus via the Tab key, etc.? > This is handled initially in the key_press_event default handler in > gtkwindow.c and from there moves into the "focus" virtual > function/signal on specific sub-containers. I apologize if I wasn't clear in my email. The problem is that pressing keys such as the arrow keys, the backspace, and the tab cause my widget to lose focus and for its containing window to gain focus. The key press event first hits my widget and then, once I have returned 0 from the key_press handler, control returns to gtk, the focus is removed, and the event is propagated to the containing window where it is handled. So I suppose it could have something to do with gtk's support for moving the focus with tab, etc.. How does one turn this functionality off? Thanks very much for your help, Havoc. Regards, Ken From kens@ActiveState.com Tue Jun 12 01:13:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id 496752E2BD for ; Tue, 12 Jun 2001 01:13:19 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C4CuA10033; Mon, 11 Jun 2001 21:12:56 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C5Ct702613; Mon, 11 Jun 2001 22:12:55 -0700 Date: Mon, 11 Jun 2001 22:12:55 -0700 (PDT) From: Ken Simpson To: Havoc Pennington Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Or do you mean GTK has support for moving focus via the Tab key, etc.? > This is handled initially in the key_press_event default handler in > gtkwindow.c and from there moves into the "focus" virtual > function/signal on specific sub-containers. Let's try lines 1255+ of gtkwindow.c: case GDK_Up: case GDK_Down: case GDK_Left: case GDK_Right: case GDK_KP_Up: ... gtk_container_focus (GTK_CONTAINER (widget), direction); if (!GTK_CONTAINER (window)->focus_child) gtk_window_set_focus (GTK_WINDOW (widget), NULL); else handled = TRUE; break; } Is this the code which performs automatic focus changing in response to keypresses? It certainly seems to fit the symptoms :) Hmm.. But there doesn't appear any way of "turning it off". TTUL Ken From hp@redhat.com Tue Jun 12 01:44:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 877332C7E9 for ; Tue, 12 Jun 2001 01:44:37 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C5iXf12671; Tue, 12 Jun 2001 01:44:33 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ken Simpson Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Havoc Pennington Date: 12 Jun 2001 01:44:32 -0400 In-Reply-To: Ken Simpson's message of "Mon, 11 Jun 2001 22:12:55 -0700 (PDT)" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson writes: > Is this the code which performs automatic focus changing in response to > keypresses? It certainly seems to fit the symptoms :) > Hmm.. But there doesn't appear any way of "turning it off". > Yep, that's the code. Writing other widget sets is not what GTK is made for, so we don't have an easy way to change this. ;-) That's why Chris was working on Xlib Mozilla for a while I imagine. However you can do a hack to GtkWindow - connect to key_press_event, when you see one of these keys call gtk_signal_emit_stop_by_name to kill the event. Or subclass GtkWindow and override the default signal handler and do something a bit differently there. Should be able to get it working. You could possibly also override set_focus or grab_focus and do some sort of hack. You may well have weird interactions with GtkMozEmbed and apps like Galeon... Havoc From rsteinke@w-link.net Tue Jun 12 01:55:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 08CEC2D2FB for ; Tue, 12 Jun 2001 01:55:20 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159hCt-0001TR-00; Mon, 11 Jun 2001 22:59:15 -0700 Date: Mon, 11 Jun 2001 22:59:15 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Error running configure for CVS atk Cc: gtk-list@gnome.org Message-ID: <3B25AFB3.nail3J91WQY1M@yggdrasil> References: <3B2550D9.nailODH1UY76R@yggdrasil> In-Reply-To: User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks. It seems I was running the sourceforge CVS version of pkg-config, which is old. Ron Steinke From david.robin@st.com Tue Jun 12 02:18:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mail.gnome.org (Postfix) with ESMTP id E66622BCB1 for ; Tue, 12 Jun 2001 02:18:01 -0400 (EDT) Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id B1FE94A53 for ; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id EC8454A74; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: from eux100.sgp.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B19F5184F for ; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: from st.com (fenix.nvg.sgp.st.com [164.129.227.19]) by eux100.sgp.st.com (8.8.6 (PHNE_17190)/8.8.6) with ESMTP id IAA18896 for ; Tue, 12 Jun 2001 08:17:59 +0200 (METDST) Message-ID: <3B25B533.97696368@st.com> Date: Tue, 12 Jun 2001 08:22:43 +0200 From: David Robin X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: PanedBox Bug? References: <20010611233005.1B3A12E29B@mail.gnome.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I Created a H-Paned Box with a notebook in each of the panels with gtk_panel_add. When I hide the left notebook, the left panel goes hidden. But the right notebook doesnot takes the empty space, and the gutter stays visible. Is it the expected behaviour? The behaviour I expected was : when I 'kind of' close one of the panel, the other one fills all the space, and the gutter desappears because it is no more useful. Then, If I show both notebooks again, the gutter reappears, at the same position it used to be. Is this a bug, or do I need to add some code in my app and make it by myself? Thanks, David. From alex@vabank.kiev.ua Tue Jun 12 02:55:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.lucky.net (smtp.lucky.net [193.193.193.117]) by mail.gnome.org (Postfix) with ESMTP id 2105E2BC92 for ; Tue, 12 Jun 2001 02:55:29 -0400 (EDT) Received: from kozlik.carrier.kiev.ua (kozlik.carrier.kiev.ua [193.193.193.111]) by smtp.lucky.net (20001217) with ESMTP id 2D1902C712C for ; Tue, 12 Jun 2001 09:55:24 +0300 (EEST) Received: (from uucp@localhost) by kozlik.carrier.kiev.ua with UUCP id JVG97761 for gtk-list@gnome.org; Tue, 12 Jun 2001 09:55:16 +0300 (EEST) (envelope-from alex@vabank.kiev.ua) Received: from vabank.UUCP (uucp@localhost) by kozlik.carrier.kiev.ua (rmail mypid=97760 childpid=97761) with UUCP; Tue, 12 Jun 2001 06:55:16 +0000 GMT Received: (from alex@localhost) by vabank.kiev.ua (8.9.3/8.9.3) id JAA01298 for gtk-list@gnome.org; Tue, 12 Jun 2001 09:50:50 +0300 Date: Tue, 12 Jun 2001 09:50:50 +0300 From: Alex Biryukov To: gtk-list@gnome.org Subject: refresh window's labels Message-ID: <20010612095050.A1273@queen.vabank.kiev.ua> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Is anybody know how to refresh labels of the main window, after change language of GUI ? I use gettext, and change lang by setting environment variable: setenv("LANGUAGE", "es", 1); /* Make change known. */ { extern int _nl_msg_cat_cntr; ++_nl_msg_cat_cntr; } All of dialog boxes ok, because they created each time. But main window remain in old language. Any idea ? Thanks a lot. Alex From mseisdedos@cirsa.com Tue Jun 12 03:10:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id A7B802BE13 for ; Tue, 12 Jun 2001 03:10:27 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A69.00275AB8; Tue, 12 Jun 2001 09:09:51 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Tue, 12 Jun 2001 09:10:41 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4807@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: gtkclist Date: Tue, 12 Jun 2001 09:10:39 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello everybody: how can i know how many rows are there in a gtkclist???? Is there any conversion macro to get a glist from a gtkclist??? From matt.keenan@ireland.sun.com Tue Jun 12 03:52:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by mail.gnome.org (Postfix) with ESMTP id BDED92DB7E for ; Tue, 12 Jun 2001 03:52:03 -0400 (EDT) Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id AAA09708 for ; Tue, 12 Jun 2001 00:52:01 -0700 (PDT) Received: from ireland.Sun.COM (zaphod [129.156.238.30]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.1p1) with ESMTP id IAA24429 for ; Tue, 12 Jun 2001 08:52:01 +0100 (BST) Message-ID: <3B25C8BE.244572A5@ireland.Sun.COM> Date: Tue, 12 Jun 2001 08:46:06 +0100 From: Matt Keenan Organization: Sun Microsystems Inc X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.9 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: gtkclist References: <01294F3FC12BD41183BD00D0B7176A1D4D4807@srvexch> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Just access the GtkClist widget structure member "rows" and this will tell you how many items there are in the Clist. GtkWidget *CList_Widget; gint rows; row =3D GTK_CLIST(CList_Widget)->rows; You can then loop throught the clist based on the "rows" variable. for (i=3D0; i = > Hello everybody: > how can i know how many rows are there in a gtkclist???? > Is there any conversion macro to get a glist from a gtkclist??? > = > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- = __.--'\ \.__./ /'--.__ _.-' '.__.' '.__.' '-._ .' '. / Matt Keenan (MattMan) \ | CDE, Sun Microsystems Ireland | | GO JAGUARS !! | | E-Mail : Matt.Keenan@ireland.Sun.Com | | mattman@iol.ie | | URL : http://www.iol.ie/~mattman | | Phone : +353 1 8199251, Sun Ext : 19251 | \ .---. .---. / '._ .' '.''. .''.' '. _.' '-./ \ / \.-' '' From otaylor@redhat.com Tue Jun 12 07:42:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id CB88F2D2EC for ; Tue, 12 Jun 2001 07:42:50 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 38D042422D3; Tue, 12 Jun 2001 07:42:50 -0400 (EDT) To: Havoc Pennington Cc: Ken Simpson , , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Owen Taylor Date: 12 Jun 2001 07:42:50 -0400 In-Reply-To: Havoc Pennington's message of "12 Jun 2001 01:44:32 -0400" Message-ID: Lines: 35 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington writes: > Ken Simpson writes: > > Is this the code which performs automatic focus changing in response to > > keypresses? It certainly seems to fit the symptoms :) > > Hmm.. But there doesn't appear any way of "turning it off". > > > > Yep, that's the code. Writing other widget sets is not what GTK is > made for, so we don't have an easy way to change this. ;-) That's why > Chris was working on Xlib Mozilla for a while I imagine. > > However you can do a hack to GtkWindow - connect to key_press_event, > when you see one of these keys call gtk_signal_emit_stop_by_name to > kill the event. Or subclass GtkWindow and override the default signal > handler and do something a bit differently there. Should be able to > get it working. You could possibly also override set_focus or > grab_focus and do some sort of hack. > > You may well have weird interactions with GtkMozEmbed and apps like > Galeon... You shouldn't need anything this complicated, or this likely to break stuff. Widgets are sent key presses before GTK+ checks for focus keys. If the widget handles the key press in its event handler and returns TRUE, then GTK+ will not check for tab/arrows. For instance, this is how GtkText prevents a tab key from tabbing out of the GtkText widget. Regards, Owen From pbd@op.net Tue Jun 12 07:58:05 2001 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 1C10A2BAFB for ; Tue, 12 Jun 2001 07:58:05 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-09.ppp.op.net [209.152.194.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id HAA01694; Tue, 12 Jun 2001 07:57:58 -0400 (EDT) Message-Id: <200106121157.HAA01694@renoir.op.net> To: Ken Simpson Cc: Havoc Pennington , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Mon, 11 Jun 2001 22:06:50 PDT." Date: Tue, 12 Jun 2001 07:59:27 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I apologize if I wasn't clear in my email. The problem is that pressing >keys such as the arrow keys, the backspace, and the tab cause my widget to >lose focus and for its containing window to gain focus. The key press >event first hits my widget and then, once I have returned 0 from the >key_press handler, control returns to gtk, the focus is removed, and the >event is propagated to the containing window where it is handled. > >So I suppose it could have something to do with gtk's support for moving >the focus with tab, etc.. How does one turn this functionality off? you can't turn it off per se. you have two choices: 1) on a per-widget basis, catch key_press/key release events. if they are for one of the navigation keys, do nothing except: gtk_signal_emit_block_by_name (...); return TRUE; 2) install a global key snooper, inspect all key press events, and discard or translate the navigation keys. and yes, i don't like it any more than you do :) --p From pbd@op.net Tue Jun 12 08:00:19 2001 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 1BAFA2DCF5 for ; Tue, 12 Jun 2001 08:00:19 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-09.ppp.op.net [209.152.194.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA01853; Tue, 12 Jun 2001 08:00:12 -0400 (EDT) Message-Id: <200106121200.IAA01853@renoir.op.net> To: Owen Taylor Cc: Havoc Pennington , Ken Simpson , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "12 Jun 2001 07:42:50 EDT." Date: Tue, 12 Jun 2001 08:01:41 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Widgets are sent key presses before GTK+ checks for focus keys. If the >widget handles the key press in its event handler and returns TRUE, >then GTK+ will not check for tab/arrows. Owen, I'm suprised! You must be too used to Gtk 1.3 :) Returning TRUE by itself isn't enough to stop focus navigation under 1.2 ... From sjwillis@one.net Mon Jun 11 16:21:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from us.net (newmail1.one.net [216.23.22.181]) by mail.gnome.org (Postfix) with SMTP id C49DD2CEB7 for ; Mon, 11 Jun 2001 16:21:48 -0400 (EDT) Received: (qmail 29173 invoked by uid 0); 11 Jun 2001 20:21:42 -0000 Received: from unknown (HELO dhcp100) (216.23.55.74) by newmail1.one.net with SMTP; 11 Jun 2001 20:21:42 -0000 Date: Mon, 11 Jun 2001 16:21:40 -0400 (EDT) From: Jim Willis X-Sender: sjwillis@powerbook.jimshouse To: Ira Weiny Cc: gtk-list@gnome.org, linuxppc Subject: Re: gtk font dependancies In-Reply-To: <3B251ADF.E6B9ECF5@acm.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I had the same problem and partially solved it (though i still get the squares every so often, particuallarly when its looking for helvetica. Although, other apps which use helvetica display it just fine. anyway, here's the relevant config file from /etc/X11/fs catalogue = /usr/X11R6/lib/X11/fonts/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/100dpi:unscaled, /usr/X11R6/lib/X11/fonts/75dpi, /usr/X11R6/lib/X11/fonts/100dpi, /usr/share/fonts/default/Type1, /usr/X11R6/lib/X11/fonts/latin2/75dpi, /usr/X11R6/lib/X11/fonts/latin2/100dpi, /usr/X11R6/lib/X11/fonts/truetype, # /usr/X11R6/lib/X11/fonts/tt, /usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled, /usr/X11R6/lib/X11/fonts/local, /usr/X11R6/lib/X11/fonts/CID, /usr/X11R6/lib/X11/fonts/misc:unscaled, /usr/X11R6/lib/X11/fonts/misc, /usr/X11R6/lib/X11/fonts/Type1, /usr/X11R6/lib/X11/fonts/Speedo On Mon, 11 Jun 2001, Ira Weiny wrote: > > I am running linuxppc-2000-Q4 on my Apple Titanium PowerBook. I am > _not_ runnig gnome just straight enlightenment. I have rpm's for > XFree86 installed (4.0.99) version. > > My question is: where does gtk get it's fonts from? (xfs?) I have a > couple of > programs, namely gscanbus and gaim which don't display certian text > correctly. I have messed with xfs and I have _many_ font's installed > but I still get "square" characters in certian dialogs. > > Here is a list of the font packages I have intsalled. > > $ rpm -qa | grep font > ghostscript-fonts-5.50-1 > chkfontpath-1.7-2 > XFree86-ISO8859-2-100dpi-fonts-4.0.99.3-0b > urw-fonts-2.0-4 > XFree86-ISO8859-2-75dpi-fonts-4.0.99.3-0b > tetex-fonts-1.0.6-11a > XFree86-cyrillic-fonts-4.0.99.3-0b > XFree86-100dpi-fonts-4.0.99.3-0b > XFree86-75dpi-fonts-4.0.99.3-0b > XFree86-ISO8859-7-100dpi-fonts-1.0-4 > XFree86-ISO8859-7-75dpi-fonts-1.0-4 > XFree86-ISO8859-7-Type1-fonts-1.0-4 > XFree86-ISO8859-9-100dpi-fonts-2.1.2-10 > XFree86-ISO8859-9-75dpi-fonts-2.1.2-10 > > Thanks in advance, > Ira Weiny > iweiny@acm.org > > ** Sent via the linuxppc-user mail list. See http://lists.linuxppc.org/ > > From andrej.prsa@guest.arnes.si Tue Jun 12 08:21:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id 00E732BCDC for ; Tue, 12 Jun 2001 08:21:28 -0400 (EDT) Received: from arnes.si (ar8-184i.dial-up.arnes.si [194.249.0.184]) by razor.arnes.si (Postfix) with SMTP id B123DE619; Tue, 12 Jun 2001 14:21:03 +0200 (MET DST) Date: Tue, 12 Jun 2001 14:21:49 +0200 From: Andrej Prsa To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf Message-Id: <20010612142149.256b821e.andrej.prsa@guest.arnes.si> In-Reply-To: References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> X-Mailer: Sylpheed version 0.4.66 (GTK+ 1.2.9; i686-pc-linux-gnu) Organization: University of Astrophysics 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thank you very much, everybody! > In GTK 2, you could just do: > image = gtk_image_new_from_file ("test.jpg"); > gtk_container_add (GTK_CONTAINER (window), image); > > So look forward to that. ;-) > I am looking forward to that! In the meantime, since there's been a lot of questions on a working example for Gtk1.2, I'm posting my solution, hoping someone too will find it useful! #include #include #include #include "gtk/gtk.h" #include "gdk-pixbuf/gdk-pixbuf.h" GdkPixmap *picture; static gint expose_event (GtkWidget *widget, GdkEventExpose *event) { gdk_draw_pixmap (widget->window, widget->style->fg_gc[GTK_WIDGET_STATE (widget)], picture, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; } int main (int argc, char *argv[]) { GtkWidget *window; GtkWidget *vbox; GdkPixbuf *image; GdkGC *setup; GtkWidget *drawing_area; gtk_init (&argc, &argv); printf ("\n"); if (gdk_init_check (&argc, &argv) == 1) printf ("Connection to X Server Successful\n"); if (gdk_init_check (&argc, &argv) == 0) printf ("Connection to X Server Failed\n"); printf ("Display: %s\n", gdk_get_display () ); printf ("ScrWidth: %d\n", gdk_screen_width () ); printf ("ScrHeight: %d\n", gdk_screen_height () ); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap()); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); gtk_widget_set_usize (window, 512, 512); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); drawing_area = gtk_drawing_area_new (); gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_area), 512, 512); gtk_box_pack_start (GTK_BOX (vbox), drawing_area, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (drawing_area), "expose_event", (GtkSignalFunc) expose_event, NULL); image = gdk_pixbuf_new_from_file ("test.gif"); picture = gdk_pixmap_new (NULL, 512, 512, gtk_widget_get_visual (drawing_area)->depth); setup = gdk_gc_new (picture); printf ("Visual: %d\n", gtk_widget_get_visual (drawing_area)->depth); printf ("Channels: %d\n", gdk_pixbuf_get_n_channels (image)); printf ("Width: %d\n", gdk_pixbuf_get_width (image)); printf ("Height: %d\n", gdk_pixbuf_get_height (image)); printf ("Alpha: %d\n", gdk_pixbuf_get_has_alpha (image)); printf ("Bits: %d\n", gdk_pixbuf_get_bits_per_sample (image)); printf ("Rowstride: %d\n", gdk_pixbuf_get_rowstride (image)); printf ("\n"); gdk_pixbuf_render_to_drawable (image, picture, setup, 0, 0, 0, 0, 512, 512, GDK_RGB_DITHER_NONE, 0, 0); gdk_draw_pixmap ((GdkDrawable *)drawing_area, setup, picture, 0, 0, 0, 0, 512, 512); gtk_widget_show_all (window); gtk_main(); return (0); } Thanks again! Andrej From andres_giraldo@yahoo.com Tue Jun 12 14:34:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id A57E12DCD4 for ; Tue, 12 Jun 2001 14:34:50 -0400 (EDT) Message-ID: <20010612183449.15578.qmail@web11502.mail.yahoo.com> Received: from [208.221.130.25] by web11502.mail.yahoo.com; Tue, 12 Jun 2001 11:34:49 PDT Date: Tue, 12 Jun 2001 11:34:49 -0700 (PDT) From: "Andrés" Giraldo Subject: drawing_area->window!=NULL 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to create a new widget, this is my init object function: static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; GdkGC *gc; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (newlabel->drawing_area); gc = GetPen (NewColor (0x0000, 0x0000, 0x0000), newlabel->drawing_area->window); } /***************************************************** These functions, returns a GdkGC * color; *****************************************************/ GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } /***************************************************** The Widget structure *****************************************************/ struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; }; /*****************************************************/ Why Gdk returns: Gdk-CRITICAL **: file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed. Gdk-CRITICAL **: file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed. It doesn't work even if I show the newlabel->drawing_area widget or not... Why? Thanks! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From rsteinke@w-link.net Tue Jun 12 15:02:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 9C7752BDDC for ; Tue, 12 Jun 2001 15:02:25 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159tUc-0002c7-00 for ; Tue, 12 Jun 2001 12:06:22 -0700 Date: Tue, 12 Jun 2001 12:06:21 -0700 To: gtk-list@gnome.org Subject: _() macro? Message-ID: <3B26682D.nail7R111CG7S@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm seeing a lot of elements like: _("some string") in function calls. Is _() a macro? What does it do? Ron Steinke From wolfgang@contre.com Tue Jun 12 15:06:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cogito.cam.org (cogito.cam.org [198.168.100.2]) by mail.gnome.org (Postfix) with ESMTP id 8CA5D2E38A for ; Tue, 12 Jun 2001 15:06:45 -0400 (EDT) Received: from usrh-5-3.hip.cam.org (root@usrh-5-3.hip.cam.org [204.19.188.3]) by cogito.cam.org (8.11.0/8.11.0.Beta1) with ESMTP id f5CJ6hu26123 for ; Tue, 12 Jun 2001 15:06:43 -0400 Received: from debian.home (wolfgang@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5CJ6f0F006224 for ; Tue, 12 Jun 2001 15:06:42 -0400 Date: Tue, 12 Jun 2001 15:06:41 -0400 Message-ID: <8566e1o6v2.wl@debian.home> From: Wolfgang Sourdeau To: gtk-list@gnome.org Subject: Re: _() macro? Mail-Followup-To: Ron Steinke , gtk-list@gnome.org Mail-Reply-To: wolfgang@contre.com In-Reply-To: <3B26682D.nail7R111CG7S@yggdrasil> References: <3B26682D.nail7R111CG7S@yggdrasil> User-Agent: Wanderlust/2.5.8 (Smooth) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.0.103 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Ron" == Ron Steinke writes: > I'm seeing a lot of elements like: > _("some string") > in function calls. Is _() a macro? What does it do? It either calls gettext with the string as a parameter so that the program uses the translated strings. Otherwise (if i18n is not enabled during compilation) it just returns the same string. W. From kens@ActiveState.com Tue Jun 12 15:06:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id D28702BD01 for ; Tue, 12 Jun 2001 15:06:50 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5CI6ZA18096; Tue, 12 Jun 2001 11:06:35 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5CJ6YT13680; Tue, 12 Jun 2001 12:06:34 -0700 Date: Tue, 12 Jun 2001 12:06:34 -0700 (PDT) From: Ken Simpson To: Owen Taylor Cc: Havoc Pennington , , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Widgets are sent key presses before GTK+ checks for focus keys. If the > widget handles the key press in its event handler and returns TRUE, > then GTK+ will not check for tab/arrows. > > For instance, this is how GtkText prevents a tab key from tabbing out > of the GtkText widget. Hrm.. I guess the problem with Mozilla is that I need the keypress event to live on for a little while so that Mozilla can grab it. I can't just kill all the navigation keys -- Mozilla needs them so that it can farm them out to its command system. i.e., the order of operations should be: 1. Mozilla grabs ALL gdk events and processes them in its own handler (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) 2. Events are then farmed out to the widget from which they originated (an nsWindow pointer is stored in the user data of the event's any.window object). 3. The widget's key_press handler returns 0 for any keypress which is not something simple, like [A-Za-z0-9_-+] etc.. 4. (hopefully) The key_press event travels up the window hierarchy to the main Mozilla window, where it is ground through the Mozilla keybinding system and produces some result. The event then should _die_. The problem is that, between stages 3 and 4, gtk intercepts the key press and changes the focus. Yuck. I don't think the fix here is going to be easy... Ideas?? TTUL Ken -- New! ASPN - ActiveState Programmer Network Essential programming tools and information http://www.ActiveState.com/ASPN From andres_giraldo@yahoo.com Tue Jun 12 15:35:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11508.mail.yahoo.com (web11508.mail.yahoo.com [216.136.172.40]) by mail.gnome.org (Postfix) with SMTP id C3F962BB41 for ; Tue, 12 Jun 2001 15:35:45 -0400 (EDT) Message-ID: <20010612193544.53122.qmail@web11508.mail.yahoo.com> Received: from [208.221.130.25] by web11508.mail.yahoo.com; Tue, 12 Jun 2001 12:35:44 PDT Date: Tue, 12 Jun 2001 12:35:44 -0700 (PDT) From: "Andrés" Giraldo Subject: Re: drawing_area->window != NULL To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks for your help... Ok I've got it! The window is not realized yet, so I put the drawing code in the expose_event function, but... It only works if I connect the expose event signal to the drawing_area member, not if I connect it to the entire structure... why? This is using the entire structure (That's how I want it). It doesn't work... /*****************************************************/ typedef struct _GtkNewLabel GtkNewLabel; struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; }; static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (GTK_WIDGET (newlabel)); gtk_signal_connect(GTK_OBJECT (newlabel), "expose_event", GTK_SIGNAL_FUNC (on_gtk_newlabel_expose_event), &newlabel); } void on_gtk_newlabel_expose_event (GtkNewLabel *newlabel) { GdkGC *gc_back, *gc_fore; GdkDrawable *drawable; drawable = newlabel->drawing_area->window; gc_back = GetPen (NewColor (newlabel->back_red, newlabel->back_green, newlabel->back_blue), drawable); } GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } /*****************************************************/ And this is using the drawing_area member, It Works... static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (newlabel->drawing_area); gtk_signal_connect(GTK_OBJECT (newlabel->drawing_area), "expose_event", GTK_SIGNAL_FUNC (on_gtk_newlabel_expose_event), NULL); } void on_gtk_newlabel_expose_event (gpointer data) { GdkGC *gc_back, *gc_fore; GdkDrawable *drawable = GTK_WIDGET(data)->window; drawable = newlabel->drawing_area->window; gc_back = GetPen (NewColor (newlabel->back_red, newlabel->back_green, newlabel->back_blue), drawable); } So... what I'm doing wrong? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From pbd@op.net Tue Jun 12 15:36:56 2001 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 51FDF2DE46 for ; Tue, 12 Jun 2001 15:36:56 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-0e.ppp.op.net [209.152.206.14]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA17743; Tue, 12 Jun 2001 15:36:47 -0400 (EDT) Message-Id: <200106121936.PAA17743@renoir.op.net> To: Ken Simpson Cc: Owen Taylor , Havoc Pennington , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Tue, 12 Jun 2001 12:06:34 PDT." Date: Tue, 12 Jun 2001 15:38:21 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >i.e., the order of operations should be: > >1. Mozilla grabs ALL gdk events and processes them in its own handler > (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) > >2. Events are then farmed out to the widget from which they > originated (an nsWindow pointer is stored in the user data of the > event's any.window object). > >3. The widget's key_press handler returns 0 for any keypress which is not > something simple, like [A-Za-z0-9_-+] etc.. > >4. (hopefully) The key_press event travels up the window hierarchy to the > main Mozilla window, where it is ground through the Mozilla keybinding > system and produces some result. The event then should _die_. > >The problem is that, between stages 3 and 4, gtk intercepts the key press >and changes the focus. Yuck. I don't think the fix here is going to be >easy... use a key snooper instead of an event handler. --p From rwan@cs.mu.oz.au Tue Jun 12 23:02:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 4E2BD2E0CC for ; Tue, 12 Jun 2001 23:01:59 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id NAA10716 for ; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 0ADD275AA; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 0918AAC94 for ; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Date: Wed, 13 Jun 2001 13:01:54 +1000 (EST) From: Raymond Wan To: gtk-list@gnome.org Subject: Argument passing / 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, My GTK+ program is getting fairly large and until now, I've had one big global variable structure that has all the information I need. I was wondering if there is an alternative to this. The program I'm having seems to be in the call back functions, which I don't seem to entirely understand. For example, in a call back function such as this: void closeChildWindow (GtkWidget *widget, gpointer data) I've been passing ints from my program using GPOINTER_TO_INT and GINT_TO_POINTER. But, can I pass anything else, such as a C pointer to a structure or can I pass more than one argument? If so, how would I do this? Also, a separate question...does anyone know of a GTKTextView example (GTK 1.3) that is slightly more involved than the HTML GTK Reference under the section Text Widget Overview? Possibly using tags, marks, and iterators? Thank you! Ray From blizzard@redhat.com Tue Jun 12 15:37:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from face.0xdeadbeef.com (unknown [206.40.163.63]) by mail.gnome.org (Postfix) with ESMTP id 85B162D2C8 for ; Tue, 12 Jun 2001 15:37:57 -0400 (EDT) Received: from redhat.com (face.0xdeadbeef.com [127.0.0.1]) by face.0xdeadbeef.com (8.11.2/8.11.2) with ESMTP id f5CJbA628103; Tue, 12 Jun 2001 15:37:10 -0400 Message-ID: <3B266F66.3030500@redhat.com> Date: Tue, 12 Jun 2001 15:37:10 -0400 From: Christopher Blizzard User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2smp i686; en-US; rv:0.9.1+) Gecko/20010608 X-Accept-Language: en-us MIME-Version: 1.0 To: Ken Simpson Cc: Owen Taylor , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson wrote: >>Widgets are sent key presses before GTK+ checks for focus keys. If the >>widget handles the key press in its event handler and returns TRUE, >>then GTK+ will not check for tab/arrows. >> >>For instance, this is how GtkText prevents a tab key from tabbing out >>of the GtkText widget. >> > > Hrm.. I guess the problem with Mozilla is that I need the keypress event > to live on for a little while so that Mozilla can grab it. I can't just > kill all the navigation keys -- Mozilla needs them so that it can farm > them out to its command system. > > i.e., the order of operations should be: > > 1. Mozilla grabs ALL gdk events and processes them in its own handler > (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) > > 2. Events are then farmed out to the widget from which they > originated (an nsWindow pointer is stored in the user data of the > event's any.window object). > > 3. The widget's key_press handler returns 0 for any keypress which is not > something simple, like [A-Za-z0-9_-+] etc.. > > 4. (hopefully) The key_press event travels up the window hierarchy to the > main Mozilla window, where it is ground through the Mozilla keybinding > system and produces some result. The event then should _die_. > > The problem is that, between stages 3 and 4, gtk intercepts the key press > and changes the focus. Yuck. I don't think the fix here is going to be > easy... > > Ideas?? What is it that intercepts the key presses? Is it the gtkwindow class that is being used by the mozbox? Or is it being farmed all the way up to the toplevel? We might need to override the keypress handler for the mozbox class so that the default gtkwindow handler doesn't change focus on you like it sounds like is happening. --Chris From pbd@op.net Tue Jun 12 23:35:53 2001 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 7304F2E0B3 for ; Tue, 12 Jun 2001 23:35:53 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-29.ppp.op.net [209.152.206.41]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA23426; Tue, 12 Jun 2001 23:35:46 -0400 (EDT) Message-Id: <200106130335.XAA23426@renoir.op.net> To: Christopher Blizzard Cc: Ken Simpson , Owen Taylor , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Tue, 12 Jun 2001 15:37:10 EDT." <3B266F66.3030500@redhat.com> Date: Tue, 12 Jun 2001 23:37:25 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>Widgets are sent key presses before GTK+ checks for focus keys. If the >>>widget handles the key press in its event handler and returns TRUE, >>>then GTK+ will not check for tab/arrows. not true in GTK+ 1.2. you have to stop the signal emission as well. in GTK+ 1.2, the default handler is run regardless of the return status of other connected handlers. the docs for GTK+ 1.2 do not make this particularly clear. i believe that in GTK+ 1.3/2.0, this is no longer true, and things work the way the docs tend to suggest. its the default handler for key press events in a GtkWindow that controls the movement of focus between widgets in that window. the handler is executed unless you block the emission in the widget that currently has focus (i.e. the one that the window directs the events to). as i've mentioned, i find it easier to do all this stuff using a key snooper, which allows you to completely bypass all of GTK+'s builtin key handling. --p From otaylor@redhat.com Tue Jun 12 23:53:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 6DB6A2BEE0 for ; Tue, 12 Jun 2001 23:53:45 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 0D36C2422FE; Tue, 12 Jun 2001 23:53:44 -0400 (EDT) To: Paul Davis Cc: Christopher Blizzard , Ken Simpson , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: <200106130335.XAA23426@renoir.op.net> From: Owen Taylor Date: 12 Jun 2001 23:53:44 -0400 In-Reply-To: Paul Davis's message of "Tue, 12 Jun 2001 23:37:25 -0400" Message-ID: Lines: 80 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >>>Widgets are sent key presses before GTK+ checks for focus keys. If the > >>>widget handles the key press in its event handler and returns TRUE, > >>>then GTK+ will not check for tab/arrows. > > not true in GTK+ 1.2. you have to stop the signal emission as well. > > in GTK+ 1.2, the default handler is run regardless of the return > status of other connected handlers. the docs for GTK+ 1.2 do not make > this particularly clear. i believe that in GTK+ 1.3/2.0, this is no > longer true, and things work the way the docs tend to suggest. In this case, what was being discussed was the return value of the default handler, so stopping emission isn't necessary - if someone connects another signal handler using gtk_signal_connect_after() they mean to override the return value. > its the default handler for key press events in a GtkWindow that > controls the movement of focus between widgets in that window. the > handler is executed unless you block the emission in the widget that > currently has focus (i.e. the one that the window directs the events > to). This isn't quite right. In GTK+-1.2 - for every time a signal is run, up to three things may happen: 1) signal handlers run 2) the default handler runs 3) Signal handlers connected with gtk_signal_connect_after run. The return value from the signal is the return value from the last of these; so if 1) returns TRUE meaning "handled", 2) will still be run and override this unless gtk_signal_emit_stop_by_name() is called. In GTK+-2 a TRUE return immediately stops emission. However - this all only applies to a SINGLE signal emission - even in 1.2, if the result of sending the widget to the focus widget is TRUE, no further handling will be done. http://people.redhat.com/otaylor/tmp/key-handling.eps is a diagram of key handling in GTK+-1.2 which may help (or may further confuse) > as i've mentioned, i find it easier to do all this stuff using a key > snooper, which allows you to completely bypass all of GTK+'s builtin key handling is quite complicated enough without getting key snoopers involved! The idea of key snoopers was to handle hotkeys that would work in any window - like the hotkey to invoke the GLE widget tree debugger. If you have a particular GtkWindow, a connection to "key_press_event" on the toplevel already allows you to override all key handling behavior. Regards, Owen [ Actually the situation with Komodo is rather more complicated again - having GTK+ widgets inside mozilla is basically two inter-toolkit widget embeddings. GtkWindow Mozilla content area GtkMozBox holding GTK+ widgets (GtkMozBox derives from GtkWindow!) ] From ishamael@themes.org Wed Jun 13 01:33:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alpha.techcare.com (unknown [207.89.153.66]) by mail.gnome.org (Postfix) with SMTP id 233602CC93 for ; Wed, 13 Jun 2001 01:33:18 -0400 (EDT) Received: (qmail 19830 invoked from network); 13 Jun 2001 03:59:21 -0000 Received: from pm538-38.dialip.mich.net (HELO orodruin) (@198.108.161.96) by alpha.techcare.com with SMTP; 13 Jun 2001 03:59:21 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Charlie Schmidt" To: gtk-list@gnome.org Subject: Re: Argument passing / GTKTextView X-Mailer: Pronto v2.2.6 On linux/mysql Date: 13 Jun 2001 01:05:40 EDT Reply-To: "Charlie Schmidt" In-Reply-To: References: Message-Id: <20010613053318.233602CC93@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: - you can either use gtk_object_set_data() on the widget, to set associate a key string with a gpointer data element: gtk_object_set_data(GTK_OBJECT(widget),"struct",structure); then in the callback: structure = gtk_object_get_data(GTK_OBJECT(widget),"struct"); or pass a structure containing everything (gints,other structs, etc) From: Raymond Wan Subject: Argument passing / GTKTextView Date: Wed, 13 Jun 2001 13:01:54 +1000 (EST) > > Hi all, > > My GTK+ program is getting fairly large and until now, I've had > one big global variable structure that has all the information I need. I > was wondering if there is an alternative to this. > > The program I'm having seems to be in the call back functions, > which I don't seem to entirely understand. For example, in a call back > function such as this: > > void closeChildWindow (GtkWidget *widget, gpointer data) > > I've been passing ints from my program using GPOINTER_TO_INT and > GINT_TO_POINTER. But, can I pass anything else, such as a C pointer to a > structure or can I pass more than one argument? If so, how would I do > this? > > Also, a separate question...does anyone know of a GTKTextView > example (GTK 1.3) that is slightly more involved than the HTML GTK > Reference under the section Text Widget Overview? Possibly using tags, > marks, and iterators? > > Thank you! > > Ray > > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > -- Charlie Schmidt - From inodal@teleline.es Wed Jun 13 06:18:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id D0F302C9FE for ; Wed, 13 Jun 2001 06:18:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEV5VN03.V0O for ; Wed, 13 Jun 2001 12:16:35 +0200 Message-ID: <3B272F81.70EB1B7@teleline.es> Date: Wed, 13 Jun 2001 11:16:49 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: how to hide discrete toggle button not hidding the button completely (button->draw_indicator hide it completely) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to hide the discrete toggle button from a check button? I have add a pixmap to the button "gtk_container_add(GTK_CONTAINER(_boolean_button), _pixmap);" This pixmap changes its GdkPixmap according to the _boolean_button->active value (TRUE or FALSE), so I don't need the discrete toggle button's visual reference any more. Thanks, Ignacio Nodal From john.cupitt@ng-london.org.uk Wed Jun 13 07:49:43 2001 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 C05392DC63 for ; Wed, 13 Jun 2001 07:49:42 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNPC8; Wed, 13 Jun 2001 12:49:40 +0100 Message-ID: <3B27520B.B3902381@ng-london.org.uk> Date: Wed, 13 Jun 2001 12:44:11 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Raymond Wan Cc: gtk-list@gnome.org Subject: Re: Argument passing / GTKTextView 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Raymond Wan wrote: > My GTK+ program is getting fairly large and until now, I've had > one big global variable structure that has all the information I need. I > was wondering if there is an alternative to this. Hi Raymond, there are lots of ways to fix this. One of the easiest is to have a struct for every window you pop up. Allocate and fill the struct when you make one of the windows, pass the address of the struct to every callback from widgets in that window, and destroy the struct when the window is destroyed. Something like (untested, I just typed this in): struct Wombat { GtkWidget *window; GtkWidget *label; GtkWidget *button; int my_data; } static void wombat_clicked( GtkWidget *button, Wombat *wom ) { wom->my_data += 1; } static void wombat_destroy( GtkWidget *window, Wombat *wom ) { printf( "you've had %d wombats\n", wom->my_data ); g_free( wom ); } Wombat * wombat_new( void ) { Wombat *wom = g_new( Wombat, 1 ); wom->window = gtk_window_new( ... wom->button = gtk_button_new( ...etc. gtk_signal_connect( GTK_OBJECT( wom->button ), "clicked", GTK_SIGNAL_FUNC( wombat_click ), wom ); gtk_signal_connect( GTK_OBJECT( wom->window ), "destroy", GTK_SIGNAL_FUNC( wombat_destroy ), wom ); gtk_widget_show( wom->window ); } Next up, you could make your own widgets: there's a section in the tutorial about this: http://www.gtk.org/tutorial/sec-creatingacompositewidget.html This lets you group widgets together, and have them operate as one chunk. You can make your application as a big set of widgets which contain other widgets. It's easier then it sounds. Finally, you can go model/view, and split your app into things which model your data (but do no display), and widgets which hold no information themselves, but just give a view of the stuff in the model widgets. This is very nice and flexible, but harder work. HTH, John From charlet@ACT-Europe.FR Wed Jun 13 09:16:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dublin.ACT-Europe.FR (dublin.act-europe.fr [213.228.58.154]) by mail.gnome.org (Postfix) with ESMTP id EBD112DE86 for ; Wed, 13 Jun 2001 09:16:41 -0400 (EDT) Received: by dublin.ACT-Europe.FR (Postfix, from userid 525) id 419D65F640; Wed, 13 Jun 2001 14:45:56 +0200 (MET DST) Date: Wed, 13 Jun 2001 14:45:56 +0200 From: Arnaud Charlet To: gtk-list@gnome.org Subject: ANNOUNCE: GtkAda 1.2.12 Message-ID: <20010613144556.B20867@dublin.int.act-europe.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: GtkAda 1.2.12 release --------------------- We are happy to announce the availability of GtkAda 1.2.12. GtkAda is an Ada95 graphical toolkit based on Gtk+ version >= 1.2.2. It allows you to develop graphical applications in Ada95 using Gtk+. The primary download site is http://libre.act-europe.fr/GtkAda New features in 1.2.12 include - Version needed by GVD 1.2.0 - Update to GtkExtra 0.99.14, including a new 3D Plot widget. - The GtkAda.Canvas now provides zooming capabilities. It also draws curve links with Bezier splines instead of circles. For efficiency, the items in the canvas are no longer double-buffered. Use Buffered_Items if you want to keep the old behavior. Button_Press events are reported when an item is pressed and the event wasn't used to move the item around. - New function: Gtk.Widget.Set_Parent_Window. - Documentation updates Arnaud Charlet, for the GtkAda team From jedwards@inmet.gov.br Wed Jun 13 09:36:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from challenge.inmet.gov.br (unknown [200.252.242.89]) by mail.gnome.org (Postfix) with ESMTP id 892A22DEB4; Wed, 13 Jun 2001 09:36:48 -0400 (EDT) Received: from inmet.gov.br (localhost [127.0.0.1]) by challenge.inmet.gov.br (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id KAA06146; Wed, 13 Jun 2001 10:36:46 -0300 (EST) Message-ID: <3B276C6E.93918402@inmet.gov.br> Date: Wed, 13 Jun 2001 13:36:46 +0000 From: Jim Edwards X-Mailer: Mozilla 4.73C-SGI [en] (X11; U; IRIX64 6.5 IP25) X-Accept-Language: en MIME-Version: 1.0 To: gtk , gtk-perl Cc: glade Subject: human language support 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I´ve been lurking here and working with glade/gtk+ for a short while now and have a couple of questions: 1. Can someone point me to an example of, or document about, how to build a gtk+ gui with multi-language support. 2. I have an application in C with no gui and one in perl with a perl/Tk gui. I want to combine the two with a gtk+ gui - I have some experience with perl XS so I have an idea of what I´m getting into, but i wonder if anyone has tried to write callbacks in perl from a gtk+ mostly in C. It seems like that would be the right place to cross languages, but maybe some of what glade calls interface calls should also be done from perl? Thanks, Jim From flo.scandella@aon.at Wed Jun 13 03:31:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viemta06.chello.at (viemta06.chello.at [195.34.133.56]) by mail.gnome.org (Postfix) with ESMTP id 2243A2BDE2 for ; Wed, 13 Jun 2001 03:31:28 -0400 (EDT) Received: from spellcaster.tafelritter.org ([62.178.75.196]) by viemta06.chello.at (InterMail vK.4.03.02.00 201-232-124 license 6aea1bd1f01aef5a9a73363c16ebee43) with ESMTP id <20010613073126.LQMA6087.viemta06@spellcaster.tafelritter.org> for ; Wed, 13 Jun 2001 09:31:26 +0200 Subject: gtk-main From: Florian Scandella To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 13 Jun 2001 09:39:47 +0200 Message-Id: <992417987.1179.0.camel@Spellcaster> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi ! Is there a possibility to close the resources allocatet by gtk-main, without exiting the program ( gtk-exit ) ? It's not much ( 104 bytes ) but i hate it to have memory leaks in my programs :-) Another question : Can i call gtk_init twice ? thanx, flo From Roberto@libero.it Wed Jun 13 05:41:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mail.gnome.org (Postfix) with ESMTP id CA6CC2BA99 for ; Wed, 13 Jun 2001 05:41:12 -0400 (EDT) Received: from libero.it (151.25.51.251) by smtp1.libero.it (5.5.025) id 3AE980E700AA52D6 for gtk-list@gnome.org; Wed, 13 Jun 2001 11:41:11 +0200 Message-ID: <3B27356F.4070608@libero.it> Date: Wed, 13 Jun 2001 11:42:07 +0200 From: Roberto User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.18pre21 i686; en-US; rv:0.9; Debian/GNU) Gecko/20010520 X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: The size of a widget. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I know the size of a widget? Have you a little little example? Thank you Roberto From igurnebli@users.sourceforge.net Wed Jun 13 07:31:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dukas.upc.es (dukas.upc.es [147.83.2.62]) by mail.gnome.org (Postfix) with ESMTP id 2908F2E3A4 for ; Wed, 13 Jun 2001 07:31:16 -0400 (EDT) Received: from amadeus.upc.es (amadeus.upc.es [147.83.76.2]) by dukas.upc.es (8.10.1/8.10.1) with ESMTP id f5DBQ9201783 for ; Wed, 13 Jun 2001 13:26:10 +0200 (MET DST) Received: from morera.upc.es (morera.upc.es [147.83.76.38]) by amadeus.upc.es (8.9.1b+Sun/8.9.3) with ESMTP id NAA23657 for ; Wed, 13 Jun 2001 13:22:50 +0200 (MET DST) Subject: GL widget to ship with GTK From: Jordi Rovira i Bonet To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 13 Jun 2001 13:32:29 +0200 Message-Id: <992432041.3989.0.camel@morera> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I think it would be a good thing if the GtkGLArea widget shipped with the default GTK distribution, as in my oppinion, it has been tested a lot and is very used. I suppose that this is not the first time someone suggests this, but i haven't seen any discussion before about it. J From charlet@ACT-Europe.FR Wed Jun 13 10:05:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dublin.ACT-Europe.FR (dublin.act-europe.fr [213.228.58.154]) by mail.gnome.org (Postfix) with ESMTP id C6D812E3F0 for ; Wed, 13 Jun 2001 10:05:14 -0400 (EDT) Received: by dublin.ACT-Europe.FR (Postfix, from userid 525) id 58DC05F5F6; Wed, 13 Jun 2001 16:02:40 +0200 (MET DST) Date: Wed, 13 Jun 2001 16:02:40 +0200 From: Arnaud Charlet To: gtk-list@gnome.org Subject: [ANNOUNCE] Release 1.2.0 of the GNU Visual Debugger Message-ID: <20010613160240.B25371@dublin.int.act-europe.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: We are pleased to announce the availability of GVD, the GNU Visual Debugger, a general purpose graphical debugger front-end licensed under the GNU General Public License. Besides providing all the features of other debugger GUIs, GVD includes advanced data display and visualization capabilities. Furthermore, GVD allows the debugging of multi-process/multi-threaded applications in the same debugging session. GVD works with native as well as cross debuggers and can handle several languages in the same debugging session and the same application. Currently Ada, C and C++ are supported. GVD can run on a host different from the machine where the debugger is running and provides friendly support for cross-debuggers (VxWorks, Lynx, etc.). For instance, you can use Linux or Windows to debug an application running on a Power PC board with a debugger running on a Sun workstation. To build GVD we are using the GtkAda GUI technology. GVD comes with all the GtkAda benefits such as a pluggable look-and-feel, a set of very high-level widgets and the ability to have the same look-and-feel on all of your platforms. You can dowload GVD (sources and binaries for GNU/Linux x86, Solaris sparc and x86, Windows NT/2000, DEC Unix/Tru64, HP-UX, UnixWare, IRIX, AiX) and get more information at http://libre.act-europe.fr New features in GVD 1.2.0: - Under Windows, the special pathnames //cygdrive/x/ and //x/ are now recognized and converted into appropriate names. - The File->New Debugger dialog now provides the ability to replace the current debugger by default. - The "run" and "start" buttons now set automatically the name of the module under VxWorks. - The File->Attach Process menu now lists the tasks on the target when using Tornado VxWorks. - The --target option now allows multiple ':' characters so that you can specify machine:1234 as the machine (& port number). See the documentation for more details. - The file corresponding to the main procedure is now displayed when loading an Ada executable (rather than the procedure containing the elaboration calls). - The data window is now zoomable - The breakpoint editor has been enhanced, and can now set advanced properties like ignore_count, commands to execute when reaching the breakpoint, or conditions to activate the breakpoint - The handling of commands has been improved and is more reliable. Caching of commands has also been put in place giving better user feedback on slow machines. - New item in the source editor contextual menu: display dereferenced variable - New item in the source editor contextual menu: break on subprogram - The option "break on exceptions" has been implemented - It is possible to delete an exception by pressing the 'Delete' key in the Breakpoints Window. - The Tab key is now supported in the debugger window. If you are interested in participating in the GVD development, do not hesitate to contact us (mailto:gvd-devel@lists.act-europe.fr) Arnaud Charlet From hp@redhat.com Wed Jun 13 10:28:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 433232CA4E; Wed, 13 Jun 2001 10:28:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5DEUxK04825; Wed, 13 Jun 2001 10:30:59 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Jim Edwards Cc: gtk , gtk-perl , glade Subject: Re: human language support References: <3B276C6E.93918402@inmet.gov.br> From: Havoc Pennington Date: 13 Jun 2001 10:30:59 -0400 In-Reply-To: Jim Edwards's message of "Wed, 13 Jun 2001 13:36:46 +0000" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jim Edwards writes:=20 > 1. Can someone point me to an example of, or document about, how to > build a gtk+ gui with multi-language support. Just read the gettext info pages, GTK works the same as a non-GUI program basically. >=20 > 2. I have an application in C with no gui and one in perl with a perl/Tk > gui. I want to combine the two with a gtk+ gui - I have some experience > with perl XS so I have an idea of what I=B4m getting into, but i wonder if > anyone has tried to write callbacks in perl from a gtk+ mostly in C. > It seems like that would be the right place to cross languages, but > maybe some of what glade calls interface calls should also be done from > perl? I don't know about that one. ;-) Havoc From andres_giraldo@yahoo.com Wed Jun 13 13:39:23 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id 895972E102 for ; Wed, 13 Jun 2001 13:39:22 -0400 (EDT) Message-ID: <20010613173921.22186.qmail@web11502.mail.yahoo.com> Received: from [208.221.130.25] by web11502.mail.yahoo.com; Wed, 13 Jun 2001 10:39:21 PDT Date: Wed, 13 Jun 2001 10:39:21 -0700 (PDT) From: "Andrés" Giraldo Subject: Callbacks and Signals works with Classes? To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to create a class, this class defines a button, on it's clicked signal it calls a callback function that I want to put in the private part of the class, but it returns me... no matches converting function `on_button_clicked' to type `void (*) ()' clases.h:400: candidates are: void myclass::on_button_clicked () The problem is; GTK_SIGNAL_FUNC is type void (*), and my function is void... How can I call a funciton in the same class? class myclass { private: void on_button_clicked () { } public: ... gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), NULL); }; GTK Works with C++... am I right? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From pbd@op.net Wed Jun 13 14:12:43 2001 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 9BF112DD26 for ; Wed, 13 Jun 2001 14:12:42 -0400 (EDT) Received: from someip.ppp.op.net (d-bm5-01.ppp.op.net [209.152.194.193]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA28212; Wed, 13 Jun 2001 14:12:39 -0400 (EDT) Message-Id: <200106131812.OAA28212@renoir.op.net> To: "Andr s" Giraldo Cc: Gtk List Subject: Re: Callbacks and Signals works with Classes? In-reply-to: Your message of "Wed, 13 Jun 2001 10:39:21 PDT." <20010613173921.22186.qmail@web11502.mail.yahoo.com> Date: Wed, 13 Jun 2001 14:14:26 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >no matches converting function `on_button_clicked' >to type `void (*) ()' >clases.h:400: candidates are: void >myclass::on_button_clicked this is member function. C++ member functions are not, and never have been, interchangeable with regular C functions. this is a common confusion among relatively new C++ programmers (i suffered from it myself many years ago). to do what you want you need: class myclass { static void on_button_clicked (myclass *); }; gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this); the "static" keyword makes the member function into something equivalent to a regular C function. or better yet, use Gtk-- (though many people don't agree with me on that). --p From inodal@teleline.es Wed Jun 13 14:26:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id D69532D99E for ; Wed, 13 Jun 2001 14:26:18 -0400 (EDT) Received: from PIII500 ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with SMTP id GEVSGO02.OBP; Wed, 13 Jun 2001 20:24:24 +0200 Message-ID: <000701c0f436$1b58f540$0a01a8c0@PIII500> From: "Ignacio Nodal" To: =?iso-8859-1?Q?Andr=E9s_Giraldo?= Cc: "GTK-List" References: <20010613173921.22186.qmail@web11502.mail.yahoo.com> Subject: RE: Callbacks and Signals works with Classes? Date: Wed, 13 Jun 2001 19:24:23 +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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Andrés Giraldo To: Gtk List Sent: Wednesday, June 13, 2001 6:39 PM Subject: Callbacks and Signals works with Classes? > Hi! > > I'm trying to create a class, this class defines a > button, on it's clicked signal it calls a callback > function that I want to put in the private part of the > class, but it returns me... > > no matches converting function `on_button_clicked' > to type `void (*) ()' > clases.h:400: candidates are: void > myclass::on_button_clicked > () > GTK Works with C++... am I right? > Yeah, there is a wrapper called GTK-- written completely in C++, but GTK works fine by itself wit C++. I use to work with GTK & C++. The problem must have something to do with puting the function in the private part, because I use lots of callbacks in the classes I've created without problems. My callbacks are all in the public part, though. I cannot try now puting my functions in the private part and make them work. I'm not on linux at this moment, sorry. Regards, Ignacio Nodal From inodal@teleline.es Wed Jun 13 14:36:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp2.teleline.es (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id F0BB82E427 for ; Wed, 13 Jun 2001 14:36:34 -0400 (EDT) Received: from PIII500 ([213.97.141.171]) by tsmtppp2.teleline.es (Netscape Messaging Server 4.1) with SMTP id GEVSTT06.9J1 for ; Wed, 13 Jun 2001 20:32:17 +0200 Message-ID: <001101c0f437$356405a0$0a01a8c0@PIII500> From: "Ignacio Nodal" To: "GTK-List" References: <200106131812.OAA28212@renoir.op.net> Subject: RE: Callbacks and Signals works with Classes? Date: Wed, 13 Jun 2001 19:32:24 +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Paul Davis > this is member function. C++ member functions are not, and never have > been, interchangeable with regular C functions. this is a common > confusion among relatively new C++ programmers (i suffered from it > myself many years ago). Hey! Where was this email 2minutes ago when I sent mine?? ;))) So... I've been suffering this confusion also... > the "static" keyword makes the member function into something > equivalent to a regular C function. I've been using static callbacks all the time and thereby I haven't noticed the problem. Learning something new every day... ;) See you From andres_giraldo@yahoo.com Wed Jun 13 15:00:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11504.mail.yahoo.com (web11504.mail.yahoo.com [216.136.172.36]) by mail.gnome.org (Postfix) with SMTP id B5F6A2DE9A for ; Wed, 13 Jun 2001 15:00:49 -0400 (EDT) Message-ID: <20010613190048.47055.qmail@web11504.mail.yahoo.com> Received: from [208.221.130.25] by web11504.mail.yahoo.com; Wed, 13 Jun 2001 12:00:48 PDT Date: Wed, 13 Jun 2001 12:00:48 -0700 (PDT) From: "Andrés" Giraldo Subject: Re: Callbacks and Signals works with Classes? To: Gtk List In-Reply-To: <200106131812.OAA28212@renoir.op.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, thanks, but how I supposed to make request to the class members? I mean, I need the signal connect in the public part of the class, and the callback in the private class myclass { private: static void on_button_clicked (myclass *); public: gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this); }; So, if I declare a parameter for my callback function of type myclass *xxx; it returns that: xxx is of non-aggregate type `myclass *' and if I declare it as myclass xxx, its members values are different from reality I also tried putting this clausule in the connect signal function, but is the same if I put NULL in place, so what's still wrong? Thanks for your help! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From otaylor@redhat.com Wed Jun 13 15:06:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AE4802DB68 for ; Wed, 13 Jun 2001 15:06:24 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 507F6242312; Wed, 13 Jun 2001 15:06:24 -0400 (EDT) To: David Robin Cc: gtk-list@gnome.org Subject: Re: PanedBox Bug? References: <20010611233005.1B3A12E29B@mail.gnome.org> <3B25B533.97696368@st.com> From: Owen Taylor Date: 13 Jun 2001 15:06:24 -0400 In-Reply-To: David Robin's message of "Tue, 12 Jun 2001 08:22:43 +0200" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David Robin writes: > I Created a H-Paned Box with a notebook in each of the panels with gtk_panel_add. > When I hide the left notebook, the left panel goes hidden. But the right notebook doesnot takes the empty space, and the gutter stays visible. Is it the expected > behaviour? > The behaviour I expected was : when I 'kind of' close one of the panel, the other one fills all the space, and the gutter desappears because it is no more useful. > Then, If I show both notebooks again, the gutter reappears, at the same position it used to be. > > Is this a bug, or do I need to add some code in my app and make it by myself? Not really a bug, but a missing feature. (Present in the devel branch.) You'll need restructure your widgets instead of hiding one. (Keep an extra reference to the notebooks with gtk_object_ref() so the don't get destroyed when you remove them, remove them from the paned, add the notebook you want back.) Regards, Owen From donna@omartin.com Wed Jun 13 15:09:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from taka.swcp.com (taka.swcp.com [198.59.115.12]) by mail.gnome.org (Postfix) with ESMTP id 37DE42E450 for ; Wed, 13 Jun 2001 15:09:12 -0400 (EDT) Received: from diamond (1Cust34.tnt4.albuquerque.nm.da.uu.net [63.20.119.34]) by taka.swcp.com (8.10.0.Beta12/8.10.0.Beta12) with SMTP id f5DJBkg01014 for ; Wed, 13 Jun 2001 13:11:46 -0600 (MDT) Message-ID: <001e01c0f43c$424afe40$1400a8c0@diamond> Reply-To: "Donna Martin" From: "Donna Martin" To: References: <20010612193544.53122.qmail@web11508.mail.yahoo.com> Subject: Re: drawing_area->window != NULL Date: Wed, 13 Jun 2001 13:08:33 -0600 Organization: O'Martin Enterprises, Inc. 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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Your expose_event handler is of the wrong prototype. If you look at the RDP for GtkWidget you'll see the correct prototype: "expose-event" gboolean user_function (GtkWidget *widget, GdkEventExpose *event, gpointer user_data); The first field is supplied by GTK+ and is the widget causing the function to be invoked. Your data comes through the third field... In your second (working) piece of code, you attach the signal to the drawing area widget. When on_gtk_newlabel_expose_event is invoked, GTK+ Kindly supplies the widget that caused the function to be invoked as the first argument (i.e. your drawing area received an expose event). Your data would appear in the third parameter (which you don't have). So, by coincidence, it works when you send the same info that GTK+ is supplying :-) In looking back through the archives (because I'm behind and wanted to be sure no one else already answered this...) it looks as though Esteban Quijano Vincenzi addressed this quite well in his response to your newbie question on Monday.... It also looks like you're making great strides each day, so perhaps you already figured all this out! HTH, Donna ----- Original Message ----- From: "Andrés Giraldo" To: "Gtk List" Sent: Tuesday, June 12, 2001 1:35 PM Subject: Re: drawing_area->window != NULL > Thanks for your help... > > Ok I've got it! The window is not realized yet, so I > put the drawing code in the expose_event function, > but... > > It only works if I connect the expose event signal to > the drawing_area member, not if I connect it to the > entire structure... why? > > This is using the entire structure (That's how I want > it). It doesn't work... > > > /*****************************************************/ > > typedef struct _GtkNewLabel GtkNewLabel; > > struct _GtkNewLabel > { > GtkVBox vbox; > > GtkWidget *drawing_area; > }; > > static void gtk_newlabel_init (GtkNewLabel *newlabel) > { > GtkWidget *table; > > table = gtk_table_new (1, 1, TRUE); > gtk_container_add (GTK_CONTAINER (newlabel), > table); > gtk_widget_show (table); > > newlabel->drawing_area = gtk_drawing_area_new (); > gtk_table_attach_defaults (GTK_TABLE(table), > newlabel->drawing_area, 0, 1, 0, 1); > > gtk_widget_show (GTK_WIDGET (newlabel)); > > gtk_signal_connect(GTK_OBJECT (newlabel), > "expose_event", > GTK_SIGNAL_FUNC > (on_gtk_newlabel_expose_event), &newlabel); > } > > void on_gtk_newlabel_expose_event (GtkNewLabel > *newlabel) > { > GdkGC *gc_back, *gc_fore; > GdkDrawable *drawable; > > drawable = newlabel->drawing_area->window; > > gc_back = GetPen (NewColor (newlabel->back_red, > newlabel->back_green, > newlabel->back_blue), > drawable); > } > > > GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) > { > GdkGC *gc; > > gc = gdk_gc_new (drawable); > > gdk_gc_set_foreground (gc, c); > > return (gc); > } > > GdkColor *NewColor (long red, long green, long blue) > { > GdkColor *c = (GdkColor *) g_malloc (sizeof > (GdkColor)); > > c->red = red; > c->green = green; > c->blue = blue; > > gdk_color_alloc (gdk_colormap_get_system (), c); > > return (c); > } > > /*****************************************************/ > > And this is using the drawing_area member, It Works... > > > > static void gtk_newlabel_init (GtkNewLabel *newlabel) > { > GtkWidget *table; > > table = gtk_table_new (1, 1, TRUE); > gtk_container_add (GTK_CONTAINER (newlabel), > table); > gtk_widget_show (table); > > newlabel->drawing_area = gtk_drawing_area_new (); > gtk_table_attach_defaults (GTK_TABLE(table), > newlabel->drawing_area, 0, 1, 0, 1); > > gtk_widget_show (newlabel->drawing_area); > > gtk_signal_connect(GTK_OBJECT > (newlabel->drawing_area), "expose_event", > GTK_SIGNAL_FUNC > (on_gtk_newlabel_expose_event), NULL); > } > > void on_gtk_newlabel_expose_event (gpointer data) > { > GdkGC *gc_back, *gc_fore; > GdkDrawable *drawable = GTK_WIDGET(data)->window; > > drawable = newlabel->drawing_area->window; > > gc_back = GetPen (NewColor (newlabel->back_red, > newlabel->back_green, > newlabel->back_blue), > drawable); > } > > So... what I'm doing wrong? > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From rwalden@tripos.com Wed Jun 13 16:09:38 2001 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 400CB2BD8A for ; Wed, 13 Jun 2001 16:09:37 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA07204 for ; Wed, 13 Jun 2001 15:09:36 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma005689; Wed, 13 Jun 01 14:58:00 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id OAA50097; Wed, 13 Jun 2001 14:57:58 -0500 (CDT) Message-ID: <3B27C5C6.26891A9D@tripos.com> Date: Wed, 13 Jun 2001 14:57:58 -0500 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: pygtk , gtk-list@gnome.org Subject: Raising and lowering windows 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear List, It is possible to minimize (iconfiy) and restore windows programmatically in GTK? [for the pygtk list] Is this supported by pygtk? How? Thank you, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From kyi111@dreamwiz.com Wed Jun 13 22:54:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx-s0.dreamwiz.com (mx-s0.dreamwiz.com [211.174.54.135]) by mail.gnome.org (Postfix) with ESMTP id 761BE2BECF for ; Wed, 13 Jun 2001 22:54:17 -0400 (EDT) Received: from mail11.dreamwiz.com (mail11.dreamwiz.com [211.174.54.31]) by mx-s0.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5E2sFY86140 for ; Thu, 14 Jun 2001 11:54:15 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by mail11.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5E2s7c57363 for ; Thu, 14 Jun 2001 11:54:07 +0900 (KST) Message-Id: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> Date: Thu, 14 Jun 2001 11:54:07 +0900 (KST) From: =?EUC-KR?B?sei/68DPKHlvbmcgaWwua2ltKQ==?= Subject: glibconfig not find To: gtk-list@gnome.org Organization: X-Sender-IP: 211.219.11.9 X-Sender-ID: kyi111@dreamwiz.com X-Priority: 3 X-Mailer: DreamWiz Web-Mailer V1.31 X-DreamWiz-Data: receive_check=1;save=mail11.dreamwiz.com:kyi111:Sent:211; MIME-Version: 1.0 Content-Type: MULTIPART/ALTERNATIVE; BOUNDARY="0-1973929785-992487247=:57360" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --0-1973929785-992487247=:57360 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h please inform me ------------------------------------------------- DreamWiz Free Mail @ http://www.dreamwiz.com/ DreamSearch Click the world!!! http://search.dreamwiz.com/ --0-1973929785-992487247=:57360 Content-Type: TEXT/HTML; CHARSET=US-ASCII
please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message

usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h

please inform me




Your life on the net

DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!!  http://search.dreamwiz.com/


--0-1973929785-992487247=:57360-- From rodrigo@gnome-db.org Thu Jun 14 06:39:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from zubiri.gnome-db.org (100-MAD2-X33.libre.retevision.es [62.83.129.100]) by mail.gnome.org (Postfix) with ESMTP id 9300C2BDBB for ; Thu, 14 Jun 2001 06:39:38 -0400 (EDT) Received: from rodrigo by zubiri.gnome-db.org with local (Exim 3.22 #1 (Debian)) id 15AUWs-0000AR-00; Thu, 14 Jun 2001 12:39:10 +0200 Subject: Re: glibconfig not find From: Rodrigo Moya To: =?UTF-8?Q?=EA=B9=80=EC=9A=A9=EC=9D=BC=28yong?= "il.kim)" Cc: gtk-list@gnome.org In-Reply-To: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> References: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.10.99 (Preview Release) Date: 14 Jun 2001 12:39:09 +0200 Message-Id: <992515149.597.1.camel@zubiri> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 14 Jun 2001 11:54:07 +0900, =EA=B9=80=EC=9A=A9=EC=9D=BC(yong il.kim) wro= te: > please help me!! I am beginner GTK+ programming. when i compiled sample c= ode(hello.c), there are error message >=20 > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h >=20 when compiling, you must pass to gcc the output of: glib-config --cflags so: gcc -o my_program `glib-config --cflags` my_program.c cheers -- Rodrigo Moya http://www.gnome-db.org/ From john.cupitt@ng-london.org.uk Thu Jun 14 06:48:50 2001 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 14B5D2E58A for ; Thu, 14 Jun 2001 06:48:50 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNQQK; Thu, 14 Jun 2001 11:48:46 +0100 Message-ID: <3B289544.85433A20@ng-london.org.uk> Date: Thu, 14 Jun 2001 11:43:16 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?=B1=E8=BF=EB=C0=CF?= (yong il.kim) Cc: gtk-list@gnome.org Subject: Re: glibconfig not find References: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ąčżëŔĎ(yong il.kim) wrote: > please help me!! I am beginner GTK+ programming. when i compiled > sample code(hello.c), there are error message > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h Hello, is this the example from the tutorial? http://www.gtk.org/tutorial/ch-gettingstarted.html If that doesn't work, you probably have not installed gtk correctly. John From terop@fanta.modeemi.cs.tut.fi Wed Jun 13 16:45:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fanta.modeemi.cs.tut.fi (fanta.modeemi.cs.tut.fi [130.230.72.135]) by mail.gnome.org (Postfix) with ESMTP id 224052D45C for ; Wed, 13 Jun 2001 16:45:46 -0400 (EDT) Received: by fanta.modeemi.cs.tut.fi id XAA0000028796; Wed, 13 Jun 2001 23:45:30 +0300 (EET DST) To: "Andrés" Giraldo Cc: Gtk List Subject: Re: Callbacks and Signals works with Classes? References: <20010613190048.47055.qmail@web11504.mail.yahoo.com> From: Tero Pulkkinen Date: 13 Jun 2001 23:45:30 +0300 In-Reply-To: "Andrés" Giraldo's message of "Wed, 13 Jun 2001 12:00:48 -0700 (PDT)" Message-ID: Lines: 25 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Andrés" Giraldo writes: > Ok, thanks, but how I supposed to make request to the > class members? GtkObject has these methods called gtk_object_set_data() gtk_object_get_data() which lets you store additional pointers to the widget. This is how you can store a pointer of your C++ class to a widget and the connected callbacks can use the c++ methods. Like this: // init: GtkWidget *widget = gtk_button_new("test"); gtk_object_set_data(GTK_OBJECT(widget), "mycppobject", this); // callback: static void callback(GtkWidget *w) { MyCpp *obj = (MyCpp*)gtk_object_get_data(GTK_OBJECT(w), "mycppobject"); obj->DoIt(); } -- -- Tero Pulkkinen From skip@real-time.com Thu Jun 14 12:16:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 9270B2E54B for ; Thu, 14 Jun 2001 12:16:20 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5EGGDS00667; Thu, 14 Jun 2001 11:16:13 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15144.58187.954945.827693@beluga.mojam.com> Date: Thu, 14 Jun 2001 11:16:11 -0500 To: gtk-list@gnome.org Subject: version of libtool? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I notice that a couple gtk-related packages (gtk and pango) now require libtool 1.4. Others (atk 0.1 and glib) use their own versions. Will this create problems? How soon with those packages that install their own dump them in favor of libtool 1.4? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From otaylor@redhat.com Thu Jun 14 12:32:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0200D2DEB8 for ; Thu, 14 Jun 2001 12:32:18 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id A2144242313; Thu, 14 Jun 2001 12:32:17 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: version of libtool? References: <15144.58187.954945.827693@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 12:32:17 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 11:16:11 -0500" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I notice that a couple gtk-related packages (gtk and pango) now require > libtool 1.4. Others (atk 0.1 and glib) use their own versions. Will this > create problems? How soon with those packages that install their own dump > them in favor of libtool 1.4? Everything requires libtool 1.4 now. I'm not sure why you don't see this as being the case. Regards, Owen From skip@real-time.com Thu Jun 14 12:40:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 3E1AC2E645 for ; Thu, 14 Jun 2001 12:40:39 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5EGeVj23959; Thu, 14 Jun 2001 11:40:31 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15144.59647.117922.380294@beluga.mojam.com> Date: Thu, 14 Jun 2001 11:40:31 -0500 To: Owen Taylor Cc: gtk-list@gnome.org Subject: Re: version of libtool? In-Reply-To: References: <15144.58187.954945.827693@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen> Everything requires libtool 1.4 now. I'm not sure why you don't Owen> see this as being the case. glib's configure didn't seem to complain. No matter. I zapped the libtool rpm and installed libtool 1.4. FYI, it appears "make distclean" doesn't delete the various libtool-related symlinks the build process puts in the build directory or the various generated Makefile.in files. Is there some more brutal make target I should be using to get back to ground zero build-wise? Skip From otaylor@redhat.com Thu Jun 14 14:06:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EA63F2CEDC for ; Thu, 14 Jun 2001 14:06:44 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 9AF87242313; Thu, 14 Jun 2001 14:06:44 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: version of libtool? References: <15144.58187.954945.827693@beluga.mojam.com> <15144.59647.117922.380294@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 14:06:44 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 11:40:31 -0500" Message-ID: Lines: 29 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > Owen> Everything requires libtool 1.4 now. I'm not sure why you don't > Owen> see this as being the case. > > glib's configure didn't seem to complain. No matter. I zapped the libtool > rpm and installed libtool 1.4. If you are installing from CVS, you should always run autogen.sh every time you update. autogen.sh has the checks and complaints. If you are installing from tarballs, the version of libtool you have installed shouldn't matter. > FYI, it appears "make distclean" doesn't delete the various libtool-related > symlinks the build process puts in the build directory or the various > generated Makefile.in files. Is there some more brutal make target I should > be using to get back to ground zero build-wise? 'make maintainer-clear', though most of the time, the GTK+ developers would just blow away their checked out copy and get a fresh one from CVS if things got that screwed up. So it's not really tested, and problems may be revealed if you run it. Regards, Owen From dneary@eircom.net Thu Jun 14 14:07:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from brockman.tinet.ie (mail1.tinet.ie [159.134.237.20]) by mail.gnome.org (Postfix) with ESMTP id 702C92E6B3 for ; Thu, 14 Jun 2001 14:07:49 -0400 (EDT) Received: from p2.as2.prp.dublin.eircom.net ([159.134.170.2] helo=localhost.localdomain) by brockman.tinet.ie with esmtp (Exim 2.05 #23) id 15AbX2-0003A8-00; Thu, 14 Jun 2001 19:07:48 +0100 Received: (from dave@localhost) by localhost.localdomain (8.9.3/8.9.3) id WAA01143; Wed, 13 Jun 2001 22:53:50 +0100 Date: Wed, 13 Jun 2001 22:53:50 +0100 From: Dave Neary To: Roberto Cc: gtk-list@gnome.org Subject: Re: The size of a widget. Message-ID: <20010613225350.A944@eircom.net> References: <3B27356F.4070608@libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B27356F.4070608@libero.it>; from Roberto@libero.it on Wed, Jun 13, 2001 at 11:42:07AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Jun 13, 2001 at 11:42:07AM +0200, Roberto wrote: > How can I know the size of a widget? > Have you a little little example? There are two answers to this - he size, in memory, of a widget is given by sizeof(GtkWidget), and the dimensions of a widget are available in GtkWidget.allocation.(width|height). Cheers, Dave. -- .------------------------------. / David Neary, \ | E-Mail dneary@eircom.net | \ Phone +353-1-872-0654 / `------------------------------' From sarregui@cicese.mx Thu Jun 14 14:55:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 766392DF38 for ; Thu, 14 Jun 2001 14:55:13 -0400 (EDT) Received: from sismo.cicese.mx (sismo.cicese.mx [158.97.28.56]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f5EItBf21271 for ; Thu, 14 Jun 2001 11:55:11 -0700 (PDT) Received: from cicese.mx (pc-resnor.cicese.mx [158.97.30.133]) by sismo.cicese.mx (8.9.3+Sun/8.9.1) with ESMTP id LAA14256 for ; Thu, 14 Jun 2001 11:55:10 -0700 (PDT) Message-ID: <3B290901.53E9B9AE@cicese.mx> Date: Thu, 14 Jun 2001 11:57:05 -0700 From: Sergio Arregui Ojeda X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.18-rtl i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-List Subject: Realtime plot 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello. i'm new to this list and my question is this: i have to develop a system that has to plot data that is acquired trhough the serial port, i have done most of this part using the realtime plot demo that comes with extragtk, but i have a problem because it's a lot of data and my machine gets very busy while plotting, i think that this is 'cause the data does not get released, instead it keeps it in memory, and i want to know if theres is a way that this data can be freed (or deallocated) so this way it speed up things. I also have made another application that plots data in realtime that comes faster, and i have a problem when i try to plot more than one station (obviously the data comes from different station) because of the same problem. i'm new to programming in gtk, and this are the very first applications that i have made, so please anyone can help me? thank you -- Sergio Arregui Ojeda Departamento de Sismologia CICESE Tel (6) 174 50 50 ext 26524 From lestat.lioncourt@innocent.com Thu Jun 14 16:03:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-1-81.abo.wanadoo.fr [193.251.41.81]) by mail.gnome.org (Postfix) with ESMTP id DE3472CE82 for ; Thu, 14 Jun 2001 16:03:29 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 92BB1C0DE; Thu, 14 Jun 2001 22:03:31 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Thu, 14 Jun 2001 20:03:31 +0000 From: "David Goncalves" To: Cc: Subject: Re: glibconfig not find MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010614200331.92BB1C0DE@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h > > please inform me Just try to find the file 'glibconfig.h' in your disk and copy it to '/usr/include' From otaylor@redhat.com Thu Jun 14 16:16:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 412E82DF37 for ; Thu, 14 Jun 2001 16:16:44 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id DC3E5242313; Thu, 14 Jun 2001 16:16:43 -0400 (EDT) To: "David Goncalves" Cc: , Subject: Re: glibconfig not find References: <20010614200331.92BB1C0DE@transylvania> From: Owen Taylor Date: 14 Jun 2001 16:16:43 -0400 In-Reply-To: "David Goncalves"'s message of "Thu, 14 Jun 2001 20:03:31 +0000" Message-ID: Lines: 22 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David Goncalves" writes: > > please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message > > > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h > > > > please inform me > > Just try to find the file 'glibconfig.h' in your disk and copy it > to '/usr/include' Don't do this. *Please* What will happen, is that when you upgrade your GLib the old glibconfig will be left behind, and GLib will never work properly again. Use the glib-config script, as described in the FAQ. Regards, Owen From hp@redhat.com Thu Jun 14 16:17:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 511CB2E59F; Thu, 14 Jun 2001 16:17:23 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5EKHKc08634; Thu, 14 Jun 2001 16:17:20 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: gnome-announce-list@gnome.org, gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: New release of GTK+ libraries (1.3.6) From: Havoc Pennington Date: 14 Jun 2001 16:17:20 -0400 Message-ID: Lines: 171 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A new release of the development versions of GTK+ and associated libraries (GLib, Pango, Atk) is available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ The JPEG/PNG/TIFF libraries and pkg-config 0.7 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.7 version you need to build GTK 1.3.6) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://clisp.cons.org/~haible/packages-libiconv.html New all-in-one tarball ===== This release has an experimental all-in-one-tarball feature. The gtk+-all-1.3.6.tar.gz file contains all four GTK+ libraries (GLib, Pango, Atk, GTK+) and can be compiled with a single "configure; make; make install" sequence. Library Descriptions ===== GLib 1.3.6 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. http://www.gtk.org Pango 0.17 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. http://www.pango.org Atk 0.1 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. http://developer.gnome.org/projects/gap/ GTK+ 1.3.6 GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. http://www.gtk.org Notes ===== This release is meant for: * Those interested in the development of GTK+. * People planning to port to the upcoming GTK+-2.0 version of GTK+. Note: the API is mostly frozen at this point. Major API changes beyond the remaining open '2.0 API freeze' bugs in bugzilla are unlikely to occur before GTK+-2.0 is released. This is a an unstable preview release and should not be used in production. Only minimal testing has been done, and we expect that significant bugs and portability problems remain at this point. 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. 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 Source and binary packages of these libraries build against Red Hat 7.1 can be found at: ftp://ftp.gtk.org/pub/gtk/v1.3/binary/RedHat-7.1 The source RPMS can most likely be rebuilt and installed on other RPM-based Linux distributions. Overview of Changes in GLib 1.3.6 ================================= * Threads have a "return value" from g_thread_join * Removed ability to adjust thread stack size * Prefix warnings with progname/PID by default, change toggle for this to be an env variable G_MESSAGES_PREFIXED not a compile-time option * GMarkup speedups * GDate const, convenience fixups * Include test cases that headers are compilable by C++ compiler * Add ability to spawn processes with argv[0] != executable path. * g_strstr_len, g_strrstr, g_strrstr_len * Add length argument to g_utf8_strchr and g_utf8_strrchr. * Misc bug fixes Overview of Changes in Pango 0.17 ================================= * Build/bug fixes * Cursor motion is now by graphemes (logical editing units) rather than by characters * Optionally support jumping cursor instead of split cursor Overview of Changes in Atk 0.2 ================================= * Some API tweaks Overview of Changes in GTK+ 1.3.6 ================================= * Properly renders strikethrough text * win32 fixes * Added "scale" property to GtkTextTag and GtkCellRendererText to do relative font scaling * Added "format_value" signal to GtkScale to reformat value text * framebuffer fixes * Property support added to lots of widgets * Many GtkTreeView new features and API/implementation fixes * Lots of new_with_mnemonic() convenience functions * Change GtkImageMenuItem API to be more consistent/useful * Added lots of new stock items/icons * Rewrote GtkRange/GtkScale/GtkScrollbar, includes support for enabling/disabling extra scrollbar stepper arrows in gtkrc so NeXT themes won't need broken hacks * Convenience API for GtkRange similar to the one added to GtkSpinButton a while back * Make menubar/toolbar work properly with xthickness/ythickness of 1 or 0, and move some attributes from program settings to user settings. Allows nice 1-pixel-bevel themes. * Moved ::focus virtual function from GtkContainer to GtkWidget * Plenty of bug fixes From rsteinke@w-link.net Thu Jun 14 17:08:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 18B852DC1E for ; Thu, 14 Jun 2001 17:08:25 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15AePv-0001QX-00 for ; Thu, 14 Jun 2001 14:12:39 -0700 Date: Thu, 14 Jun 2001 14:12:39 -0700 To: gtk-list@gnome.org Subject: alpha channel in GdkPixbuf Message-ID: <3B2928C7.nail4891KSBC3@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to extract the alpha channel information from a GdkPixbuf (for example, writing it to an array or a grayscale pixmap)? Ron Steinke From rsteinke@w-link.net Thu Jun 14 17:10:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 4C7992E702 for ; Thu, 14 Jun 2001 17:10:22 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15AeRo-0001R1-00 for ; Thu, 14 Jun 2001 14:14:36 -0700 Date: Thu, 14 Jun 2001 14:14:36 -0700 To: gtk-list@gnome.org Subject: [set][get]_property Message-ID: <3B29293C.nail48P1VFB2V@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >From examining the code, it looks like the [set,get]_property functions of GObject (and its descendents) only handle the properties of the object itself and not those of its ancestors. Is this true, and if so is there a reason for this? Ron Steinke From skip@real-time.com Thu Jun 14 17:21:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id B86CB2CC91 for ; Thu, 14 Jun 2001 17:21:06 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5ELKH629842; Thu, 14 Jun 2001 16:20:17 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15145.10895.215061.466398@beluga.mojam.com> Date: Thu, 14 Jun 2001 16:20:15 -0500 To: gtk-list@gnome.org Subject: trouble with pango build - incorrect -I flags X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib and atk built and installed okay, but after a successful autogen.sh in the pango directory "make CFLAGS=-g" says: make all-recursive make[1]: Entering directory `/home/skip/src/gtk/pango.cvs' Making all in pango make[2]: Entering directory `/home/skip/src/gtk/pango.cvs/pango' make all-recursive make[3]: Entering directory `/home/skip/src/gtk/pango.cvs/pango' Making all in mini-fribidi make[4]: Entering directory `/home/skip/src/gtk/pango.cvs/pango/mini-fribidi' source='fribidi_get_type.c' object='fribidi_get_type.lo' libtool=yes \ depfile='.deps/fribidi_get_type.Plo' tmpdepfile='.deps/fribidi_get_type.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I../.. -g -c -o fribidi_get_type.lo `test -f fribidi_get_type.c || echo './'`fribidi_get_type.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I../.. -g -c fribidi_get_type.c -MT fribidi_get_type.lo -MF .deps/fribidi_get_type.TPlo -MD -MP -fPIC -DPIC -o fribidi_get_type.o fribidi_get_type.c:26:18: glib.h: No such file or directory In file included from fribidi_get_type.c:27: ../../pango/pango-utils.h:23:18: glib.h: No such file or directory In file included from ../../pango/pango-font.h:29, from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-coverage.h:25:18: glib.h: No such file or directory In file included from ../../pango/pango-font.h:30, from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-types.h:25:18: glib.h: No such file or directory In file included from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-font.h:32:25: glib-object.h: No such file or directory In file included from fribidi_get_type.c:28: fribidi_types.h:27:18: glib.h: No such file or directory make[4]: *** [fribidi_get_type.lo] Error 1 make[4]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango/mini-fribidi' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/skip/src/gtk/pango.cvs' make: *** [all] Error 2 Is the pango build not using pkg-config? I just installed 0.7 and it seems to do the right things: beluga:skip% type -a pkg-config pkg-config is /usr/local/bin/pkg-config beluga:skip% pkg-config --version 0.7.0 beluga:skip% pkg-config --cflags glib-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include beluga:skip% pkg-config --cflags pango -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include The -I flags on the compile line don't look even remotely correct. There's no mention at all of /usr/local/include/glib-2.0. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From otaylor@redhat.com Thu Jun 14 17:31:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 447672BCB6 for ; Thu, 14 Jun 2001 17:31:29 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EC2A92422AD; Thu, 14 Jun 2001 17:31:28 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags References: <15145.10895.215061.466398@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 17:31:28 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 16:20:15 -0500" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib > and atk built and installed okay, but after a successful autogen.sh in the > pango directory "make CFLAGS=-g" says: ^^^^^^^^^^^^^^ > ../../pango/pango-utils.h:23:18: glib.h: No such file or directory This is your problem. 'CFLAGS="-g" ./autogen.sh' would be better, if you actually want to disable optimization... "-g" is in the default cflags, so the effect of this is to remove -O2. Setting CFLAGS while compiling will have undetermined effects, and it happens to include the glib include flags. It's not completely intentional to have things set up this way - it could probably be improved. But I don't necessarily expect setting CFLAGS at 'make' time to work. Regards, Owen From otaylor@redhat.com Thu Jun 14 17:33:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0BF992E705 for ; Thu, 14 Jun 2001 17:33:11 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id BE52B2422AD; Thu, 14 Jun 2001 17:33:10 -0400 (EDT) To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: [set][get]_property References: <3B29293C.nail48P1VFB2V@yggdrasil> From: Owen Taylor Date: 14 Jun 2001 17:33:10 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:14:36 -0700" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > >From examining the code, it looks like the [set,get]_property > functions of GObject (and its descendents) only handle the > properties of the object itself and not those of its > ancestors. Is this true, and if so is there a reason for this? Well, it would be a real pain if the code for gtkcheckbutton.c had to duplicate all the property setting/getting code for ToggleButton, Button, Widget, GtkObject, GObject.... In fact, many of those property setting calls probably are using private parts of the widget implementation which are not available to external code. I'm not sure if I'm quite answering your question, however... Regards, Owen From otaylor@redhat.com Thu Jun 14 17:35:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 417302E705 for ; Thu, 14 Jun 2001 17:35:22 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EE0152422AD; Thu, 14 Jun 2001 17:35:21 -0400 (EDT) To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: alpha channel in GdkPixbuf References: <3B2928C7.nail4891KSBC3@yggdrasil> From: Owen Taylor Date: 14 Jun 2001 17:35:21 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:12:39 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Is there any way to extract the alpha channel information from > a GdkPixbuf (for example, writing it to an array or a grayscale > pixmap)? The bytes of a GdkPixbuf are available as: guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf); The alpha value at x,y is: pixels[rowstride * y + x * 4 + 3]; Regards, Owen From hp@redhat.com Thu Jun 14 17:43:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5EC182E711 for ; Thu, 14 Jun 2001 17:43:54 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELhnF19819; Thu, 14 Jun 2001 17:43:49 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: alpha channel in GdkPixbuf References: <3B2928C7.nail4891KSBC3@yggdrasil> From: Havoc Pennington Date: 14 Jun 2001 17:43:49 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:12:39 -0700" Message-ID: Lines: 37 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Is there any way to extract the alpha channel information from > a GdkPixbuf (for example, writing it to an array or a grayscale > pixmap)? > You just iterate over the pixels in the pixbuf. They are arranged like so for a pixbuf with alpha: RGBA RGBA RGBA RGBA RGBA RGBA RGBA PPP | rowstride | | width | like so for one without: RGB RGB RGB RGB RGB RGB RGB RGB RGB PP | rowstride | | width | Each letter is a byte, R = red G = green B = blue A = alpha channel P = padding (rowstride - width bytes of padding at the end of each line, it's possible that rowstride == width if so then no pad bytes are present) So the red channel at row, column is something like: pixels[(row * rowstride) + column * bytes_per_pixel] Where a pixel is an RGB or RGBA group. Havoc From hp@redhat.com Thu Jun 14 17:45:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 43CBB2E71C for ; Thu, 14 Jun 2001 17:45:30 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELjPs19822; Thu, 14 Jun 2001 17:45:25 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: [set][get]_property References: <3B29293C.nail48P1VFB2V@yggdrasil> From: Havoc Pennington Date: 14 Jun 2001 17:45:25 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:14:36 -0700" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > >From examining the code, it looks like the [set,get]_property > functions of GObject (and its descendents) only handle the > properties of the object itself and not those of its > ancestors. Is this true, and if so is there a reason for this? > Sure, to avoid cut-and-paste - every widget subclass shouldn't have to handle the properties of GtkWidget, and chaining up would be kind of expensive since all the subclass set_property would do nothing. So set/get property aren't virtual functions in the normal sense. Havoc From hp@redhat.com Thu Jun 14 17:47:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 01B6C2E673 for ; Thu, 14 Jun 2001 17:47:34 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELlVc20905; Thu, 14 Jun 2001 17:47:31 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags References: <15145.10895.215061.466398@beluga.mojam.com> From: Havoc Pennington Date: 14 Jun 2001 17:47:31 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 16:20:15 -0500" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib > and atk built and installed okay, but after a successful autogen.sh in the > pango directory "make CFLAGS=-g" says: The default CFLAGS are: CFLAGS = -g -O2 -Wall -I/unst/include/glib-2.0 -I/unst/lib/glib-2.0/include You changed them to "-g" So don't do that then ;-) Havoc From king@eiffel.com Thu Jun 14 20:29:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 094682BBBA for ; Thu, 14 Jun 2001 20:29:51 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15AhUi-0001a5-00 for gtk-list@gnome.org; Thu, 14 Jun 2001 17:29:49 -0700 Message-ID: <18e601c0f533$5cacce60$750a000a@naples> From: "Ian King" To: Subject: Finding gtkwidget from GdkWindow Date: Thu, 14 Jun 2001 17:37:31 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I retrieve the gdkwindow that the mouse pointer is currently over (gdk_window_at_pointer), what is the easiest way to find the relative gtkWidget for which this gdkwindow is associated with. Thanks for your time Ian King From hp@redhat.com Thu Jun 14 21:20:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2DB772BD19 for ; Thu, 14 Jun 2001 21:20:56 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5F1Kod12711; Thu, 14 Jun 2001 21:20:50 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Finding gtkwidget from GdkWindow References: <18e601c0f533$5cacce60$750a000a@naples> From: Havoc Pennington Date: 14 Jun 2001 21:20:50 -0400 In-Reply-To: "Ian King"'s message of "Thu, 14 Jun 2001 17:37:31 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > If I retrieve the gdkwindow that the mouse pointer is currently over > (gdk_window_at_pointer), what is the easiest way to find the relative > gtkWidget for which this gdkwindow is associated with. > It's gdk_window_get_user_data (window). The user data on a window is always the widget it's associated with. If you're trying to get the widget someone clicked, remember that not all widgets have windows. Havoc From pavon@gallup.net Thu Jun 14 21:47:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ns.gallup.net (ns.gallup.net [207.188.139.6]) by mail.gnome.org (Postfix) with ESMTP id A7C372E212 for ; Thu, 14 Jun 2001 21:47:35 -0400 (EDT) Received: from localhost (pavon@localhost) by ns.gallup.net (8.8.7/8.8.7) with ESMTP id TAA13434 for ; Thu, 14 Jun 2001 19:47:34 -0600 Date: Thu, 14 Jun 2001 19:46:26 -0600 (MDT) From: "D. Jackson Peacock" To: gtk-list@gnome.org Subject: New Container Widget RFC 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am writing a new container widget that arranges it's widgets into columns, starting a new column when the last one fills up, simular to the small icon view in windows explorer. So far I have a working prototype and am ready to take what I've learned from it to make a more mature widget. Before I invest my time into this, though I have a few questions. First, does anyone know of an existing widget that does what I want? There's no point duplicating work here. I remember seeing a package of additional gtk widgets once but can't seem to find it now. Second, what interface do you feel would be best suited for this widget. I was originally thinking to have it extend off of the GtkBox class, but am also thinking that CList (or the new TreeModel interface in GTK+ 2.0) might also be a good interface to work off of. I haven't really looked into the TreeModel much yet, just discovered it today. Any opinions on this from people that know better than me? Also if you have any other comments concerning this, or want more infomation please let know. Thank you, jackson Daniel Jackson Peacock [pavon@jabber.org] Socorro, NM From skip@real-time.com Thu Jun 14 23:20:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id DA7BE2D61F for ; Thu, 14 Jun 2001 23:20:38 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5F3JB931656; Thu, 14 Jun 2001 22:19:11 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15145.32430.419036.281587@beluga.mojam.com> Date: Thu, 14 Jun 2001 22:19:10 -0500 To: Owen Taylor Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags In-Reply-To: References: <15145.10895.215061.466398@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen> Setting CFLAGS while compiling will have undetermined effects, and Owen> it happens to include the glib include flags. It's not completely Owen> intentional to have things set up this way - it could probably be Owen> improved. But I don't necessarily expect setting CFLAGS at 'make' Owen> time to work. Ah, okay. I always thought -I flags were supposed to go in CPPFLAGS. Skip From needles@industrialmusic.com Thu Jun 14 23:31:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from industrialmusic.com (unknown [216.101.163.50]) by mail.gnome.org (Postfix) with ESMTP id 5376F2D2E5 for ; Thu, 14 Jun 2001 23:31:27 -0400 (EDT) Received: (from needles@localhost) by industrialmusic.com (8.9.3/8.9.3) id UAA00498 for gtk-list@gnome.org; Thu, 14 Jun 2001 20:59:02 -0700 From: Kerry Message-Id: <200106150359.UAA00498@industrialmusic.com> Subject: Gtk 1.3.x text widget question To: gtk-list@gnome.org Date: Thu, 14 Jun 2001 20:59:02 -0700 (PDT) X-Mailer: ELM [version 2.5 PL3] 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've created a text view widget then filled it with text. I'm trying to figure out on what line the user clicked. I connected the widget to the "button-press-event" signal which gave the callback like I wanted. I just can't figure out what line the user clicked on. If I could get an iterator, it looks like I could call gtk_text_iter_get_line() function. I tried to call gtk_text_buffer_get_insert(), but that always gave me the same pointer no matter where I clicked. Can anyone help? Regards, Kerry From hp@redhat.com Fri Jun 15 00:16:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8708D2BE1F for ; Fri, 15 Jun 2001 00:16:51 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5F4G7s12803; Fri, 15 Jun 2001 00:16:07 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Kerry Cc: gtk-list@gnome.org Subject: Re: Gtk 1.3.x text widget question References: <200106150359.UAA00498@industrialmusic.com> From: Havoc Pennington Date: 15 Jun 2001 00:16:07 -0400 In-Reply-To: Kerry's message of "Thu, 14 Jun 2001 20:59:02 -0700 (PDT)" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Kerry writes: > > I've created a text view widget then filled it with text. I'm trying to > figure out on what line the user clicked. I connected the widget to the > "button-press-event" signal which gave the callback like I wanted. > I just can't figure out what line the user clicked on. If I could get > an iterator, it looks like I could call gtk_text_iter_get_line() function. > I tried to call gtk_text_buffer_get_insert(), but that always gave me > the same pointer no matter where I clicked. Can anyone help? > get_insert() gets the cursor (insertion point) which won't have moved when your button_press_event handler is called. If you want to track where the cursor is, use the mark_set signal on GtkTextBuffer and check whether the mark which was set is equal to gtk_text_buffer_get_insert(). (There are marks other than the insertion point.) If you don't care about the cursor, you want gtk_text_view_get_iter_at_location() to find out what text position the user clicked. Havoc From neil@fnxweb.com Fri Jun 15 04:02:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntsc0019.int.rdel.co.uk (banana.rdel.co.uk [194.128.85.8]) by mail.gnome.org (Postfix) with ESMTP id 7B47F2BAAA for ; Fri, 15 Jun 2001 04:02:53 -0400 (EDT) Received: from mail.uk.thalesgroup.com (lisc0021.int.rdel.co.uk) by ntsc0019.int.rdel.co.uk (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Fri, 15 Jun 2001 09:04:14 +0100 Received: from mail.uk.thalesgroup.com (localhost.localdomain [127.0.0.1]) by mail.uk.thalesgroup.com (8.11.0/8.11.0) with ESMTP id f5F82n004520 for ; Fri, 15 Jun 2001 09:02:49 +0100 Received: from ntscxch1.int.rdel.co.uk (ntscxch1.int.rdel.co.uk [172.21.100.149]) by mail.uk.thalesgroup.com (8.11.0/8.11.0) with ESMTP id f5F82m104509; Fri, 15 Jun 2001 09:02:48 +0100 Received: from fnxweb.com (sswc046.int.rdel.co.uk [130.141.44.135]) by ntscxch1.int.rdel.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id MC5L8LWZ; Fri, 15 Jun 2001 09:02:47 +0100 Message-ID: <3B29C125.EF386FA0@fnxweb.com> Date: Fri, 15 Jun 2001 09:02:45 +0100 From: Neil Bird Reply-To: GTK Mailing List Organization: Thales Sensors (but only on behalf of myself) X-Mailer: Mozilla 4.73 [en] (X11; U; SunOS 5.6 sun4m) X-Accept-Language: en MIME-Version: 1.0 To: "D. Jackson Peacock" Cc: GTK Mailing List Subject: Re: New Container Widget RFC 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "D. Jackson Peacock" wrote: > First, does anyone know of an existing widget that does what I want? > There's no point duplicating work here. I remember seeing a package of > additional gtk widgets once but can't seem to find it now. Seems like gtkextra is what you're half-remembering - http://gtkextra.sourceforge.net/. At first glance, it looks like it supplies a Gnome-free GtkIconList replacement for the gnome-icon-list (which is being deprecated?). Probably similar to what you want. Doesn't look like you can change the gravity, but I've not looked very hard. -- =====================- http://www.thalesgroup.com/ -===================== Neil Bird Principal Engineer | work - mailto:neil.bird@uk.thalesgroup.com | $> cd /pub personal - mailto:neil@fnxweb.com | $> more beer From skip@beluga.mojam.com Fri Jun 15 12:18:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 8406C2D31E for ; Fri, 15 Jun 2001 12:18:33 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5FGHWD30711; Fri, 15 Jun 2001 11:17:32 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15146.13593.375326.315166@beluga.mojam.com> Date: Fri, 15 Jun 2001 11:17:29 -0500 To: gtk-list@gnome.org Subject: Problems building cvs version of gtk X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm getting farther. I finally got cvs versions of glib, atk and pango all installed. Now I'm stuck trying to build gtk itself. After first encountering problems, I decided to start from scratch, so I zapped all text files except the CVS stuff and reloaded: find . -type f | egrep -v CVS | xargs rm cvs up . Then, following Owen Taylor's advice, I figured I'd skip the CFLAGS stuff for now: ./autogen.sh make Autogen.sh emitted some peculiar messages: I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. autoheader: error: shell error while sourcing /tmp/ahb0t8pA/traces.sh demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_BEGIN@' demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_END@' tests/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/faq/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/tutorial/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gdk-pixbuf/Makefile.am:94: libpixbufloader_xbm_la_LDFLAGS multiply defined in condition TRUE libpixbufloader_xbm_la_LDFLAGS (User, where = 94) = { TRUE => -version-info 1:0:0 -module } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_FALSE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { TRUE => $(builtin_objs) } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_TRUE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { BUILD_DYNAMIC_MODULES_FALSE TRUE => pixops/libpixops.la TRUE => $(builtin_objs) } automake: gdk-pixbuf/pixops/Makefile.am: Assembler source seen but `ASFLAGS' not defined in `configure.in' gdk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gdk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gtk/Makefile.am: CLEANFILES must be set with `=' before using `+=' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/stock-icons/Makefile.am: CLEANFILES must be set with `=' before using `+=' configure.in:25: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:97: warning: AC_CANONICAL_HOST invoked multiple times configure.in:101: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:158: warning: AC_COMPILE_IFELSE was called before AC_ISC_POSIX Forging ahead, I tried make: which started off fine, but eventually stumbled on some unsubstituted variables: ... make[3]: Entering directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' Making all in pixops make[4]: Entering directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf/pixops' source='pixops.c' object='pixops.lo' libtool=yes \ depfile='.deps/pixops.Plo' tmpdepfile='.deps/pixops.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c -o pixops.lo `test -f pixops.c || echo './'`pixops.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c pixops.c -MT pixops.lo -MF .deps/pixops.TPlo -MD -MP -fPIC -DPIC -o pixops.o pixops.c:827: warning: `scale_line_22_33' defined but not used mv -f pixops.o .libs/pixops.lo gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c pixops.c -MT pixops.lo -MF .deps/pixops.TPlo -MD -MP -o pixops.o >/dev/null 2>&1 mv -f .libs/pixops.lo pixops.lo /bin/sh ../../libtool --mode=compile @AS@ @ASFLAGS@ -c -o have_mmx.lo `test -f have_mmx.S || echo './'`have_mmx.S rm -f .libs/have_mmx.lo @AS@ @ASFLAGS@ -c have_mmx.S -fPIC -DPIC -o have_mmx.o ../../libtool: @AS@: command not found make[4]: *** [have_mmx.lo] Error 1 make[4]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf/pixops' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/skip/src/gtk/gtk+.cvs' make: *** [all] Error 2 My environment is: Linux Mandrake 8.0 gcc 2.96 libtool 1.4 automake 1.4g autoconf 2.50a aclocal 1.4g Any thoughts about the cause of the problem? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From king@eiffel.com Fri Jun 15 13:07:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id B33FF2CF1B for ; Fri, 15 Jun 2001 13:07:45 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15Ax4K-0007nG-00; Fri, 15 Jun 2001 10:07:36 -0700 Message-ID: <19c801c0f5be$c273e360$750a000a@naples> From: "Ian King" To: "Havoc Pennington" Cc: References: <18e601c0f533$5cacce60$750a000a@naples> Subject: Re: Finding gtkwidget from GdkWindow Date: Fri, 15 Jun 2001 10:15:21 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > "Ian King" writes: > > If I retrieve the gdkwindow that the mouse pointer is currently over > > (gdk_window_at_pointer), what is the easiest way to find the relative > > gtkWidget for which this gdkwindow is associated with. > > > > It's gdk_window_get_user_data (window). The user data on a window is > always the widget it's associated with. > In response to this, is there anyway to query the GdkWindow at position (X, Y)? Thanks for your time Ian King From lapenta_jm@yahoo.com Fri Jun 15 13:40:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web4703.mail.yahoo.com (web4703.mail.yahoo.com [216.115.105.203]) by mail.gnome.org (Postfix) with SMTP id AC8D62D554 for ; Fri, 15 Jun 2001 13:40:10 -0400 (EDT) Message-ID: <20010615174010.9772.qmail@web4703.mail.yahoo.com> Received: from [129.55.200.20] by web4703.mail.yahoo.com; Fri, 15 Jun 2001 10:40:10 PDT Date: Fri, 15 Jun 2001 10:40:10 -0700 (PDT) From: Jason LaPenta Subject: timer or idle function ? HOWTO ? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like to use the gtk_idle_add() function, but I'm not sure how to have widgets updated w/in the function. Does anybody have an example I could look at? Also, why does the "clicked" signal get sent when I call gtk_toggle_button_set_active()? Is there some widget or something that will send out signals periodically so I can update the screen ever 1second or so with new data? Thanks jason lapenta_jm@yahoo.com __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From pbd@op.net Fri Jun 15 13:56:49 2001 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 3FECD2BBB2 for ; Fri, 15 Jun 2001 13:56:49 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-08.ppp.op.net [209.152.194.104]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA15559; Fri, 15 Jun 2001 13:56:45 -0400 (EDT) Message-Id: <200106151756.NAA15559@renoir.op.net> To: Jason LaPenta Cc: gtk-list@gnome.org Subject: Re: timer or idle function ? HOWTO ? In-reply-to: Your message of "Fri, 15 Jun 2001 10:40:10 PDT." <20010615174010.9772.qmail@web4703.mail.yahoo.com> Date: Fri, 15 Jun 2001 13:59:01 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I would like to use the gtk_idle_add() function, >but I'm not sure how to have widgets updated w/in >the function. Does anybody have an example I >could look at? you need to pass pointers to widgets, then use them: gint my_idle_function (gpointer arg) { GtkWidget *w = (GtkWidget *) arg; gtk_widget_do_something (w, ...); return (should_be_called_again ? TRUE : FALSE); } >Also, why does the "clicked" signal get sent when >I call gtk_toggle_button_set_active()? because GTK+ is broken like that :) >Is there some widget or something that will send >out signals periodically so I can update the >screen ever 1second or so with new data? gint my_timeout (gpointer arg) { ... do something, perhaps with `arg' ... return (should_be_called_again ? TRUE : FALSE); } gtk_timeout_add (1000, my_timeout, some_argument_pointer); See the GTK+ tutorial for more details, then read the docs at gtk.org. --p From sarregui@cicese.mx Fri Jun 15 14:16:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 8AF472BC8D for ; Fri, 15 Jun 2001 14:16:07 -0400 (EDT) Received: from sismo.cicese.mx (sismo.cicese.mx [158.97.28.56]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f5FIG3f16398 for ; Fri, 15 Jun 2001 11:16:03 -0700 (PDT) Received: from cicese.mx (pc-resnor.cicese.mx [158.97.30.133]) by sismo.cicese.mx (8.9.3+Sun/8.9.1) with ESMTP id LAA17369 for ; Fri, 15 Jun 2001 11:16:02 -0700 (PDT) Message-ID: <3B2A5155.9DAB2A@cicese.mx> Date: Fri, 15 Jun 2001 11:17:57 -0700 From: Sergio Arregui Ojeda X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.18-rtl i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-List Subject: Help! 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: yesterday i posted this, and i still have trouble with this so i'm asking you guys for help i have to develop a system that has to plot data that is acquired trhough the serial port, i have done most of this part using the realtime plot demo that comes with extragtk, but i have a problem because it's a lot of data and my machine gets very busy while plotting, i think that this is 'cause the data does not get released, instead it keeps it in memory, and i want to know if theres is a way that this data can be freed (or deallocated) so this way it speed up things. I also have made another application that plots data in realtime that comes faster, and i have a problem when i try to plot more than one station (obviously the data comes from different station) because of the same problem. i'm new to programming in gtk, and this are the very first applications that i have made, so please anyone can help me?, what i want is a way to speed up the plotting without slowing my machine, and i'm asking for some techinques or ways to accomplish this thank you -- Sergio Arregui Ojeda Departamento de Sismologia CICESE Tel (6) 174 50 50 ext 26524 From Simon.Budig@unix-ag.org Thu Jun 14 13:23:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from harley.unix-ag.uni-siegen.de (harley.unix-ag.uni-siegen.de [141.99.42.44]) by mail.gnome.org (Postfix) with ESMTP id 85ACB2DED7 for ; Thu, 14 Jun 2001 13:23:28 -0400 (EDT) Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id TAA06366 for ; Thu, 14 Jun 2001 19:23:26 +0200 Received: (from simon@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id TAA163158 for gtk-list@gnome.org; Thu, 14 Jun 2001 19:23:26 +0200 Date: Thu, 14 Jun 2001 19:23:26 +0200 From: Simon Budig To: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? Message-ID: <20010614192325.A182508@vmax.unix-ag.uni-siegen.de> References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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 Sun, Jun 10, 2001 at 11:18:08PM -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington (hp@redhat.com) wrote: > Simon Budig writes: > > Is it possible to reduce the size of the GTK Library (we don't have > > unlimited resources) e.g. by removing some unused widgets? > > You can do a custom GTK build and remove a substantial number of the > widgets and some other features (e.g. unused image loaders and > language modules). Static linking will already strip a lot of unused > stuff of course. Static linking currently is not a solution, since we have multiple applications. So - how would I remove widgets from the Build? Simply deleting the files from the Makefile? > > Would you recommend to use GTK+ in it's current state? > > For embedded you should also consider simply using a small version of > X such as the one used for the iPAQ; framebuffer is somewhat smaller > but not hugely so, and its smaller size is achieved at the expense of > multiprocess support. Yeah - we consider this definitely. X11 is not too big and has a lot of advantages (for example generating synthetic events for a virtual keyboard). X11 would even enable to use GTK+ 1.2 so that we would have a rock solid api and the (as Sven mentioned) better GObject performance. > The primary advantage of GTK for embedded devices is that you get the > same GUI API as a full-fledged computer, and of course the > higher-level full-featured nature of that API; GTK will be larger than > something like FLTK, but will also be a good bit more powerful if you > can afford the size and need the GTK features or the similarity to the > non-embedded API. Tradeoffs, tradeoffs. ;-) Yeah - I tried some coding in FLTK yesterday and it is nice and straight- forward. But having only one callback and no signals available is - at least for me - a little bit strange... Bye, Simon -- Simon.Budig@unix-ag.org http://www.home.unix-ag.org/simon/ From frank@tone.jpl.nasa.gov Thu Jun 14 13:44:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from eis-msg-021.jpl.nasa.gov (eis-msg-021.jpl.nasa.gov [137.78.160.201]) by mail.gnome.org (Postfix) with ESMTP id BA0792CEDC for ; Thu, 14 Jun 2001 13:44:56 -0400 (EDT) Received: from tone.jpl.nasa.gov by eis-msg-021.jpl.nasa.gov with ESMTP for gtk-list@gnome.org; Thu, 14 Jun 2001 10:44:37 -0700 Received: from tone.jpl.nasa.gov (zorn [137.79.125.209]) by tone.jpl.nasa.gov (8.9.3+Sun/8.9.1) with ESMTP id KAA13912 for ; Thu, 14 Jun 2001 10:41:34 -0700 (PDT) Message-Id: <3B28F5E9.8F762326@tone.jpl.nasa.gov> Date: Thu, 14 Jun 2001 10:35:37 -0700 From: Frank Hartman X-Mailer: Mozilla 4.76C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: OpenGL and Gtk References: <20010614160208.668A82E648@mail.gnome.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am new to this list and gtk+. So far I haven't been able to find any info about OpenGL and Gtk+. I have a sample source code that includes gtkgl/gtkglarea.h and links with -lgtkgl but I don't have this and I'm not sure where to get it. Could someone give some info about opengl w/gtk? Thanks, Frank Hartman JPL/MER From hp@redhat.com Fri Jun 15 15:16:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id ECACD2C8B5 for ; Fri, 15 Jun 2001 15:16:48 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5FJGf028437; Fri, 15 Jun 2001 15:16:41 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> <20010614192325.A182508@vmax.unix-ag.uni-siegen.de> From: Havoc Pennington Date: 15 Jun 2001 15:16:41 -0400 In-Reply-To: Simon Budig's message of "Thu, 14 Jun 2001 19:23:26 +0200" Message-ID: Lines: 11 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Simon Budig writes: > Static linking currently is not a solution, since we have multiple > applications. So - how would I remove widgets from the Build? > Simply deleting the files from the Makefile? For many widgets that should work, yes. We'd kind of like to have a nicer way (such as a config file with a list of widgets to build) but haven't implemented it. Havoc From lapenta_jm@yahoo.com Fri Jun 15 15:19:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web4705.mail.yahoo.com (web4705.mail.yahoo.com [216.115.105.205]) by mail.gnome.org (Postfix) with SMTP id 1C6042E7B7 for ; Fri, 15 Jun 2001 15:19:00 -0400 (EDT) Message-ID: <20010615191859.4012.qmail@web4705.mail.yahoo.com> Received: from [129.55.200.20] by web4705.mail.yahoo.com; Fri, 15 Jun 2001 12:18:59 PDT Date: Fri, 15 Jun 2001 12:18:59 -0700 (PDT) From: Jason LaPenta Subject: dev widgets location : and scope widget To: gtk-list@gnome.org In-Reply-To: <200106151756.NAA15559@renoir.op.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like a scope widget, a graph that takes in an arbitrary stream of data and displays it over time. Is anybody working on one that I could add to? I looked at GtkCurve.. and what I want is too diferent I think to subclass from. Is there a place where people freely distribute widgets they are working on? Jason __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From jlof@mail.student.oulu.fi Fri Jun 15 17:05:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from oulu.fi (ousrvr.oulu.fi [130.231.240.1]) by mail.gnome.org (Postfix) with ESMTP id 6201B2BAE1 for ; Fri, 15 Jun 2001 17:05:01 -0400 (EDT) Received: from paju.oulu.fi (root@paju.oulu.fi [130.231.240.20]) by oulu.fi (8.8.5/8.8.5) with ESMTP id AAA28960; Sat, 16 Jun 2001 00:04:59 +0300 (EET DST) Received: from paju.oulu.fi (jlof@paju.oulu.fi [130.231.240.20]) by paju.oulu.fi (8.8.5/8.8.5) with ESMTP id AAA34415683; Sat, 16 Jun 2001 00:04:59 +0300 (EDT) Date: Sat, 16 Jun 2001 00:04:59 +0300 From: Janne Lof X-Sender: jlof@paju.oulu.fi To: Frank Hartman Cc: gtk-list@gnome.org Subject: Re: OpenGL and Gtk In-Reply-To: <3B28F5E9.8F762326@tone.jpl.nasa.gov> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On Thu, 14 Jun 2001, Frank Hartman wrote: > Hi, > > I am new to this list and gtk+. So far I haven't been able to find any > info about OpenGL and Gtk+. I have a sample source code that includes > gtkgl/gtkglarea.h and links with -lgtkgl but I don't have this and I'm > not sure where to get it. Could someone give some info about opengl > w/gtk? > Try http://www.student.oulu.fi/~jlof/gtkglarea/ > Thanks, > Frank Hartman > JPL/MER > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Janne Löf mail : jlof@mail.student.oulu.fi www : http://www.student.oulu.fi/~jlof/ From rwalden@tripos.com Fri Jun 15 17:09:04 2001 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 4C31B2D305 for ; Fri, 15 Jun 2001 17:09:03 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA23200 for ; Fri, 15 Jun 2001 16:09:03 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma021474; Fri, 15 Jun 01 15:56:22 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA71846 for ; Fri, 15 Jun 2001 15:56:20 -0500 (CDT) Message-ID: <3B2A7673.8E7BCE65@tripos.com> Date: Fri, 15 Jun 2001 15:56:19 -0500 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@gnome.org Subject: Minimize and Restore Windows References: <20010615191859.4012.qmail@web4705.mail.yahoo.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List, [Sorry, but I'm asking this again...] Does anyone know if GTK 1.2 has functionality to raise and lower (minimize) windows on the desktop programmatically? Thanks -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Jun 15 18:23:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1407F2CED9 for ; Fri, 15 Jun 2001 18:23:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5FMN2L12120; Fri, 15 Jun 2001 18:23:02 -0400 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: Minimize and Restore Windows References: <20010615191859.4012.qmail@web4705.mail.yahoo.com> <3B2A7673.8E7BCE65@tripos.com> From: Havoc Pennington Date: 15 Jun 2001 18:23:02 -0400 In-Reply-To: Ralph Walden's message of "Fri, 15 Jun 2001 15:56:19 -0500" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > > [Sorry, but I'm asking this again...] > > Does anyone know if GTK 1.2 has functionality to > raise and lower (minimize) windows on the desktop > programmatically? > To deiconify, call gdk_window_show (window_widget->window), to iconify you basically call XIconifyWindow(GDK_WINDOW_XID(window_widget->window)) I put the exact code in a mail to this list a few weeks or months ago, to raise above other windows gdk_window_raise (window_widget->window). Havoc From kyi111@dreamwiz.com Sat Jun 16 02:28:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx-s0.dreamwiz.com (mx-s0.dreamwiz.com [211.174.54.135]) by mail.gnome.org (Postfix) with ESMTP id 2DDE22CDD0 for ; Sat, 16 Jun 2001 02:28:07 -0400 (EDT) Received: from mail11.dreamwiz.com (mail11.dreamwiz.com [211.174.54.31]) by mx-s0.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5G6S0Y55136 for ; Sat, 16 Jun 2001 15:28:01 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by mail11.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5G6Rqc14899 for ; Sat, 16 Jun 2001 15:27:52 +0900 (KST) Message-Id: <200106160627.f5G6Rqc14899@mail11.dreamwiz.com> Date: Sat, 16 Jun 2001 15:27:52 +0900 (KST) From: =?EUC-KR?B?sei/68DPKHlvbmcgaWwua2ltKQ==?= Subject: I would like to change email address To: gtk-list@gnome.org Organization: X-Sender-IP: 211.219.11.9 X-Sender-ID: kyi111@dreamwiz.com X-Priority: 3 X-Mailer: DreamWiz Web-Mailer V1.31 X-DreamWiz-Data: receive_check=1;save=mail11.dreamwiz.com:kyi111:Sent:216; MIME-Version: 1.0 Content-Type: MULTIPART/ALTERNATIVE; BOUNDARY="0-708280116-992672872=:14879" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --0-708280116-992672872=:14879 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII I want to change e-mail address kyi111@dreamwiz.com --> kyi111@alphatelecom.co.kr Please help me ------------------------------------------------- DreamWiz Free Mail @ http://www.dreamwiz.com/ DreamSearch Click the world!!! http://search.dreamwiz.com/ --0-708280116-992672872=:14879 Content-Type: TEXT/HTML; CHARSET=US-ASCII
I want to change e-mail address

kyi111@dreamwiz.com --> kyi111@alphatelecom.co.kr

Please help me




Your life on the net

DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!!  http://search.dreamwiz.com/


--0-708280116-992672872=:14879-- From mitch@dhcpassigned.uk.sun.com Sat Jun 16 07:02:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prserv.net (out1.prserv.net [32.97.166.31]) by mail.gnome.org (Postfix) with ESMTP id 630F92D92A for ; Sat, 16 Jun 2001 07:02:55 -0400 (EDT) Received: from dhcpassigned.uk.sun.com (slip139-92-214-110.por.uk.prserv.net[139.92.214.110]) by prserv.net (out1) with ESMTP id <2001061611025320105l5i48e>; Sat, 16 Jun 2001 11:02:53 +0000 Received: (from mitch@localhost) by dhcpassigned.uk.sun.com (8.11.1/8.11.1) id f5GB4Fm03855; Sat, 16 Jun 2001 12:04:15 +0100 Date: Sat, 16 Jun 2001 12:04:15 +0100 (BST) From: X-X-Sender: Reply-To: To: Subject: Help with popup/popdown with pointer grab. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm writing a small app that should automatically deiconify a window and warp the pointer to its location for text input. However everytime i try and grab the pointer it fails ! If i manually deiconify thru my window manager then the grab succeeds. This leads me to believe that the deiconifying functions in gtk/gdk are not ICCM compliant and don't set the WM_STATE properly, or am i doing something wrong in my code ? I have appended my short example with all superfuolous code taken out. The window should popup and popdown every 2 seconds in this test example and grab the pointer when it is deiconized. Can anyone help please ? Thanx Dave % gcc `gtk-config --cflags` main.c -o main `gtk-config --libs` #include #include GtkWidget *window; GtkWidget *button; static void gdk_window_iconify (GdkWindow * win) { g_return_if_fail (win != NULL); XIconifyWindow (GDK_WINDOW_XDISPLAY (win), GDK_WINDOW_XWINDOW (win), 0); } static gint toggle_popup () { static gint iconized = 1; if (iconized) { /* Popup window and grab pointer */ gdk_window_show(window->window); gdk_window_raise(window->window); if (gdk_pointer_grab (window->window, FALSE, GDK_POINTER_MOTION_MASK, window->window, NULL, GDK_CURRENT_TIME)==0) printf("grab succeeded\n"); else printf("grab failed\n"); } else { /* Iconize window, release grab */ gdk_pointer_ungrab (GDK_CURRENT_TIME); gdk_window_iconify (window->window); } iconized=!iconized; return TRUE; } int main (int argc, char *argv[]) { 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 ("Hello World"); gtk_container_add (GTK_CONTAINER (window), button); gtk_timeout_add (2 * 1000, toggle_popup, NULL); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (gtk_exit), NULL); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return (0); } From hp@redhat.com Sat Jun 16 11:12:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id E89672BC09 for ; Sat, 16 Jun 2001 11:12:20 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5GFCC825728; Sat, 16 Jun 2001 11:12:12 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: Subject: Re: Help with popup/popdown with pointer grab. References: From: Havoc Pennington Date: 16 Jun 2001 11:12:11 -0400 In-Reply-To: 's message of "Sat, 16 Jun 2001 12:04:15 +0100 (BST)" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > /* Popup window and grab pointer */ > gdk_window_show(window->window); > gdk_window_raise(window->window); > if (gdk_pointer_grab (window->window, > FALSE, GDK_POINTER_MOTION_MASK, > window->window, NULL, GDK_CURRENT_TIME)==0) > printf("grab succeeded\n"); > else This is a race condition. The window manager gets a request to deiconify, and then will map your window. However, the window is probably still unmapped when you do the grab. Remember that X is asynchronous. If gdk_pointer_grab() is returning GrabNotViewable then this is almost certainly the problem. Havoc From mitch@dhcpassigned.uk.sun.com Sat Jun 16 11:30:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prserv.net (out4.prserv.net [32.97.166.34]) by mail.gnome.org (Postfix) with ESMTP id 4D4392DFA8 for ; Sat, 16 Jun 2001 11:25:59 -0400 (EDT) Received: from dhcpassigned.uk.sun.com (slip139-92-214-176.por.uk.prserv.net[139.92.214.176]) by prserv.net (out4) with ESMTP id <2001061615255720402ikmu9e>; Sat, 16 Jun 2001 15:25:57 +0000 Received: (from mitch@localhost) by dhcpassigned.uk.sun.com (8.11.1/8.11.1) id f5GFS5i04640; Sat, 16 Jun 2001 16:28:05 +0100 Date: Sat, 16 Jun 2001 16:28:04 +0100 (BST) From: X-X-Sender: Reply-To: To: Cc: Havoc Pennington Subject: Re: Help with popup/popdown with pointer grab. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Havoc, However even putting gdk_flush()'es before the grab doesn't solve the problem. What is the solution then ? How can i wait till window is mapped ? Thanx Mitch -------- Original Message -------- Subject: Re: Help with popup/popdown with pointer grab. Date: 16 Jun 2001 11:12:11 -0400 From: Havoc Pennington To: CC: References: writes: > /* Popup window and grab pointer */ > gdk_window_show(window->window); > gdk_window_raise(window->window); > if (gdk_pointer_grab (window->window, > FALSE, GDK_POINTER_MOTION_MASK, > window->window, NULL, GDK_CURRENT_TIME)==0) > printf("grab succeeded\n"); > else This is a race condition. The window manager gets a request to deiconify, and then will map your window. However, the window is probably still unmapped when you do the grab. Remember that X is asynchronous. If gdk_pointer_grab() is returning GrabNotViewable then this is almost certainly the problem. Havoc _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From jmullen3@nc.rr.com Fri Jun 15 16:56:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail2.nc.rr.com (fe2.southeast.rr.com [24.93.67.49]) by mail.gnome.org (Postfix) with ESMTP id 7971D2DDE9 for ; Fri, 15 Jun 2001 16:56:26 -0400 (EDT) Received: from nc.rr.com ([66.57.30.183]) by mail2.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 15 Jun 2001 16:56:26 -0400 From: Jeff Mullen Reply-To: jmullen3@nc.rr.com Date: Fri, 15 Jun 2001 16:59:01 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: gtk-list@gnome.org Subject: GTK- tutorial MIME-Version: 1.0 Message-Id: <01061516590100.01266@nc.rr.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Greetings, DISCLAIMER: I hope this is the right mailing list... I am trying to learn gtk-- and downloaded a tutorial from the gtkmm.sourceforge.net website. I have typed in the second example in which you press a button to print "Hello World" in the terminal window. However, the code does not compile. Here is the code from the tutorial // button.cc #include #include void hello() { cout << "Hello World" << endl; } main() { Gtk::Button button("Hello World"); button.clicked.connect(slot(&hello)); } The first error I got was "libsigc++ : no such file or directory". So I went to the website and downloaded libsigc++-1.0.1. I ran the configure, make, make check and make install with no problems. I then made a symbolic link ln -s /usr/include/sigc++-config.h /usr/include/sig++/libsigc++ (because this is what I think a FAQ was trying to tell me, I am not sure). Well, now the error (at compile time) is button.cc: In function `int main()': button.cc:18: implicit declaration of function `int slot(...)' button.cc:18: no matching function for call to `Gtk::EmitProxySignal0::connect (int)' /usr/include/gtk--/proxy.h:96: candidates are: class SigC::Connection Gtk::ProxySignal0::connect(const SigC::Slot0 &) The compile command I am issuing is: g++ button.cc -o button `gtkmm-config --cflags --libs` I am at a loss for why this example is not compiling correctly. Can anyone point me in the right direction? --jeff From raphi2@caramail.com Fri Jun 15 23:39:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.caramail.com (mail.caramail.com [195.68.99.70]) by mail.gnome.org (Postfix) with ESMTP id 9F24F2CD27 for ; Fri, 15 Jun 2001 23:39:30 -0400 (EDT) Received: from caramail.com (www34.caramail.com [195.68.99.119]) by mail.caramail.com (8.8.8/8.8.8) with SMTP id FAA14076 for gtk-list@gnome.org; Sat, 16 Jun 2001 05:39:29 +0200 (DST) Posted-Date: Sat, 16 Jun 2001 05:39:29 +0200 (DST) From: raphy7002@caramail.com To: gtk-list@gnome.org Message-ID: <992662769008580@caramail.com> X-Mailer: Caramail - www.caramail.com X-Originating-IP: [163.5.255.8] Mime-Version: 1.0 Subject: GTK + SDL Date: Sat, 16 Jun 2001 05:39:29 GMT+1 Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_008580992662769_ID" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_Caramail_008580992662769_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I'm currently developping a GTK application and I need using SDL to improve my application. I saw an example of GTK + SDL program on www.libsdl.org but this example doesn't help me a lot. In fact I would like to "include" a little SDL window in a big GTK window. (by example to be able to play movies in my GTK application) There are a lot of newsgroups about this problem, but nobody seems to have a real answer to this question. Thanks for your help, Raph ______________________________________________________ Bo=EEte aux lettres - Caramail - http://www.caramail.com --=_NextPart_Caramail_008580992662769_ID-- From pbd@op.net Sat Jun 16 12:41:49 2001 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 B24F92E027 for ; Sat, 16 Jun 2001 12:41:49 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-1e.ppp.op.net [209.152.206.30]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA24914; Sat, 16 Jun 2001 12:41:47 -0400 (EDT) Message-Id: <200106161641.MAA24914@renoir.op.net> To: jmullen3@nc.rr.com Cc: gtk-list@gnome.org Subject: Re: GTK- tutorial In-reply-to: Your message of "Fri, 15 Jun 2001 16:59:01 EDT." <01061516590100.01266@nc.rr.com> Date: Sat, 16 Jun 2001 12:41:31 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >DISCLAIMER: I hope this is the right mailing list... wrong list. try gtkmm-main@lists.sourceforge.net >The first error I got was "libsigc++ : no such file or directory". So I went i've been using libsgic++ for a long time, and i've never used such a header file. try >button.cc:18: implicit declaration of function `int slot(...)' either use SigC::slot or "using namespace SigC" at some appropriate scope. --p From jfbenck@home.nl Sat Jun 16 12:44:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from CP102461-A.home.nl (cp102461-a.landg1.lb.nl.home.com [213.51.21.239]) by mail.gnome.org (Postfix) with ESMTP id EA5B32D21F for ; Sat, 16 Jun 2001 12:44:14 -0400 (EDT) Received: (from jeroen@localhost) by CP102461-A.home.nl (8.11.0/8.11.0) id f5GGjpe02226; Sat, 16 Jun 2001 18:45:51 +0200 X-Authentication-Warning: CP102461-A.home.nl: jeroen set sender to jfbenck@home.nl using -f Subject: Re: GTK + SDL From: Jeroen Benckhuijsen To: raphy7002@caramail.com Cc: gtk-list@gnome.org In-Reply-To: <992662769008580@caramail.com> References: <992662769008580@caramail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.10.99 (Preview Release) Date: 16 Jun 2001 18:45:51 +0200 Message-Id: <992709951.1341.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 16 Jun 2001 05:39:29 +0000, raphy7002@caramail.com wrote: > Hello, >=20 > I'm currently developping a GTK application > and I need using SDL to improve my application. >=20 > I saw an example of GTK + SDL program on www.libsdl.org > but this example doesn't help me a lot. >=20 > In fact I would like to "include" a little SDL window in a=20 > big GTK window. (by example to be able to play movies in my=20 > GTK application) >=20 > There are a lot of newsgroups about this problem, but=20 > nobody seems to have a real answer to this question. >=20 > Thanks for your help, >=20 > Raph > =20 > ______________________________________________________ > Bo=EEte aux lettres - Caramail - http://www.caramail.com >=20 AFAIK, there is a Gtk widget which includes a SDL Window. Thought it was simly called GtkSDL. Haven't used it however, so i don't know anything about it.....=20 -- Jeroen Benckhuijsen Software Engineer Phoenix Software From hp@redhat.com Sat Jun 16 17:57:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 60C1B2E9B5 for ; Sat, 16 Jun 2001 17:57:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5GLuuE25996; Sat, 16 Jun 2001 17:56:56 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: Subject: Re: Help with popup/popdown with pointer grab. References: From: Havoc Pennington Date: 16 Jun 2001 17:56:56 -0400 In-Reply-To: 's message of "Sat, 16 Jun 2001 16:28:04 +0100 (BST)" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > > However even putting gdk_flush()'es before the grab > doesn't solve the problem. What is the solution then ? > How can i wait till window is mapped ? > A flush doesn't help - that ensures your show request has gone to the server, but not that the window manager has processed it and actually mapped the window. If it's a toplevel window, I believe you may get a map_event signal on it when it's actually mapped. Note that then you have a race condition if you depend on the grab existing, because it won't exist for a brief moment after you map... but I don't think you can do anything about that. One possibility is to have a GtkInvisible offscreen which you use for grabs that's never unmapped. Depending on what you're doing that may or may not work. Havoc From smurf@CSUA.Berkeley.EDU Sat Jun 16 20:23:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by mail.gnome.org (Postfix) with ESMTP id 521802BAE9 for ; Sat, 16 Jun 2001 20:23:26 -0400 (EDT) Received: (from smurf@localhost) by soda.csua.berkeley.edu (8.11.1/8.11.1) id f5H0NJe40539; Sat, 16 Jun 2001 17:23:19 -0700 (PDT) (envelope-from smurf) Date: Sat, 16 Jun 2001 17:23:19 -0700 From: Scott MacFiggen To: raphy7002@caramail.com Cc: gtk-list@gnome.org Subject: Re: GTK + SDL Message-ID: <20010616172319.A39429@CSUA.Berkeley.EDU> References: <992662769008580@caramail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <992662769008580@caramail.com>; from raphy7002@caramail.com on Sat, Jun 16, 2001 at 05:39:29AM +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, Jun 16, 2001 at 05:39:29AM +0000, raphy7002@caramail.com wrote: > Hello, > > I'm currently developping a GTK application > and I need using SDL to improve my application. > > I saw an example of GTK + SDL program on www.libsdl.org > but this example doesn't help me a lot. > > In fact I would like to "include" a little SDL window in a > big GTK window. (by example to be able to play movies in my > GTK application) The only real solution to this that I can see is to draw another GTK window in the bigger window and pass that windowid to SDL. You need a GtkWidget that has an Xwindow associated with to to pass to SDL (not all Widgets have x-windows, like frames don't). I use a drawing area inside of a frame for my SDL/GTK application. -Scott From omega@temple-baptist.com Sat Jun 16 21:33:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id B17D02E168 for ; Sat, 16 Jun 2001 21:33:01 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id VAA27415 for ; Sat, 16 Jun 2001 21:33:01 -0400 Received: from mail3.aracnet.com (mail3.aracnet.com [216.99.193.38]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5H1Vfb17694 for ; Sat, 16 Jun 2001 21:31:41 -0400 Received: from alpha.temple-baptist.com (temple-baptist.com [216.99.217.68]) by mail3.aracnet.com (8.11.4/8.11.0) with ESMTP id f5H1WuU28005; Sat, 16 Jun 2001 18:32:56 -0700 Received: from localhost (localhost [127.0.0.1]) by alpha.temple-baptist.com (8.11.0/8.8.7) with ESMTP id f5H1X5l29119; Sat, 16 Jun 2001 18:33:05 -0700 Date: Sat, 16 Jun 2001 18:33:05 -0700 (PDT) From: Erik Walthinsen To: Cc: Subject: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Parapraxis (author, paranormal.sourceforge.net) has converted his visualization plugin over to GObject, and has been hanging out in #gstreamer, since I'm just now wrapping up a conversion of GStreamer itself to GObject (more on that in another mail), and he's porting his plugin to GStreamer. He did some profiling of his code, and found that 26% of the CPU time was in g_type_instance_is_a(). Since that's a pretty complex function, I had no idea how to optimize it. But then I looked at the code that calls it, the _G_TYPE_CIT macro, which is the core of G_TYPE_CHECK_INSTANCE_TYPE. I turns out that a really obvious optimization was ignored: #define _G_TYPE_CIT(ip, gt) (g_type_instance_is_a ((GTypeInstance*) ip, gt)) The goal is to determine if the object instance *ip is of type gt. g_type_instance_is_a() goes through a really long list of things to determine if the object is really an interface, or a derived object, or any of the other myriad of possibilities that make the type system actually *useful*. The optimization that was missed is that in many/most cases, the code will be checking a object against its own type. That means that the GType gt will be equal to the 'immediate' type of the object, not a parent type, or any of that. The 'immediate' type of the object is accessible via the g_class pointer that is the first 4 bytes of *every* instance of any type (GTypeInstance). The g_class pointer goes to a structure that has the GType of that object. Therefore we can simply compare the 'immediate' type of the object directly against the type in question: #define _G_TYPE_CIT(ip, gt) \ ( (((GTypeInstance*)ip)->g_class->g_type == (gt)) ? TRUE : \ g_type_instance_is_a ((GTypeInstance*)ip, gt)) That way the only time g_type_instance_is_a() is called is when the comparison is between an object and its parent class, or some similar case. All other cases are two indirections and a compare. Parapraxis found that this reduced the number of calls in his code from 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by g_type_instance_is_a went from 26% to *not measurable*. This won't be quite as dramatic in something like a Gtk+ application, where more checks will be done between an object and one of its parent classes, but I would still expect *at least* a 50% reduction. I'm convinced that similar optimizations could be made to several of the other macros in this file, potentially reducing object type checking time to almost nothing. Parapraxis wondered if multithreading has any impact on this, and I believe it does not. The object is not capable of changing its type, ever, afaik. The GType being compared will almost always come from a _get_type() function that also cannot ever change the GType value. The only reason for the READER_LOCK in g_type_instance_is_a() is to avoid someone else mangling the GLists that are walked through to find the TypeNode in question, afaict. Anyway, if no one can find any other problems with this code, I would like to see it make its way into glib CVS. I have GNOME CVS write access, so if whoever wants me to, I can commit it myself, after posting a full unidiff on the list for confirmation that I'm doing it right. Erik Walthinsen - System Administrator __ / \ GStreamer - The only way to stream! | | M E G A ***** http://gstreamer.net/ ***** _\ /_ From rbultje@ronald.bitfreak.net Sun Jun 17 06:42:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 02DEE2DE88 for ; Sun, 17 Jun 2001 06:42:21 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f5HBPKF01761; Sun, 17 Jun 2001 13:25:21 +0200 (CEST) From: "Ronald Bultje" To: "Scott MacFiggen" Cc: Subject: RE: GTK + SDL Date: Sun, 17 Jun 2001 12:48:32 +0200 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 V5.00.2919.6700 In-Reply-To: <20010616172319.A39429@CSUA.Berkeley.EDU> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Scott, >I use a drawing area inside of a frame for my SDL/GTK application. I personally use an eventbox because the only goal of an eventbox is to have a X-window associated with it - which is all you'd need. The eventbox is the "most simple" widget for this - isn't a drawing box far too complicated for this goal? Might make a difference of 0,00000001% in performance ;-). Regards, Ronald From timj@gtk.org Sun Jun 17 07:34:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 2AB212BEDC for ; Sun, 17 Jun 2001 07:34:17 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id HAA05792 for ; Sun, 17 Jun 2001 07:34:16 -0400 Received: from hmbg-3e36c350.pool.mediaWays.net (hmbg-3e36c350.pool.mediaWays.net [62.54.195.80]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HBWub04484 for ; Sun, 17 Jun 2001 07:32:56 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HBZFQ2018719; Sun, 17 Jun 2001 13:35:15 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HBZ5S32536; Sun, 17 Jun 2001 13:35:05 +0200 Date: Sun, 17 Jun 2001 13:35:05 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Erik Walthinsen Cc: gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 16 Jun 2001, Erik Walthinsen wrote: > Parapraxis (author, paranormal.sourceforge.net) has converted his > visualization plugin over to GObject, and has been hanging out in > #gstreamer, since I'm just now wrapping up a conversion of GStreamer > itself to GObject (more on that in another mail), and he's porting his > plugin to GStreamer. > > He did some profiling of his code, and found that 26% of the CPU time was > in g_type_instance_is_a(). Since that's a pretty complex function, I had > no idea how to optimize it. But then I looked at the code that calls it, > the _G_TYPE_CIT macro, which is the core of G_TYPE_CHECK_INSTANCE_TYPE. > I turns out that a really obvious optimization was ignored: > > #define _G_TYPE_CIT(ip, gt) (g_type_instance_is_a ((GTypeInstance*) ip, gt)) > > The goal is to determine if the object instance *ip is of type gt. > g_type_instance_is_a() goes through a really long list of things to > determine if the object is really an interface, or a derived object, or > any of the other myriad of possibilities that make the type system > actually *useful*. > > The optimization that was missed is that in many/most cases, the code will > be checking a object against its own type. That means that the GType gt > will be equal to the 'immediate' type of the object, not a parent type, or > any of that. > > The 'immediate' type of the object is accessible via the g_class pointer > that is the first 4 bytes of *every* instance of any type (GTypeInstance). > The g_class pointer goes to a structure that has the GType of that object. > Therefore we can simply compare the 'immediate' type of the object > directly against the type in question: > > #define _G_TYPE_CIT(ip, gt) \ > ( (((GTypeInstance*)ip)->g_class->g_type == (gt)) ? TRUE : \ > g_type_instance_is_a ((GTypeInstance*)ip, gt)) > > That way the only time g_type_instance_is_a() is called is when the > comparison is between an object and its parent class, or some similar > case. All other cases are two indirections and a compare. there's one problem with the above macro, that is, (ip) is evaluated twice, if its anything else than a constant (say a function call, returning an object), this macro implementation is potentially harmfull. > Parapraxis found that this reduced the number of calls in his code from > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > g_type_instance_is_a went from 26% to *not measurable*. ok, that is quite alarming indeed. > This won't be > quite as dramatic in something like a Gtk+ application, where more checks > will be done between an object and one of its parent classes, but I would > still expect *at least* a 50% reduction. i'd second that. > I'm convinced that similar optimizations could be made to several of the > other macros in this file, potentially reducing object type checking time > to almost nothing. feel free to post more suggestions liek this to gtk-devel-list@gnome.org. > Parapraxis wondered if multithreading has any impact on this, and I > believe it does not. The object is not capable of changing its type, > ever, afaik. The GType being compared will almost always come from a > _get_type() function that also cannot ever change the GType value. The > only reason for the READER_LOCK in g_type_instance_is_a() is to avoid > someone else mangling the GLists that are walked through to find the > TypeNode in question, afaict. mostly right. though, using g_type_instance_is_a() has another advantage, e.g. consider: #define ID_NOT_IN_TYPE_SYSTEM (255) static guint id = ID_NOT_IN_TYPE_SYSTEM; static guint *id_p = &id; { /*your version*/_G_TYPE_CIT (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* succeeds */ g_type_instance_is_a (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* fails, ID_NOT_IN_TYPE_SYSTEM is not registered */ } however, considering the speed advatage you report, it might be worth lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, for the supposedly pathological case that the instance is broken in that its class contains a non-registered type-id, _and_ this non-registered type id is being checked for, it returns a false TRUE. we still need to get around the double evaluation of the (ip) arg of _G_TYPE_CIT() though, so we'd have to implement it via an auxillary static inline function. the same kind of optimization can be implemented for the class type-checking macro btw. > Anyway, if no one can find any other problems with this code, I would > like to see it make its way into glib CVS. I have GNOME CVS write access, > so if whoever wants me to, I can commit it myself, after posting a full > unidiff on the list for confirmation that I'm doing it right. > > Erik Walthinsen - System Administrator --- ciaoTJ From otaylor@redhat.com Sun Jun 17 08:32:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id E423E2BCB1 for ; Sun, 17 Jun 2001 08:32:44 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id IAA08423 for ; Sun, 17 Jun 2001 08:32:44 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id F0E39242315; Sun, 17 Jun 2001 08:32:43 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 08:32:43 -0400 In-Reply-To: Tim Janik's message of "Sun, 17 Jun 2001 13:35:05 +0200 (CEST)" Message-ID: Lines: 77 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Tim Janik writes: > On Sat, 16 Jun 2001, Erik Walthinsen wrote: > > > Parapraxis found that this reduced the number of calls in his code from > > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > > g_type_instance_is_a went from 26% to *not measurable*. > > ok, that is quite alarming indeed. > > > This won't be > > quite as dramatic in something like a Gtk+ application, where more checks > > will be done between an object and one of its parent classes, but I would > > still expect *at least* a 50% reduction. > > i'd second that. I'm not sure I would. When I did profiling for GtkObject, a huge number of checks were from gtk_object_ref(), gtk_signal_emit() and such, so the really big win was: #define GTK_IS_OBJECT_CLASS(klass) ( \ (klass) != NULL && \ GTK_FUNDAMENTAL_TYPE (((GtkObjectClass*) (klass))->type) == GTK_TYPE_OBJECT \ ) Of course, GDK and Pango have flatter inheritance trees than GTK+, so, checking against the object type is probably a lot more common than it used to be. But trying to second guess this is completely pointless. Someone needs to add a few lines of instrumentation, run testgtk and report the results. > > Parapraxis wondered if multithreading has any impact on this, and I > > believe it does not. The object is not capable of changing its type, > > ever, afaik. The GType being compared will almost always come from a > > _get_type() function that also cannot ever change the GType value. The > > only reason for the READER_LOCK in g_type_instance_is_a() is to avoid > > someone else mangling the GLists that are walked through to find the > > TypeNode in question, afaict. > > mostly right. though, using g_type_instance_is_a() has another advantage, > e.g. consider: > > #define ID_NOT_IN_TYPE_SYSTEM (255) > static guint id = ID_NOT_IN_TYPE_SYSTEM; > static guint *id_p = &id; > { > /*your version*/_G_TYPE_CIT (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* succeeds */ > g_type_instance_is_a (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* fails, > ID_NOT_IN_TYPE_SYSTEM is not > registered */ > } This (to me) completely doesn't matter. g_type_instance_is_a() is virtually always called through BLAH_IS_FOO(), and in that case, the ID is going to be in the type system. > however, considering the speed advatage you report, it might be worth > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > for the supposedly pathological case that the instance is broken in that > its class contains a non-registered type-id, _and_ this non-registered > type id is being checked for, it returns a false TRUE. > > we still need to get around the double evaluation of the (ip) arg of > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > static inline function. > the same kind of optimization can be implemented for the class > type-checking macro btw. It's interesting to note that macros such as GTK_OBJECT() have double evaluated for a long time, and nobody has ever noticed/complained. Regards, Owen From timj@gtk.org Sun Jun 17 08:38:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id E8E052DC7F for ; Sun, 17 Jun 2001 08:38:40 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id IAA08824; Sun, 17 Jun 2001 08:38:40 -0400 Received: from hmbg-3e36c52a.pool.mediaWays.net (hmbg-3e36c52a.pool.mediaWays.net [62.54.197.42]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HCbKb06521; Sun, 17 Jun 2001 08:37:20 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HCdfQ2020460; Sun, 17 Jun 2001 14:39:41 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HCdfK10035; Sun, 17 Jun 2001 14:39:41 +0200 Date: Sun, 17 Jun 2001 14:39:41 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Owen Taylor Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 17 Jun 2001, Owen Taylor wrote: > Tim Janik writes: > > however, considering the speed advatage you report, it might be worth > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > for the supposedly pathological case that the instance is broken in that > > its class contains a non-registered type-id, _and_ this non-registered > > type id is being checked for, it returns a false TRUE. > > > > we still need to get around the double evaluation of the (ip) arg of > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > static inline function. > > the same kind of optimization can be implemented for the class > > type-checking macro btw. > > It's interesting to note that macros such as GTK_OBJECT() have double > evaluated for a long time, and nobody has ever noticed/complained. that's why i said "potentially" harmfull ;) i'm sure you agree that we still need to avoid doubleeval, right? > > Regards, > Owen > > --- ciaoTJ From otaylor@redhat.com Sun Jun 17 08:42:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A6B472E2EB for ; Sun, 17 Jun 2001 08:42:29 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 10628242315; Sun, 17 Jun 2001 08:42:29 -0400 (EDT) To: "Ronald Bultje" Cc: "Scott MacFiggen" , Subject: Re: GTK + SDL References: From: Owen Taylor Date: 17 Jun 2001 08:42:28 -0400 In-Reply-To: "Ronald Bultje"'s message of "Sun, 17 Jun 2001 12:48:32 +0200" Message-ID: Lines: 22 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ronald Bultje" writes: > Hi Scott, > > >I use a drawing area inside of a frame for my SDL/GTK application. > > I personally use an eventbox because the only goal of an eventbox is > to have a X-window associated with it - which is all you'd need. The > eventbox is the "most simple" widget for this - isn't a drawing box > far too complicated for this goal? > Might make a difference of 0,00000001% in performance ;-). Not that it matters at all, but actually, GtkDrawingArea is a simpler widget than GtkEventBox. GtkEventBox is a _container_ with a window, so has code for handling a child widget. GtkDrawingArea, on the other hand, is just a widget with a window that the app can draw on. Regards, Owen From otaylor@redhat.com Sun Jun 17 08:53:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id BC2A52DC70 for ; Sun, 17 Jun 2001 08:53:28 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id IAA09469 for ; Sun, 17 Jun 2001 08:53:28 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 23812242315; Sun, 17 Jun 2001 08:53:28 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 08:53:28 -0400 In-Reply-To: Tim Janik's message of "Sun, 17 Jun 2001 14:39:41 +0200 (CEST)" Message-ID: Lines: 52 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Tim Janik writes: > On 17 Jun 2001, Owen Taylor wrote: > > > Tim Janik writes: > > > > however, considering the speed advatage you report, it might be worth > > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > > for the supposedly pathological case that the instance is broken in that > > > its class contains a non-registered type-id, _and_ this non-registered > > > type id is being checked for, it returns a false TRUE. > > > > > > we still need to get around the double evaluation of the (ip) arg of > > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > > static inline function. > > > the same kind of optimization can be implemented for the class > > > type-checking macro btw. > > > > It's interesting to note that macros such as GTK_OBJECT() have double > > evaluated for a long time, and nobody has ever noticed/complained. > > that's why i said "potentially" harmfull ;) > i'm sure you agree that we still need to avoid doubleeval, right? I'm not sure. Considering that inline functions in C or statement expressions aren't portable, and I think GObject should probably perform portably, it's conceivable that the danger is worth it. I think it was worth it for the GTK_OBJECT() macro. It would certainly be good to avoid double evals for cast macros if at all possible. I've certainly written: GTK_ADJUSTMENT (gtk_adjustment_new (...)); Once or twice. Double evals are less harmful for BLAH_IS_FOO() as compared to BLAH_FOO(), because the worst that can happen with a double eval in BLAH_IS_FOO() is a bit of inefficiency - a memory leak can't happen because the instance pointer isn't returned. And aren't very likely to write something along the lines: if (PANGO_IS_LAYOUT (gtk_label_get_layout (label)) layout = gtk_label_get_layout (label); But any time a double eval of a macro can be avoided, the better, of course. Regards, Owen From timj@gtk.org Sun Jun 17 09:04:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id C2FE62E196 for ; Sun, 17 Jun 2001 09:04:56 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id JAA09879; Sun, 17 Jun 2001 09:04:56 -0400 Received: from hmbg-3e36c52a.pool.mediaWays.net (hmbg-3e36c52a.pool.mediaWays.net [62.54.197.42]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HD3ab07066; Sun, 17 Jun 2001 09:03:36 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HD5xQ2020973; Sun, 17 Jun 2001 15:05:59 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HD5w218222; Sun, 17 Jun 2001 15:05:58 +0200 Date: Sun, 17 Jun 2001 15:05:58 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Owen Taylor Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 17 Jun 2001, Owen Taylor wrote: > Tim Janik writes: > > > On 17 Jun 2001, Owen Taylor wrote: > > > > > Tim Janik writes: > > > > > > however, considering the speed advatage you report, it might be worth > > > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > > > for the supposedly pathological case that the instance is broken in that > > > > its class contains a non-registered type-id, _and_ this non-registered > > > > type id is being checked for, it returns a false TRUE. > > > > > > > > we still need to get around the double evaluation of the (ip) arg of > > > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > > > static inline function. > > > > the same kind of optimization can be implemented for the class > > > > type-checking macro btw. > > > > > > It's interesting to note that macros such as GTK_OBJECT() have double > > > evaluated for a long time, and nobody has ever noticed/complained. > > > > that's why i said "potentially" harmfull ;) > > i'm sure you agree that we still need to avoid doubleeval, right? > > I'm not sure. Considering that inline functions in C or statement > expressions aren't portable, and I think GObject should probably > perform portably, it's conceivable that the danger is worth it. > I think it was worth it for the GTK_OBJECT() macro. i don't think there's much to worry about compilers that can't inline nowadays. glib ensures that static inline at least works on such systems by providing a non-static linkable version, if static inline isn't supported. so worst-case scenario is that for inline-incapable compilers an extra function call is performed. > > Regards, > Owen > --- ciaoTJ From denisoider@mail.ru Sun Jun 17 13:26:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx7.port.ru (mx7.port.ru [194.67.23.44]) by mail.gnome.org (Postfix) with ESMTP id 7577B2DE4F for ; Sun, 17 Jun 2001 13:26:35 -0400 (EDT) Received: from f8.int ([10.0.0.76] helo=f8.mail.ru) by mx7.port.ru with esmtp (Exim 3.14 #1) id 15BgJm-0002X6-00 for gtk-list@gnome.org; Sun, 17 Jun 2001 21:26:34 +0400 Received: from mail by f8.mail.ru with local (Exim 3.14 #2) id 15BgJm-000OQ3-00 for gtk-list@gnome.org; Sun, 17 Jun 2001 21:26:34 +0400 Received: from [212.45.15.120] by win.mail.port.ru with HTTP; Sun, 17 Jun 2001 17:26:34 +0000 (GMT) From: "Bar Den" To: gtk-list@gnome.org Subject: Widget blinking? Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: unknown via proxy [212.45.15.120] Reply-To: "Bar Den" Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Date: Sun, 17 Jun 2001 21:26:34 +0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I use gtk-1.2.8, the problem is when you move mouse cursor over different widgets, sometimes they blink. What is wrong with it, is it a bug? From otaylor@redhat.com Sun Jun 17 13:40:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 41F9C2CAD7 for ; Sun, 17 Jun 2001 13:40:26 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id NAA26978 for ; Sun, 17 Jun 2001 13:40:25 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id AA0EE242315; Sun, 17 Jun 2001 13:40:25 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 13:40:25 -0400 In-Reply-To: Owen Taylor's message of "17 Jun 2001 08:32:43 -0400" Message-ID: Lines: 100 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen Taylor writes: > Tim Janik writes: > > > On Sat, 16 Jun 2001, Erik Walthinsen wrote: > > > > > Parapraxis found that this reduced the number of calls in his code from > > > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > > > g_type_instance_is_a went from 26% to *not measurable*. > > > > ok, that is quite alarming indeed. > > > > > This won't be > > > quite as dramatic in something like a Gtk+ application, where more checks > > > will be done between an object and one of its parent classes, but I would > > > still expect *at least* a 50% reduction. > > > > i'd second that. > > I'm not sure I would. When I did profiling for GtkObject, a huge > number of checks were from gtk_object_ref(), gtk_signal_emit() > and such, so the really big win was: > > #define GTK_IS_OBJECT_CLASS(klass) ( \ > (klass) != NULL && \ > GTK_FUNDAMENTAL_TYPE (((GtkObjectClass*) (klass))->type) == GTK_TYPE_OBJECT \ > ) > > Of course, GDK and Pango have flatter inheritance trees than GTK+, > so, checking against the object type is probably a lot more > common than it used to be. > > But trying to second guess this is completely pointless. Someone > needs to add a few lines of instrumentation, run testgtk and > report the results. Did some checking - patch follows for anybody who wants to try for themselves. For the various tests in testgtk for the type of the object were between 7 and 33% of the total number of BLAH_IS_FOO checks. (Around 15% was typical) G_IS_OBJECT() checks were between 16% and 80% of the total number of checks. (Around 40% was typical) Obviously, it varies a _lot_ depending on what is going on. Regards, Owen Index: gtype.c =================================================================== RCS file: /cvs/gnome/glib/gobject/gtype.c,v retrieving revision 1.27 diff -u -r1.27 gtype.c --- gtype.c 2001/05/10 13:58:40 1.27 +++ gtype.c 2001/06/17 17:35:05 @@ -2479,15 +2479,40 @@ return type; } +static int total = 0; +static int same = 0; +static int gobject = 0; + +void print_perc (void) +{ + g_print ("Percentage of checks 'a is a': %.2f (%d/%d)\n", + 100 * (double)same / total, same, total); + g_print ("Percentage of checks 'a is gobject': %.2f (%d/%d)\n", + 100 * (double)gobject / total, gobject, total); +} + gboolean g_type_instance_is_a (GTypeInstance *type_instance, GType iface_type) { TypeNode *node, *iface; gboolean check; + static gboolean init = FALSE; if (!type_instance || !type_instance->g_class) return FALSE; + + if (!init) + { + init = TRUE; + g_atexit (print_perc); + } + + total++; + if (type_instance->g_class->g_type == iface_type) + same++; + if (G_TYPE_OBJECT == iface_type) + gobject++; G_READ_LOCK (&type_rw_lock); node = lookup_type_node_L (type_instance->g_class->g_type); From ishamael@themes.org Sun Jun 17 15:14:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alpha.techcare.com (unknown [207.89.153.66]) by mail.gnome.org (Postfix) with SMTP id 453B62BEEB for ; Sun, 17 Jun 2001 15:14:12 -0400 (EDT) Received: (qmail 4373 invoked from network); 17 Jun 2001 17:52:47 -0000 Received: from pm538-22.dialip.mich.net (HELO orodruin) (@198.108.161.80) by alpha.techcare.com with SMTP; 17 Jun 2001 17:52:47 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Charlie Schmidt" To: gtk-list@gnome.org Subject: GtkCList & GtkScrolledWindow X-Mailer: Pronto v2.2.6 On linux/mysql Date: 17 Jun 2001 14:57:24 EDT Reply-To: "Charlie Schmidt" Message-Id: <20010617191412.453B62BEEB@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: - im not a big fan of GtkCList, it takes a long long time to insert a lot of rows, but i suppose its all we have, right? so. i was wondering, is there a way to get the CList to request space for X rows, so the ScrolledWindow its in adjusts the scroll bar correctly, or a way to manually set the values in a ScrollBar so it adjusts? this way (at least, in my mind) i could insert the first 20 or so rows that would be required for display, and set the scroll bar so it looks like there are however many inserted, and then thread an insert function to append the rest of the rows. or, alternatively, can anyone tell me that the new GtkTreeView widget is significantly better for inserting, say, 10000-50000 rows all at once? ive tested it a bit in Gtk+-1.3.6, and wasnt very impressed (in fact, it seemed much much slower than GtkCList even). thanks. -- Charlie Schmidt - From hp@redhat.com Sun Jun 17 15:48:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 25FC82DC3A for ; Sun, 17 Jun 2001 15:48:15 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5HJm1432688; Sun, 17 Jun 2001 15:48:01 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Charlie Schmidt" Cc: gtk-list@gnome.org Subject: Re: GtkCList & GtkScrolledWindow References: <20010617191412.453B62BEEB@mail.gnome.org> From: Havoc Pennington Date: 17 Jun 2001 15:48:01 -0400 In-Reply-To: "Charlie Schmidt"'s message of "17 Jun 2001 14:57:24 EDT" Message-ID: Lines: 37 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Charlie Schmidt" writes: > im not a big fan of GtkCList, it takes a long long time to insert a lot > of rows, but i suppose its all we have, right? It's actually pretty fast, i.e. it's not doing a lot of work per-row. It's just that this operation is inherently O(n). You aren't going to get it to scale beyond that. > this way (at least, in my mind) i could insert the first 20 or so rows > that would be required for display, and set the scroll bar so it looks > like there are however many inserted, and then thread an insert function > to append the rest of the rows. > > or, alternatively, can anyone tell me that the new GtkTreeView widget is > significantly better for inserting, say, 10000-50000 rows all at once? > ive tested it a bit in Gtk+-1.3.6, and wasnt very impressed (in fact, it > seemed much much slower than GtkCList even). > It is much slower than the CList. However, there are two things we can do. a) You can write a custom model. So if you already have your row data, you don't actually need to "insert" it. The only issue is how long it takes GtkTreeView to compute the display. b) For computing the display, we can do it incrementally as for GtkTextView. Try putting a lot of text in the text view to see how it works. Basically you compute the onscreen display first and go ahead and show it, and do the rest in the background. Web browsers do this same thing as data streams in. Those two things should remove the O(n) issue, getting stuff onscreen becomes constant-time-ish. Havoc From bloodso@yahoo.com Sun Jun 17 17:09:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bigred.192.168.1.2 (24129136hfc79.tampabay.rr.com [24.129.136.79]) by mail.gnome.org (Postfix) with ESMTP id D28F12BB2D for ; Sun, 17 Jun 2001 17:09:39 -0400 (EDT) Received: from bigred (localhost.localdomain [127.0.0.1]) by bigred.192.168.1.2 (Postfix) with SMTP id 6D56C2A938 for ; Sun, 17 Jun 2001 17:15:09 -0400 (EDT) From: Chris Date: Sun, 17 Jun 2001 17:15:09 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: gtk-list@gnome.org Subject: drawing area in scrolled window MIME-Version: 1.0 Message-Id: <01061717150900.32534@bigred> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I am having trouble using a drawing area in a scrolled window. I am unable to scroll the drawing area. I have tried using a callback for the viewport in the scrolled window to set the vertical and horizontal adjustments for the size of the drawing area but that does not seem to work. Is it possible to scroll a drawing area with a scrolled window or will I have to use vertical and horizontal scrollbars? TIA, Chris From hp@redhat.com Sun Jun 17 20:03:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B45D42E298 for ; Sun, 17 Jun 2001 20:03:14 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5I02xT00323; Sun, 17 Jun 2001 20:02:59 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Chris Cc: gtk-list@gnome.org Subject: Re: drawing area in scrolled window References: <01061717150900.32534@bigred> From: Havoc Pennington Date: 17 Jun 2001 20:02:59 -0400 In-Reply-To: Chris's message of "Sun, 17 Jun 2001 17:15:09 -0400" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris writes: > Hello. I am having trouble using a drawing area in a scrolled window. I am > unable to scroll the drawing area. I have tried using a callback for the > viewport in the scrolled window to set the vertical and horizontal > adjustments for the size of the drawing area but that does not seem to work. > Is it possible to scroll a drawing area with a scrolled window or will I have > to use vertical and horizontal scrollbars? > It should work, you have to be sure to use gtk_scrolled_window_add_with_viewport(). Havoc From mseisdedos@cirsa.com Mon Jun 18 03:17:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id 774582BB09 for ; Mon, 18 Jun 2001 03:17:18 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A6F.0027F745; Mon, 18 Jun 2001 09:16:32 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Mon, 18 Jun 2001 09:16:43 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4821@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: icon visible Date: Mon, 18 Jun 2001 09:16:42 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a toolbar with both icons, and label in each button, if i press no sensitive button i get two different situations: a) gtk stock icons, like clear, cut, paste....., works ok: both icon an label get insensitive, b) buttons with my own icons, the lagel gets insensitive but icons remains sensitive. Any body knows why???? From thierry.herbreteau@trium-rd.com Mon Jun 18 04:17:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relais-int8.globalintranet.net (mailgate.globalintranet.net [194.206.181.244]) by mail.gnome.org (Postfix) with ESMTP id 7EFA92CC93 for ; Mon, 18 Jun 2001 04:17:15 -0400 (EDT) Received: from mitsu5.mef-rd.com ([10.255.7.37]) by relais-int8.globalintranet.net (Netscape Messaging Server 4.15) with SMTP id GF49NI00.C2B; Mon, 18 Jun 2001 10:16:30 +0200 Received: from trium-rd.com by mitsu5.mef-rd.com (SMI-8.6/SMI-SVR4) id KAA12961; Mon, 18 Jun 2001 10:15:46 +0200 Message-ID: <3B2DB930.F3A49A0E@trium-rd.com> Date: Mon, 18 Jun 2001 10:17:52 +0200 From: Thierry Herbreteau Reply-To: thierry.herbreteau@trium-rd.com Organization: Mitsubishi Electric Telecom Europe X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en,fr MIME-Version: 1.0 To: Sven Neumann Cc: Simon Budig , gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sven Neumann wrote: > Actually we need something like GTK+-Embedded but at the moment I don't > see anyone pushing it and we are lacking the resources to do a general > solution at the moment. Hi Sven, I've heard about something developped on the Ipaq called Familiar. I don't know it very much but it seems to be based on GTK+. Do you have any information on it ? What kind of solution is it ? Bye, Thierry. From john.cupitt@ng-london.org.uk Mon Jun 18 07:43:52 2001 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 1925D2E192 for ; Mon, 18 Jun 2001 07:40:44 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN4RN; Mon, 18 Jun 2001 12:40:43 +0100 Message-ID: <3B2DE76D.9C9E6B4D@ng-london.org.uk> Date: Mon, 18 Jun 2001 12:35:09 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Sergio Arregui Ojeda Cc: GTK-List Subject: Re: Help! References: <3B2A5155.9DAB2A@cicese.mx> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sergio Arregui Ojeda wrote: > i have to develop a system that has to plot data that is acquired > trhough the serial port, i have done most of this part using > the realtime plot demo that comes with extragtk, but i have a problem > because it's a lot of data and my machine gets very busy > while plotting, i think that this is 'cause the data does not > get released, instead it keeps it in memory, and i want to know > if theres is a way that this data can be freed (or deallocated) > so this way it speed up things. Hi Sergio, memory should be freed up; if it's not getting freed, you have a bug somewhere. Maybe you're not _unref()ing stuff you should be unrefing? You could try a leak checker to try to track the problem down. memprof is nice and very easy to use: http://people.redhat.com/otaylor/memprof/ Run your program with no input first, and nail the easy leaks. Then start adding more data and see where new leaks appear. If you want something more sophisticated, you could download a trial version of purify: http://www.rational.com (100MB download, solaris/irix/hp-ux only, 15 days only). HTH, John From hp@redhat.com Mon Jun 18 10:24:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B18372BAB6 for ; Mon, 18 Jun 2001 10:24:21 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IENcr01382; Mon, 18 Jun 2001 10:23:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Monserrat Seisdedos =?iso-8859-1?q?Nu=F1ez?= Cc: "gtk (E-mail)" Subject: Re: icon visible References: <01294F3FC12BD41183BD00D0B7176A1D4D4821@srvexch> From: Havoc Pennington Date: 18 Jun 2001 10:23:38 -0400 In-Reply-To: Monserrat Seisdedos =?iso-8859-1?q?Nu=F1ez's?= message of "Mon, 18 Jun 2001 09:16:42 +0200" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Monserrat Seisdedos Nu=F1ez writes: > I have a toolbar with both icons, and label in each button, if i press no > sensitive button i get two different situations: > a) gtk stock icons, like clear, cut, paste....., works ok: both icon > an label get insensitive,=20 > b) buttons with my own icons, the lagel gets insensitive but icons > remains sensitive. > Any body knows why???? >=20 (Assuming GTK 1.3.6) You have to use GtkIconSet if you want the insensitive effect.=20 Register your icons with the stock system, the "Main application window" demo in gtk-demo has an example. Havoc From rwalden@tripos.com Mon Jun 18 10:57:00 2001 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 CC6FF2D41B for ; Mon, 18 Jun 2001 10:56:58 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id JAA26940 for ; Mon, 18 Jun 2001 09:56:52 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma023635; Mon, 18 Jun 01 09:42:28 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id JAA91630 for ; Mon, 18 Jun 2001 09:42:01 -0500 (CDT) Message-ID: <3B2E1338.3C18A969@tripos.com> Date: Mon, 18 Jun 2001 09:42:00 -0500 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@gnome.org Subject: MDI Interface 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to create a Multiple Document Interface (MDI) (a-la MSWord ) with GTK+? I haven't seen any examples like this, so I am wondering.... -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From andres_giraldo@yahoo.com Mon Jun 18 11:34:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11507.mail.yahoo.com (web11507.mail.yahoo.com [216.136.172.39]) by mail.gnome.org (Postfix) with SMTP id C59672BA98 for ; Mon, 18 Jun 2001 11:34:33 -0400 (EDT) Message-ID: <20010618153433.39415.qmail@web11507.mail.yahoo.com> Received: from [209.205.77.166] by web11507.mail.yahoo.com; Mon, 18 Jun 2001 08:34:33 PDT Date: Mon, 18 Jun 2001 08:34:33 -0700 (PDT) From: "Andrés" Giraldo Subject: gtk_widget_destroy To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm creating a window from a nother window, something like a message box, but when I want to unload this window; should I use gtk_widget_destroy? Because I'm connecting this signal to a button clicked event: gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", GTK_SIGNAL_FUNC (on_btnClose_clicked), NULL) // callback function void on_btnClose_clicked (GtkButton *button, gpointer data) { GtkWidget *window = (GtkWidget *)data; gtk_widget_destory (window); } /*********** It doesn't work, Gtk tells me that window is not an Gtk Widget... There's another way to unload a window or what I'm doing wrong... Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From alexl@redhat.com Mon Jun 18 12:18:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 8DB522BB23 for ; Mon, 18 Jun 2001 12:18:25 -0400 (EDT) Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [207.175.42.156]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id MAA26707; Mon, 18 Jun 2001 12:18:25 -0400 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id f5IGINP23616; Mon, 18 Jun 2001 12:18:23 -0400 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 18 Jun 2001 12:18:23 -0400 (EDT) From: Alex Larsson X-X-Sender: To: Tim Janik Cc: Owen Taylor , Erik Walthinsen , , Gtk+ Developers , Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sun, 17 Jun 2001, Tim Janik wrote: > > I'm not sure. Considering that inline functions in C or statement > > expressions aren't portable, and I think GObject should probably > > perform portably, it's conceivable that the danger is worth it. > > I think it was worth it for the GTK_OBJECT() macro. > > i don't think there's much to worry about compilers that can't inline > nowadays. glib ensures that static inline at least works on such systems > by providing a non-static linkable version, if static inline isn't supported. > so worst-case scenario is that for inline-incapable compilers an extra > function call is performed. I'd like to point out here that GCC produces better code for macros than inline functions. This will continue to be true in GCC 3.0, and in the future until the tree inliner is ported from the c++ compiler to the c compiler. / Alex From sven@gimp.org Mon Jun 18 12:35:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 905A82E3DF for ; Mon, 18 Jun 2001 12:35:19 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15C1t1-00010y-00; Mon, 18 Jun 2001 18:28:23 +0200 To: "AndrXs" Giraldo Cc: Gtk List Subject: Re: gtk_widget_destroy References: <20010618153433.39415.qmail@web11507.mail.yahoo.com> From: Sven Neumann Date: 18 Jun 2001 18:28:23 +0200 In-Reply-To: <20010618153433.39415.qmail@web11507.mail.yahoo.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "AndrXs" Giraldo writes: > I'm creating a window from a nother window, something > like a message box, but when I want to unload this > window; > > should I use gtk_widget_destroy? > > Because I'm connecting this signal to a button clicked > event: > > gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", > GTK_SIGNAL_FUNC > (on_btnClose_clicked), NULL) > > > // callback function > > void on_btnClose_clicked (GtkButton *button, gpointer > data) > { > GtkWidget *window = (GtkWidget *)data; > > gtk_widget_destory (window); > } > you did not pass the window pointer when connecting your signal. How is this supposed to work ?? Salut, Sven From king@eiffel.com Mon Jun 18 13:42:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 0911C2BB19 for ; Mon, 18 Jun 2001 13:42:27 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C32f-0001oj-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 10:42:25 -0700 Message-ID: <1fe701c0f81f$2752db30$750a000a@naples> From: "Ian King" To: Subject: Scrolled window in ctree Date: Mon, 18 Jun 2001 10:50:25 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone know why the horizontal scrollbar for ctree (scrolled_window_add_with_viewport) is not viewable at all. I also get size allocation warnings everytime I use the ctree? I need to fix this as ctrees are used for our visual debugger. Thanks for your time IEK From rsteinke@w-link.net Mon Jun 18 14:26:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 86F882E00E for ; Mon, 18 Jun 2001 14:26:11 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15C3nZ-0002s8-00 for ; Mon, 18 Jun 2001 11:30:53 -0700 Date: Mon, 18 Jun 2001 11:30:53 -0700 To: gtk-list@gnome.org Subject: Trouble setting GdkEventMask Message-ID: <3B2E48DD.nail8HY11LXHW@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm trying to connect to the key-press-event of a wigdet derived from GtkDrawingArea. It has a window, and I'm using gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to the GdkEventMask for the widget. Nonetheless, the signal isn't being emitted (it's not even showing up in the default function for the event signal in the derived widget). What am I forgetting? I'm using gtk 1.3, if that matters. Ron Steinke From hp@redhat.com Mon Jun 18 14:34:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5413B2DEE8 for ; Mon, 18 Jun 2001 14:30:36 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IIULW01615; Mon, 18 Jun 2001 14:30:21 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Scrolled window in ctree References: <1fe701c0f81f$2752db30$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 14:30:21 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 10:50:25 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > Does anyone know why the horizontal scrollbar for ctree > (scrolled_window_add_with_viewport) is not viewable at all. I also get size > allocation warnings everytime I use the ctree? I need to fix this as ctrees > are used for our visual debugger. > > Thanks for your time > Don't use add_with_viewport(), that's only for widgets without "native" scroll support. Just use gtk_container_add(). Havoc From skip@beluga.mojam.com Mon Jun 18 14:36:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 927752E011 for ; Mon, 18 Jun 2001 14:36:28 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5IIYuV09781; Mon, 18 Jun 2001 13:34:56 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15150.18895.379738.456168@beluga.mojam.com> Date: Mon, 18 Jun 2001 13:34:55 -0500 To: gtk-list@gnome.org, pygtk@daa.com.au Subject: can I watch all signals being emitted? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: For debugging and tutorial purposes, is it possible to easily see all signal emissions (or all signal emissions by a particular object)? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From george@clipper.ens.fr Mon Jun 18 11:48:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 25C7F2BDE9 for ; Mon, 18 Jun 2001 11:48:28 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA17639 for ; Mon, 18 Jun 2001 11:48:27 -0400 Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5IFlAb00790 for ; Mon, 18 Jun 2001 11:47:10 -0400 Received: from chaland.ens.fr (chaland.ens.fr [129.199.129.3]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f5IFmK663604 for ; Mon, 18 Jun 2001 17:48:20 +0200 (CEST) Date: Mon, 18 Jun 2001 17:48:20 +0200 (CEST) Received: from (george@localhost) by chaland.ens.fr (8.9.2/jb-1.1) Message-Id: <200106181548.RAA08305@chaland.ens.fr> From: george@clipper.ens.fr (Nicolas George) References: <3B2E1338.3C18A969@tripos.com> Subject: Re: MDI Interface Newsgroups: ens.mailing-lists.gtk.general X-Newsreader: Flrn (0.4.0 - 07/99) To: gtk-list@redhat.com In-Reply-To: <3B2E1338.3C18A969@tripos.com> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden, dans le message <3B2E1338.3C18A969@tripos.com> a écrit : > Is it possible to create a Multiple Document Interface (MDI) > (a-la MSWord ) with GTK+? No, this is not possible. These interfaces are Evil. How do you make them work with multiple virtual desktops? You should use several toplevel windows instead. From king@eiffel.com Mon Jun 18 16:29:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 8CE2C2BB38 for ; Mon, 18 Jun 2001 16:29:12 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C5e0-0004Jj-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 13:29:08 -0700 Message-ID: <211901c0f836$71f778a0$750a000a@naples> From: "Ian King" To: Subject: Visual types Date: Mon, 18 Jun 2001 13:37:08 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: What are the main disadvantages for using a pseudo color visual for all applications written in gtk. Is it that high color images will look all messed up or are their other disadvantages? Thanks for your time. Ian King From pbd@op.net Mon Jun 18 16:32:07 2001 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 72C122DB68 for ; Mon, 18 Jun 2001 16:32:07 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-15.ppp.op.net [209.152.194.117]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA27022; Mon, 18 Jun 2001 16:32:00 -0400 (EDT) Message-Id: <200106182032.QAA27022@renoir.op.net> To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask In-reply-to: Your message of "Mon, 18 Jun 2001 11:30:53 PDT." <3B2E48DD.nail8HY11LXHW@yggdrasil> Date: Mon, 18 Jun 2001 16:31:57 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > I'm trying to connect to the key-press-event of a wigdet >derived from GtkDrawingArea. It has a window, and I'm using >gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to >the GdkEventMask for the widget. Nonetheless, the signal >isn't being emitted (it's not even showing up in the >default function for the event signal in the derived >widget). What am I forgetting? I'm using gtk 1.3, if >that matters. did you set the CAN_FOCUS flag? otherwise, the widget will never receive keyboard focus (i think) ... From hp@redhat.com Mon Jun 18 16:32:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2E3042DB68 for ; Mon, 18 Jun 2001 16:32:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IKVrk01651; Mon, 18 Jun 2001 16:31:53 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <3B2E48DD.nail8HY11LXHW@yggdrasil> From: Havoc Pennington Date: 18 Jun 2001 16:31:53 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 11:30:53 -0700" Message-ID: Lines: 16 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > I'm trying to connect to the key-press-event of a wigdet > derived from GtkDrawingArea. It has a window, and I'm using > gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to > the GdkEventMask for the widget. Nonetheless, the signal > isn't being emitted (it's not even showing up in the > default function for the event signal in the derived > widget). What am I forgetting? I'm using gtk 1.3, if > that matters. > You need the drawing area to have key focus. Set GTK_CAN_FOCUS flag, gtk_widget_grab_focus() on button press, etc. Havoc From king@eiffel.com Mon Jun 18 17:15:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 9917C2D2E6 for ; Mon, 18 Jun 2001 17:15:11 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C6MY-0003Wk-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 14:15:10 -0700 Message-ID: <215f01c0f83c$e0394630$750a000a@naples> From: "Ian King" To: Subject: Default buttons Date: Mon, 18 Jun 2001 14:23:10 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I change the border size of a button that has been set with the flag GTK_CAN_DEFAULT. Thanks Ian King From hp@redhat.com Mon Jun 18 17:50:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 685872DC09 for ; Mon, 18 Jun 2001 17:50:12 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ILnpG01675; Mon, 18 Jun 2001 17:49:51 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Visual types References: <211901c0f836$71f778a0$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 17:49:51 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 13:37:08 -0700" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > What are the main disadvantages for using a pseudo color visual for all > applications written in gtk. Is it that high color images will look all > messed up or are their other disadvantages? > There's just no real point using a visual other than the default, ever. Unless your app is written specifically for certain hardware such as an SGI. (The only exception is to use the GdkRGB visual for drawables where you'll draw RGB data, but in GTK 2 this isn't even necessary.) Havoc From raphi2@caramail.com Mon Jun 18 17:54:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail2.caramail.com (mail2.caramail.com [195.68.99.69]) by mail.gnome.org (Postfix) with ESMTP id 2A7C52E1B4 for ; Mon, 18 Jun 2001 17:54:43 -0400 (EDT) Received: from caramail.com (www35.caramail.com [195.68.99.214]) by mail2.caramail.com (8.8.8/8.8.8) with SMTP id XAA28311; Mon, 18 Jun 2001 23:54:42 +0200 (DST) Posted-Date: Mon, 18 Jun 2001 23:54:42 +0200 (DST) From: raphi2 raph To: gtk-list@gnome.org Cc: otaylor@redhat.com Message-ID: <992901282019158@caramail.com> X-Mailer: Caramail - www.caramail.com X-Originating-IP: [163.5.255.8] Mime-Version: 1.0 Subject: GTK / SDL bis Date: Mon, 18 Jun 2001 23:54:42 GMT+1 Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_019158992901282_ID" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_Caramail_019158992901282_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Here is my problem again: I'm currently developping a GTK application and I need using SDL to improve my application. I saw an example of GTK + SDL program on www.libsdl.org but this example doesn't help me a lot. In fact I would like to "include" a little SDL window in a big GTK window. (by example to be able to play movies in my GTK application) I tried to resolve my problem with your advices :) but I have still problems. here is the part of my program with problems: SDL_Thread *thread; GtkWidget *drawing_area; Window xwin; gtk_sess *sess =3D (gtk_sess *)data; sess->new =3D gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize(sess->new, 460, 500); // gtk_widget_show (sess->new); sess->fixed =3D gtk_fixed_new(); gtk_widget_ref (sess->fixed); gtk_widget_show (sess->fixed); gtk_container_add(GTK_CONTAINER(sess->new), sess->fixed); drawing_area =3D gtk_drawing_area_new(); gtk_widget_set_usize(drawing_area, 100, 100); gtk_fixed_put(GTK_FIXED(sess->fixed), drawing_area, 400, 400); gtk_widget_realize(drawing_area); gtk_widget_show(drawing_area); { char SDL_windowhack[32]; sprintf(SDL_windowhack,"SDL_WINDOWID=3D-543170384", GDK_WINDOW_XWINDOW(drawing_area->window)); putenv(SDL_windowhack); } screen =3D SDL_SetVideoMode(100, 100, 0, 0); thread =3D SDL_CreateThread(play_film, sess); if (thread =3D=3D NULL) printf("Probleme avec la thread\n"); // gtk_timeout_add(5, animation, sess); I do the SDL_Init before this in an init function. Do you see something wrong in this code ? Thanks a lot for help Raph _________________________________________________________ Le journal des abonn=E9s Caramail - http://www.carazine.com --=_NextPart_Caramail_019158992901282_ID-- From king@eiffel.com Mon Jun 18 19:47:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 306EF2BCA3 for ; Mon, 18 Jun 2001 19:47:17 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C8jj-0003dD-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 16:47:15 -0700 Message-ID: <220801c0f852$1ffee8a0$750a000a@naples> From: "Ian King" To: Subject: Popup windows Date: Mon, 18 Jun 2001 16:55:17 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I have a widget within a popup window, such as a text field, the text field doesn't seem to get the focus. If I then change the window to be a top level window, then the text field works perfectly. Does anyone know why this is? Thanks for your time Ian King From king@eiffel.com Mon Jun 18 20:08:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id EACB12BCBB for ; Mon, 18 Jun 2001 20:08:40 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C94Q-00079D-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 17:08:38 -0700 Message-ID: <221a01c0f855$1c8aa210$750a000a@naples> From: "Ian King" To: References: <220801c0f852$1ffee8a0$750a000a@naples> Subject: Re: Popup windows Date: Mon, 18 Jun 2001 17:16:39 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: In follow up to the previous message, it seems that the key events are not passed through for a popup window, but are for a top level window. Is there a reason for this? Thanks Ian King ----- Original Message ----- From: "Ian King" To: Sent: Monday, June 18, 2001 4:55 PM Subject: Popup windows > When I have a widget within a popup window, such as a text field, the text > field doesn't seem to get the focus. If I then change the window to be a > top level window, then the text field works perfectly. Does anyone know why > this is? > > Thanks for your time > > Ian King > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From hp@redhat.com Mon Jun 18 20:27:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1592D2DD26 for ; Mon, 18 Jun 2001 20:27:56 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J0RfZ01824; Mon, 18 Jun 2001 20:27:41 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Popup windows References: <220801c0f852$1ffee8a0$750a000a@naples> <221a01c0f855$1c8aa210$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 20:27:41 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 17:16:39 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > In follow up to the previous message, it seems that the key events are not > passed through for a popup window, but are for a top level window. Is there > a reason for this? > Yes, GTK_WINDOW_POPUP windows are not known to the window manager. So the window manager won't ever give them focus. You shouldn't use GTK_WINDOW_POPUP for windows that require focus, only for things like tooltips and menus. Havoc From king@eiffel.com Mon Jun 18 20:40:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id DF1F12DBE0 for ; Mon, 18 Jun 2001 20:40:40 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C9ZO-0003dt-00; Mon, 18 Jun 2001 17:40:38 -0700 Message-ID: <224b01c0f859$94870bb0$750a000a@naples> From: "Ian King" To: "Havoc Pennington" Cc: References: <220801c0f852$1ffee8a0$750a000a@naples><221a01c0f855$1c8aa210$750a000a@naples> Subject: Re: Popup windows Date: Mon, 18 Jun 2001 17:48:39 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to create a window with no decorations, that allows widgets inside it to behave as they do with a normal top level window. Can I create a top level window that 1) Has no decorations and only shows the client area. 2) Cannot be moved or resized by the user (I guess this is done by changing the window policy). I need this for things such as a code autocomplete window that pops up when you enter a keyboard accelerator and this brings up a list of possibilities for you to choose from. Thanks for your time. Ian King ----- Original Message ----- From: "Havoc Pennington" To: "Ian King" Cc: Sent: Monday, June 18, 2001 5:27 PM Subject: Re: Popup windows > > "Ian King" writes: > > In follow up to the previous message, it seems that the key events are not > > passed through for a popup window, but are for a top level window. Is there > > a reason for this? > > > > Yes, GTK_WINDOW_POPUP windows are not known to the window manager. So > the window manager won't ever give them focus. > > You shouldn't use GTK_WINDOW_POPUP for windows that require focus, > only for things like tooltips and menus. > > Havoc > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From rsteinke@w-link.net Mon Jun 18 21:13:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id DC3E52BCA3 for ; Mon, 18 Jun 2001 21:13:21 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CA9d-0003vj-00; Mon, 18 Jun 2001 18:18:05 -0700 Date: Mon, 18 Jun 2001 18:18:05 -0700 To: pbd@Op.Net, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2EA84D.nailBN41M8KO5@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> In-Reply-To: <200106182032.QAA27022@renoir.op.net> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: Paul Davis > > > I'm trying to connect to the key-press-event of a wigdet > >derived from GtkDrawingArea. It has a window, and I'm using > >gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to > >the GdkEventMask for the widget. Nonetheless, the signal > >isn't being emitted (it's not even showing up in the > >default function for the event signal in the derived > >widget). What am I forgetting? I'm using gtk 1.3, if > >that matters. > > did you set the CAN_FOCUS flag? otherwise, the widget will never > receive keyboard focus (i think) ... > I was missing that, so thanks. However, I changed that, and it still doesn't work. What else is missing? Ron Steinke From james@daa.com.au Mon Jun 18 21:18:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from quoll.daa.com.au (quoll.daa.com.au [203.17.251.129]) by mail.gnome.org (Postfix) with ESMTP id 871FC2E1F0 for ; Mon, 18 Jun 2001 21:18:32 -0400 (EDT) Received: from james.daa.com.au (james.daa.com.au [203.17.251.193]) by quoll.daa.com.au (Postfix) with ESMTP id E2ACDC0A4; Tue, 19 Jun 2001 09:18:27 +0800 (WST) Date: Tue, 19 Jun 2001 09:18:26 +0800 (WST) From: James Henstridge To: Skip Montanaro Cc: , Subject: Re: [pygtk] can I watch all signals being emitted? In-Reply-To: <15150.18895.379738.456168@beluga.mojam.com> Message-ID: X-message-flag: ALL YOUR BASE ARE BELONG TO US Reply-By: Sat 01 Jan 2000 00:00:00 +800 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, 18 Jun 2001, Skip Montanaro wrote: > > For debugging and tutorial purposes, is it possible to easily see all signal > emissions (or all signal emissions by a particular object)? There are some debug flags for the GType system, but at the moment the gobject module hard codes this to 0 (no flags). For now, you could change the line in gobjectmodule.c: g_type_init(0); to: g_type_init(G_TYPE_DEBUG_SIGNALS); I haven't really looked at making this configurable, as they were talking about changing this interface a little on gtk-devel-list James. -- Email: james@daa.com.au WWW: http://www.daa.com.au/~james/ From hp@redhat.com Mon Jun 18 22:26:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 3365A2C81E for ; Mon, 18 Jun 2001 22:26:10 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J2PtQ01909; Mon, 18 Jun 2001 22:25:55 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: pbd@Op.Net, gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> From: Havoc Pennington Date: 18 Jun 2001 22:25:55 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 18:18:05 -0700" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > > I was missing that, so thanks. However, I changed that, > and it still doesn't work. What else is missing? > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus indication if any. GTK 2.0 has default implementations that do this in GtkWidget. Havoc From hp@redhat.com Mon Jun 18 22:29:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 61DDA2DB51 for ; Mon, 18 Jun 2001 22:29:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J2Sht01912; Mon, 18 Jun 2001 22:28:43 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Popup windows References: <220801c0f852$1ffee8a0$750a000a@naples> <221a01c0f855$1c8aa210$750a000a@naples> <224b01c0f859$94870bb0$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 22:28:43 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 17:48:39 -0700" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > I want to create a window with no decorations, that allows widgets inside it > to behave as they do with a normal top level window. > > Can I create a top level window that > > 1) Has no decorations and only shows the client area. > 2) Cannot be moved or resized by the user (I guess this is done by changing > the window policy). > gdk_window_set_decorations (window->window, 0) to disable decorations, gtk_window_set_policy() to turn off resizing, disabling movement is impossible due to the way window management and X work. gdk_window_set_functions() in principle lets you disable movement but AFAIK most window managers ignore that hint. Havoc From cschadl@satan.org.uk Tue Jun 19 00:20:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ryoko.2y.net (235dul123.chartermi.net [206.11.235.123]) by mail.gnome.org (Postfix) with ESMTP id 5912F2BBAE for ; Tue, 19 Jun 2001 00:20:07 -0400 (EDT) Received: from ryoko.leet.org (lain [192.168.0.2]) by ryoko.2y.net (8.11.1/8.11.1) with SMTP id f5JHisi22533 for ; Tue, 19 Jun 2001 12:44:55 -0500 (CDT) (envelope-from cschadl@satan.org.uk) Date: Mon, 18 Jun 2001 23:21:11 -0500 From: Chris Schadl To: gtk-list@gnome.org Subject: Widgets not showing up Message-ID: <20010618232111.A24006@lain.leet.org> Reply-To: cschadl@satan.org.uk Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="AWniW0JNca5xppdA" Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.1.1 Lines: 159 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --AWniW0JNca5xppdA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit I've written a simple UI with a menubar, a hpaned window with a ctree and a clist packed into either side, and a status bar at the bottom of the window. Unfortunatley, only the hpaned container and its child widgets are displayed; the menubar and the status bar are not. Is there something wrong with my code that would cause this? I've writen simmilar interfaces that have worked just fine in the past, but this one has me stumped. --AWniW0JNca5xppdA Content-Type: text/x-c; charset=us-ascii Content-Disposition: attachment; filename="paned-test.c" #include #include void cb_delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { g_print("A delete_event occured.\n"); gtk_main_quit(); } void cb_clist_selection_made(GtkWidget *clist, gint row, gint column, GdkEventButton *event, gpointer data) { gchar *text; gtk_clist_get_text(GTK_CLIST(clist), row, column, &text); printf("%s was selected", text); } GtkWidget *create_main_window(void) { GtkWidget *window; GtkWidget *mainbox; GtkWidget *paned; GtkWidget *vbox; GtkWidget *scrolled_window; GtkWidget *scrolled2; GtkWidget *clist; GtkWidget *ctree; GtkWidget *entry; GtkWidget *status_bar; /* Menubar stuff */ GtkAccelGroup *group; GtkItemFactory *itemfactory; gint nmenu_items; GtkWidget *app_menubar; static GtkItemFactoryEntry menu_items[] = { { "/_File", "F", NULL, 0, "" }, { "/File/File", NULL, NULL, 0, "" }, { "/File/sep1", NULL, NULL, 0, "<Separator>" }, { "/File/_Quit", "<control>Q", gtk_main_quit, 0, "<Item>" } }; static gchar *clist_titles[] = { "Name", "Size" }; /* Containers */ window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize(GTK_WIDGET(window), 640, 480); gtk_window_set_title(GTK_WINDOW(window), "Paned window test"); gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(cb_delete_event), NULL); mainbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); paned = gtk_hpaned_new(); gtk_paned_set_position(GTK_PANED(paned), 200); gtk_container_add(GTK_CONTAINER(window), paned); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); scrolled_window = gtk_scrolled_window_new(NULL, NULL); gtk_container_add(GTK_CONTAINER(window), scrolled_window); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); scrolled2 = gtk_scrolled_window_new(NULL, NULL); gtk_container_add(GTK_CONTAINER(window), scrolled2); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled2), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); /* Widgets */ group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), group); nmenu_items = (sizeof (menu_items) / sizeof (menu_items[0])); itemfactory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "<main>", group); gtk_item_factory_create_items(itemfactory, nmenu_items, menu_items, NULL); app_menubar = gtk_item_factory_get_widget(itemfactory, "<main>"); clist = gtk_clist_new_with_titles(2, clist_titles); gtk_clist_set_shadow_type(GTK_CLIST(clist), GTK_SHADOW_ETCHED_IN); gtk_signal_connect(GTK_OBJECT(clist), "select_row", GTK_SIGNAL_FUNC(cb_clist_selection_made), GTK_CLIST(clist)); ctree = gtk_ctree_new(1,1); entry = gtk_entry_new(); status_bar = gtk_statusbar_new(); /* Pack widgets */ gtk_box_pack_start(GTK_BOX(mainbox), app_menubar, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(mainbox), paned, TRUE, TRUE, 0); gtk_box_pack_end(GTK_BOX(mainbox), status_bar, TRUE, FALSE, 0); gtk_paned_add1(GTK_PANED(paned), vbox); gtk_paned_add2(GTK_PANED(paned), scrolled_window); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), scrolled2, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(scrolled2), ctree); gtk_container_add(GTK_CONTAINER(scrolled_window), clist); /* Okay, all done. */ return(window); } int main(int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = create_main_window(); gtk_widget_show_all(window); gtk_main(); return 0; } --AWniW0JNca5xppdA-- From damon@ximian.com Tue Jun 19 00:42:08 2001 Return-Path: <damon@ximian.com> Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id 380F92CC57 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 00:42:08 -0400 (EDT) Received: from ximian.com (IDENT:damon@karuna.ximian.com [141.154.95.114]) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id AAA25961; Tue, 19 Jun 2001 00:42:06 -0400 Message-ID: <3B2ED7B9.63248AE6@ximian.com> Date: Tue, 19 Jun 2001 00:40:25 -0400 From: Damon Chaplin <damon@ximian.com> X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: cschadl@satan.org.uk Cc: gtk-list@gnome.org Subject: Re: Widgets not showing up References: <20010618232111.A24006@lain.leet.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Chris Schadl wrote: > > I've written a simple UI with a menubar, a hpaned window with a ctree and a > clist packed into either side, and a status bar at the bottom of the > window. Unfortunatley, only the hpaned container and its child widgets are > displayed; the menubar and the status bar are not. Is there something > wrong with my code that would cause this? I've writen simmilar interfaces > that have worked just fine in the past, but this one has me stumped. mainbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); ^^^^^^^^ Did you mean mainbox there? vbox hasn't been created yet! paned = gtk_hpaned_new(); gtk_paned_set_position(GTK_PANED(paned), 200); gtk_container_add(GTK_CONTAINER(window), paned); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); Why are you adding all these to window? A window can only have one child. (Didn't GTK+ complain about this?) Damon From rsteinke@w-link.net Tue Jun 19 00:57:45 2001 Return-Path: <rsteinke@w-link.net> Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 61E002E4F3 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 00:57:44 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CDen-0004T2-00; Mon, 18 Jun 2001 22:02:29 -0700 Date: Mon, 18 Jun 2001 22:02:29 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2EDCE5.nailD7J11VO0N@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> In-Reply-To: <y5wvglt434c.fsf@icon.labs.redhat.com> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke <rsteinke@w-link.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > From: Havoc Pennington <hp@redhat.com> > > Ron Steinke <rsteinke@w-link.net> writes: > > > > I was missing that, so thanks. However, I changed that, > > and it still doesn't work. What else is missing? > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > indication if any. GTK 2.0 has default implementations that do this in > GtkWidget. > But I am using 2.0 (really, 1.3, CVS within the last month or so), so this can't be it either. Ron Steinke From hp@redhat.com Tue Jun 19 02:10:44 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 39FCE2E4F7 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 02:10:44 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J6ATH01993; Tue, 19 Jun 2001 02:10:29 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke <rsteinke@w-link.net> Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 02:10:29 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 22:02:29 -0700" Message-ID: <y5w1yoh3sq2.fsf@icon.labs.redhat.com> Lines: 25 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ron Steinke <rsteinke@w-link.net> writes: > > From: Havoc Pennington <hp@redhat.com> > > > > Ron Steinke <rsteinke@w-link.net> writes: > > > > > > I was missing that, so thanks. However, I changed that, > > > and it still doesn't work. What else is missing? > > > > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > > indication if any. GTK 2.0 has default implementations that do this in > > GtkWidget. > > > > But I am using 2.0 (really, 1.3, CVS within the last month > or so), so this can't be it either. > I'm assuming you actually focus the drawing area (via tab key, or gtk_widget_grab_focus() on button press, or something?) Havoc From rbultje@ronald.bitfreak.net Tue Jun 19 03:24:21 2001 Return-Path: <rbultje@ronald.bitfreak.net> Delivered-To: gtk-list@gnome.org Received: from smtp8.xs4all.nl (smtp8.xs4all.nl [194.109.127.134]) by mail.gnome.org (Postfix) with ESMTP id 3F5D42E413 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 03:24:21 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp8.xs4all.nl (8.9.3/8.9.3) with ESMTP id JAA27822; Tue, 19 Jun 2001 09:24:18 +0200 (CEST) Message-ID: <3B2EFADF.2020404@ronald.bitfreak.net> Date: Tue, 19 Jun 2001 09:10:23 +0200 From: Ronald Bultje <rbultje@ronald.bitfreak.net> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us MIME-Version: 1.0 To: raphi2 raph <raphi2@caramail.com> Cc: gtk-list@gnome.org, otaylor@redhat.com Subject: Re: GTK / SDL bis References: <992901282019158@caramail.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> raphi2 raph wrote: >sprintf(SDL_windowhack,"SDL_WINDOWID=-543170384", > GDK_WINDOW_XWINDOW(drawing_area->window)); > ?????? How about: sprintf(SDL_windowhack,"SDL_WINDOWID=%d", GDK_WINDOW_XWINDOW(drawing_area->window)); Regards, Ronald From smanikandan_76@yahoo.com Tue Jun 19 05:18:38 2001 Return-Path: <smanikandan_76@yahoo.com> 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 1FB352DC01 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:17:58 -0400 (EDT) Received: from unknown (HELO vrpc) (192.122.174.191) by smtp.mail.vip.sc5.yahoo.com with SMTP; 19 Jun 2001 09:17:56 -0000 X-Apparently-From: <smanikandan?76@yahoo.com> Message-ID: <03ad01c0f8a0$c6d3f7d0$bfae7ac0@cisco.com> From: "S.Manikandan" <smanikandan_76@yahoo.com> To: <gtk-list@gnome.org> Subject: Configuration problems Date: Tue, 19 Jun 2001 14:48:15 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_03AA_01C0F8CE.DF4534E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> This is a multi-part message in MIME format. ------=_NextPart_000_03AA_01C0F8CE.DF4534E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , Iam newbie to gtk+ (gnome),i basically wanted to compile gnome,i = used CVS to download the latest sources.i was able to compile glib, but = gtk+ is giving problems,the environment is Solaris 2.6(SUN Sparc u-60) cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh = --prefix=3D/home/sw/gnu/gnome aclocal: /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated = macro `AM_PATH_AUDIOFILE' aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: 10: duplicated macro = `AM_PATH_ESD' gdk-pixbuf/pixops/Makefile.am:8: variable `GLIB_LIBS' not defined loading cache ./config.cache ./configure: syntax error at line 637: `AM_INIT_AUTOMAKE' unexpected Now type 'make' to compile Gtk+. cdsl2:/home/sw/gnu/gnome/src/gtk+>exit Thanks for ur help, Mani. ------=_NextPart_000_03AA_01C0F8CE.DF4534E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>    Iam newbie to gtk+ = (gnome),i=20 basically wanted to compile gnome,i used CVS to download the latest = sources.i=20 was able to compile glib, but gtk+ is giving problems,the environment is = Solaris=20 2.6(SUN Sparc u-60)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = size=3D2>cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh=20 --prefix=3D/home/sw/gnu/gnome<BR>aclocal:=20 /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated macro=20 `AM_PATH_AUDIOFILE'<BR>aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: = 10:=20 duplicated macro `AM_PATH_ESD'<BR>gdk-pixbuf/pixops/Makefile.am:8: = variable=20 `GLIB_LIBS' not defined<BR>loading cache ./config.cache<BR>./configure: = syntax=20 error at line 637: `AM_INIT_AUTOMAKE' unexpected</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Now type 'make' to compile=20 Gtk+.<BR>cdsl2:/home/sw/gnu/gnome/src/gtk+>exit</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for ur help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Mani.</FONT></DIV> <DIV><FONT face=3DArial = size=3D2></FONT> </DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_03AA_01C0F8CE.DF4534E0-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From rwan@cs.mu.oz.au Tue Jun 19 05:52:46 2001 Return-Path: <rwan@cs.mu.oz.au> Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 00AF32CF1C for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:52:41 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id TAA04369 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:52:38 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id B351075AA; Tue, 19 Jun 2001 19:52:37 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 7EFA3AC94 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:52:37 +1000 (EST) Date: Tue, 19 Jun 2001 19:52:37 +1000 (EST) From: Raymond Wan <rwan@cs.mu.oz.au> Reply-To: Raymond Wan <rwan@cs.mu.oz.au> To: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: <y5wsnh2aka7.fsf@icon.labs.redhat.com> Message-ID: <Pine.LNX.3.96.1010619194207.24080A-100000@vike.cs.mu.OZ.AU> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Havoc (or anyone else who knows the answer :) ), About the 1.3.6 release, On 14 Jun 2001, Havoc Pennington wrote: > The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this > release. These are available at: Do I need all three JPEG/PNG/TIFF installed or just one? In either case, does anyone know if I have to have root access to install them? I guess this is related to a question I asked a week ago; I followed the posted instructions and 1.3.5 installed fine, but 1.3.6 doesn't seem as easy. Without them, I only get part way through the GTK installation (GLib, Pango, Atk installed fine). Before I try again, I just want to do a quick check that I can install the above without root access... Thank you! Ray From okuno@blackbird.msr.mei.co.jp Tue Jun 19 07:25:56 2001 Return-Path: <okuno@blackbird.msr.mei.co.jp> Delivered-To: gtk-list@gnome.org Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.25]) by mail.gnome.org (Postfix) with ESMTP id 730EA2BB41 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 07:25:55 -0400 (EDT) Received: by bulls.mei.co.jp (8.11.3/3.7W) with ESMTP id f5JBPrX02247 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 20:25:53 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id UAA29394 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 20:25:51 +0900 (JST) Received: from blackbird.msr.mei.co.jp by msr.mei.co.jp (SMI-8.6/SMI-4.1) id UAA09067; Tue, 19 Jun 2001 20:24:24 +0900 Received: by blackbird.msr.mei.co.jp (Postfix, from userid 2235) id CBBADFB9; Tue, 19 Jun 2001 20:25:52 +0900 (JST) To: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: Your message of "14 Jun 2001 16:17:20 -0400". <y5wsnh2aka7.fsf@icon.labs.redhat.com> From: okuno@msr.mei.co.jp (Katsuhiro Okuno) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22PL4] 2000-05/28(Sun) Message-Id: <20010619112552.CBBADFB9@blackbird.msr.mei.co.jp> Date: Tue, 19 Jun 2001 20:25:52 +0900 (JST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm under Red Hat Linux 7.1 because of the libtool error. --------------------------------------------------------------------- /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' Fatal configuration error. See the libtool docs for more information. --------------------------------------------------------------------- But, I can compile it from pkgconfig-0.7.0.tar.gz without using RPM packaging system. (./configure, make, make install) Why? | A new release of the development versions of GTK+ and associated | libraries (GLib, Pango, Atk) is available at: | | ftp://ftp.gtk.org/pub/gtk/v1.3/ | | The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this | release. These are available at: From bruces@petech.ac.za Tue Jun 19 08:01:38 2001 Return-Path: <bruces@petech.ac.za> Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.37.151.38]) by mail.gnome.org (Postfix) with ESMTP id 979EA2E2A0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:01:35 -0400 (EDT) Received: from what (what.petech.ac.za [10.11.2.62]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id OAA07712 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:01:31 +0200 Message-ID: <01c301c0f8b7$e222a9c0$3e020b0a@petech.ac.za> From: "Bruce A. Smith" <bruces@petech.ac.za> To: <gtk-list@gnome.org> Subject: GTK+ Binding for Visual Basic Date: Tue, 19 Jun 2001 14:03:41 +0200 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.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Does anyone know if there is a VB or VB.Net binding for GTK+, either existing or in the works? Bruce Smith BI Developer/Internet Service Administrator Computer Services Port Elizabeth Technikon Tel: (041) 504-3649 Fax: (041) 504-3189 From bruces@mail.petech.ac.za Tue Jun 19 08:18:53 2001 Return-Path: <bruces@mail.petech.ac.za> Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.37.151.38]) by mail.gnome.org (Postfix) with ESMTP id 2D9AE2E54F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:18:03 -0400 (EDT) Received: from what (what.petech.ac.za [10.11.2.62]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id OAA08240 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:17:58 +0200 Message-ID: <01d901c0f8ba$2ee5ee00$3e020b0a@petech.ac.za> From: "Bruce A. Smith" <bruces@mail.petech.ac.za> To: <gtk-list@gnome.org> Subject: GTK+ Binding for Visual Basic Date: Tue, 19 Jun 2001 14:20:09 +0200 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.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Does anyone know if there is a VB or VB.Net binding for GTK+, either existing or in the works? Bruce Smith BI Developer/Internet Service Administrator Computer Services Port Elizabeth Technikon Tel: (041) 504-3649 Fax: (041) 504-3189 From mshanmug@cisco.com Tue Jun 19 05:07:53 2001 Return-Path: <mshanmug@cisco.com> Delivered-To: gtk-list@gnome.org Received: from cisco.com (desh.cisco.com [192.122.173.43]) by mail.gnome.org (Postfix) with ESMTP id 195E12BB45 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:07:52 -0400 (EDT) Received: from vrpc ([192.122.174.191]) by cisco.com (8.8.8-Cisco List Logging/8.8.8) with SMTP id OAA29164 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:37:23 +0530 (IST) Message-ID: <039001c0f89f$5ce20a20$bfae7ac0@cisco.com> From: "S.Manikandan" <mshanmug@cisco.com> To: <gtk-list@gnome.org> Subject: Configuration problems Date: Tue, 19 Jun 2001 14:38:09 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_038D_01C0F8CD.761E8670" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> This is a multi-part message in MIME format. ------=_NextPart_000_038D_01C0F8CD.761E8670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , Iam newbie to gtk+ (gnome),i basically wanted to compile gnome,i = used CVS to download the latest sources.i was able to compile glib, but = gtk+ is giving problems,the environment is Solaris 2.6(SUN Sparc u-60) cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh = --prefix=3D/home/sw/gnu/gnome aclocal: /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated = macro `AM_PATH_AUDIOFILE' aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: 10: duplicated macro = `AM_PATH_ESD' gdk-pixbuf/pixops/Makefile.am:8: variable `GLIB_LIBS' not defined loading cache ./config.cache ./configure: syntax error at line 637: `AM_INIT_AUTOMAKE' unexpected Now type 'make' to compile Gtk+. cdsl2:/home/sw/gnu/gnome/src/gtk+>exit Thanks for ur help, Mani. ------=_NextPart_000_038D_01C0F8CD.761E8670 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>    Iam newbie to gtk+ = (gnome),i=20 basically wanted to compile gnome,i used CVS to download the latest = sources.i=20 was able to compile glib, but gtk+ is giving problems,the environment is = Solaris=20 2.6(SUN Sparc u-60)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = size=3D2>cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh=20 --prefix=3D/home/sw/gnu/gnome<BR>aclocal:=20 /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated macro=20 `AM_PATH_AUDIOFILE'<BR>aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: = 10:=20 duplicated macro `AM_PATH_ESD'<BR>gdk-pixbuf/pixops/Makefile.am:8: = variable=20 `GLIB_LIBS' not defined<BR>loading cache ./config.cache<BR>./configure: = syntax=20 error at line 637: `AM_INIT_AUTOMAKE' unexpected</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Now type 'make' to compile=20 Gtk+.<BR>cdsl2:/home/sw/gnu/gnome/src/gtk+>exit</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for ur help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Mani.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_038D_01C0F8CD.761E8670-- From otaylor@redhat.com Tue Jun 19 08:28:07 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B6D892E827 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:26:18 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 3372D242315; Tue, 19 Jun 2001 08:26:18 -0400 (EDT) To: okuno@msr.mei.co.jp (Katsuhiro Okuno) Cc: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) References: <20010619112552.CBBADFB9@blackbird.msr.mei.co.jp> From: Owen Taylor <otaylor@redhat.com> Date: 19 Jun 2001 08:26:18 -0400 In-Reply-To: okuno@msr.mei.co.jp's message of "Tue, 19 Jun 2001 20:25:52 +0900 (JST)" Message-ID: <ybeelsg4pw5.fsf@fresnel.labs.redhat.com> Lines: 27 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> okuno@msr.mei.co.jp (Katsuhiro Okuno) writes: > I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm > under Red Hat Linux 7.1 because of the libtool error. > > --------------------------------------------------------------------- > /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la > libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' > Fatal configuration error. See the libtool docs for more information. > --------------------------------------------------------------------- The spec file uses %configure which in turn calls libtoolize. But the libtool on your system is older than that in the package, and this causes problems. You can: - change the specfile not to use %configure - Edit the definition of %configure in /usr/lib/rpm/macros not to run libtoolize - Install newer libtool packages http://people.redhat.com/otaylor/libtool-rpms/ Regards, Owen From timj@gtk.org Tue Jun 19 08:37:46 2001 Return-Path: <timj@gtk.org> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id CA7C92D14D for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:37:45 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id IAA20844; Tue, 19 Jun 2001 08:37:45 -0400 Received: from hmbg-3e36c6d9.pool.mediaWays.net (hmbg-3e36c6d9.pool.mediaWays.net [62.54.198.217]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JCaSb30676; Tue, 19 Jun 2001 08:36:28 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JCd7Q2022431; Tue, 19 Jun 2001 14:39:07 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5JCcu516606; Tue, 19 Jun 2001 14:38:56 +0200 Date: Tue, 19 Jun 2001 14:38:56 +0200 (CEST) From: Tim Janik <timj@gtk.org> X-Sender: timj@birgrave.birnet.private To: Alex Larsson <alexl@redhat.com> Cc: Owen Taylor <otaylor@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <Pine.LNX.4.33.0106181216290.6187-100000@devserv.devel.redhat.com> Message-ID: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On Mon, 18 Jun 2001, Alex Larsson wrote: > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > I'm not sure. Considering that inline functions in C or statement > > > expressions aren't portable, and I think GObject should probably > > > perform portably, it's conceivable that the danger is worth it. > > > I think it was worth it for the GTK_OBJECT() macro. > > > > i don't think there's much to worry about compilers that can't inline > > nowadays. glib ensures that static inline at least works on such systems > > by providing a non-static linkable version, if static inline isn't supported. > > so worst-case scenario is that for inline-incapable compilers an extra > > function call is performed. > > I'd like to point out here that GCC produces better code for macros than > inline functions. This will continue to be true in GCC 3.0, and in the > future until the tree inliner is ported from the c++ compiler to the c > compiler. well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, if that produces better code than using static inline instead, feel free to provide a gcc-special cased patch, once we have the static inlines ;) > > / Alex > --- ciaoTJ From okuno@blackbird.msr.mei.co.jp Tue Jun 19 08:43:38 2001 Return-Path: <okuno@blackbird.msr.mei.co.jp> Delivered-To: gtk-list@gnome.org Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.25]) by mail.gnome.org (Postfix) with ESMTP id 30D1F2E551 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:43:37 -0400 (EDT) Received: by bulls.mei.co.jp (8.11.3/3.7W) with ESMTP id f5JChYX03666; Tue, 19 Jun 2001 21:43:35 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id VAA02345; Tue, 19 Jun 2001 21:43:33 +0900 (JST) Received: from blackbird.msr.mei.co.jp by msr.mei.co.jp (SMI-8.6/SMI-4.1) id VAA10212; Tue, 19 Jun 2001 21:42:07 +0900 Received: by blackbird.msr.mei.co.jp (Postfix, from userid 2235) id 7A2DDFB9; Tue, 19 Jun 2001 21:43:34 +0900 (JST) To: otaylor@redhat.com Cc: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: Your message of "19 Jun 2001 08:26:18 -0400". <ybeelsg4pw5.fsf@fresnel.labs.redhat.com> From: okuno@msr.mei.co.jp (Katsuhiro Okuno) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22PL4] 2000-05/28(Sun) Message-Id: <20010619124334.7A2DDFB9@blackbird.msr.mei.co.jp> Date: Tue, 19 Jun 2001 21:43:34 +0900 (JST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I updated automake & libtool, so I could solve the problem. Thank you for your advice. | > I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm | > under Red Hat Linux 7.1 because of the libtool error. | > | > --------------------------------------------------------------------- | > /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la | > libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' | > Fatal configuration error. See the libtool docs for more information. | > --------------------------------------------------------------------- | | The spec file uses %configure which in turn calls libtoolize. But | the libtool on your system is older than that in the package, | and this causes problems. | | You can: | | - change the specfile not to use %configure | - Edit the definition of %configure in /usr/lib/rpm/macros not | to run libtoolize | - Install newer libtool packages | http://people.redhat.com/otaylor/libtool-rpms/ | | Regards, | Owen From markus.kuehni@trilab.ch Tue Jun 19 08:43:38 2001 Return-Path: <markus.kuehni@trilab.ch> Delivered-To: gtk-list@gnome.org Received: from mta1n.bluewin.ch (mta1n.bluewin.ch [195.186.1.210]) by mail.gnome.org (Postfix) with ESMTP id 6F4152E554 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:43:38 -0400 (EDT) Received: from vpower (195.186.130.224) by mta1n.bluewin.ch (Bluewin AG MX engine 5.5.031) id 3B2F46B000000373 for gtk-list@gnome.org; Tue, 19 Jun 2001 14:43:37 +0200 From: =?iso-8859-1?Q?Markus_K=FChni?= <markus.kuehni@trilab.ch> To: <gtk-list@gnome.org> Subject: Delta between GTK+ and Gnome Date: Tue, 19 Jun 2001 14:45:05 +0200 Message-ID: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> 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 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? What I already know (tested on Gnome 1.4): - a GTK+/wxGTK app will adapt to themes/styles - a GTK+/wxGTK app will support copy paste (I plan to use wxWindows/wxGTK) Thanks for all help, Mark From otaylor@redhat.com Tue Jun 19 09:05:15 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 8C2AC2E5A5 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:05:15 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id JAA25078; Tue, 19 Jun 2001 09:05:15 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EF2FD242315; Tue, 19 Jun 2001 09:05:14 -0400 (EDT) To: Tim Janik <timj@gtk.org> Cc: Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> From: Owen Taylor <otaylor@redhat.com> Date: 19 Jun 2001 09:05:14 -0400 In-Reply-To: Tim Janik's message of "Tue, 19 Jun 2001 14:38:56 +0200 (CEST)" Message-ID: <ybe66ds4o39.fsf@fresnel.labs.redhat.com> Lines: 30 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Tim Janik <timj@gtk.org> writes: > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > expressions aren't portable, and I think GObject should probably > > > > perform portably, it's conceivable that the danger is worth it. > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > i don't think there's much to worry about compilers that can't inline > > > nowadays. glib ensures that static inline at least works on such systems > > > by providing a non-static linkable version, if static inline isn't supported. > > > so worst-case scenario is that for inline-incapable compilers an extra > > > function call is performed. > > > > I'd like to point out here that GCC produces better code for macros than > > inline functions. This will continue to be true in GCC 3.0, and in the > > future until the tree inliner is ported from the c++ compiler to the c > > compiler. > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > if that produces better code than using static inline instead, feel > free to provide a gcc-special cased patch, once we have the static inlines ;) 'static inline' is, of course, very much a GCC extension. Owen From andres_giraldo@yahoo.com Tue Jun 19 09:38:47 2001 Return-Path: <andres_giraldo@yahoo.com> Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id 119832CA0E for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:38:33 -0400 (EDT) Message-ID: <20010619133832.32971.qmail@web11502.mail.yahoo.com> Received: from [209.205.77.166] by web11502.mail.yahoo.com; Tue, 19 Jun 2001 06:38:32 PDT Date: Tue, 19 Jun 2001 06:38:32 -0700 (PDT) From: "Andrés" Giraldo <andres_giraldo@yahoo.com> Subject: A Modal Window To: Gtk List <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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi! I need to call a window that shows 2 options in buttons, yes or no, and I need to wait for that answer, something like a vbModal in MS-Visual Basic... A window that waits until it's unloaded How can I do this? Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From timj@gtk.org Tue Jun 19 09:47:49 2001 Return-Path: <timj@gtk.org> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 6E1DA2E11D for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:47:39 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id JAA00601; Tue, 19 Jun 2001 09:47:39 -0400 Received: from hmbg-3e36c6d9.pool.mediaWays.net (hmbg-3e36c6d9.pool.mediaWays.net [62.54.198.217]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JDkMb04418; Tue, 19 Jun 2001 09:46:22 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JDn3Q2024345; Tue, 19 Jun 2001 15:49:03 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5JDn3312003; Tue, 19 Jun 2001 15:49:03 +0200 Date: Tue, 19 Jun 2001 15:49:02 +0200 (CEST) From: Tim Janik <timj@gtk.org> X-Sender: timj@birgrave.birnet.private To: Owen Taylor <otaylor@redhat.com> Cc: Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <ybe66ds4o39.fsf@fresnel.labs.redhat.com> Message-ID: <Pine.LNX.4.21.0106191547090.11924-100000@birgrave.birnet.private> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On 19 Jun 2001, Owen Taylor wrote: > > Tim Janik <timj@gtk.org> writes: > > > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > > expressions aren't portable, and I think GObject should probably > > > > > perform portably, it's conceivable that the danger is worth it. > > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > > > i don't think there's much to worry about compilers that can't inline > > > > nowadays. glib ensures that static inline at least works on such systems > > > > by providing a non-static linkable version, if static inline isn't supported. > > > > so worst-case scenario is that for inline-incapable compilers an extra > > > > function call is performed. > > > > > > I'd like to point out here that GCC produces better code for macros than > > > inline functions. This will continue to be true in GCC 3.0, and in the > > > future until the tree inliner is ported from the c++ compiler to the c > > > compiler. > > > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > > if that produces better code than using static inline instead, feel > > free to provide a gcc-special cased patch, once we have the static inlines ;) > > 'static inline' is, of course, very much a GCC extension. huh? that'd be new to me, "extern inline" is, but "static inline" should be handled by any compiler that's capable of handling inline functions. > > Owen > --- ciaoTJ From Sander.Vesik@Sun.COM Tue Jun 19 10:05:51 2001 Return-Path: <Sander.Vesik@Sun.COM> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 5F6C42DE95 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:05:51 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id KAA06296; Tue, 19 Jun 2001 10:05:50 -0400 Received: from patan.sun.com (patan.Sun.COM [192.18.98.43]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JE4Yb06603; Tue, 19 Jun 2001 10:04:35 -0400 Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA11805; Tue, 19 Jun 2001 08:05:42 -0600 (MDT) Received: from blossom (blossom [129.156.238.67]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.1p1) with ESMTP id PAA04783; Tue, 19 Jun 2001 15:05:43 +0100 (BST) Date: Tue, 19 Jun 2001 15:05:43 +0100 (BST) From: Sander Vesik <Sander.Vesik@Sun.COM> X-Sender: sv117949@blossom To: Tim Janik <timj@gtk.org> Cc: Owen Taylor <otaylor@redhat.com>, Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <Pine.LNX.4.21.0106191547090.11924-100000@birgrave.birnet.private> Message-ID: <Pine.GSO.4.10.10106191458140.4596-100000@blossom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On Tue, 19 Jun 2001, Tim Janik wrote: > On 19 Jun 2001, Owen Taylor wrote: > > huh? that'd be new to me, "extern inline" is, but "static inline" should > be handled by any compiler that's capable of handling inline functions. > One would hope. It's unfortunately not the case though. On the other side of the coin: * compilers are allowed to totally inline any static function * it doesn't really make any sense to use anything but static scope for inline functions (making 'static inline' redundant) * I fail to see what an 'extern inline' would be, esp. in a world where the only toolchain doing link time optimisations died out long ago > > > > Owen > > > > --- > ciaoTJ > Sander One day a tortoise will learn to fly -- Terry Pratchett, 'Small Gods' From rsteinke@w-link.net Tue Jun 19 10:26:39 2001 Return-Path: <rsteinke@w-link.net> Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 3226B2D2C3 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:26:39 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CMXP-0005oz-00; Tue, 19 Jun 2001 07:31:27 -0700 Date: Tue, 19 Jun 2001 07:31:27 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2F623F.nailH6K1ZB6VV@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> <y5w1yoh3sq2.fsf@icon.labs.redhat.com> In-Reply-To: <y5w1yoh3sq2.fsf@icon.labs.redhat.com> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke <rsteinke@w-link.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > From: Havoc Pennington <hp@redhat.com> > Ron Steinke <rsteinke@w-link.net> writes: > > > From: Havoc Pennington <hp@redhat.com> > > > Ron Steinke <rsteinke@w-link.net> writes: > > > > > > > > I was missing that, so thanks. However, I changed that, > > > > and it still doesn't work. What else is missing? > > > > > > > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > > > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > > > indication if any. GTK 2.0 has default implementations that do this in > > > GtkWidget. > > > > > > > But I am using 2.0 (really, 1.3, CVS within the last month > > or so), so this can't be it either. > > > > I'm assuming you actually focus the drawing area (via tab key, or > gtk_widget_grab_focus() on button press, or something?) That was it. Thanks. Perhaps a short lecture on the way focus works in GTK is in order? Ron Steinke From skip@beluga.mojam.com Tue Jun 19 10:39:49 2001 Return-Path: <skip@beluga.mojam.com> Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id EE2B52E58F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:39:48 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5JEddb03921; Tue, 19 Jun 2001 09:39:39 -0500 From: Skip Montanaro <skip@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15151.25642.289448.283702@beluga.mojam.com> Date: Tue, 19 Jun 2001 09:39:38 -0500 To: James Henstridge <james@daa.com.au> Cc: <gtk-list@gnome.org>, <pygtk@daa.com.au> Subject: Re: [pygtk] can I watch all signals being emitted? In-Reply-To: <Pine.LNX.4.33.0106190906310.21072-100000@james.daa.com.au> References: <15150.18895.379738.456168@beluga.mojam.com> <Pine.LNX.4.33.0106190906310.21072-100000@james.daa.com.au> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> James> g_type_init(G_TYPE_DEBUG_SIGNALS); Thanks, this is just what I need. I'll whip up some configurability for my own needs. Skip From corsepiu@faw.uni-ulm.de Tue Jun 19 11:16:46 2001 Return-Path: <corsepiu@faw.uni-ulm.de> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id CAEF32DB78 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:16:46 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA27297 for <gtk-list@lacrosse.redhat.com>; Tue, 19 Jun 2001 11:16:46 -0400 Received: from www.faw.uni-ulm.de (www.faw.uni-ulm.de [134.60.100.4]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f5JFFSb17064 for <gtk-list@redhat.com>; Tue, 19 Jun 2001 11:15:29 -0400 Received: (qmail 17758 invoked from network); 19 Jun 2001 15:16:41 -0000 Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (134.60.101.174) by www-intern.faw.uni-ulm.de with SMTP; 19 Jun 2001 15:16:41 -0000 Received: (qmail 4006 invoked by uid 0); 19 Jun 2001 15:16:38 -0000 Received: from dialin13.faw.uni-ulm.de (HELO faw.uni-ulm.de) (corsepiu@172.18.1.13) by mailserv.faw.uni-ulm.de with SMTP; 19 Jun 2001 15:16:38 -0000 Message-ID: <3B2F6CCC.68CE885E@faw.uni-ulm.de> Date: Tue, 19 Jun 2001 17:16:28 +0200 From: Ralf Corsepius <corsepiu@faw.uni-ulm.de> Reply-To: corsepiu@faw.uni-ulm.de Organization: Ralf Corsepius X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.4-4GB-SMP i686) X-Accept-Language: de-DE, en MIME-Version: 1.0 To: Owen Taylor <otaylor@redhat.com> Cc: Tim Janik <timj@gtk.org>, Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> <ybe66ds4o39.fsf@fresnel.labs.redhat.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Owen Taylor wrote: > > Tim Janik <timj@gtk.org> writes: > > > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > > expressions aren't portable, and I think GObject should probably > > > > > perform portably, it's conceivable that the danger is worth it. > > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > > > i don't think there's much to worry about compilers that can't inline > > > > nowadays. glib ensures that static inline at least works on such systems > > > > by providing a non-static linkable version, if static inline isn't supported. > > > > so worst-case scenario is that for inline-incapable compilers an extra > > > > function call is performed. > > > > > > I'd like to point out here that GCC produces better code for macros than > > > inline functions. This will continue to be true in GCC 3.0, and in the > > > future until the tree inliner is ported from the c++ compiler to the c > > > compiler. > > > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > > if that produces better code than using static inline instead, feel > > free to provide a gcc-special cased patch, once we have the static inlines ;) > > 'static inline' is, of course, very much a GCC extension. No, but you're right, it is non-portable. However, you know how to write portability macros, don't you? Ralf From hp@redhat.com Tue Jun 19 11:57:22 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A16F32D2D1 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:57:22 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JFv6H02331; Tue, 19 Jun 2001 11:57:06 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke <rsteinke@w-link.net> Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> <y5w1yoh3sq2.fsf@icon.labs.redhat.com> <3B2F623F.nailH6K1ZB6VV@yggdrasil> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 11:57:06 -0400 In-Reply-To: Ron Steinke's message of "Tue, 19 Jun 2001 07:31:27 -0700" Message-ID: <y5wbsnkh38t.fsf@icon.labs.redhat.com> Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ron Steinke <rsteinke@w-link.net> writes: > That was it. Thanks. Perhaps a short lecture on the way focus works > in GTK is in order? > Well, it isn't really that complicated from this standpoint - if you want your widget to get focus you set GTK_CAN_FOCUS, then whenever you get the focus (normally from tab key or a mnemonic, or widgets can implement button_press handlers), then you will get key events. The more complicated issues are: - how GTK decides on the tab order (GtkWidget::focus method) - the overall key event handling (Owen has a diagram somewhere) Basically, key events go first to the focus widget, if not used there they go to the toplevel window. If you want "global" hotkeys, then you want to connect to key_press_event on the toplevel, rather than on a child widget. Havoc From hp@redhat.com Tue Jun 19 12:04:01 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 381A82DBF0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 12:04:01 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JG3i602338; Tue, 19 Jun 2001 12:03:44 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Markus =?iso-8859-1?q?K=FChni?= <markus.kuehni@trilab.ch> Cc: <gtk-list@gnome.org> Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 12:03:44 -0400 In-Reply-To: Markus =?iso-8859-1?q?K=FChni's?= message of "Tue, 19 Jun 2001 14:45:05 +0200" Message-ID: <y5w7ky8h2xr.fsf@icon.labs.redhat.com> Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Markus K=FChni <markus.kuehni@trilab.ch> writes: >=20 > If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? >=20 For GTK 1.2, you are missing GnomeCanvas, GnomeDialog, stock icons.=20 Also unless you use gdk-pixbuf you're missing image loading. For GTK 2.0, you are missing GnomeCanvas but there's a libgnomecanvas separate from other gnome libs. For both GTK's you are missing session management. Those are the things I would personally consider interesting, other people will post more opinions no doubt. ;-) Havoc From Valdis.Kletnieks@vt.edu Tue Jun 19 13:51:36 2001 Return-Path: <Valdis.Kletnieks@vt.edu> 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 DA2342E621 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 13:51:35 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5JHpSg07250; Tue, 19 Jun 2001 13:51:28 -0400 Message-Id: <200106191751.f5JHpSg07250@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: Havoc Pennington <hp@redhat.com> Cc: Ian King <king@eiffel.com>, gtk-list@gnome.org Subject: Re: Visual types In-Reply-To: Your message of "Mon, 18 Jun 2001 17:49:51 EDT." <y5wzob5jw5c.fsf@icon.labs.redhat.com> 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[<!v4-0bVIpaxF#-) %9#a9h6JXI|T|8o6t\V?kGl]Q!1V]GtNliUtz:3},0"hkPeBuu%E,j(:\iOX-P,t7lRR# References: <211901c0f836$71f778a0$750a000a@naples> <y5wzob5jw5c.fsf@icon.labs.redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-989886808P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 19 Jun 2001 13:51:28 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> --==_Exmh_-989886808P Content-Type: text/plain; charset=us-ascii On Mon, 18 Jun 2001 17:49:51 EDT, Havoc Pennington said: > There's just no real point using a visual other than the default, > ever. Unless your app is written specifically for certain hardware > such as an SGI. > > (The only exception is to use the GdkRGB visual for drawables where > you'll draw RGB data, but in GTK 2 this isn't even necessary.) The other exception is where your default visual is 24 bit, but you are trying to optimize for speed, and thus want to use a 8 or 16 bit visual. There was a review of XFree86 4.1.0, which showed this effect: http://www.thedukeofurl.org/reviews/misc/xfree86410/4.shtml Look at the XBench results for 16 and 32 bit. And of course, if you're trying to use X-over-ssh or lbxproxy or just remote display of an X window, and are pumping all the pixmaps over an actual wire, cutting 60% of your network traffic by ysing an 8-bit visual rather than 24-bit may be *really* crucial... -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-989886808P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOy+RIHAt5Vm009ewEQK1bQCg8NDjHPiy4+MWNaHIzFzPgfL5ht4AoK7a Wb5okkD3TF7t2xdV5OF9IFkG =hN3+ -----END PGP SIGNATURE----- --==_Exmh_-989886808P-- From rbultje@ronald.bitfreak.net Tue Jun 19 14:11:37 2001 Return-Path: <rbultje@ronald.bitfreak.net> Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 5C9BD2BB95 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:11:37 -0400 (EDT) Received: from [192.168.0.45] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5JIsIF21849; Tue, 19 Jun 2001 20:54:18 +0200 (CEST) Subject: Re: Delta between GTK+ and Gnome From: Ronald Bultje <rbultje@ronald.bitfreak.net> To: Havoc Pennington <hp@redhat.com> Cc: Markus =?ISO-8859-1?Q?K=FChni?= <markus.kuehni@trilab.ch>, gtk-list@gnome.org In-Reply-To: <y5w7ky8h2xr.fsf@icon.labs.redhat.com> References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 19 Jun 2001 20:11:28 +0200 Message-Id: <992974289.755.2.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On 19 Jun 2001 12:03:44 -0400, Havoc Pennington wrote: > Markus Kühni <markus.kuehni@trilab.ch> writes: > > > > If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? > > > > For GTK 1.2, you are missing GnomeCanvas, GnomeDialog, stock icons. > Also unless you use gdk-pixbuf you're missing image loading. Side-note: I thought gdk-pixbuf depends on Gnome so you're missing it anyway? > Those are the things I would personally consider interesting, other > people will post more opinions no doubt. ;-) Uniform style. The fact that every "New document" button in a toolbar looks the same in each and every app, and the same for "save", "load", "cut", "copy" and so on. That's what makes Gnome so attractive imho, most users (if not all) really appreciate having a uniform style throughout the whole graphical interface they use. Regards, Ronald -- - .-. - /V\ | Ronald Bultje <rbultje@ronald.bitfreak.net> - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From sven@gimp.org Tue Jun 19 14:35:46 2001 Return-Path: <sven@gimp.org> Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id A69872BD9F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:35:46 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15CQEs-00087s-00; Tue, 19 Jun 2001 20:28:34 +0200 To: Ronald Bultje <rbultje@ronald.bitfreak.net> Cc: gtk-list@gnome.org Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> <992974289.755.2.camel@tux> From: Sven Neumann <sven@gimp.org> Date: 19 Jun 2001 20:28:34 +0200 In-Reply-To: <992974289.755.2.camel@tux> Message-ID: <yfxwv68uxwt.fsf@gimp.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, Ronald Bultje <rbultje@ronald.bitfreak.net> writes: > Side-note: I thought gdk-pixbuf depends on Gnome so you're missing it > anyway? who told you that? It's plain wrong. Salut, Sven From deekshit.mantampady@wipro.com Tue Jun 19 15:03:32 2001 Return-Path: <deekshit.mantampady@wipro.com> 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 E1ED42CF0A for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:03:30 -0400 (EDT) Received: from m2hub.mail.wipro.com (m2hub.wipro.com [164.164.27.50]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with ESMTP id f5K0gBZ19556 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 00:42:11 GMT Received: from m2vwall2.wipro.com ([164.164.27.52]) by m2hub.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GF6Y0M00.SNG for <gtk-list@gnome.org>; Wed, 20 Jun 2001 00:27:58 +0530 Received: from wipro.com ([192.168.22.180]) by sarovar.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GF69PQ00.8R6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:43:02 +0530 Message-ID: <3B2F2499.2803AA34@wipro.com> Date: Tue, 19 Jun 2001 03:08:25 -0700 From: Deekshit Mantampady <deekshit.mantampady@wipro.com> X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: GTK List <gtk-list@gnome.org> Subject: Run time errors..... 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, I installed the development version of gtk(1.3.5), with the corresponding development version of glib. After that I tried to compile the frame.c file, which is available with the gtk1.3.5 pakage (Path : gtk+-1.3.5\exapmles\frame\frame.c), using the Make file, which I have pased at the end. The compiltaion was success. But while executing, it gave me the following run-time errors. I don't know how to solve the problem. I tested the same before installing the gtk 1.3.5. using the Makefile, whic was there in the same folder of frame.c. It was working fine. I installed this version of gtk only to use the GdkGC, which was not properly implemented in the stable version(The only member of the GdkGC class is glong dummy_var, which I think doesn't do anything. Can anybody help me to solve the problem. I am using Redhat 6.2 version of Linux. -------------------- Makefile ----------------------------- PKG_CONFIG_PATH=/root CC = gcc frame: frame.c $(CC) `pkg-config --cflags gtk+-2.0` frame.c -o frame \ `pkg-config --libs gtk+-2.0` clean: rm -f *.o frame -------------------------------------------------------- -------------------------- Error--------------------------- Gtk-Message: YOU ARE USING THE DEVEL BRANCH 1.3.x OF GTK+ WHICH IS CURRENTLY UNDER HEAVY DEVELOPMENT AND FREQUENTLY INTRODUCES INSTABILITIES. if you don't know why you are getting this, you probably want to use the stable branch which can be retrived from ftp://ftp.gtk.org/pub/gtk/v1.2/ or via CVS with cvs checkout -r glib-1-2 glib; cvs checkout -r gtk-1-2 gtk+ ** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" ** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed ** CRITICAL **: file pango-context.c: line 666 (fallback_engine_shape): assertion `font != NUL L' failed ** ERROR **: file shape.c: line 57 (pango_shape): assertion failed: (glyphs->num_glyphs > 0)ab orting... Trace/breakpoint trap (core dumped) From hp@redhat.com Tue Jun 19 15:39:05 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 74FEE2D3B5 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:39:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JJchn02420; Tue, 19 Jun 2001 15:38:43 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje <rbultje@ronald.bitfreak.net> Cc: Markus =?iso-8859-1?q?K=FChni?= <markus.kuehni@trilab.ch>, gtk-list@gnome.org Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> <992974289.755.2.camel@tux> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 15:38:43 -0400 In-Reply-To: Ronald Bultje's message of "19 Jun 2001 20:11:28 +0200" Message-ID: <y5wg0cwfef0.fsf@icon.labs.redhat.com> Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ronald Bultje <rbultje@ronald.bitfreak.net> writes: > Uniform style. The fact that every "New document" button in a toolbar > looks the same in each and every app, and the same for "save", "load", > "cut", "copy" and so on. > That's what makes Gnome so attractive imho, most users (if not all) > really appreciate having a uniform style throughout the whole graphical > interface they use. > This is what I meant by "stock icons," for GTK 2 it's in GTK. Havoc From jan_teubel@gmx.net Tue Jun 19 16:36:29 2001 Return-Path: <jan_teubel@gmx.net> Delivered-To: gtk-list@gnome.org Received: from einhorn.in-berlin.de (einhorn.colt.in-berlin.de [213.61.118.8]) by mail.gnome.org (Postfix) with ESMTP id 7FD032DF87 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:36:28 -0400 (EDT) Received: from gmx.net (DialIN077.colt.vr.in-berlin.de [213.61.119.205]) (authenticated (0 bits)) by einhorn.in-berlin.de (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id f5JKaRP27383 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 22:36:27 +0200 X-Envelope-From: jan_teubel@gmx.net X-Envelope-To: <gtk-list@gnome.org> X-Authentication-Warning: einhorn.in-berlin.de: Host DialIN077.colt.vr.in-berlin.de [213.61.119.205] claimed to be gmx.net Message-ID: <3B2FB7BA.6060304@gmx.net> Date: Tue, 19 Jun 2001 22:36:10 +0200 From: "J. Teubel" <jan_teubel@gmx.net> User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Compiling Gtk+ 1.3.6 on Debian 2.2r3 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hello, I try to compile Gtk+ 1.3.6 on Debian 2.2r3. I downloaded the all-in-one package. gdkdrawable-x11.c complains that Xft.h is not found on my system. I searched trough my entire harddisk, this file is nowhere. xlib dev is installed and all the other libs needed for compiling. I also searched through debian.org and google but nothing helps me. What's wrong? Thanks for your help, Jan From wolfgang@contre.com Tue Jun 19 16:46:42 2001 Return-Path: <wolfgang@contre.com> Delivered-To: gtk-list@gnome.org Received: from cogito.cam.org (cogito.cam.org [198.168.100.2]) by mail.gnome.org (Postfix) with ESMTP id 422E02BEB0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:42 -0400 (EDT) Received: from dialup-98-44-84-199.hip.cam.org (root@dialup-98-44-84-199.hip.cam.org [199.84.44.98]) by cogito.cam.org (8.11.0/8.11.0.Beta1) with ESMTP id f5JKkeE08275 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:40 -0400 Received: from debian.home (wolfgang@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JKkbCA000800 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:39 -0400 Date: Tue, 19 Jun 2001 16:46:37 -0400 Message-ID: <85ithskxjm.wl@debian.home> From: Wolfgang Sourdeau <wolfgang@contre.com> To: gtk-list@gnome.org Subject: Re: Compiling Gtk+ 1.3.6 on Debian 2.2r3 Mail-Followup-To: "J. Teubel" <jan_teubel@gmx.net>, gtk-list@gnome.org Mail-Reply-To: wolfgang@contre.com In-Reply-To: <3B2FB7BA.6060304@gmx.net> References: <3B2FB7BA.6060304@gmx.net> User-Agent: Wanderlust/2.5.8 (Smooth) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.0.103 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > gdkdrawable-x11.c complains that Xft.h is not found on my system. I > searched trough my entire harddisk, this file is nowhere. xlib dev is > installed and all the other libs needed for compiling. I also searched > through debian.org and google but nothing helps me. Xft.h is part of XFree 4 which is currently only available in Debian unstable (or maybe testing as well). W. From king@eiffel.com Tue Jun 19 17:35:49 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id E2C2B2BC88 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 17:35:47 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CT9k-0000QW-00 for gtk-list@gnome.org; Tue, 19 Jun 2001 14:35:28 -0700 Message-ID: <245f01c0f907$e760ec30$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Changing focus from one window to another Date: Tue, 19 Jun 2001 14:36:30 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, I have a program that has two top level windows, one with a button, one with a text entry in it. It is set up so that when I click the button, the focus is set to the text entry in the other window using gtk_widget_set_focus(entry_widget). However, the window containing the entry widget doesn't receive the focus. Am I doing something wrong? Thanks for your time. Ian King From bachn@LESTERELECTRICAL.com Tue Jun 19 17:49:50 2001 Return-Path: <bachn@LESTERELECTRICAL.com> Delivered-To: gtk-list@gnome.org Received: from nt_le.Lesterelectrical.com (h216-170-003-037.adsl.navix.net [216.170.3.37]) by mail.gnome.org (Postfix) with ESMTP id 8D1B62CFED for <gtk-list@gnome.org>; Tue, 19 Jun 2001 17:49:49 -0400 (EDT) Received: by NT_LE with Internet Mail Service (5.5.2448.0) id <JHS81VR1>; Tue, 19 Jun 2001 16:49:50 -0500 Message-ID: <A1393E9B8AE3D111AA970008C724A20B945953@NT_LE> From: Bach Ngo <bachn@LESTERELECTRICAL.com> To: "'gtk-list@gnome.org'" <gtk-list@gnome.org> Subject: How can I make a gtk window become active at starting up? Date: Tue, 19 Jun 2001 16:49:48 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, When I run a gtk application from an xterm, that gtk application window is not active but the xterm window. I have to click on the title bar of the gtk applicatio window to make it become active. Please help me to solve that. Bach Ngo From hp@redhat.com Tue Jun 19 18:25:24 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4458C2BCB6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:25:24 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JMP0M02692; Tue, 19 Jun 2001 18:25:00 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Changing focus from one window to another References: <245f01c0f907$e760ec30$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 18:25:00 -0400 In-Reply-To: "Ian King"'s message of "Tue, 19 Jun 2001 14:36:30 -0700" Message-ID: <y5wwv68ds5f.fsf@icon.labs.redhat.com> Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > > I have a program that has two top level windows, one with a button, one with > a text entry in it. It is set up so that when I click the button, the focus > is set to the text entry in the other window using > gtk_widget_set_focus(entry_widget). However, the window containing the > entry widget doesn't receive the focus. Am I doing something wrong? > GTK can't change the focus between toplevel windows, only the window manager can do that. (You can try calling XSetInputFocus() as a low-level hack, but if the user is using focus-follows-mouse or something it won't work out very well.) Havoc From hp@redhat.com Tue Jun 19 18:26:04 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 30B1C2BCB6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:26:04 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JMPld02695; Tue, 19 Jun 2001 18:25:47 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Bach Ngo <bachn@LESTERELECTRICAL.com> Cc: "'gtk-list@gnome.org'" <gtk-list@gnome.org> Subject: Re: How can I make a gtk window become active at starting up? References: <A1393E9B8AE3D111AA970008C724A20B945953@NT_LE> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 18:25:47 -0400 In-Reply-To: Bach Ngo's message of "Tue, 19 Jun 2001 16:49:48 -0500" Message-ID: <y5wsngwds44.fsf@icon.labs.redhat.com> Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Bach Ngo <bachn@LESTERELECTRICAL.com> writes: > > When I run a gtk application from an xterm, that gtk application window is > not active but the xterm window. I have to click on the title bar of the > gtk applicatio window to make it become active. > > Please help me to solve that. > Get a window manager that focuses windows when they're created. Or configure your existing WM to do that if possible. Havoc From king@eiffel.com Tue Jun 19 18:33:29 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id A437F2D2B8 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:33:28 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CU3m-00024S-00; Tue, 19 Jun 2001 15:33:22 -0700 Message-ID: <25bb01c0f90f$fd965f50$750a000a@naples> From: "Ian King" <king@eiffel.com> To: "Havoc Pennington" <hp@redhat.com> Cc: <gtk-list@gnome.org> References: <245f01c0f907$e760ec30$750a000a@naples> <y5wwv68ds5f.fsf@icon.labs.redhat.com> Subject: Re: Changing focus from one window to another Date: Tue, 19 Jun 2001 15:34:22 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > > "Ian King" <king@eiffel.com> writes: > > > > I have a program that has two top level windows, one with a button, one with > > a text entry in it. It is set up so that when I click the button, the focus > > is set to the text entry in the other window using > > gtk_widget_set_focus(entry_widget). However, the window containing the > > entry widget doesn't receive the focus. Am I doing something wrong? > > > > GTK can't change the focus between toplevel windows, only the window > manager can do that. > > (You can try calling XSetInputFocus() as a low-level hack, but > if the user is using focus-follows-mouse or something it won't work > out very well.) > > Havoc Does that mean the gtk_widget_set_focus (window) will never work? If so, then an autocomplete window that comes up when you are typing code would then surely be impossible to implement, or is there another way? Thanks Ian King From hp@redhat.com Tue Jun 19 19:36:26 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7FFA52CE82 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:36:19 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JNa2c02835; Tue, 19 Jun 2001 19:36:02 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Changing focus from one window to another References: <245f01c0f907$e760ec30$750a000a@naples> <y5wwv68ds5f.fsf@icon.labs.redhat.com> <25bb01c0f90f$fd965f50$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 19:36:01 -0400 In-Reply-To: "Ian King"'s message of "Tue, 19 Jun 2001 15:34:22 -0700" Message-ID: <y5wbsnkdov2.fsf@icon.labs.redhat.com> Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > Does that mean the gtk_widget_set_focus (window) will never work? If so, > then an autocomplete window that comes up when you are typing code would > then surely be impossible to implement, or is there another way? > gtk_widget_set_focus() does something else, not what you are hoping for here. It's a semi-internal function. gdk_keyboard_grab(), or just getting the keypresses on your editor widget and updating the complete widget appropriately, would be two ways to do this. Havoc From vicki@dialupnet.com Wed Jun 20 12:31:47 2001 Return-Path: <vicki@dialupnet.com> Delivered-To: gtk-list@gnome.org Received: from opus (user-24-214-88-99.knology.net [24.214.88.99]) by mail.gnome.org (Postfix) with ESMTP id A54182DF69 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 12:31:46 -0400 (EDT) Received: from localhost (IDENT:vicki@localhost [127.0.0.1]) by opus (8.11.0/8.11.0) with ESMTP id f5KGV6610324 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 11:31:06 -0500 Date: Wed, 20 Jun 2001 11:31:03 -0500 (CDT) From: Vicki Stanfield <vicki@dialupnet.com> To: GTK-List <gtk-list@gnome.org> Subject: Getting widgets children Message-ID: <Pine.LNX.4.33.0106201129430.10314-100000@opus> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I know that I can get the parent of a widget, but if I have only the parent widget, can I get the children? I need to unrealize most of the widgets to change the window. Have a good day! - -Vicki +-----------------------------------------------------------------+ | E-mail: vicki@thepenguin.org | | My public key - http://www.thepenguin.org/vicki/key.txt | | My Linux page - http://www.thepenguin.org | +-----------------------------------------------------------------+ **The best things in life aren't things. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7MM/KvFwCsl/kaSARApmCAJ9tZkTki6f24cQEUk+BOiblFPaGfwCeNXJu eD4hRaosxJ9aZxTmRXBYKgo= =ivw0 -----END PGP SIGNATURE----- From john.cupitt@ng-london.org.uk Wed Jun 20 12:43:20 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 3B9762D1BA for <gtk-list@gnome.org>; Wed, 20 Jun 2001 12:43:20 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNYWF; Wed, 20 Jun 2001 17:43:19 +0100 Message-ID: <3B30D159.66D593F4@ng-london.org.uk> Date: Wed, 20 Jun 2001 17:37:45 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Vicki Stanfield <vicki@dialupnet.com> Cc: GTK-List <gtk-list@gnome.org> Subject: Re: Getting widgets children References: <Pine.LNX.4.33.0106201129430.10314-100000@opus> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Vicki Stanfield wrote: > I know that I can get the parent of a widget, but if I have only the > parent widget, can I get the children? I need to unrealize most of the > widgets to change the window. Hi, if it's a subclass of container, you can loop over widget->children. Something like: /* Set a name for a widget and all its children. */ void set_name( GtkWidget *widget, const char *name ) { gtk_widget_set_name( widget, name ); if( GTK_IS_CONTAINER( widget ) ) gtk_container_foreach( GTK_CONTAINER( widget ), (GtkCallback) set_name, (char *) name ); } You can do a for(;;) loop as well (slightly less clean): if( GTK_IS_CONTAINER( widget ) ) { GSList *p; for( p = GTK_CONTAINER( widget )->children; p; p = p->next ) { GtkWidget *child = GTK_WIDGET( p->data ); ... } } That's what I do anyway. John From netlu@visto.com Wed Jun 20 13:59:54 2001 Return-Path: <netlu@visto.com> Delivered-To: gtk-list@gnome.org Received: from qmail5.visto.com (unknown [209.185.20.135]) by mail.gnome.org (Postfix) with SMTP id D16CD2BACE for <gtk-list@gnome.org>; Wed, 20 Jun 2001 13:59:53 -0400 (EDT) Received: (qmail 27577 invoked by alias); Received: from unknown (HELO mps2) (206.79.140.175) by 0 with SMTP; 20 Jun 2001 10:59:43 -0700 Reply-To: netlu@visto.com From: "Louis Lu" <netlu@visto.com> Subject: memory map io function Date: Wed, 20 Jun 2001 10:59:43 -0700 X-Mailer: Visto To: gtk-list@gnome.org MIME-Version: 1.0 X-Mailer: Visto Server Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <20010620175953.D16CD2BACE@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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi: I just wondering whether or not anyone who has the experiences on memo= ry map io function before?=20 My code is as following: int *base; unsigned int fd; fd =3D open("dev/mem", O_RDWR); base =3D mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800= 000); =20 (and I tried to write a value to a certian register of vga) *(int *)(base+0x60000/4) =3D 0x30f027f; munmap(base, 0x800000); close(fd); The compile is ok, but when I runt it, I got segmentation fault (core dum= p). I bassically need to write around 13 of them and I have even tried to cha= nge the size from 0x800000 to 0x8fffffff. I still got core dump though. So, I appreciate it if there is anyone who can teach me how to correct my= problem here. =20 Louis _________________________________________________________________________= __ Visit http://www.visto.com/info, your free web-based communications cente= r. Visto.com. Life on the Dot. From king@eiffel.com Wed Jun 20 15:41:01 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id B8E8D2DF72 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 15:41:00 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CnqV-0006Sr-00 for gtk-list@gnome.org; Wed, 20 Jun 2001 12:40:59 -0700 Message-ID: <01b101c0f9c1$13f3c100$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Widget size Date: Wed, 20 Jun 2001 12:42:02 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I have a small example of a button within a hbox. The hbox has, say a height of 100 pixels, the button has a minimum height of 25 pixels. When the button is in the hbox, it also has an allocated height of 100 pixels. When I take it out of the hbox, its allocated height is 25 pixels, however when I put the button back in the hbox (this is all done on-screen), the allocated height is still 25. Why is this and how do I get the allocation to update immediately. Thanks for your time Ian King From david.robin@st.com Wed Jun 20 16:08:10 2001 Return-Path: <david.robin@st.com> Delivered-To: gtk-list@gnome.org Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mail.gnome.org (Postfix) with ESMTP id 2A3B82E776 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:07:02 -0400 (EDT) Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id 7686348D0 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 20:07:01 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id A07BC4B09; Wed, 20 Jun 2001 20:07:04 +0000 (GMT) Received: from eux100.sgp.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 65AC8184E for <gtk-list@gnome.org>; Wed, 20 Jun 2001 20:07:04 +0000 (GMT) Received: from st.com (fenix.nvg.sgp.st.com [164.129.227.19]) by eux100.sgp.st.com (8.8.6 (PHNE_17190)/8.8.6) with ESMTP id WAA01635 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:07:00 +0200 (METDST) Message-ID: <3B310384.5FFF5E0F@st.com> Date: Wed, 20 Jun 2001 22:11:48 +0200 From: David Robin <david.robin@st.com> X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: to score threads? 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> As I was looking for bug-killing technics through the mailing-list archives, I found this: http://mail.gnome.org/archives/gtk-list/2001-June/msg00173.html This thread resolved all the problems I had for long weeks. It has info I found in no other ressources. So it made me think that maybe it would be a good idea to allow the M.L. archive users to vote for threads (slashdot style). With this feature, If a thread has a very high score, it will certainly mean that its contents give informations that were not in the other gtk online ressources. Therefore, this scoring system would give to gtk documentation maintainers indications on how to improve their effort. David. From brandon@ovnet.com Wed Jun 20 16:25:29 2001 Return-Path: <brandon@ovnet.com> Delivered-To: gtk-list@gnome.org Received: from riker.mountain.net (smtp.mountain.net [66.118.64.15]) by mail.gnome.org (Postfix) with ESMTP id 222972CEEA for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:25:29 -0400 (EDT) Received: from ovnet.com ([198.77.41.138]) by riker.mountain.net (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id net; Wed, 20 Jun 2001 16:22:45 -0400 Message-ID: <3B3107CD.6010606@ovnet.com> Date: Wed, 20 Jun 2001 16:30:05 -0400 From: Brandon McCombs <brandon@ovnet.com> User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5 i686; en-US; m18) Gecko/20001107 Netscape6/6.0 X-Accept-Language: en MIME-Version: 1.0 To: Sven Neumann <sven@gimp.org> Cc: AndrXs Giraldo <andres_giraldo@yahoo.com>, Gtk List <gtk-list@gnome.org> Subject: Re: gtk_widget_destroy References: <20010618153433.39415.qmail@web11507.mail.yahoo.com> <yfxsngxbvmg.fsf@gimp.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Sven Neumann wrote: > Hi, > > "AndrXs" Giraldo <andres_giraldo@yahoo.com> writes: > > >> I'm creating a window from a nother window, something >> like a message box, but when I want to unload this >> window; >> >> should I use gtk_widget_destroy? >> >> Because I'm connecting this signal to a button clicked >> event: >> >> gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", >> GTK_SIGNAL_FUNC >> (on_btnClose_clicked), NULL) >> >> >> // callback function >> >> void on_btnClose_clicked (GtkButton *button, gpointer >> data) >> { >> GtkWidget *window = (GtkWidget *)data; >> >> gtk_widget_destory (window); >> } >> > > > you did not pass the window pointer when connecting > your signal. How is this supposed to work ?? true however he also didn't spell gtk_widget_destroy correctly....he needs to fix that typo as well. From otaylor@redhat.com Wed Jun 20 16:42:27 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id D7E332E665 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:42:27 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 5E110242319; Wed, 20 Jun 2001 16:42:27 -0400 (EDT) To: David Robin <david.robin@st.com> Cc: gtk-list@gnome.org Subject: Re: to score threads? References: <3B310384.5FFF5E0F@st.com> From: Owen Taylor <otaylor@redhat.com> Date: 20 Jun 2001 16:42:27 -0400 In-Reply-To: David Robin's message of "Wed, 20 Jun 2001 22:11:48 +0200" Message-ID: <ybe8zimkhn0.fsf@fresnel.labs.redhat.com> Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> David Robin <david.robin@st.com> writes: > As I was looking for bug-killing technics through the mailing-list > archives, I found this: > > http://mail.gnome.org/archives/gtk-list/2001-June/msg00173.html > > This thread resolved all the problems I had for long weeks. It has info > I found in no other ressources. > So it made me think that maybe it would be a good idea to allow the M.L. > archive users to vote for threads (slashdot style). > With this feature, If a thread has a very high score, it will certainly > mean that its contents give informations that were not in the other gtk > online ressources. > Therefore, this scoring system would give to gtk documentation > maintainers indications on how to improve their effort. If you find something interesting in the archives, why don't you submit an entry to the FAQ (send it to trog@gtk.org) that summarizes it. You can include a link to the mailing list thread in the entry. Regards, Owen From king@eiffel.com Wed Jun 20 18:21:00 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 8905A2E0DB for <gtk-list@gnome.org>; Wed, 20 Jun 2001 18:20:59 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CqLG-0000ub-00 for gtk-list@gnome.org; Wed, 20 Jun 2001 15:20:54 -0700 Message-ID: <025901c0f9d7$6b9e5f80$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Fw: Widget size Date: Wed, 20 Jun 2001 15:21:58 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> In response to my previous message, how do I tell gtk to automatically recompute all of the widget allocations immediately, will gtk_widget_draw (hbox) do this, or is there some other function I can use? The allocation of the button does update but not immediately, it is usually updated within 100 ms. Thanks for your time, I would love to fix this `bug'. Ian King ----- Original Message ----- From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Sent: Wednesday, June 20, 2001 12:42 PM Subject: Widget size > I have a small example of a button within a hbox. The hbox has, say a > height of 100 pixels, the button has a minimum height of 25 pixels. When > the button is in the hbox, it also has an allocated height of 100 pixels. > When I take it out of the hbox, its allocated height is 25 pixels, however > when I put the button back in the hbox (this is all done on-screen), the > allocated height is still 25. Why is this and how do I get the allocation > to update immediately. > > Thanks for your time > > Ian King > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From uckelman@scylla.ellipsis.cx Wed Jun 20 22:14:35 2001 Return-Path: <uckelman@scylla.ellipsis.cx> Delivered-To: gtk-list@gnome.org Received: from scylla.ellipsis.cx (unknown [64.109.29.58]) by mail.gnome.org (Postfix) with SMTP id 6AB792BAB4 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:14:34 -0400 (EDT) Received: (qmail 22596 invoked by uid 500); 21 Jun 2001 02:14:34 -0000 Message-ID: <20010621021434.22594.qmail@scylla.ellipsis.cx> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: viewports, anchored icons From: Joel Uckelman <uckelman@nomic.net> Reply-To: uckelman@nomic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 20 Jun 2001 21:14:34 -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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I've been working on a graphical system for playing wargames by email, and I've run up against a problem that has me stumped. What I want to do is anchor certain small windows (the playing pieces) to a pixmap (the game board) in a large scrolling window such that the pieces follow the map when it's scrolled---even out of the viewport, if need be. The effect I want is something similar to the way it looks when selected areas are scrolled in and out of the viewport in Gimp. I know this can be done somehow; I'd be grateful for suggestions as to how I should go about it. Thanks! -- J. From hp@redhat.com Wed Jun 20 22:33:09 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 70D232BAB1 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:33:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5L2X5j00851; Wed, 20 Jun 2001 22:33:05 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Fw: Widget size References: <025901c0f9d7$6b9e5f80$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 20 Jun 2001 22:33:05 -0400 In-Reply-To: "Ian King"'s message of "Wed, 20 Jun 2001 15:21:58 -0700" Message-ID: <y5wofripnoe.fsf@icon.labs.redhat.com> Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > In response to my previous message, how do I tell gtk to automatically > recompute all of the widget allocations immediately, will gtk_widget_draw > (hbox) do this, or is there some other function I can use? The allocation > of the button does update but not immediately, it is usually updated within > 100 ms. > It would probably break GTK to try and do this, and be really slow. Sizes are recomputed in an idle handler. There's probably an easier way to do whatever you are trying to do. Havoc From lsetia78@yahoo.com Thu Jun 21 02:56:12 2001 Return-Path: <lsetia78@yahoo.com> 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 4514B2BB13 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 02:56:12 -0400 (EDT) Received: from unknown (HELO yahoo.com) (203.200.123.129) by smtp.mail.vip.sc5.yahoo.com with SMTP; 21 Jun 2001 06:56:10 -0000 X-Apparently-From: <lsetia78@yahoo.com> Message-ID: <3B3199C5.2010601@yahoo.com> Date: Thu, 21 Jun 2001 12:22:53 +0530 From: Lokesh Setia <lsetia78@yahoo.com> User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; rv:0.9.1) Gecko/20010607 Netscape6/6.1b1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Allocating a lot of colors 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hello, I'm writing a Image processing application, in which I need to show intermediate results of my calculations as an image in a window, nothing more. First of all, I will like to ask whether drawing_area widget with a backing pixmap is the best choice for this? I will have to call gdk_draw_point{s}( ) in this case I guess Second, when the image changes (it does after every 50 msec), colors may need to be allocated/deallocated. Doing gdk_colormap_alloc_color() in a loop seems to be a grossly inefficient way of doing this. Is there any other option? BTW, since the application is only meant for internal use, I do not have to make it work for 8-bit displays if it helps in any way :) Regards, Lokesh _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From mtnweb@mac.com Thu Jun 21 02:56:46 2001 Return-Path: <mtnweb@mac.com> Delivered-To: gtk-list@gnome.org Received: from smtp.commspeed.net (unknown [216.19.50.6]) by mail.gnome.org (Postfix) with SMTP id 433992BB13 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 02:56:45 -0400 (EDT) Received: (qmail 86640 invoked from network); 21 Jun 2001 06:56:18 -0000 Received: from unknown (HELO ?63.169.80.58?) (63.169.80.58) by 0 with SMTP; 21 Jun 2001 06:56:18 -0000 User-Agent: Microsoft-Entourage/9.0.1.3108 Date: Wed, 20 Jun 2001 23:56:43 -0700 Subject: Error compiling Glib 1.2.10 From: Terry Lynch <mtnweb@mac.com> To: gtk list <gtk-list@gnome.org> Message-ID: <B756E8BA.20DC%mtnweb@mac.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I got the following error compiling Glib. I need to install Glib, then GTK+, so I can use BasiliskII (Macintosh Emulator), but I got stuck here. Configure worked okay--no warnings. Then I typed 'make' and got this error after a few minutes of making. /bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c giounix.c cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c giounix.c -o giounix.o giounix.c:1317: bad macro argument list cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make[2]: *** [giounix.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 Thanks, Terry From john.cupitt@ng-london.org.uk Thu Jun 21 07:39:57 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 3FD6A2BD56 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 07:39:57 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNZ6L; Thu, 21 Jun 2001 12:39:56 +0100 Message-ID: <3B31DBBD.E9DE880F@ng-london.org.uk> Date: Thu, 21 Jun 2001 12:34:21 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Lokesh Setia <lsetia78@yahoo.com> Cc: gtk-list@gnome.org Subject: Re: Allocating a lot of colors References: <3B3199C5.2010601@yahoo.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Lokesh Setia wrote: > First of all, I will like to ask whether drawing_area widget with a > backing pixmap is the best choice for this? Hi Lokesh, the way to do this by hand is to use gdk_rgb_*(). Take a look at testrgb.c in the gtk source area. gdk_rgb_*() does all the horrible X stuff for you: it finds an appropriate visual, opens a shared memory area (if possible), and takes care of all the dithering that might be necessary to get nice looking colour. You just make a big RGB array, and call gdk_draw_rgb_image(). It's pretty quick too: I get 10 Mpixels/sec on my (modest) system, so you should be OK for your 50ms timeslot. If you want something higher level, then gdk-pixbuf is your baby. It adds things like rescale and image load and save. > I will have to call > gdk_draw_point{s}( ) in this case I guess. > Second, when the image changes (it does after every 50 msec), colors may > need to be allocated/deallocated. Doing gdk_colormap_alloc_color() in a > loop seems to be a grossly inefficient way of doing this. Is there any > other option? /me falls over This will be rather slow :-) John From john.cupitt@ng-london.org.uk Thu Jun 21 07:55:35 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 1A8772BB31 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 07:55:35 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNZ7P; Thu, 21 Jun 2001 12:55:33 +0100 Message-ID: <3B31DF66.5A49E31D@ng-london.org.uk> Date: Thu, 21 Jun 2001 12:49:58 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: netlu@visto.com Cc: gtk-list@gnome.org Subject: Re: memory map io function References: <20010620175953.D16CD2BACE@mail.gnome.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Louis Lu wrote: > I just wondering whether or not anyone who has the experiences on memory map io function before? > > My code is as following: > int *base; > unsigned int fd; > fd = open("dev/mem", O_RDWR); > base = mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800000); > > (and I tried to write a value to a certian register of vga) > > *(int *)(base+0x60000/4) = 0x30f027f; > munmap(base, 0x800000); > close(fd); > > The compile is ok, but when I runt it, I got segmentation fault (core dump). Hi Louis, I guess it's a permission thing. Are you running this as root? Add some checks to the results of open() and mmap(), and see where its failing, and what error you get from the system. if( (fd = open( "/dev/mem", O_RDWR )) == -1 ) { fprintf( stderr, "open /dev/mem failed: %s\n", strerror( errno ) ); exit( -1 ); } if( (base = mmap( ... )) == (void *) -1 ) { fprintf( stderr, "mmap failed: %s\n", strerror( errno ) ); exit( -1 ); } etc. This sounds incredibly dangerous :-) You are in extreme danger of toasting your system. Good luck, John From Esteban.Quijano@artinsoft.com Tue Jun 19 11:08:14 2001 Return-Path: <Esteban.Quijano@artinsoft.com> Delivered-To: gtk-list@gnome.org Received: from freedom-srv.intranet (unknown [196.40.21.166]) by mail.gnome.org (Postfix) with ESMTP id 5AC092D412 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:07:52 -0400 (EDT) Received: by FREEDOM-SRV with Internet Mail Service (5.5.2653.19) id <M8F7QHF3>; Tue, 19 Jun 2001 08:59:39 -0600 Message-ID: <C3AF23EBD276D411B0D500B0D020E68074A42B@FREEDOM-SRV> From: Esteban Quijano Vincenzi <Esteban.Quijano@artinsoft.com> To: gtk-list@gnome.org Subject: RE: A Modal Window Date: Tue, 19 Jun 2001 08:59:38 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0F8D0.7623AF30" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> 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_01C0F8D0.7623AF30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, there are two ways for doing this: 1) Call gtk_main() again so you enter in a second event loop. When you = press an "ok" or "cancel" button just call gtk_main_quit(). You will return = to the main event loop. 2) Do something like this: =20 while (exit_modal !=3D TRUE) gtk_main_iteration(); and in your callback function do exit_modal =3D TRUE somewhere Esteban Quijano Vincenzi. Quality Assurance - Intel project Artinsoft corp. -----Original Message----- From: Andr=E9s" Giraldo [mailto:andres_giraldo@yahoo.com] Sent: Tuesday, June 19, 2001 7:39 AM To: Gtk List Subject: A Modal Window Hi! I need to call a window that shows 2 options in buttons, yes or no, and I need to wait for that answer, something like a vbModal in MS-Visual Basic... A window that waits until it's unloaded How can I do this? Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C0F8D0.7623AF30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2653.12"> <TITLE>RE: A Modal Window

Hi, there are two ways for doing this:
1) Call gtk_main() again so you enter in a second = event loop. When you press an "ok" or "cancel" = button just call gtk_main_quit(). You will return to the main event = loop.

2) Do something like this:
  
   while (exit_modal !=3D TRUE) = gtk_main_iteration();

and in your callback function do exit_modal =3D TRUE = somewhere

Esteban Quijano Vincenzi.
Quality Assurance - Intel project
Artinsoft corp.


-----Original Message-----
From: Andr=E9s" Giraldo [mailto:andres_giraldo@yahoo.com= ]
Sent: Tuesday, June 19, 2001 7:39 AM
To: Gtk List
Subject: A Modal Window


Hi!

I need to call a window that shows 2 options = in
buttons, yes or no, and I need to wait for = that
answer, something like a vbModal in MS-Visual = Basic...

A window that waits until it's unloaded

How can I do this?

Thanks!

__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and = more.
http://buzz.yahoo.com/

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

------_=_NextPart_001_01C0F8D0.7623AF30-- From dermot@glade.perl.connectfree.co.uk Wed Jun 20 02:21:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 422982D394; Wed, 20 Jun 2001 02:21:55 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id CAA08055; Wed, 20 Jun 2001 02:21:54 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5K6Keb29913; Wed, 20 Jun 2001 02:20:40 -0400 Received: from higrade.botwrights.farm (ppp-121.ispgas04.minx.net.uk [212.85.246.121]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id HAA12947; Wed, 20 Jun 2001 07:54:47 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id HAA01154; Wed, 20 Jun 2001 07:21:44 +0100 Message-ID: <3B3040F8.6FDF5F86@glade.perl.connectfree.co.uk> Date: Wed, 20 Jun 2001 07:21:44 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: [Glade-devel] ANNOUNCE: Glade-Perl 0.58 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I am terribly sorry about this but I quoted an out-of date URL for my module on CPAN. The correct directory URL is: ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but it is better to go to your local mirror. Apologies aganin, Dermot From dermot@glade.perl.connectfree.co.uk Wed Jun 20 02:06:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 02D4F2BB47; Wed, 20 Jun 2001 02:06:51 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id CAA06701; Wed, 20 Jun 2001 02:06:51 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5K65ab29002; Wed, 20 Jun 2001 02:05:37 -0400 Received: from higrade.botwrights.farm (ppp-121.ispgas04.minx.net.uk [212.85.246.121]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id HAA12426; Wed, 20 Jun 2001 07:39:26 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id HAA01096; Wed, 20 Jun 2001 07:06:20 +0100 Message-ID: <3B303D5C.BF231640@glade.perl.connectfree.co.uk> Date: Wed, 20 Jun 2001 07:06:20 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: ANNOUNCE: Glade-Perl 0.58 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I have just uploaded perl module Glade-Perl-0.58.tar.gz to CPAN ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/Glade/ Until it is mirrored around the world it is available on my websites. http://www.glade.perl.connectfree.co.uk/index.html http://freespace.virgin.net/dermot.musgrove/computers/perl/index.html Glade-Perl generates perl source code from a Glade file - Glade is Damon Chaplin's beautiful Gtk+/Gnome UI builder. Glade-Perl can display the UI as it is built and/or generate source code and it can be called directly from Glade's 'Build' button. It can also generate code to use libglade if you prefer. Regards, Dermot snipped from the Changelog: ------------------------------------------------------------ Fri Apr 13 01:01:22 BST 2001 - Dermot Musgrove - Version 0.58 - Mimimum requirements increased to Gtk-Perl-0.7000 and gnome-libs-1.2.0 These have been around for a year or more now and fix many problems. - All packages - Extensive tidying of options handling with a new data structure. Old format options files will be read as before but project options will be saved in the new hierarchically nested structure. - The options handling and diagnostics utilities have been moved to Glade::PerlRun so that you can use them in your own apps. - PerlUI - some variables updated for Gtk-Perl-0.7004 and later. - Some changes to generated comments and source code. - glade2perl - removed redundant 'use English' call New, more meaningful 'set_by' value and New (2nd) arg to specify verbosity in glade2perl call eg. 'glade2perl Project.glade 2' Simplified usage so that a separate Glade::PerlGenerate->options() call is not needed and the options can be specified to Form_from_File() Also, undefined glade_filename causes most recently used file stored in your user options file to run. - PerlRun->reload_any_altered_modules() is a new sub for app testing to reload any modules that have been edited. This idea is from Stas Bekman and gives you the ability to edit and reload any signal handlers and support modules without closing down the app and restarting it. This is not possible if you regenerate the UI module and reload it. Your app will crash in flames if you try this. Simply call '__PACKAGE__->reload_any_altered_modules;' in a handler for any widget/signal you like (I usually use a Refresh button). - PerlGenerate->Form_from_Glade_File() amended to call two new subs parse_form() and build_form() to allow use in future Glade::Helper app. - PerlGenerate->about_Form() fixed to use proper pixmap option - PerlGenerate->Form_from_Proto() now only generates subclass for simple AUTOLOAD style runs. - PerlRun->load_translations() amended to look for .mo files in several possible places if a catalog path is not specified. - An extra form element is now returned from generated UI constructor so that you can call $form->{'TOPLEVEL'} in any signal handler to get a toplevel form widget - ie. use $form->{'TOPLEVEL'}->get_filename() to get the file name entered in a fileselection dialog from the 'on_ok_button_clicked' signal handler. - PerlUI->my_gtk_perl_can_do() now also checks for particular versions that are known to be flawed in certain ways. - FAQ split into 3 files - all old FAQs are available on the website. FAQ - Frequently asked questions (general) FAQ.i18n - FAQs relating to internationalisation (I18N) issues. FAQ.old - FAQs relating to old/flawed software versions - PerlSource->perl_about() generates `gnome-config --version` call in Gnome about_Form() sub in App/SubApp. If the gnome-libs-devel RPM is not installed the gnome-libs version number will not be reported. - PerlSource now generates lines in app_run to load translations. - Glade-Perl.spec file based on one from George, the mp3 organiser. This one works I think and allows RPM builds from the tarball by calling eg. 'rpm -ta Glade-Perl-0.58.tar.gz'. - PerlUI->new_accelerator() - accelerator key now defaults to ''. PerlUIExtra->new_GtkPixmapMenuItem() also defaults key to '' PerlProject->use_Glade_Project() now escapes double quotes in author. Thanks for bug reports for the above reports to Joe "Markus" Clark. ------------------------------------------------------------ From Valdis.Kletnieks@vt.edu Thu Jun 21 10:13:32 2001 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 B0AD62C89A for ; Thu, 21 Jun 2001 10:13:32 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5LEDVg15478; Thu, 21 Jun 2001 10:13:31 -0400 Message-Id: <200106211413.f5LEDVg15478@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: netlu@visto.com Cc: gtk-list@gnome.org Subject: Re: memory map io function In-Reply-To: Your message of "Wed, 20 Jun 2001 10:59:43 PDT." <20010620175953.D16CD2BACE@mail.gnome.org> 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_1738061022P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 21 Jun 2001 10:13:30 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1738061022P Content-Type: text/plain; charset=us-ascii On Wed, 20 Jun 2001 10:59:43 PDT, Louis Lu said: > Hi: > > I just wondering whether or not anyone who has the experiences on memory map io function before? > > My code is as following: > int *base; > unsigned int fd; > fd = open("dev/mem", O_RDWR); > base = mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800000); Note that 0x80000 and 0xd8000000 are *VIRTUAL* addresses. This *WILL* screw you to the wall. Also, you're missing a MAP_FIXED - Very Bad Juju will result. Also, you're confusing two meanings of "memory mapped". The 'mmap()' system call creates a mapping between *virtual addresses* that possibly belong to different processes. Memory Mapped I/O means "instead of using an IN or OUT opcode to write data to/from an I/O port, the device is set up to look like memory. So storing to a specific memory location becomes an OUTput, and reading it becomes an INput, and so on". This is an Incredibly Bad Thing to do from user-land - in particular, you're quite likely to get hosed by virtual/physical address mapping (hint - what happens if the virtual page gets paged out? You didn't lock it anyplace ;), and a whole host of other things that can go wrong. The Better Way to implement this would be with a device driver - you would open /dev/yourdev, and issue read() and write() and ioctl() as needed. Inside the kernel, the (for example) write() call would go into the device driver, which would then check the buffer location/size, sanity-check all the other paramaters to write(), lock the pages in memory so the VM manager doesn't move them around, set an internal lock so other read()/write() to that device block until this operation finishes, and then finally move data from the user buffer to the I/O address(es). Depending on the hardware design, you may be able to get away with an strcpy() (if the card provides address space for an entire buffer) or you may need a loop like this: char *dest = (char *) 0x800ffff; /* or whatever address */ for (i=buflen;i;i--) *dest = *userbuf++; /* *NO* ++ on dest */ Many such cards have restrictions that you have to write only bytes, or only 4/8/16 bytes at a time, or that writes have to be aligned, etc. Your device driver will also have to deal with error conditions, the existence of read-only and write-only status/control bits, and so on. I won't get into issues like cache coherency (what happens when the data that's in the memory-mapped I/O card doesn't match what your CPU has in its L1/L2 cache), how to make it work right on a SMP system, and so on. You may wish to ask the card vendor if they have a device driver for your system already.... -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_1738061022P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzIBCnAt5Vm009ewEQLAtgCePd0O3JYjwRTalZ2Z61V79PH9iuwAoNTV CkDJVZPgDtzFhrESQKx/o0UD =NTzH -----END PGP SIGNATURE----- --==_Exmh_1738061022P-- From topper@virginia.edu Thu Jun 21 18:34:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id D60442BEF2 for ; Thu, 21 Jun 2001 18:34:33 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab00554; 21 Jun 2001 18:34 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id SAA22362; Thu, 21 Jun 2001 18:34:32 -0400 (EDT) Message-ID: <3B32755F.4D700ACA@virginia.edu> Date: Thu, 21 Jun 2001 18:29:51 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > "David J. Topper" writes: > > > > I mean a window, they are GtkWindows, not popups. I'm using them to get > > parameters for items created on the fly (eg., length, width, height) and > > I don't want the "windows" to drop in back when I accidentally move the > > mouse off them. > > > > I don't understand why they're moving to the back - is your window > manager using focus-follows-mouse and raise-on-focus? Exactly right. This is a problem in other applications too. But I've seen some get around it (eg., KDEs desktop background color selector). It at least won't drop behind the calling application. Something like that would be fine ... but I'm not sure how to do it. Maybe a callback for the window in question ... to check if it's raised or lowered ... or of that status has changed? Then just always raise it? I'm guessing here. DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From topper@virginia.edu Thu Jun 21 19:39:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id ADA482CC04 for ; Thu, 21 Jun 2001 19:39:47 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa15818; 21 Jun 2001 19:39 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA04840 for ; Thu, 21 Jun 2001 19:39:46 -0400 (EDT) Message-ID: <3B3284A8.1133DCE3@virginia.edu> Date: Thu, 21 Jun 2001 19:35:05 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Signal help needed (gtk_signal_new?) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I've gotten some feedback on this, but still need help. From what I gather, signals are specific to types. So a gtk adjustment, for example, has two signals associated with it: "changed" and "value changed". Fine. I've been looking for another kind of signal, perhaps rarely used, or something I surely won't use in my program. The best name I can think of for it is "activate." I bascially want to trigger signals from one adjustment, to a tree of connected adjustments. But I can find no such signal. So I thought I'd hack up a new one, just getting all the relevant info as follows: for (i=1;i<128;i++) { sig_info = gtk_signal_query(i); if (strcmp(sig_info->signal_name, "changed") == 0) { /* I'd insert mine here */ continue; } } since I was unable to find a GtkType for an adjustment, and hence unable to use gtk_signal_lookup(). But even if I capture the relevant info for "changed" I can't use it to create a new signal. The arguments for gtk_signal_new() are elusive to me. I'd basically like to create something very similar to the "value_changed" and "changed" signals, named "activate." It would be the equivalent of a pulse that gets sent whenever the value changes from 0-1 or 1-0. Thanks, DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From hp@redhat.com Thu Jun 21 21:51:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 345402BA85 for ; Thu, 21 Jun 2001 21:51:11 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5M1pFB28323; Thu, 21 Jun 2001 21:51:15 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> <3B32755F.4D700ACA@virginia.edu> From: Havoc Pennington Date: 21 Jun 2001 21:51:15 -0400 In-Reply-To: "David J. Topper"'s message of "Thu, 21 Jun 2001 18:29:51 -0400" Message-ID: Lines: 29 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > I don't understand why they're moving to the back - is your window > > manager using focus-follows-mouse and raise-on-focus? > > Exactly right. This is a problem in other applications too. But I've seen > some get around it (eg., KDEs desktop background color selector). It at > least won't drop behind the calling application. Something like that would > be fine ... but I'm not sure how to do it. Perhaps they set the TRANSIENT_FOR hint (gtk_window_set_transient_for()), many WM's will keep transients on top of their parents. > Maybe a callback for the window in question ... to check if it's raised or > lowered ... or of that status has changed? Then just always raise > it? That would produce a nice flicker effect, and maybe even an infinite loop as you fought with the window manager. ;-) You generally don't want to get into "try to undo what the WM is doing" mode, better to just rethink the GUI or live with the problem or something. My opinion is that the focus-follows-mouse/raise-on-focus combination is a somewhat broken window management policy, but I'm sure reasonable people will disagree. Havoc From jean-michel.rouet@philips.com Fri Jun 22 08:03:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gw-nl4.philips.com (gw-nl4.philips.com [212.153.190.6]) by mail.gnome.org (Postfix) with ESMTP id 0A57D2D61F for ; Fri, 22 Jun 2001 08:03:27 -0400 (EDT) Received: from smtpscan-nl3.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl4.philips.com with ESMTP id OAA12092 for ; Fri, 22 Jun 2001 14:03:20 +0200 (MEST) (envelope-from jean-michel.rouet@philips.com) From: jean-michel.rouet@philips.com Received: from smtpscan-nl3.philips.com(130.139.36.23) by gw-nl4.philips.com via mwrap (4.0a) id xma012086; Fri, 22 Jun 01 14:03:20 +0200 Received: from smtprelay-nl1.philips.com (localhost [127.0.0.1]) by smtpscan-nl3.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA10990 for ; Fri, 22 Jun 2001 14:03:17 +0200 (MET DST) Received: from notessmtp-nl1.philips.com (notessmtp-nl1.philips.com [130.139.36.10]) by smtprelay-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA12296 for ; Fri, 22 Jun 2001 14:03:15 +0200 (MET DST) Received: from EMLMS01.DIAMOND.PHILIPS.COM (emlms01sv1.diamond.philips.com [130.143.165.213]) by notessmtp-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA26383 for ; Fri, 22 Jun 2001 14:02:44 +0200 (MET DST) Received: by EMLMS01.DIAMOND.PHILIPS.COM (Soft-Switch LMS 4.0) with snapi via EMEA1 id 0056900018720401; Fri, 22 Jun 2001 14:16:38 +0200 To: Subject: Graph data structures Message-ID: <0056900018720401000002L012*@MHS> Date: Fri, 22 Jun 2001 14:16:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="MEMO 06/22/01 13:35:58" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear gtk-list :-) Although I've been looking through google and also over this mailing list archive, I've not found what I was looking for. My question is: is there anywhere a free and efficient graph data structure handling library that I can use in plain C. I thought that glib was the answer, but unfortunately it seems to only provide a support for trees (binary and n-way) but not for graphs. Is there an ongoing project in glib to add this kind of data type ? Does any body know an other free library that might provide such a data= type ? JM --=20 Jean-Michel Rouet (PhD) | Tel : +33 147 28 36 13 Philips Research LEP | Fax : +33 147 28 36 05 51, rue Carnot | email : Jean-Michel.Rouet@philips= .com BP 301 - 92156 Suresnes Cedex = From skip@beluga.mojam.com Fri Jun 22 13:38:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 376F92E318 for ; Fri, 22 Jun 2001 13:38:01 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MHato25605; Fri, 22 Jun 2001 12:36:55 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.33329.825838.235400@beluga.mojam.com> Date: Fri, 22 Jun 2001 12:36:49 -0500 To: gtk-list@gnome.org Subject: The g_object_{set,get} class of functions seem strange X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: In trying to figure out how I can get a list of property names for an object, I came across the g_object_set and g_object_get functions and their _valist versions. Their signatures seem rather bizarre to me. The get functions are declared to return void while the set functions are declared to return a gpointer. How does g_object_get return values to its caller (g_object_get_valist does something weird with its var_args argument)? Why doesn't it just allocate an array of gpointers and return them? Why does g_object_set need to return its first argument to its caller? -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Fri Jun 22 14:08:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 867B22BBA9 for ; Fri, 22 Jun 2001 14:08:43 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MI8cD30052; Fri, 22 Jun 2001 14:08:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: The g_object_{set,get} class of functions seem strange References: <15155.33329.825838.235400@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 14:08:38 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 12:36:49 -0500" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > In trying to figure out how I can get a list of property names for an > object, I came across the g_object_set and g_object_get functions and their > _valist versions. Their signatures seem rather bizarre to me. The get > functions are declared to return void while the set functions are declared > to return a gpointer. How does g_object_get return values to its caller > (g_object_get_valist does something weird with its var_args argument)? Why > doesn't it just allocate an array of gpointers and return them? Why does > g_object_set need to return its first argument to its caller? > The return value is a conspiracy by Tim to confuse people. ;-) Well, it is to support some kind of bizarre coding style: g_object_set (object, "child_object", g_object_set (object2, "foo", 10, NULL), NULL); Basically my recommendation is to pretend it returns void. g_object_get() works like this, say "foo" is an integer property: int val; g_object_get (object, "foo", &val, NULL); To get a list of properties that exist for an object you'd use something like g_object_class_list_properties(). Havoc From skip@beluga.mojam.com Fri Jun 22 14:28:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id BDA7F2BC8C for ; Fri, 22 Jun 2001 14:28:33 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MIR6C01085; Fri, 22 Jun 2001 13:27:06 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.36344.42598.420023@beluga.mojam.com> Date: Fri, 22 Jun 2001 13:27:04 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: The g_object_{set,get} class of functions seem strange In-Reply-To: References: <15155.33329.825838.235400@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc, Thanks for the explanation of the get/set oddities. You also wrote: Havoc> To get a list of properties that exist for an object you'd use Havoc> something like g_object_class_list_properties(). Thanks for the pointer. I imagine that will do the trick. It must be a brand new function. I had to "cvs up" to find it. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From weigelt@metux.de Fri Jun 22 15:03:44 2001 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 0F4312E2CE for ; Fri, 22 Jun 2001 15:03:42 -0400 (EDT) Received: from nibiru.oberonhq.net (nibiru.oberonhq.net [194.122.210.42]) by annwfn.erfurt.thur.de (8.11.4/8.10.1) with ESMTP id f5MJ39V27424 for ; Fri, 22 Jun 2001 21:03:10 +0200 Received: from metux.de (oberonhq@localhost [127.0.0.1]) by nibiru.oberonhq.net (8.9.3/8.9.3) with ESMTP id VAA08533 for ; Fri, 22 Jun 2001 21:03:08 +0200 Message-ID: <3B33966B.56E8E790@metux.de> Date: Fri, 22 Jun 2001 21:03:07 +0200 From: Enrico Weigelt Reply-To: weigelt@nibiru.thur.de Organization: meTUX IT services X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.4.0 i686) X-Accept-Language: en, de-DE MIME-Version: 1.0 To: GTK Mailing List Subject: garbage collection 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: has anyone thought about integrating an garbage collector in glib/gtk ? this would reduce the chance of broken pointers and wasted memory dramatically. ~-n _____________________________________ meTUX IT + Communication Services Enrico Weigelt www: www.metux.de email: weigelt@metux.de phone: +49 36207 51833 cellphone: +49 174 7066481 _____________________________________ From Valdis.Kletnieks@vt.edu Fri Jun 22 15:14:02 2001 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 C75302BD90 for ; Fri, 22 Jun 2001 15:14:01 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5MJDrg29837; Fri, 22 Jun 2001 15:13:53 -0400 Message-Id: <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: weigelt@nibiru.thur.de Cc: GTK Mailing List Subject: Re: garbage collection In-Reply-To: Your message of "Fri, 22 Jun 2001 21:03:07 +0200." <3B33966B.56E8E790@metux.de> 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_-1931908673P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 22 Jun 2001 15:13:53 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1931908673P Content-Type: text/plain; charset=us-ascii On Fri, 22 Jun 2001 21:03:07 +0200, Enrico Weigelt said: > has anyone thought about integrating an garbage collector > in glib/gtk ? Has anybody thought about the difficulties of implementing a garbage collector for C, when the user is free to do malloc()/free() and alias pointers to each other when the GC code isn't in control? > this would reduce the chance of broken pointers and wasted > memory dramatically. Not really. Remember that memory would *STILL* get wasted even with a garbage collector, if there isn't something imposing rules. If the programmer doesn't call free(), the memory won't get freed with a garbage collector, because there will still be a reference (the pointer that wasn't free()ed). Garbage collectors, in general, really blow major chunks unless you're coding in a Lisp or Java type language where it's *ENFORCED*. But that wouldn't be C/C++. -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-1931908673P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzOY8XAt5Vm009ewEQKsfgCgjo5QxPhCEtAxe+JYUmxV4bi9trkAn1rL IkVScosrNV5LJdZctXk/VFxp =/tID -----END PGP SIGNATURE----- --==_Exmh_-1931908673P-- From king@eiffel.com Fri Jun 22 15:18:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 15B0E2DFCA for ; Fri, 22 Jun 2001 15:18:56 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15DWSE-0002k8-00 for gtk-list@gnome.org; Fri, 22 Jun 2001 12:18:54 -0700 Message-ID: <085001c0fb50$58c3b430$750a000a@naples> From: "Ian King" To: Subject: Prelight problems Date: Fri, 22 Jun 2001 12:20:06 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone else have prelight problems on buttons with no relief set? It seems that in some circumstances they do not function correctly an d buttons are lit when the mouse is nowhere near the widget itself. Does anyone know of a fix for this? Thanks for your time Ian King From otaylor@redhat.com Fri Jun 22 15:23:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id F2A0B2E29C for ; Fri, 22 Jun 2001 15:23:20 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id D367124231A; Fri, 22 Jun 2001 15:23:19 -0400 (EDT) To: weigelt@nibiru.thur.de Cc: GTK Mailing List Subject: Re: garbage collection References: <3B33966B.56E8E790@metux.de> From: Owen Taylor Date: 22 Jun 2001 15:23:19 -0400 In-Reply-To: Enrico Weigelt's message of "Fri, 22 Jun 2001 21:03:07 +0200" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Enrico Weigelt writes: > has anyone thought about integrating an garbage collector > in glib/gtk ? > > this would reduce the chance of broken pointers and wasted > memory dramatically. Yes, its been discussed. If you hunt through the gtk-devel-list archives, you'll find a post from Havoc Pennington where he discusses some experiments he made using the Boehm GC. The trouble with depending on a garbage collector is one of integrating with other software which doesn't use a garbage collector, or uses an incompatible garbage collector. For that reason, it's not practical at the present time to depend on one for GTK+. Regards, Owen From skip@beluga.mojam.com Fri Jun 22 15:54:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id DA2372BAE9 for ; Fri, 22 Jun 2001 15:54:20 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MJqoD17173; Fri, 22 Jun 2001 14:52:50 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.41490.155957.939096@beluga.mojam.com> Date: Fri, 22 Jun 2001 14:52:50 -0500 To: Valdis.Kletnieks@vt.edu Cc: weigelt@nibiru.thur.de, GTK Mailing List Subject: Re: garbage collection In-Reply-To: <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> References: <3B33966B.56E8E790@metux.de> <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Valdis> Not really. Remember that memory would *STILL* get wasted even Valdis> with a garbage collector, if there isn't something imposing Valdis> rules. If the programmer doesn't call free(), the memory won't Valdis> get freed with a garbage collector, because there will still be Valdis> a reference (the pointer that wasn't free()ed). On the other hand, coupling garbage collection of containers with the current reference counting scheme might make sense if it can be pulled off. Python is reference counted. In 2.0 a garbage collector was added to reclaim circular garbage. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From iain@trna.ximian.com Fri Jun 22 16:18:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id 738B72BAFB for ; Fri, 22 Jun 2001 16:18:50 -0400 (EDT) Received: from localhost (iain@localhost) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id QAA17248; Fri, 22 Jun 2001 16:18:01 -0400 Date: Fri, 22 Jun 2001 16:18:00 -0400 (EDT) From: Iain Holmes To: raphi2 raph Cc: gtk-list@gnome.org, otaylor@redhat.com Subject: Re: GTK / SDL bis In-Reply-To: <992901282019158@caramail.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > In fact I would like to "include" a little SDL window in a > big GTK window. (by example to be able to play movies in my > GTK application) Okay, you can do it with the hack below, but you have to do the putenv hack *before* you call SDL_Init. Also from what I understood about SDL you can only have one window per process, at least only one window embedded in a GTK window as the putenv hack is global.=20 I dunno if it's possible with threads to get more than one SDL window into a GTK one, but it's possibly the ugliest hack I've seen yet. Plus when you start trying to do this stuff with bonobo controls, then you have fun about waiting for windows to be realised before calling sdlinit. iain >=20 >=20 >=20 > I tried to resolve my problem with your advices :) but I > have still problems. here is the part of my program with > problems: >=20 >=20 > SDL_Thread *thread; > GtkWidget=09*drawing_area; > Window=09xwin; >=20 > gtk_sess *sess =3D (gtk_sess *)data; >=20 > sess->new =3D gtk_window_new(GTK_WINDOW_TOPLEVEL); > gtk_widget_set_usize(sess->new, 460, 500); > // gtk_widget_show (sess->new); >=20 > sess->fixed =3D gtk_fixed_new(); > gtk_widget_ref (sess->fixed); > gtk_widget_show (sess->fixed); > gtk_container_add(GTK_CONTAINER(sess->new), sess->fixed); >=20 > drawing_area =3D gtk_drawing_area_new(); > gtk_widget_set_usize(drawing_area, 100, 100); > gtk_fixed_put(GTK_FIXED(sess->fixed), drawing_area, 400, > 400); > gtk_widget_realize(drawing_area); > gtk_widget_show(drawing_area); >=20 >=20 > { char SDL_windowhack[32]; > sprintf(SDL_windowhack,"SDL_WINDOWID=3D-543170384", > =09 GDK_WINDOW_XWINDOW(drawing_area->window)); > putenv(SDL_windowhack); > } >=20 > screen =3D SDL_SetVideoMode(100, 100, 0, 0); > thread =3D SDL_CreateThread(play_film, sess); > if (thread =3D=3D NULL) > printf("Probleme avec la thread\n"); > // gtk_timeout_add(5, animation, sess); >=20 >=20 > I do the SDL_Init before this in an init function. >=20 > Do you see something wrong in this code ? >=20 > Thanks a lot for help >=20 > Raph > _________________________________________________________ > Le journal des abonn=E9s Caramail - http://www.carazine.com >=20 >=20 From jurkech@shadow.sk Fri Jun 22 16:26:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from main.alternet.sk (gts-gw.alternet.sk [62.168.107.43]) by mail.gnome.org (Postfix) with ESMTP id 77A622CA07 for ; Fri, 22 Jun 2001 16:26:05 -0400 (EDT) Received: from shadow.sk (roman@jurkech.alternet.sk [194.145.136.133]) by main.alternet.sk (8.9.3/8.9.3) with ESMTP id WAA03658 for ; Fri, 22 Jun 2001 22:26:02 +0200 Message-ID: <3B33A9F6.998293EC@shadow.sk> Date: Fri, 22 Jun 2001 22:26:30 +0200 From: jurkech@shadow.sk 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: Custom font when locale is not iso-8859-1 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i found a strange behavior of gtk when using locale settings for a non iso-8859-1 language. In my case I specify LC_CTYPE=sk_SK so I'm able to use Slovak keyboard. But when I do this, gtk will read /etc/gtk/gtkrc.sk which is linked to /etc/gtk/gtkrc.iso-8859-2. This contains specifications for fonts to use. But whatever font is set in $HOME/.gtkrc it will not be used at all. I'm not sure if this is meant to be this way but I hope not. I think the system should be working like this: First of all gtk should be concerned with LC_MESSAGES only! Any other LC_XXX settings are not important because they have no connection with fonts that gtk uses. In my case I have only LC_CTYPE secified cuz I just need to use Slovak keyboard but everything else I expect in English. Still, gtk will go for /etc/gtkrc.sk for no real reason. If LC_MESSAGES is set to a non iso-8859-1 setting then gtk will verify that custom font specified by user is of the same charset. If it's not then gtk would try to get the same font with the required charset. And only if this fails it would use the font specified in /etc/gtkrc.xy Roman From skip@beluga.mojam.com Fri Jun 22 16:43:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 35FEC2BDF1 for ; Fri, 22 Jun 2001 16:43:52 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MKh5721603; Fri, 22 Jun 2001 15:43:06 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.44504.705944.498691@beluga.mojam.com> Date: Fri, 22 Jun 2001 15:43:04 -0500 To: gtk-list@gnome.org Subject: autogen.sh not expanding some variables X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After running autogen.sh on the gtk+ cvs source, I am left with a top-level Makefile containing the following unexpanded variables: host_alias = @host_alias@ AS = @AS@ DLLTOOL = @DLLTOOL@ GENCAT = @GENCAT@ GT_NO = @GT_NO@ GT_YES = @GT_YES@ INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@ OBJDUMP = @OBJDUMP@ l = @l@ When I try to make, I get an error message about not being able to find @AS@. I zapped all my files and updated from CVS again, but encounter the same problem. Autogen.sh's output is not perfectly clean, but I have no clue what the problem might be. Its output is: I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. autoheader: error: shell error while sourcing /tmp/ahR6lLVI/traces.sh configure.in: 89: required file `./config.h.in' not found demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_BEGIN@' demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_END@' tests/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/faq/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/tutorial/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gdk-pixbuf/Makefile.am:94: libpixbufloader_xbm_la_LDFLAGS multiply defined in condition TRUE libpixbufloader_xbm_la_LDFLAGS (User, where = 94) = { TRUE => -version-info 1:0:0 -module } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_FALSE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { TRUE => $(builtin_objs) } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_TRUE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { BUILD_DYNAMIC_MODULES_FALSE TRUE => pixops/libpixops.la TRUE => $(builtin_objs) } automake: gdk-pixbuf/pixops/Makefile.am: Assembler source seen but `ASFLAGS' not defined in `configure.in' gdk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gdk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gtk/Makefile.am: CLEANFILES must be set with `=' before using `+=' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/stock-icons/Makefile.am: CLEANFILES must be set with `=' before using `+=' configure.in:25: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:97: warning: AC_CANONICAL_HOST invoked multiple times configure.in:101: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:158: warning: AC_COMPILE_IFELSE was called before AC_ISC_POSIX ... bunch of configure messages elided ... configure: creating ./config.status ... bunch of config.status messages elided ... config.status: error: cannot find input file: config.h.in Now type 'make' to compile Gtk+. I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. Any ideas what my problem is? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From celston@corky.sapien.net Fri Jun 22 16:59:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from corky.sapien.net (corky.sapien.net [208.224.15.95]) by mail.gnome.org (Postfix) with ESMTP id 8A7662BCB2 for ; Fri, 22 Jun 2001 16:59:02 -0400 (EDT) Received: from localhost (celston@localhost) by corky.sapien.net (8.11.2/8.11.2) with ESMTP id f5MKx1W32666 for ; Fri, 22 Jun 2001 16:59:01 -0400 Date: Fri, 22 Jun 2001 16:59:01 -0400 (EDT) From: Chris Elston To: Subject: First post with a Question... 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, my name is Chris. This is my first post to this list so be gentle. :) I'm working with Gtk-Perl but I'm pretty sure this idea applies to all versions of Gtk. I'm trying to design a GTree stucture so that if I right click a tree item, a menu comes up. I'm able to get the menu to come up easy, but the problem is that Gtk (at least in perl) has mapped the middle mouse button to expanding subtrees and the right to collapsing them. I want to be able to turn off this added "feature" so that when a subtree is right clicked, only my menu comes up. Any suggestions? -- Chris Elston celston@corky.sapien.net --------------------------------- Nucleus Communications Web Script Programmer From hp@redhat.com Fri Jun 22 17:31:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1FA5E2BB2D for ; Fri, 22 Jun 2001 17:31:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MLV7N14107; Fri, 22 Jun 2001 17:31:07 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables References: <15155.44504.705944.498691@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 17:31:07 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 15:43:04 -0500" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > After running autogen.sh on the gtk+ cvs source, I am left with a top-level > Makefile containing the following unexpanded variables: > Are you using some weird CVS automake/autoconf? Havoc From skip@beluga.mojam.com Fri Jun 22 17:56:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id D238B2BB2D for ; Fri, 22 Jun 2001 17:56:11 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MLtr822007; Fri, 22 Jun 2001 16:55:53 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.48873.299898.869595@beluga.mojam.com> Date: Fri, 22 Jun 2001 16:55:53 -0500 To: Havoc Pennington Cc: skip@pobox.com (Skip Montanaro), gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables In-Reply-To: References: <15155.44504.705944.498691@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> After running autogen.sh on the gtk+ cvs source, I am left with a >> top-level Makefile containing the following unexpanded variables: Havoc> Are you using some weird CVS automake/autoconf? Not that I'm aware of. As I mentioned: I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. Looking at the names in "cvs log README" for automake, I don't see anything "Release-1-4g", however, so maybe I am. I'll try using "Release-1-4-p1", which I've seen mentioned places. *sigh* Skip From hp@redhat.com Fri Jun 22 18:06:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 476DF2DB54 for ; Fri, 22 Jun 2001 18:06:36 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MM6c714122; Fri, 22 Jun 2001 18:06:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables References: <15155.44504.705944.498691@beluga.mojam.com> <15155.48873.299898.869595@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 18:06:37 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 16:55:53 -0500" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > >> After running autogen.sh on the gtk+ cvs source, I am left with a > >> top-level Makefile containing the following unexpanded variables: > > Havoc> Are you using some weird CVS automake/autoconf? > > Not that I'm aware of. As I mentioned: > > I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. > > Looking at the names in "cvs log README" for automake, I don't see anything > "Release-1-4g", however, so maybe I am. I'll try using "Release-1-4-p1", > which I've seen mentioned places. > Yep, you're using weird CVS stuff. Not expected to work. ;-) Havoc From skip@beluga.mojam.com Fri Jun 22 18:20:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 9D3F82DB8B for ; Fri, 22 Jun 2001 18:20:53 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MMKYG03936; Fri, 22 Jun 2001 17:20:34 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.50350.415823.279988@beluga.mojam.com> Date: Fri, 22 Jun 2001 17:20:30 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables In-Reply-To: References: <15155.44504.705944.498691@beluga.mojam.com> <15155.48873.299898.869595@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc> Yep, you're using weird CVS stuff. Not expected to work. ;-) I have the damndest time trying to keep all these build tools straight. Would someone please send me (off-list) the version numbers of automake, autoconf and libtool they are using to build the current CVS gtk/glib stuff? Thx, Skip From netlu@visto.com Fri Jun 22 22:30:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from qmail1.visto.com (unknown [209.185.20.131]) by mail.gnome.org (Postfix) with SMTP id 834892BBC0 for ; Fri, 22 Jun 2001 22:30:57 -0400 (EDT) Received: (qmail 4340 invoked by alias); Received: from unknown (HELO mps3) (206.79.140.175) by 0 with SMTP; 22 Jun 2001 19:30:44 -0700 Reply-To: netlu@visto.com From: "Louis Lu" Subject: font size change on buttons Date: Fri, 22 Jun 2001 19:27:42 -0700 X-Mailer: Visto To: gtk-list@gnome.org MIME-Version: 1.0 X-Mailer: Visto Server Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <20010623023057.834892BBC0@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi: I created a dialog box with 4 push buttons on it and I would like the label (on the button)to have a bigger font=20 size. Could any one tell me how to do this in my program? Thanks for your help and time. Louis _________________________________________________________________________= __ Visit http://www.visto.com/info, your free web-based communications cente= r. Visto.com. Life on the Dot. From reinhard.mueller@bytewise.at Thu Jun 21 18:37:30 2001 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 DC0C02E213 for ; Thu, 21 Jun 2001 18:37:29 -0400 (EDT) Received: (qmail 12570 invoked from network); 21 Jun 2001 22:37:28 -0000 Received: from n802p023.adsl.highway.telekom.at (HELO bytewise.at) ([62.47.44.55]) (envelope-sender ) by qmail2.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 21 Jun 2001 22:37:28 -0000 Message-ID: <3B32797C.4080207@bytewise.at> Date: Fri, 22 Jun 2001 00:47:24 +0200 From: Reinhard Mueller Organization: GNU Enterprise User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: de, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Logging functions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, is there a reason why there are the functions g_error g_critical g_warning g_message but not g_info g_debug ? Something like #define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) #ifdef G_DEBUG #define g_debug(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) #else #define g_debug(...) #endif could be helpful. Just an idea. :) -- Reinhard Mueller GNU Enterprise project http://www.gnue.org From S.Geerken@ping.de Sat Jun 23 10:38:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lilly.ping.de (lilly.ping.de [62.72.90.2]) by mail.gnome.org (Postfix) with SMTP id 635BA2D00B for ; Sat, 23 Jun 2001 10:38:56 -0400 (EDT) Received: (qmail 30863 invoked from network); 23 Jun 2001 14:38:53 -0000 Received: (ofmipd 62.72.92.20); 23 Jun 2001 14:38:31 -0000 Received: by sg.local via sendmail from stdin id (Debian Smail3.2.0.102) for gtk-list@gnome.org; Sat, 23 Jun 2001 16:43:38 +0200 (CEST) Date: 23 Jun 2001 16:43:38 +0200 Message-ID: <20010623164338.A2551@sg.local> From: "Sebastian Geerken" Mail-Followup-To: "Sebastian Geerken" , gtk-list@gnome.org To: gtk-list@gnome.org Subject: long menus 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, are there plans, or already implementations (I haven't looked yet at 1.3) on how to let the user control large menus which don't fit on the screen, e.g. by scrolling? Or does this depend on themes? I'm currently using a workaround, connecting the "select" signal of all menu items to this (unfinished) function: void justify_menu_item (GtkWidget *widget) { int y, h, mx, my, sh; y = widget->allocation.y; h = widget->allocation.height; gdk_window_get_geometry (widget->parent->parent->window, &mx, &my, NULL, NULL, NULL); sh = gdk_screen_height (); if (y + my < 0) gdk_window_move (widget->parent->parent->window, mx, - y + 1); else if (y + my > sh - h) gdk_window_move (widget->parent->parent->window, mx, sh - h - y - 1); } It works for me, but is really a bit hackish. Are there pitfalls why it may not work under certain circumstances? Sebastian From otaylor@redhat.com Sat Jun 23 10:59:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 3796D2BB3D for ; Sat, 23 Jun 2001 10:59:30 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 61F54242319; Sat, 23 Jun 2001 10:59:26 -0400 (EDT) To: "Sebastian Geerken" Cc: gtk-list@gnome.org Subject: Re: long menus References: <20010623164338.A2551@sg.local> From: Owen Taylor Date: 23 Jun 2001 10:59:26 -0400 In-Reply-To: "Sebastian Geerken"'s message of "23 Jun 2001 16:43:38 +0200" Message-ID: Lines: 40 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Sebastian Geerken" writes: > Hi, > > are there plans, or already implementations (I haven't looked yet at > 1.3) on how to let the user control large menus which don't fit on the > screen, e.g. by scrolling? Yes, scrolling menus hav been added in GTK+-1.3 Or does this depend on themes? I'm > currently using a workaround, connecting the "select" signal of all > menu items to this (unfinished) function: > > void justify_menu_item (GtkWidget *widget) > { > int y, h, mx, my, sh; > > y = widget->allocation.y; > h = widget->allocation.height; > gdk_window_get_geometry (widget->parent->parent->window, > &mx, &my, NULL, NULL, NULL); > sh = gdk_screen_height (); > > if (y + my < 0) > gdk_window_move (widget->parent->parent->window, mx, - y + 1); > else if (y + my > sh - h) > gdk_window_move (widget->parent->parent->window, mx, sh - h - y - 1); > } > > It works for me, but is really a bit hackish. Are there pitfalls why > it may not work under certain circumstances? You can find a workaround hack in the GNOME panel - I don't know how general it is. Other people have used netscape-bookmarks style continuation submenus. Regards, Owen From daniel.elstner@gmx.net Sat Jun 23 13:14:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by mail.gnome.org (Postfix) with SMTP id 0B62E2BA98 for ; Sat, 23 Jun 2001 13:14:45 -0400 (EDT) Received: (qmail 14006 invoked by uid 0); 23 Jun 2001 17:14:39 -0000 Received: from 217-9-43-124.lsd.berlikomm.net (HELO server.daniel.homenet) (217.9.43.124) by mail.gmx.net (mail06) with SMTP; 23 Jun 2001 17:14:39 -0000 Received: from master.daniel.homenet (master.daniel.homenet [192.168.1.1]) by server.daniel.homenet (8.9.3/8.9.3) with ESMTP id TAA13619 for ; Sat, 23 Jun 2001 19:11:17 +0200 Received: from master (localhost [127.0.0.1]) by master.daniel.homenet (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with SMTP id f5NHFo029704 for ; Sat, 23 Jun 2001 19:15:51 +0200 X-Authentication-Warning: master.daniel.homenet: Host localhost [127.0.0.1] claimed to be master Date: Sat, 23 Jun 2001 19:15:50 +0200 From: Daniel Elstner To: gtk-list@gnome.org Subject: [PATCH] glib.h + gcc-3.0 + -pedantic Message-Id: <20010623191550.67f9183e.daniel@master.daniel.homenet> X-Mailer: Sylpheed version 0.5.0pre1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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. --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, gcc 3.0 gives me a bunch of annoying warnings when compiling with the -pedantic option, because there are several macros (e.g. g_error) which are either too new (c99) or GNU extensions. I cannot compile with -std=c99 since that doesn't work with C++. With the attached patch (for glib-1.2.10) things are fine (at least for me). The changes are a check for __STRICT_ANSI__ triggering fallback to the function implementations, and an extra check for __GNUC__ detecting wether inlining va_arg functions is possible. It compiles fine with `g++ -ansi -pedantic -O2 -W -Wall -Winline'. Is the patch ok for you to apply? Regards, --Daniel --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88 Content-Type: application/octet-stream; name="glib.h.patch" Content-Disposition: attachment; filename="glib.h.patch" Content-Transfer-Encoding: base64 LS0tIGdsaWIuaC5vcmlnCVN1biBKdW4gMTcgMTg6Mzg6MjAgMjAwMQorKysgZ2xpYi5oCVNhdCBK dW4gMjMgMTg6MDU6MjMgMjAwMQpAQCAtMTMwNCw3ICsxMzA0LDcgQEAKICNkZWZpbmUJZ193YXJu aW5nKC4uLikJZ19sb2cgKEdfTE9HX0RPTUFJTiwgICAgICAgICBcCiAJCQkgICAgICAgR19MT0df TEVWRUxfV0FSTklORywgIFwKIAkJCSAgICAgICBfX1ZBX0FSR1NfXykKLSNlbGlmIGRlZmluZWQg KF9fR05VQ19fKQorI2VsaWYgZGVmaW5lZCAoX19HTlVDX18pICYmICFkZWZpbmVkIChfX1NUUklD VF9BTlNJX18pCiAjZGVmaW5lCWdfZXJyb3IoZm9ybWF0Li4uKQlnX2xvZyAoR19MT0dfRE9NQUlO LCAgICAgICAgIFwKIAkJCQkgICAgICAgR19MT0dfTEVWRUxfRVJST1IsICAgIFwKIAkJCQkgICAg ICAgZm9ybWF0KQpAQCAtMTMxNyw4ICsxMzE3LDEzIEBACiAjZGVmaW5lCWdfd2FybmluZyhmb3Jt YXQuLi4pCWdfbG9nIChHX0xPR19ET01BSU4sICAgICAgICAgXAogCQkJCSAgICAgICBHX0xPR19M RVZFTF9XQVJOSU5HLCAgXAogCQkJCSAgICAgICBmb3JtYXQpCi0jZWxzZQkvKiAhX19HTlVDX18g Ki8KLXN0YXRpYyB2b2lkCisjZWxzZQkvKiAhX19HTlVDX18gfHwgX19TVFJJQ1RfQU5TSV9fICov CisjICBpZiAoX19HTlVDX18pCisjICAgIGRlZmluZSBHX1ZBX0lOTElORSBpbmxpbmUKKyMgIGVs c2UKKyMgICAgZGVmaW5lIEdfVkFfSU5MSU5FCisjICBlbmRpZgorc3RhdGljIEdfVkFfSU5MSU5F IHZvaWQKIGdfZXJyb3IgKGNvbnN0IGdjaGFyICpmb3JtYXQsCiAJIC4uLikKIHsKQEAgLTEzMjcs NyArMTMzMiw3IEBACiAgIGdfbG9ndiAoR19MT0dfRE9NQUlOLCBHX0xPR19MRVZFTF9FUlJPUiwg Zm9ybWF0LCBhcmdzKTsKICAgdmFfZW5kIChhcmdzKTsKIH0KLXN0YXRpYyB2b2lkCitzdGF0aWMg R19WQV9JTkxJTkUgdm9pZAogZ19tZXNzYWdlIChjb25zdCBnY2hhciAqZm9ybWF0LAogCSAgIC4u LikKIHsKQEAgLTEzMzYsNyArMTM0MSw3IEBACiAgIGdfbG9ndiAoR19MT0dfRE9NQUlOLCBHX0xP R19MRVZFTF9NRVNTQUdFLCBmb3JtYXQsIGFyZ3MpOwogICB2YV9lbmQgKGFyZ3MpOwogfQotc3Rh dGljIHZvaWQKK3N0YXRpYyBHX1ZBX0lOTElORSB2b2lkCiBnX3dhcm5pbmcgKGNvbnN0IGdjaGFy ICpmb3JtYXQsCiAJICAgLi4uKQogewo= --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88-- From otaylor@redhat.com Sat Jun 23 13:47:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EC03C2BF9C for ; Sat, 23 Jun 2001 13:47:25 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 982B0242319; Sat, 23 Jun 2001 13:47:25 -0400 (EDT) To: Daniel Elstner Cc: gtk-list@gnome.org, gtk-devel-list@gtk.org Subject: Re: [PATCH] glib.h + gcc-3.0 + -pedantic References: <20010623191550.67f9183e.daniel@master.daniel.homenet> From: Owen Taylor Date: 23 Jun 2001 13:47:25 -0400 In-Reply-To: Daniel Elstner's message of "Sat, 23 Jun 2001 19:15:50 +0200" Message-ID: Lines: 43 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Daniel Elstner writes: > Hi, > > gcc 3.0 gives me a bunch of annoying warnings when compiling > with the -pedantic option, because there are several macros > (e.g. g_error) which are either too new (c99) or GNU extensions. > > I cannot compile with -std=c99 since that doesn't work with C++. > With the attached patch (for glib-1.2.10) things are fine (at > least for me). > > The changes are a check for __STRICT_ANSI__ triggering fallback > to the function implementations, and an extra check for __GNUC__ > detecting wether inlining va_arg functions is possible. It > compiles fine with `g++ -ansi -pedantic -O2 -W -Wall -Winline'. > > Is the patch ok for you to apply? [ see the README in GTK+ for information about submitting patches, in general patches should go to bugzilla.gnome.org, and/or gtk-devel-list ] Considering that the function implementations are much inferior to the macro implementations, I don't consider this patch appropriate. A possibly better way of going about this that was suggested is to use: #pragma GCC system_header For the glib header files - this turns off a lot of warnings. After all, GLib _does_ turn off the GCC extensions when compiling on something other than GCC, so there's no point in being told about them when compiling some project that uses GLib. You might want to experiment with this. Regards, Owen From daniel.elstner@gmx.net Sat Jun 23 15:22:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by mail.gnome.org (Postfix) with SMTP id 536C72C865 for ; Sat, 23 Jun 2001 15:22:38 -0400 (EDT) Received: (qmail 19763 invoked by uid 0); 23 Jun 2001 19:22:36 -0000 Received: from 217-9-43-124.lsd.berlikomm.net (HELO server.daniel.homenet) (217.9.43.124) by mail.gmx.net (mp005-rz3) with SMTP; 23 Jun 2001 19:22:36 -0000 Received: from master.daniel.homenet (master.daniel.homenet [192.168.1.1]) by server.daniel.homenet (8.9.3/8.9.3) with ESMTP id VAA14001; Sat, 23 Jun 2001 21:18:47 +0200 Received: from master (localhost [127.0.0.1]) by master.daniel.homenet (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with SMTP id f5NJNu018040; Sat, 23 Jun 2001 21:23:56 +0200 X-Authentication-Warning: master.daniel.homenet: Host localhost [127.0.0.1] claimed to be master Date: Sat, 23 Jun 2001 21:23:55 +0200 From: Daniel Elstner To: Owen Taylor Cc: gtk-list@gnome.org, gtk-devel-list@gtk.org Subject: Re: [PATCH] glib.h + gcc-3.0 + -pedantic Message-Id: <20010623212355.0a90bb46.daniel@master.daniel.homenet> In-Reply-To: References: <20010623191550.67f9183e.daniel@master.daniel.homenet> X-Mailer: Sylpheed version 0.5.0pre1 (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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 23 Jun 2001 13:47:25 -0400 Owen Taylor wrote: > A possibly better way of going about this that was suggested > is to use: > > #pragma GCC system_header > > For the glib header files - this turns off a lot of warnings. > After all, GLib _does_ turn off the GCC extensions when > compiling on something other than GCC, so there's no > point in being told about them when compiling some project > that uses GLib. > > You might want to experiment with this. That was also suggested by a gcc team member. I just thought you wouldn't like entirely disabling any warnings. But you're right - glib is mature enough to use this approach. Regards, --Daniel From popeofpop@softhome.net Sun Jun 24 09:30:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by mail.gnome.org (Postfix) with SMTP id B2C762CF0B for ; Sun, 24 Jun 2001 09:30:34 -0400 (EDT) Received: (qmail 27751 invoked by uid 417); 24 Jun 2001 13:33:51 -0000 Received: from port101.ds1-vbr.adsl.cybercity.dk (HELO livingroom) (212.242.58.40) by i-softhome-tango with SMTP; 24 Jun 2001 13:33:51 -0000 From: "Chris Hansen" To: Subject: Icons Date: Sun, 24 Jun 2001 15:31:18 +0200 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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to put an icon in the titlebar of the window with GTk? I'm working on a Windows machine and I know there aren't icons in some window managers on XFree, but Windows uses icons so I thought it could be done with GTk rather than Windows API. Best regards Chris Hansen From george@clipper.ens.fr Sun Jun 24 14:57:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id D9EBF2BEB8 for ; Sun, 24 Jun 2001 14:57:19 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id OAA12330 for ; Sun, 24 Jun 2001 14:57:19 -0400 Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5OIuCb08259 for ; Sun, 24 Jun 2001 14:56:12 -0400 Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f5OIvHp53635 for ; Sun, 24 Jun 2001 20:57:17 +0200 (CEST) Received: from (george@localhost) by clipper.ens.fr (8.9.2/jb-1.1) Date: Sun, 24 Jun 2001 20:57:17 +0200 From: Nicolas George To: gtk-list@redhat.com Subject: gdk-pixbuf: partial image loading Message-ID: <20010624205717.A9739@clipper.ens.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible, with gdk pixbuf, tu partially load an image? By that, I mean to get a pixbuf with only a sub-image or a shrinked image, without loading all in memory. This would be really useful in order to load parts of huges high resolution images, or scaled to fit on the screen, without filling the memory. From rbultje@ronald.bitfreak.net Sun Jun 24 16:19:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id E3EC62E07C for ; Sun, 24 Jun 2001 16:14:43 -0400 (EDT) Received: from [192.168.0.126] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5OKuuF05538 for ; Sun, 24 Jun 2001 22:56:56 +0200 (CEST) Subject: render texts to a buffer/drawable From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 24 Jun 2001 22:14:32 +0200 Message-Id: <993413682.26475.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi people, does Gtk or any other lib offer the option to render texts to a drawable or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it would work something like some_function(char *font, char *text) (font being the font as provided by the gtk-font-selection-dialog (-courier-new-bla--bla-*-*-*-*-) and text being the string to be rendered) and render the text to a gdk-pixbuf :-) I tried gimp until now but I didn't get any further than #include and add `gimp-config --cflags` to my LDFLAGS, after which the application complained about a missing reference to PLUG_IN_INFO (although I did have a GimpPlugInInfo PLUG_IN_INFO = { NULL, NULL, NULL, NULL}; in my application) so I'm probably doing something wrong there... Anyway, any help on going from GtkFontSelectionDialog to a text rendered in a GdkPixbuf would be appreciated. Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From dermot@glade.perl.connectfree.co.uk Sat Jun 23 11:52:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 5DD862BAB6; Sat, 23 Jun 2001 11:52:18 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA06514; Sat, 23 Jun 2001 11:52:18 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5NFp9b02505; Sat, 23 Jun 2001 11:51:09 -0400 Received: from higrade.botwrights.farm (ppp-1-157.cvx1.telinco.net [212.1.136.157]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id RAA04102; Sat, 23 Jun 2001 17:25:31 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id QAA01200; Sat, 23 Jun 2001 16:51:58 +0100 Message-ID: <3B34B95E.9FDB558B@glade.perl.connectfree.co.uk> Date: Sat, 23 Jun 2001 16:44:30 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: ANNOUNCE: Glade-Perl 0.59 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, This is especially for all perl 5.6 users - I am sorry if you had problems with a missing DESTROY() sub. I have just uploaded perl module Glade-Perl-0.59.tar.gz to CPAN ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but please your local mirror (see ftp://ftp.cpan.org/pub/perl/CPAN/MIRRORED.BY) Until it is mirrored around the world it is available on my website. http://www.glade.perl.connectfree.co.uk/index.html Glade-Perl generates perl source code from a Glade file - Glade is Damon Chaplin's beautiful Gtk+/Gnome UI builder. Glade-Perl can display the UI as it is built and/or generate source code and it can be called directly from Glade's 'Build' button. It can also generate code to use libglade if you prefer. Regards, Dermot snipped from the Changelog: ------------------------------------------------------------ Wed Jun 20 14:48:25 BST 2001 Dermot Musgrove - Version 0.59 - All modules now have empty DESTROY() sub as perl 5.6 demands. PerlRun->AUTOLOAD() also caters for (ignores) AUTOLOADED DESTROY() call. PerlRun perldoc corrected to lose warnings in pod2man. Thanks to Jim Edwards for the super-fast reports and patches. - PerlRun->lookup_widget() is a new method that accesses a window or a form's widget by name. It prints an error if the widget does not exist. e.g. my $widget = $window->lookup_widget('clist1'); OR my $form = $window->FORM; # or use $form in signal handlers my $widget = $form->lookup_widget('clist1'); - Glade-Perl will now create skeleton documentation files if they do not already exist. These default to directory 'Documentation' files called COPYING, Changelog, FAQ, INSTALL, NEWS, README, ROADMAP and TODO If you don't want to generate the doc files add a line to site or project options file: 0 - Glade-Perl will now create skeleton distribution files if they do not already exist. These default to - Makefile.PL, MANIFEST.SKIP, Project.spec and test.pl - so you should be able to call: 'perl Makefile.PL; make manifest; make dist;' and then either 'rpm -ta Project-0.01.tar.gz' to build a RPM or the normal perl methods of 'make test' and 'make install'. This is all at a very early stage and will probably fail in many cases but you should, at least, have some files to edit :) If you don't want to generate the dist files add a line to site or project options file: 0 ------------------------------------------------------------ From uckelman@scylla.ellipsis.cx Mon Jun 25 01:15:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from scylla.ellipsis.cx (unknown [64.109.29.58]) by mail.gnome.org (Postfix) with SMTP id A95D92BB38 for ; Mon, 25 Jun 2001 01:15:51 -0400 (EDT) Received: (qmail 13911 invoked by uid 500); 25 Jun 2001 05:15:51 -0000 Message-ID: <20010625051551.13909.qmail@scylla.ellipsis.cx> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: copying pixmaps From: Joel Uckelman Reply-To: uckelman@nomic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 25 Jun 2001 00:15:51 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I writing something for which I need two separate copies of the same GdkPixmap--one of which will be drawn to, while the other is used to restore areas of the first to their initial state. Since the XPMs I'm loading to make GdkPixmaps have the potential to be rather large, it would be nice if I could load them once and then make copies in memory instead of calling gdk_pixmap_create_from_xpm twice. I presume there is some simple way to do this, but I don't see any copy functions. Is there a way to get the dimensions of a GdkPixmap after creating it from an arbitrarily-sized XPM? If I could do that my problem would be solved, since I could create a blank GdkPixmap of the appropriate size and use gdk_draw_pixmap to copy from one to the other. Any help would be greatly appreciated. -- J. From backes@hlrwm.rhrk.uni-kl.de Mon Jun 25 01:53:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 766CA2BE1F; Mon, 25 Jun 2001 01:53:33 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id BAA17503; Mon, 25 Jun 2001 01:53:32 -0400 Received: from mail.uni-kl.de (mail.uni-kl.de [131.246.137.52]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5P5qQb10515; Mon, 25 Jun 2001 01:52:27 -0400 Received: from hlrwm.rhrk.uni-kl.de (IDENT:root@hlrwm.rhrk.uni-kl.de [131.246.91.18]) by mail.uni-kl.de (8.11.0/8.11.0) with ESMTP id f5P5rJC28224; Mon, 25 Jun 2001 07:53:19 +0200 (MET DST) Received: (from backes@localhost) by hlrwm.rhrk.uni-kl.de (8.11.0/8.11.0) id f5P5rJO21223; Mon, 25 Jun 2001 07:53:19 +0200 Message-ID: X-Mailer: XFMail 1.5.0 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3B34B95E.9FDB558B@glade.perl.connectfree.co.uk> Date: Mon, 25 Jun 2001 07:53:19 +0200 (CEST) X-Face: B^`ajbarE`qo`-u#R^.)e]6sO?X)FpoEm\>*T:H~b&S;U/h$2>my}Otw5$+BDxh}t0TGU?> O8Bg0/jQW@P"eyp}2UMkA!lMX2QmrZYW\F,OpP{/s{lA5aG'0LRc*>n"HM@#M~r8Ub9yV"0$^i~hKq P-d7Vz;y7FPh{XfvuQA]k&X+CDlg"*Y~{x`}U7Q:;l?U8C,K\-GR~>||pI/R+HBWyaCz1Tx]5 Reply-To: Joachim Backes Organization: University of Kaiserslautern, Computer Center [Supercomputing division] From: Joachim Backes To: Dermot Musgrove Subject: RE: ANNOUNCE: Glade-Perl 0.59 Cc: glade-devel , "gtk-perl-list@redhat.com" , "gtk-list@redhat.com" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 23-Jun-2001 Dermot Musgrove wrote: > Hi all, > > This is especially for all perl 5.6 users - I am sorry if you had > problems with a missing DESTROY() sub. > > I have just uploaded perl module Glade-Perl-0.59.tar.gz to CPAN > ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but please Hi, Dermot, address seems to be : ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Glade/ ^^^ ftp> cd /CPAN/modules/by-module/Glade/ 550 CPAN/modules/by-module/Glade/: No such file or directory ftp> cd /pub/CPAN/modules/by-module/Glade/ 250 CWD command successful. Regards Joachim Backes -- Joachim Backes | Univ. of Kaiserslautern Computer Center, High Performance Computing | Phone: +49-631-205-2438 D-67653 Kaiserslautern, PO Box 3049, Germany | Fax: +49-631-205-3056 ---------------------------------------------+------------------------ WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html From hoshem@mel.comcen.com.au Mon Jun 25 06:25:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id A9FE82CF34 for ; Mon, 25 Jun 2001 06:25:56 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id GAA18548 for ; Mon, 25 Jun 2001 06:25:56 -0400 Received: from BuffyRox.localdomain (modem031.mnementh.comcen.com.au [203.23.238.90]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5PAOlb24792 for ; Mon, 25 Jun 2001 06:24:48 -0400 Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5PAg8N02457; Mon, 25 Jun 2001 20:42:08 +1000 Date: Mon, 25 Jun 2001 20:42:07 +1000 From: Helmethead To: Nicolas George Cc: gtk-list@redhat.com Subject: Re: gdk-pixbuf: partial image loading Message-ID: <20010625204207.A2445@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Nicolas George , gtk-list@redhat.com References: <20010624205717.A9739@clipper.ens.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010624205717.A9739@clipper.ens.fr>; from nicolas.george@ens.fr on Sun, Jun 24, 2001 at 08:57:17PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sun, Jun 24, 2001 at 08:57:17PM +0200, Nicolas George wrote: > Is it possible, with gdk pixbuf, tu partially load an image? By that, I > mean to get a pixbuf with only a sub-image or a shrinked image, without > loading all in memory. This would be really useful in order to load parts > of huges high resolution images, or scaled to fit on the screen, without > filling the memory. You would have to load the whole image in memory, then scale or crop it as you like (gdk-pixbuf comes with functions for this). From hoshem@mel.comcen.com.au Mon Jun 25 06:48:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem031.mnementh.comcen.com.au [203.23.238.90]) by mail.gnome.org (Postfix) with ESMTP id F2F1E2BAB6 for ; Mon, 25 Jun 2001 06:48:15 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5PB4UF02544; Mon, 25 Jun 2001 21:04:30 +1000 Date: Mon, 25 Jun 2001 21:04:30 +1000 From: Helmethead To: Joel Uckelman Cc: gtk-list@gnome.org Subject: Re: copying pixmaps Message-ID: <20010625210430.A2463@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Joel Uckelman , gtk-list@gnome.org References: <20010625051551.13909.qmail@scylla.ellipsis.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010625051551.13909.qmail@scylla.ellipsis.cx>; from uckelman@nomic.net on Mon, Jun 25, 2001 at 12:15:51AM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 25, 2001 at 12:15:51AM -0500, Joel Uckelman wrote: > Hi, > > I writing something for which I need two separate copies of the same > GdkPixmap--one of which will be drawn to, while the other is used to > restore areas of the first to their initial state. Since the XPMs I'm > loading to make GdkPixmaps have the potential to be rather large, it would > be nice if I could load them once and then make copies in memory instead of > calling gdk_pixmap_create_from_xpm twice. I presume there is some simple > way to do this, but I don't see any copy functions. > > Is there a way to get the dimensions of a GdkPixmap after creating it from > an arbitrarily-sized XPM? If I could do that my problem would be solved, > since I could create a blank GdkPixmap of the appropriate size and use > gdk_draw_pixmap to copy from one to the other. > > Any help would be greatly appreciated. You can pass -1 to the width and height arguments of gdk_draw_pixmap, and the entire pixmap will be copied From craig.emery@3glab.com Mon Jun 25 06:50:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 8E6602DEEF for ; Mon, 25 Jun 2001 06:50:16 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15ETwb-0002Oe-00 for gtk-list@gnome.org; Mon, 25 Jun 2001 11:50:13 +0100 Message-ID: <3B371746.4050506@3glab.com> Date: Mon, 25 Jun 2001 11:49:42 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010624 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: A Modal Window References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15ETwb-0002Oe-00*OV0fWc8N5go* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Esteban Quijano Vincenzi wrote: > Hi, there are two ways for doing this: > 1) Call gtk_main() again so you enter in a second event loop. When you > press an "ok" or "cancel" button just call gtk_main_quit(). You will > return to the main event loop. > > 2) Do something like this: > > while (exit_modal != TRUE) gtk_main_iteration(); > > and in your callback function do exit_modal = TRUE somewhere > > Esteban Quijano Vincenzi. > This is good enough but not great. I understand that other windows in your application can still be raised on top of your modal window. I asked about this (kinda) recently and Havoc pointed me at gtk_grab_add () / gtk_grab_remove ()which you should call AS WELL as gtk_main (). See the FAQ at http://www.gtk.org/faq/#AEN556 for more info. Craig. From john.cupitt@ng-london.org.uk Mon Jun 25 07:14:21 2001 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 1AA0F2DBEE for ; Mon, 25 Jun 2001 07:14:21 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN9JQ; Mon, 25 Jun 2001 12:14:18 +0100 Message-ID: <3B371BB8.5453B91A@ng-london.org.uk> Date: Mon, 25 Jun 2001 12:08:40 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ronald Bultje Cc: GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje wrote: > does Gtk or any other lib offer the option to render texts to a drawable > or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it > would work something like some_function(char *font, char *text) (font > being the font as provided by the gtk-font-selection-dialog > (-courier-new-bla--bla-*-*-*-*-) and text being the string to be > rendered) and render the text to a gdk-pixbuf :-) Hi Ronald, you can do this with a bunch of gdk: - gdk_font_load() the font you want - gdk_text_extents() to work out how big your string will be (in pixels) - gdk_pixmap_new() to make a pixmap large enough to hold rendered text - make a black/white GC to render with - clear the pixmap to the background colour - gdk_draw_string() to draw the text into the pixmap - gdk_image_get() to read the image from the server as a GdkImage* - malloc yor RGB buffer, and unpack the GdkImage into that About 4 pages of code :-( I believe this is what gimp does (or it did last time I looked). I'm sure you can link against freetype or something and do the rendering on the client side, but I've not tried that. John From john.cupitt@ng-london.org.uk Mon Jun 25 07:29:24 2001 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 C51662DD79 for ; Mon, 25 Jun 2001 07:29:23 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN9LD; Mon, 25 Jun 2001 12:29:22 +0100 Message-ID: <3B371F40.FC078870@ng-london.org.uk> Date: Mon, 25 Jun 2001 12:23:44 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: Signal help needed (gtk_signal_new?) References: <3B3284A8.1133DCE3@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" wrote: > But even if I capture the relevant info for "changed" I can't use it to > create a new signal. The arguments for gtk_signal_new() are elusive to > me. I'd basically like to create something very similar to the > "value_changed" and "changed" signals, named "activate." It would be > the equivalent of a pulse that gets sent whenever the value changes from > 0-1 or 1-0. Hi David, take a look at the source for gtkadjustment, you can copy out the bits you need. You need to: - make a new class, inheriting from GtkData - have a member for your signal - haev a static array of signal ids in your implementation - build the signal in _class_init with gtk_signal_new() - attach the signal to your class with gtk_object_class_add_signals() - provide a function which emits your signal from an instance John From celston@corky.sapien.net Mon Jun 25 09:30:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from corky.sapien.net (corky.sapien.net [208.224.15.95]) by mail.gnome.org (Postfix) with ESMTP id CBAB72DC4E for ; Mon, 25 Jun 2001 09:30:54 -0400 (EDT) Received: from localhost (celston@localhost) by corky.sapien.net (8.11.2/8.11.2) with ESMTP id f5PDUrR08194 for ; Mon, 25 Jun 2001 09:30:53 -0400 Date: Mon, 25 Jun 2001 09:30:53 -0400 (EDT) From: Chris Elston To: Subject: Re: First post with a Question... In-Reply-To: <20010622141436.1a6c5e8c.golubenkoj@columbiafunds.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sorry, still very new at working with Gtk. What do you mean by bind? What I'm doing currently is using the "signal_connect" function to the "button_press_event". I was originally using the signal_connect to the "select" event. I have recently commented that out and am using the button_press_event. Still no progress. There isn't a way to just "turn it off"? Any more help? Chris On Fri, 22 Jun 2001, John Golubenko wrote: > Do you think you can bind this button to do whatever you want? This maybe a solution. > > On Fri, 22 Jun 2001 16:59:01 -0400 (EDT) > "Chris Elston" wrote: > > > Hey, my name is Chris. This is my first post to this list so be gentle. > > :) > > > > I'm working with Gtk-Perl but I'm pretty sure this idea applies to all > > versions of Gtk. I'm trying to design a GTree stucture so that if I right > > click a tree item, a menu comes up. I'm able to get the menu to come up > > easy, but the problem is that Gtk (at least in perl) has mapped the middle > > mouse button to expanding subtrees and the right to collapsing them. I > > want to be able to turn off this added "feature" so that when a subtree is > > right clicked, only my menu comes up. Any suggestions? > > > > -- > > > > Chris Elston > > celston@corky.sapien.net > > --------------------------------- > > Nucleus Communications > > Web Script Programmer > > > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. > > -- Chris Elston celston@corky.sapien.net --------------------------------- Nucleus Communications Web Script Programmer From otaylor@redhat.com Mon Jun 25 10:23:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 1108F2DDE3 for ; Mon, 25 Jun 2001 10:23:46 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id KAA32708 for ; Mon, 25 Jun 2001 10:23:45 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id ED5C624231B; Mon, 25 Jun 2001 10:23:44 -0400 (EDT) To: Nicolas George Cc: gtk-list@redhat.com Subject: Re: gdk-pixbuf: partial image loading References: <20010624205717.A9739@clipper.ens.fr> From: Owen Taylor Date: 25 Jun 2001 10:23:44 -0400 In-Reply-To: Nicolas George's message of "Sun, 24 Jun 2001 20:57:17 +0200" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Nicolas George writes: > Is it possible, with gdk pixbuf, tu partially load an image? By that, I > mean to get a pixbuf with only a sub-image or a shrinked image, without > loading all in memory. This would be really useful in order to load parts > of huges high resolution images, or scaled to fit on the screen, without > filling the memory. No, not possible currently. It's in bugzilla as a RFE: http://bugzilla.gnome.org/show_bug.cgi?id=53726 Whether this is useful or not depends a lot on the format - for a lot of formats, this doesn't buy you anything, but for, say, thumbnailing JPEGs, it can be a big win. Regards, Owen From hp@redhat.com Mon Jun 25 10:26:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id BCA112E42C for ; Mon, 25 Jun 2001 10:26:39 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5PEQWN21639; Mon, 25 Jun 2001 10:26:32 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: uckelman@nomic.net Cc: gtk-list@gnome.org Subject: Re: copying pixmaps References: <20010625051551.13909.qmail@scylla.ellipsis.cx> From: Havoc Pennington Date: 25 Jun 2001 10:26:32 -0400 In-Reply-To: Joel Uckelman's message of "Mon, 25 Jun 2001 00:15:51 -0500" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Joel Uckelman writes: > Is there a way to get the dimensions of a GdkPixmap after creating it from > an arbitrarily-sized XPM? If I could do that my problem would be solved, > since I could create a blank GdkPixmap of the appropriate size and use > gdk_draw_pixmap to copy from one to the other. gdk_drawable_get_size(). The way you copy a pixmap is to just draw it to another pixmap, as you say. Havoc From zb197@yahoo.com Mon Jun 25 13:20:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11605.mail.yahoo.com (web11605.mail.yahoo.com [216.136.172.57]) by mail.gnome.org (Postfix) with SMTP id 369412C90D for ; Mon, 25 Jun 2001 13:20:06 -0400 (EDT) Message-ID: <20010625172005.58660.qmail@web11605.mail.yahoo.com> Received: from [65.200.176.160] by web11605.mail.yahoo.com; Mon, 25 Jun 2001 10:20:05 PDT Date: Mon, 25 Jun 2001 10:20:05 -0700 (PDT) From: ZB Subject: writing to GUI from 2+ threads 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am trying to write to the GUI from more than one thread and it works with LINUX but not win32. I made a stub program by modifying the threaded hello world program (http://www.gtk.org/faq/#AEN462) from the gtk site. The program creates a window and then starts a thread and i modified the thread to show a second window. In LINUX, it works great. In win32.. the second window freezes halfway shown and the app gets stuck. (for win32.. i am using the DLLs posted 12/26 at http://user.sgic.fi/~tml/gimp/win32/downloads.html) I also downloaded the 1.3.6 GTK and compiled the latest DLLs for windows. The same problem still persists and the window remains half shown. I am always using gdk_thread_enter and leave within my thread. My question is how do you write to the GUI from more than one thread? I thought that the gdk_thread_enter and leave should do the trick. Is this a bug? I did a little reseach in the forums and found that you can call the gtk_add_timeout function to get the window to show. Is this the best way? Is there something cleaner? I can post my stub if that will help. I also tried running a backtrace from gdb when it froze and it told me that it could access the memory when i typed 'bt'. Thanks, Zev. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From rbultje@ronald.bitfreak.net Mon Jun 25 17:28:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id B44BA2BA83 for ; Mon, 25 Jun 2001 17:28:39 -0400 (EDT) Received: from [192.168.0.98] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5PMAhF19656; Tue, 26 Jun 2001 00:10:44 +0200 (CEST) Subject: Re: render texts to a buffer/drawable From: Ronald Bultje To: John Cupitt Cc: GTK Mailing List In-Reply-To: <3B371BB8.5453B91A@ng-london.org.uk> References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Jun 2001 23:28:38 +0200 Message-Id: <993504519.1645.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi John, On 25 Jun 2001 12:08:40 +0100, John Cupitt wrote: > - gdk_font_load() the font you want > - gdk_text_extents() to work out how big your string will be (in pixels) > - gdk_pixmap_new() to make a pixmap large enough to hold rendered text > - make a black/white GC to render with > - clear the pixmap to the background colour > - gdk_draw_string() to draw the text into the pixmap > - gdk_image_get() to read the image from the server as a GdkImage* > - malloc yor RGB buffer, and unpack the GdkImage into that Thanks for the tips, I feel like I'm almost there. Basically, I do see the text, there's just two problem, the color of the text is changing all the time and I'm not sure how to get the background transparent. > About 4 pages of code :-( I believe this is what gimp does (or it did > last time I looked). Not that bad, actually.... I'll give the code as I got it now: GdkColor color; GdkGC *gc; GdkPixmap *pixmap; GdkPixbuf *image; gdouble colors[3]; int w,h,x,y; GdkFont *font; guchar *data; char *text; guint32 pixel; //some initializing [...] color.red = (guint16)(options->colors[0]*65535.0); color.green = (guint16)(options->colors[1]*65535.0); color.blue = (guint16)(options->colors[2]*65535.0); font = gdk_font_load(options->font); w = gdk_text_width(font, text, strlen(text)); h = gdk_text_height(font, text, strlen(text)); pixmap = gdk_pixmap_new(NULL, w, h, 24); gc = gdk_gc_new(pixmap); gdk_gc_set_foreground(gc, &color); gdk_draw_string(pixmap, font, gc, 0, h, text); image = gdk_image_get(pixmap, 0,0,w,h); data = malloc(sizeof(guchar)*w*h*4); for (y=0;yimage = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, 1, 8, w, h, w*4, NULL, NULL); (and here I unref it all) The outcome pixbuf has an alpha of 255 everywhere because I'm not sure how to find out whether it should be transparent at that pixel or not. Second problem is, as I said, that the text of both the background (which makes sense because it's just a random data background) and the text changes everytime I create the pixmap. Is there an error in my "calculate-color-from-data"? And do you have an idea on how to see transparency? My idea is to read the background color (just do a gdk_draw_rectangle() with different colors) and if the background color matches the color in the GdkPixbuf, we have transparency - but maybe there's a better way? Anyway, thanks a lot for all the help for now, I'm almost there :-). Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From iainmf2000@yahoo.com Mon Jun 25 21:36:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web12505.mail.yahoo.com (web12505.mail.yahoo.com [216.136.173.197]) by mail.gnome.org (Postfix) with SMTP id 9F8FE2D46B for ; Mon, 25 Jun 2001 21:36:09 -0400 (EDT) Message-ID: <20010626013608.41493.qmail@web12505.mail.yahoo.com> Received: from [62.7.94.163] by web12505.mail.yahoo.com; Mon, 25 Jun 2001 18:36:08 PDT Date: Mon, 25 Jun 2001 18:36:08 -0700 (PDT) From: Iain Subject: configure on Win9x 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi. I'm trying to configure glib, but when I try to make it, it fails. When I look at the log for configure, I get the following error messages: configure:3741: checking for wctype.h configure:3748: C:/cygwin/bin/gcc -E conftest.c >/dev/null 2>conftest.out configure:3744: wctype.h: No such file or directory /cygdrive/c/glib/obj/configure:3886: undefined reference to `iswalnum' configure: In function `main': configure:5366: too many arguments to function `pthread_getspecific' configure: failed program was: #line 5363 "configure" configure:5426: warning: unused variable `tval' configure: failed program was: #line 5421 "configure" [end snippets] I have tried building with both cygwin and djgpp, and yes, I am using GNU make. Either there are errors in the configure file, or it won't compile with the two compilers I'm using. Why not? Thanks. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From hp@redhat.com Mon Jun 25 23:46:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8788E2BAB4 for ; Mon, 25 Jun 2001 23:46:04 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5Q3jvo08654; Mon, 25 Jun 2001 23:45:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> From: Havoc Pennington Date: 25 Jun 2001 23:45:52 -0400 In-Reply-To: Ronald Bultje's message of "25 Jun 2001 23:28:38 +0200" Message-ID: Lines: 26 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > pixmap = gdk_pixmap_new(NULL, w, h, 24); Not sure if you are trying to be portable across machines, but this could easily fail, not all X servers have 24-bit. > for (y=0;y { > for (x=0;x { > pixel = gdk_image_get_pixel(image,x,y); > data[(y*w+x)*4] = pixel/(256^3); > data[(y*w+x)*4+1] = (pixel/(256^2))%256; > data[(y*w+x)*4+2] = (pixel/256)%(256^2); > data[(y*w+x)*4+3] = 255; > } > } Here you're assuming far more than you reasonably can about the image format. gdk_pixbuf_get_from_drawable() does this for you and handles all the image formats and bit depths. Havoc From paul@paulandjamie.com Tue Jun 26 00:06:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from usbizmap.com (unknown [198.145.120.15]) by mail.gnome.org (Postfix) with ESMTP id C4C562BAB1 for ; Tue, 26 Jun 2001 00:06:30 -0400 (EDT) Received: from production [63.165.229.33] by usbizmap.com [198.145.120.19] with SMTP (MDaemon.v3.5.0.R) for ; Mon, 25 Jun 2001 21:21:19 -0700 Message-ID: <000d01c0fdf5$9524b6c0$21e5a53f@production> From: "Paul Singleton" To: Subject: very basic question about glib Date: Mon, 25 Jun 2001 21:07:56 -0700 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.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-MDRemoteIP: 63.165.229.33 X-Return-Path: paul@paulandjamie.com X-MDaemon-Deliver-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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. As you'll soon see, I'm a newbie. I installed Caldera eDesktop 2.4 and I think it's really cool. Seeking to free myself from the grips of Microsoft, I'm trying to find Windows-equivalent tools for Linux. The first one was an ftp app. I found gFTP. gFTP uses gtk+ so I needed to install glib1.2.8 and gtk1.2.8. Sounded easy enough. Seeking to learn, I avoided the rpms and went for the source. I downloaded everything. I extracted each of the three archives into their own folders under home/paul/desktop and followed instructions: glib says to go into the directory, type './configure' then 'make' then 'make install' that was easy enough. But when I went to do the same for gtk, it said it couldn't find a new enough version of glib!!! Well that made me upset, cause I don't know my way around linux, and the instructions didn't work. [by the way I've gotten past all this by using rpms but I'm none the wiser] My question: how do i remove COMPLETELY an old version of glib (or anything else for that matter) so that I know I don't have two or more versions of a library on my system. For instance, I found that I could use ./configure --prefix=/usr/ and glib would be installed over the top of the old version in /usr/lib instead of usr/local/lib. When I tried that, it still didn't seem to work. That lead me to my question. If I knew where to wipe out libraries and where they are being pointed to, etc, I would feel much more comfortable. I'm quite capable in DOS and of course Windows, so new venture is exciting but frustrating. I thank you much for your help--- and patience. -=Paul =Paul From pbd@op.net Tue Jun 26 00:29:12 2001 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 E61242CEB5 for ; Tue, 26 Jun 2001 00:29:11 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-0f.ppp.op.net [209.152.206.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id AAA14047; Tue, 26 Jun 2001 00:29:03 -0400 (EDT) Message-Id: <200106260429.AAA14047@renoir.op.net> To: "Paul Singleton" Cc: gtk-list@gnome.org Subject: Re: very basic question about glib In-reply-to: Your message of "Mon, 25 Jun 2001 21:07:56 PDT." <000d01c0fdf5$9524b6c0$21e5a53f@production> Date: Tue, 26 Jun 2001 00:29:00 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >that was easy enough. But when I went to do the same for gtk, it said it >couldn't find a new enough version of glib!!! Well that made me upset, cause >I don't know my way around linux, and the instructions didn't work. What exactly was the error message you got when you tried this? --p From zoey@xenonbase.net Tue Jun 26 00:50:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from host31.hostingcheck.com (host31.hostingcheck.com [209.239.36.147]) by mail.gnome.org (Postfix) with ESMTP id AD1C42BB20 for ; Tue, 26 Jun 2001 00:50:05 -0400 (EDT) Received: from xenonbase.net (co3007127-a.thorn1.nsw.optushome.com.au [203.164.22.188]) by host31.hostingcheck.com (8.10.2/8.10.2) with ESMTP id f5Q4o4917699 for ; Tue, 26 Jun 2001 00:50:04 -0400 Message-ID: <3B390317.7E82B4DA@xenonbase.net> Date: Tue, 26 Jun 2001 14:48:07 -0700 From: Zoey X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@gnome.org" Subject: Diff versions? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I recently downloaded GTK and installed it - the library first and the other stuff second. However, it persists in telling me the library version is an earlier one to the one I just installed. Any suggestions on how to fix the conflict? (I'm running Corel linux) zoey@xenonbase.net From pranjal@lgsi.co.in Tue Jun 26 01:14:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from polaris.lgsi.co.in (unknown [202.54.13.206]) by mail.gnome.org (Postfix) with ESMTP id CEDD82CE3E for ; Tue, 26 Jun 2001 01:14:01 -0400 (EDT) Received: from pranjal ([202.54.13.195]) by polaris.lgsi.co.in (Netscape Messaging Server 4.15) with ESMTP id GFIUUT00.O70 for ; Tue, 26 Jun 2001 10:50:53 +0530 From: "Pranjal Saikia" To: Subject: Latest version of GTK+, GLIB and Pango !! Date: Tue, 26 Jun 2001 11:29:13 +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.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <20010626050002.04DCD2D368@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi !! I wanted to know the latest versions of GTK+, Glib and Pango. Actually I wanted to run my application with Frame Buffer enabled. Please help to proceed. Please let me know, the availability of these packages. Regards Pranjal From rwan@cs.mu.oz.au Tue Jun 26 01:20:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 6DC372DB86 for ; Tue, 26 Jun 2001 01:18:49 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id PAA25242; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 0C65375AA; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 0BB7AAC94; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Date: Tue, 26 Jun 2001 15:17:27 +1000 (EST) From: Raymond Wan To: Pranjal Saikia Cc: gtk-list@gnome.org Subject: Re: Latest version of GTK+, GLIB and Pango !! 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, 26 Jun 2001, Pranjal Saikia wrote: > I wanted to know the latest versions of GTK+, Glib and Pango. Actually I > wanted to run my application with Frame Buffer enabled. Please help to > proceed. Please let me know, the availability of these packages. Hi, Take a look at: http://www.gtk.org/ for more information. In particular, take a look at: http://www.gtk.org/download/ to obtain the latest versions. You probably want the latest stable release of 1.2.X . Ray From deepika.sikri@wipro.com Tue Jun 26 02:36:59 2001 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 A182A2BB36 for ; Tue, 26 Jun 2001 02:36:55 -0400 (EDT) Received: from ecvwall11.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id f5QGuFj16098 for ; Tue, 26 Jun 2001 11:56:15 -0500 (GMT) Received: from deepika ([192.168.42.222]) by itplmail.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GFIY9Y00.QF7 for ; Tue, 26 Jun 2001 12:04:46 +0530 Message-ID: <008a01c0fda5$5ea3d400$de2aa8c0@wipro.com> From: "Deepika Sikri" To: Subject: Newbie question Date: Tue, 26 Jun 2001 00:03:45 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------InterScan_NT_MIME_Boundary" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----=_NextPart_000_0087_01C0FDD3.77EFB9A0" ------=_NextPart_000_0087_01C0FDD3.77EFB9A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm working on a project for making a UI in GTK+ and we need to display = the thumbnail images when URL's is specified.The screen shud be able = have multiple images(thumbnail). I'm a Newbie in this and just wanted to ask whether we can achieve it = thru GTK+ and pls if u can do send me pointers of where i can get info = for doing so which might be helpful.Any help will be appreciated ! Thanks, Deepika ------=_NextPart_000_0087_01C0FDD3.77EFB9A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
 
Hi,
 
 I'm working on a project for making a UI in = GTK+ and we=20 need to display the thumbnail images when URL's is specified.The screen = shud be=20 able have multiple images(thumbnail).
 
I'm a Newbie in this and just wanted to ask whether=20 we can achieve it thru GTK+ and pls if u can = do send me=20 pointers of where i can get info for doing so which might be helpful.Any = help=20 will be appreciated !
 
Thanks,
Deepika
 
 
------=_NextPart_000_0087_01C0FDD3.77EFB9A0-- --------------InterScan_NT_MIME_Boundary Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" The Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@wipro.com --------------InterScan_NT_MIME_Boundary-- From mseisdedos@cirsa.com Tue Jun 26 03:09:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id 8ED202CA7C for ; Tue, 26 Jun 2001 03:09:38 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A77.002746B5; Tue, 26 Jun 2001 09:09:00 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Tue, 26 Jun 2001 09:09:53 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4839@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: RV: Undeliverable message Date: Tue, 26 Jun 2001 09:09:52 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Hello every body: > > a core always happens to me when i close a window. I have a > button, when i > click it, a new window with a canvas and a plot is opened, i > can click the > button every time i want, but if i close one of the windows > and then try to > click the button to get another plot i get a gnome coredump. > I think is something related to register different objects > with the same > name, or something like that. > Thanks in advance > > > From sven@gimp.org Tue Jun 26 03:12:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A3B.dip.t-dialin.net [217.80.26.59]) by mail.gnome.org (Postfix) with ESMTP id 33E432DF28 for ; Tue, 26 Jun 2001 03:12:55 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15EmuJ-0001Q3-00 for ; Tue, 26 Jun 2001 09:05:07 +0200 To: gtk-list@gnome.org Subject: Re: Latest version of GTK+, GLIB and Pango !! References: From: Sven Neumann Date: 26 Jun 2001 09:05:07 +0200 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Raymond Wan writes: > > I wanted to know the latest versions of GTK+, Glib and Pango. Actually I > > wanted to run my application with Frame Buffer enabled. Please help to > > proceed. Please let me know, the availability of these packages. > > Take a look at: http://www.gtk.org/ for more information. In > particular, take a look at: http://www.gtk.org/download/ to obtain the > latest versions. You probably want the latest stable release of 1.2.X . he/she probably wants to use the unstable branch since the intention is to use the framebuffer device. You will find the unstable version at the same place but beware that this is unstable development software. Another place to grab the latest packages from is http://www.directfb.org/ where you will find a hardware accelerated version of GTK+ for the Linux framebuffer. Of course the same warning applies here: this is unstable development stuff. You have been warned. Salut, Sven From brandon@ovnet.com Tue Jun 26 03:23:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from riker.mountain.net (smtp.mountain.net [66.118.64.15]) by mail.gnome.org (Postfix) with ESMTP id 7437E2BF1E for ; Tue, 26 Jun 2001 03:23:52 -0400 (EDT) Received: from ovnet.com ([198.77.41.116]) by riker.mountain.net (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id net; Tue, 26 Jun 2001 03:21:00 -0400 Message-ID: <3B38399C.66AA057B@ovnet.com> Date: Tue, 26 Jun 2001 03:28:28 -0400 From: Brandon McCombs X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: ru,en MIME-Version: 1.0 To: Paul Singleton Cc: gtk-list@gnome.org Subject: Re: very basic question about glib References: <000d01c0fdf5$9524b6c0$21e5a53f@production> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Singleton wrote: > > Hello. As you'll soon see, I'm a newbie. I installed Caldera eDesktop 2.4 > and I think it's really cool. > > Seeking to free myself from the grips of Microsoft, I'm trying to find > Windows-equivalent tools for Linux. The first one was an ftp app. I found > gFTP. > > gFTP uses gtk+ so I needed to install glib1.2.8 and gtk1.2.8. Sounded easy > enough. Seeking to learn, I avoided the rpms and went for the source. I > downloaded everything. > > I extracted each of the three archives into their own folders under > home/paul/desktop and followed instructions: > glib says to go into the directory, type './configure' then 'make' then > 'make install' > > that was easy enough. But when I went to do the same for gtk, it said it > couldn't find a new enough version of glib!!! Well that made me upset, cause > I don't know my way around linux, and the instructions didn't work. > run /sbin/ldconfig as root and then run ./configure for gtk From rbultje@ronald.bitfreak.net Tue Jun 26 03:30:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id 1E1412BD47 for ; Tue, 26 Jun 2001 03:30:09 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id JAA21064; Tue, 26 Jun 2001 09:30:05 +0200 (CEST) Message-ID: <3B3836A8.50305@ronald.bitfreak.net> Date: Tue, 26 Jun 2001 09:15:52 +0200 From: Ronald Bultje User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us MIME-Version: 1.0 To: Havoc Pennington Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: >Ronald Bultje writes: > >> pixmap = gdk_pixmap_new(NULL, w, h, 24); >> > >Not sure if you are trying to be portable across machines, but this >could easily fail, not all X servers have 24-bit. > Uhm... Never thought about that, really :-) Is there any way to get a 24-bit drawable form the server on non-24-bit X-servers? Is it possible at all to have 24-bit drawables on non-24-bit X-servers? Or would I haev to use something else (client-side) for this? (like freetype, as John suggested). >> for (y=0;y> { >> for (x=0;x> { >> pixel = gdk_image_get_pixel(image,x,y); >> data[(y*w+x)*4] = pixel/(256^3); >> data[(y*w+x)*4+1] = (pixel/(256^2))%256; >> data[(y*w+x)*4+2] = (pixel/256)%(256^2); >> data[(y*w+x)*4+3] = 255; >> } >> } >> > >Here you're assuming far more than you reasonably can about the image >format. > >gdk_pixbuf_get_from_drawable() does this for you and handles all the >image formats and bit depths. > The problem I encountered with gdk_pixbuf_from_drawable is that it needed a colormap. However, trying to get a colormap from the pixmap resulted in an error that it could not get a colormap from a pixmap.... Or should I use gdk_colormap_get_system() (which could be different from the colormap of the pixmap...)? Regards, Ronald From switk@yahoo.com Tue Jun 26 06:14:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx03.cluster1.charter.net (dc-mx03.cluster0.hsacorp.net [209.225.8.13]) by mail.gnome.org (Postfix) with ESMTP id 0D5192C858 for ; Tue, 26 Jun 2001 06:14:21 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx03.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 5709764; Tue, 26 Jun 2001 06:20:28 -0400 Subject: Re: very basic question about glib From: Stephen Witkop To: Paul Singleton Cc: gtk-list@gnome.org In-Reply-To: <000d01c0fdf5$9524b6c0$21e5a53f@production> References: <000d01c0fdf5$9524b6c0$21e5a53f@production> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 26 Jun 2001 06:14:16 -0400 Message-Id: <993550460.816.1.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 25 Jun 2001 21:07:56 -0700, Paul Singleton wrote: > > that was easy enough. But when I went to do the same for gtk, it said it > couldn't find a new enough version of glib!!! Well that made me upset, cause > I don't know my way around linux, and the instructions didn't work. > > [by the way I've gotten past all this by using rpms but I'm none the wiser] > > My question: how do i remove COMPLETELY an old version of glib (or anything > else for that matter) so that I know I don't have two or more versions of a > library on my system. For instance, I found that I could use > ./configure --prefix=/usr/ and glib would be installed over the top of the > old version in /usr/lib instead of usr/local/lib. When I tried that, it > still didn't seem to work. That lead me to my question. > You should remove the old rpm packages for gtk+ and glib before you build the new ones. The rpms that Caldera packages might put things in different places than a 'make install' after configuring for '--prefix=/usr', most likely the glib-config and gtk-config scripts. Stephen From wilhelmi@ira.uka.de Tue Jun 26 06:29:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from iraun1.uka.de (iraun1.uka.de [129.13.10.90]) by mail.gnome.org (Postfix) with ESMTP id 217912E52C for ; Tue, 26 Jun 2001 06:29:05 -0400 (EDT) Received: from i80fs2.ira.uka.de by iraun1 (PP) with ESMTP; Tue, 26 Jun 2001 12:22:46 +0200 Received: from ira.uka.de (actually i81pc4) by i8fs1 (PP) with ESMTP; Tue, 26 Jun 2001 12:22:54 +0200 Message-ID: <3B386274.C0CD993B@ira.uka.de> Date: Tue, 26 Jun 2001 12:22:44 +0200 From: Sebastian Wilhelmi Organization: IRF Uni Karlsruhe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17 i586) X-Accept-Language: en MIME-Version: 1.0 To: ZB Cc: gtk-list@gnome.org Subject: Re: writing to GUI from 2+ threads References: <20010625172005.58660.qmail@web11605.mail.yahoo.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > I am trying to write to the GUI from more than one > thread and it works with LINUX but not win32. I made a > stub program by modifying the threaded hello world > program (http://www.gtk.org/faq/#AEN462) from the gtk > site. The program creates a window and then starts a > thread and i modified the thread to show a second > window. In LINUX, it works great. In win32.. the > second window freezes halfway shown and the app gets > stuck. > (for win32.. i am using the DLLs posted 12/26 at > http://user.sgic.fi/~tml/gimp/win32/downloads.html) > I also downloaded the 1.3.6 GTK and compiled the > latest DLLs for windows. The same problem still > persists and the window remains half shown. > I am always using gdk_thread_enter and leave within my > thread. There might be a deadlock in GTK+ for win32. You can find out by compiling the test program with -DG_ERRORCHECK_MUTEXES. If that really confirms, that there is a deadlock, I would also compile GLib and GTK+ with -DG_ERRORCHECK_MUTEXES to find out where that deadlock is. Bye, Sebastian -- Sebastian Wilhelmi mailto:wilhelmi@ira.uka.de http://goethe.ira.uka.de/~wilhelmi From andrej.prsa@guest.arnes.si Tue Jun 26 07:36:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id 2C4612D31A for ; Tue, 26 Jun 2001 07:36:58 -0400 (EDT) Received: from arnes.si (ar10-169i.dial-up.arnes.si [194.249.12.169]) by razor.arnes.si (Postfix) with SMTP id 35EBBE5F5; Tue, 26 Jun 2001 13:34:04 +0200 (MET DST) Date: Tue, 26 Jun 2001 13:36:00 +0200 From: Andrej Prsa To: "Paul Singleton" Cc: gtk-list@gnome.org Subject: Re: very basic question about glib Message-Id: <20010626133600.6366e238.andrej.prsa@guest.arnes.si> In-Reply-To: <000d01c0fdf5$9524b6c0$21e5a53f@production> References: <000d01c0fdf5$9524b6c0$21e5a53f@production> Organization: University of Astrophysics X-Mailer: Sylpheed version 0.4.99 (GTK+ 1.2.9; 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello! > My question: how do i remove COMPLETELY an old version of glib (or anything > else for that matter) so that I know I don't have two or more versions of a > library on my system. If you installed it from tarball (.tar.gz), you should type "make clean" to clear the package from installed directory, or "make distclean" to delete everything except the source (all .o files, executables, ...). Afterwards you can make them again by "make" and install them by "make install". If you installed the package from rpm (eg. rpm -Uvh rpm-name.rpm), you may query it for its name with "rpm -q rpm_name" (eg. rpm -q gtk+) and delete it with "rpm -e rpm_name (eg. rpm -e gtk+). That does the trick thoroughly. ;) > If I knew where to wipe out libraries and where they are being pointed to, > etc, I would feel much more comfortable. I'm quite capable in DOS and of > course Windows, so new venture is exciting but frustrating. Use /sbin/ldconfig. Bye! Andrej From john.cupitt@ng-london.org.uk Tue Jun 26 07:48:30 2001 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 83D782BD08 for ; Tue, 26 Jun 2001 07:48:30 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQ3ALW; Tue, 26 Jun 2001 12:48:29 +0100 Message-ID: <3B38753A.5DAF5550@ng-london.org.uk> Date: Tue, 26 Jun 2001 12:42:50 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ronald Bultje Cc: GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ronald, Ronald Bultje wrote: > color.red = (guint16)(options->colors[0]*65535.0); > color.green = (guint16)(options->colors[1]*65535.0); > color.blue = (guint16)(options->colors[2]*65535.0); In my app, I use a 1 bit pixmap (bitmap), since every server supports that (and there's less data to copy from the server to the client). Just use 0x0 for the background, and 0x1 for the foreground. > w = gdk_text_width(font, text, strlen(text)); > h = gdk_text_height(font, text, strlen(text)); I use text_extents, I think it's a little quicker. > pixmap = gdk_pixmap_new(NULL, w, h, 24); You can bitdepth 1 here I think. > gc = gdk_gc_new(pixmap); > gdk_gc_set_foreground(gc, &color); > gdk_draw_string(pixmap, font, gc, 0, h, text); I think you need to clear the background before you render the text ... draw a filled rectangle in the background colour. > image = gdk_image_get(pixmap, 0,0,w,h); > data = malloc(sizeof(guchar)*w*h*4); > > for (y=0;y { > for (x=0;x { > pixel = gdk_image_get_pixel(image,x,y); > data[(y*w+x)*4] = pixel/(256^3); > data[(y*w+x)*4+1] = (pixel/(256^2))%256; > data[(y*w+x)*4+2] = (pixel/256)%(256^2); > data[(y*w+x)*4+3] = 255; > } > } I think this will be slow and unreliable :-( For 1 bit XImages, you can unpack yourself pretty easily (this is Xlib, you'll need to change the names for gdk): -- static void unpack_image( XImage *xim, unsigned char *msk ) { int x, y, b, i; unsigned char *p, q; for( i = 0, y = 0; y < xim->height; y++ ) { p = (unsigned char *) xim->data + y * xim->bytes_per_line; q = *p++; for( b = 0, x = 0; x < xim->width; x++, b++, i++ ) { if( b == 8 ) { b = 0; q = *p++; } if( xim->bitmap_bit_order == LSBFirst ) { if( q & 0x1 ) msk[i] = 255; else msk[i] = 0; q = q >> 1; } else { if( q & 0x80 ) msk[i] = 255; else msk[i] = 0; q = q << 1; } } } } -- I'm sure there are things to handle these conversions for you in the newer pixbuf libraries ... I hacked this a while ago. Something else you might consider is anti-aliasing ... gimp 1.1 asks for a font twice the size required, then does a 2x2 block average. Not the best way to anti-alias, but very easy, and it does look better. I guess you should consider using XRender really (is this wrapped by gdk yet? not sure). Good luck, John From timo.savola@iki.fi Sun Jun 24 18:14:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp-2.hut.fi (smtp-2.hut.fi [130.233.228.92]) by mail.gnome.org (Postfix) with ESMTP id 93D742BC88 for ; Sun, 24 Jun 2001 18:14:11 -0400 (EDT) Received: from smtp.hut.fi (timo@cc-dialin1-3.hut.fi [130.233.251.3]) by smtp-2.hut.fi (8.9.3/8.9.3) with SMTP id BAA34774; Mon, 25 Jun 2001 01:14:08 +0300 (EEST) Date: Mon, 25 Jun 2001 01:16:35 +0300 From: Timo Savola To: Reinhard Mueller Cc: gtk-list@gnome.org Subject: Re: Logging functions Message-ID: <20010625011635.A7126@whiz-bang> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 0.6.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > is there a reason why there are the functions > g_error > g_critical > g_warning > g_message > but not > g_info > g_debug > ? I've been wondering about the same thing. > #define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) > > #ifdef G_DEBUG > #define g_debug(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) > #else > #define g_debug(...) > #endif Here's what I use to extend GLib: #ifdef NDEBUG # define debug(msg) # define debugf(fmt, args...) #else # ifdef __GNUC__ # define debug(msg) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d %s: " msg, \ __FILE__, __LINE__, __PRETTY_FUNCTION__) # define debugf(fmt, args...) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d %s: " fmt, \ __FILE__, __LINE__, __PRETTY_FUNCTION__, ##args) # else # define debug(msg) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d: " msg, \ __FILE__, __LINE__) # define debugf(fmt, args...) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d: " fmt, \ __FILE__, __LINE__, ##args) # endif #endif Tell me how I can merge the debug(msg) and debugf(fmt, args...) macros. :) Timo Savola From Valdis.Kletnieks@vt.edu Tue Jun 26 10:29:00 2001 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 C66472BDF9 for ; Tue, 26 Jun 2001 10:28:59 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5QESqg31417; Tue, 26 Jun 2001 10:28:53 -0400 Message-Id: <200106261428.f5QESqg31417@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable In-Reply-To: Your message of "Mon, 25 Jun 2001 23:28:38 +0200." <993504519.1645.0.camel@tux> 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[ <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-369087844P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 26 Jun 2001 10:28:52 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-369087844P Content-Type: text/plain; charset=us-ascii On Mon, 25 Jun 2001 23:28:38 +0200, Ronald Bultje said: You're missing at least one error check here: > pixmap = gdk_pixmap_new(NULL, w, h, 24); /* This can lose if the X server doesn't have 24-bit visuals */ if (!pixmap) { sprintf(stderr,"Whoops gdk_pixmap_new blew chunks!"); return; } /* OK.. We got a pixmap, use it */ > gc = gdk_gc_new(pixmap); /Valdis --==_Exmh_-369087844P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzicJHAt5Vm009ewEQJiWACgt15rGCPnd9rBBCqcetDk94TB8L4An1tm EUXvhKxioeGYYshaxaaL4vlN =rLUp -----END PGP SIGNATURE----- --==_Exmh_-369087844P-- From hp@redhat.com Tue Jun 26 12:40:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2CFB22E644 for ; Tue, 26 Jun 2001 12:39:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5QGcvO09050; Tue, 26 Jun 2001 12:38:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> <3B3836A8.50305@ronald.bitfreak.net> From: Havoc Pennington Date: 26 Jun 2001 12:38:57 -0400 In-Reply-To: Ronald Bultje's message of "Tue, 26 Jun 2001 09:15:52 +0200" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > Uhm... Never thought about that, really :-) > Is there any way to get a 24-bit drawable form the server on > non-24-bit X-servers? > > Is it possible at all to have 24-bit drawables on non-24-bit > X-servers? Nope and nope. Server-side objects such as images and pixmaps are raw-to-the-hardware. If the hardware lacks 24-bit mode you have no 24-bit available. However as John points out, you could use a bitmap. All X servers support 1-bit pixmaps (bitmaps). > Or would I haev to use something else (client-side) for this? (like > freetype, as John suggested). That's a cleaner solution, yes. > The problem I encountered with gdk_pixbuf_from_drawable is that it > needed a colormap. For 1-bit, you would call gdk_colormap_new() using a 1-bit visual obtained with gdk_visual_get_best_with_depth(). Otherwise you need to know the colormap used to allocate the color you used to render text to the pixmap. Havoc From lestat.lioncourt@innocent.com Tue Jun 26 18:25:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-5-115.abo.wanadoo.fr [193.252.11.115]) by mail.gnome.org (Postfix) with ESMTP id 1277A2E706 for ; Tue, 26 Jun 2001 18:24:09 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id C0238BFA4 for ; Wed, 27 Jun 2001 00:24:02 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Tue, 26 Jun 2001 22:24:02 +0000 From: "David Goncalves" To: Subject: gtk_clist_remove : bug or undocumented feature ;) MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010626222402.C0238BFA4@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm currently experiencing a strange reaction from a gtk_clist. I have a gtk_clist configured with GTK_SELECTION_BROWSE and when i use gtk_clist_remove to remove the LAST row, an invisible row stay in the list and is unusable... If anyone knows about this reaction... thanks. From ardm2@cam.ac.uk Tue Jun 26 13:56:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yellow.csi.cam.ac.uk (yellow.csi.cam.ac.uk [131.111.8.67]) by mail.gnome.org (Postfix) with ESMTP id AB6922CF1F for ; Tue, 26 Jun 2001 13:56:51 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] helo=ardm2 ident=alex) by yellow.csi.cam.ac.uk with smtp (Exim 3.22 #1) id 15Ex51-0001sf-00 for gtk-list@gnome.org; Tue, 26 Jun 2001 18:56:51 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Alexandre Mathy To: gtk-list@gnome.org Subject: stacking pixmaps Date: Tue, 26 Jun 2001 18:58:59 +0000 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01062618585902.27164@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi.. I'm building an inteface for which I need stackable pixmaps.. Now I have read that this can't be achieved using a gtk_pixmap, and that I'd have to use Gdk stuff instead. However, these pixmaps need to be able to recieve click events etc... Is there an easy way to achieve this? cheers, Alex Mathy From dermot@glade.perl.connectfree.co.uk Tue Jun 26 20:37:42 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 77AD22E723; Tue, 26 Jun 2001 20:37:29 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id UAA26010; Tue, 26 Jun 2001 20:37:28 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5R0aPb04012; Tue, 26 Jun 2001 20:36:26 -0400 Received: from higrade.botwrights.farm (ppp-1-50.cvx6.telinco.net [212.1.156.50]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id CAA19226; Wed, 27 Jun 2001 02:11:18 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id BAA00992; Wed, 27 Jun 2001 01:35:50 +0100 Message-ID: <3B391642.55ED3F98@glade.perl.connectfree.co.uk> Date: Wed, 27 Jun 2001 00:09:54 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: Joachim Backes Cc: glade-devel , "gtk-perl-list@redhat.com" , "gtk-list@redhat.com" Subject: Re: ANNOUNCE: Glade-Perl 0.59 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Joachim Backes wrote: > [...] > address seems to be : ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Glade/ > ^^^ Thanks Joachim - sorry to anyone who got lost. Regards, Dermot From zoey@xenonbase.net Wed Jun 27 03:46:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from host31.hostingcheck.com (host31.hostingcheck.com [209.239.36.147]) by mail.gnome.org (Postfix) with ESMTP id 559032BEA5 for ; Wed, 27 Jun 2001 03:46:52 -0400 (EDT) Received: from xenonbase.net (co3007127-a.thorn1.nsw.optushome.com.au [203.164.22.188]) by host31.hostingcheck.com (8.10.2/8.10.2) with ESMTP id f5R7kno29994 for ; Wed, 27 Jun 2001 03:46:50 -0400 Message-ID: <3B3A7DFE.EA659075@xenonbase.net> Date: Wed, 27 Jun 2001 17:44:46 -0700 From: Zoey X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@gnome.org" Subject: Backtrack on Diff. Versions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Running ./configure, I got the following message just after I'd installed glib 1.2.10 cheking for GLIB - version >= 1.2.8... *** 'glib-config --version' returned 1.2.10, but GLIB (1.2.6) *** was found! If glib-config was correct, then it is best *** to remove the old version of GLIB. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH environment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If glib-config was wrong, set the environment variable GLIB_CONFIG *** to point to the correct copy of glib-config, and remove the fil config.cache *** before re-running configure On useing rpm, I tried. However, it too gave me an error message. I -think- that might be because Corel is based on debian?? Thanks for all the replies! (and the patience. ;)) Zoey. From rbultje@ronald.bitfreak.net Wed Jun 27 04:35:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id EF3122CB80 for ; Wed, 27 Jun 2001 04:35:00 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id KAA12370; Wed, 27 Jun 2001 10:34:57 +0200 (CEST) Message-ID: <3B399AAC.1060907@ronald.bitfreak.net> Date: Wed, 27 Jun 2001 10:34:52 +0200 From: Ronald Bultje Organization: Textinfo Technologies User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: nl, nl-be, en MIME-Version: 1.0 To: Zoey Cc: "gtk-list@gnome.org" Subject: Re: Backtrack on Diff. Versions problem. References: <3B3A7DFE.EA659075@xenonbase.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Zoey wrote: >Running ./configure, I got the following message just after I'd >installed glib 1.2.10 > >cheking for GLIB - version >= 1.2.8... >*** 'glib-config --version' returned 1.2.10, but GLIB (1.2.6) >*** was found! If glib-config was correct, then it is best >*** to remove the old version of GLIB. You may also be able to fix the >error >*** by modifying your LD_LIBRARY_PATH environment variable, or by >editing >*** /etc/ld.so.conf. Make sure you have run ldconfig if that is >*** required on your system. >*** If glib-config was wrong, set the environment variable GLIB_CONFIG >*** to point to the correct copy of glib-config, and remove the fil >config.cache >*** before re-running configure > Remove /usr/include/glib.h and/or /usr/include/glib/glib.h. don't remove /usr/include/glib-1.2/anything, that's 1.2.10 :-) Ronald From linuxfun@163.com Wed Jun 27 06:14:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp4.163.com (unknown [202.108.44.226]) by mail.gnome.org (Postfix) with ESMTP id DFB512DC6B for ; Wed, 27 Jun 2001 06:14:38 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp4.163.com (Postfix) with SMTP id 15F911D2EDB9C for ; Wed, 27 Jun 2001 17:38:39 +0800 (CST) Message-ID: <001c01c0feed$430577f0$8002a8c0@SHECA.COM> From: "linuxfun" To: Subject: test Date: Wed, 27 Jun 2001 17:40:53 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01C0FF30.50639330" 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.5 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_0019_01C0FF30.50639330 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 dGVzdA0K ------=_NextPart_000_0019_01C0FF30.50639330 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj50ZXN0PC9GT05UPjwvRElWPjwv Qk9EWT48L0hUTUw+DQo= ------=_NextPart_000_0019_01C0FF30.50639330-- From ardm2@cam.ac.uk Wed Jun 27 07:31:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from orange.csi.cam.ac.uk (orange.csi.cam.ac.uk [131.111.8.77]) by mail.gnome.org (Postfix) with ESMTP id 055CF2E7C2 for ; Wed, 27 Jun 2001 07:30:41 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by orange.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FDWq-0005P4-00 for gtk-list@gnome.org; Wed, 27 Jun 2001 12:30:40 +0100 Subject: mouse motion redraws From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 27 Jun 2001 12:33:09 +0000 Message-Id: <993645192.2364.1.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm currently writing an app in which pixmaps (Gdk, not Gtk)in a GtkDrawingArea can be dragged by using the mouse.To achieve this, I connect to the usual mouse signals. My problem is that the motion of the pixmaps is sluggish. The weird thing is, if I run the program at the same time I run "Dia" (gtk drawing program), the motion of my program all of a sudden becomes acceptable. I've looked through "Dia'"s source, but cannot find what it's doing. Cheers, Alex Mathy here's the code: gtk_signal_connect (GTK_OBJECT (canvas), "motion_notify_event", GTK_SIGNAL_FUNC (canvas_motion_notify_event), NULL); gtk_signal_connect (GTK_OBJECT (canvas), "button_press_event", GTK_SIGNAL_FUNC (canvas_button_press_event), NULL); gtk_signal_connect (GTK_OBJECT (canvas), "button_release_event", GTK_SIGNAL_FUNC (canvas_button_release_event), NULL); gtk_widget_set_events (GTK_WIDGET (canvas), GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_BUTTON_RELEASE_MASK ); . . . gint canvas_button_press_event (GtkWidget *widget, GdkEventButton *event) { if (event->button == 1){ int i; for (i=0;i<*(compCount);i++){ circObj* component; component=getComponent(components,i); if (isInComponent(component,event->x,event->y)==TRUE){ //start dragging! selectedObj=component; dragging=TRUE; xInObj=event->x-component->x; yInObj=event->y-component->y; selectedType=SELECTED_COMPONENT; gtk_timeout_remove(threadid); return TRUE; } else { } } } return TRUE; } gint canvas_button_release_event (GtkWidget *widget, GdkEventButton *event) { if (event->button == 1){ if (dragging==TRUE){ dragging=FALSE; threadid=gtk_timeout_add(DELAY,circuitLoop,canvas); //snap to grid: } } return TRUE; } gint canvas_motion_notify_event (GtkWidget *widget, GdkEventMotion *event) { int x, y; GdkModifierType state; if (event->is_hint) { gdk_window_get_pointer (event->window, &x, &y, &state); } else { x = event->x; y = event->y; state = event->state; } if (state & GDK_BUTTON1_MASK){ if (dragging==TRUE){ if (selectedType=SELECTED_COMPONENT){ circObj* component=(circObj*)selectedObj; component->x=event->x - xInObj; component->y=event->y - yInObj; redrawCanvas(canvas); } } } return TRUE; } From john.cupitt@ng-london.org.uk Wed Jun 27 07:38:17 2001 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 E718B2E7CD for ; Wed, 27 Jun 2001 07:38:06 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WJ1Q; Wed, 27 Jun 2001 12:38:06 +0100 Message-ID: <3B39C44C.6BB97EF2@ng-london.org.uk> Date: Wed, 27 Jun 2001 12:32:28 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: stacking pixmaps References: <01062618585902.27164@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy wrote: > I'm building an inteface for which I need stackable pixmaps.. > Now I have read that this can't be achieved using a gtk_pixmap, > and that I'd have to use Gdk stuff instead. > However, these pixmaps need to be able to recieve click events etc... I think the gtk_canvas widget does what you want: http://www.atai.org/gtk-canvas/ I don't know if this is the most recent version. It's a port of GnomeCanvas back to plain gtk, so you can just look up the GnomeCanvas docs. HTH, John From kodis@jagunet.com Wed Jun 27 08:35:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from skydiver.jaguNET.com (skydiver.jaguNET.com [209.133.192.8]) by mail.gnome.org (Postfix) with ESMTP id 9950C2E80D for ; Wed, 27 Jun 2001 08:34:03 -0400 (EDT) Received: from kodis.jagunet.com (kodis.jaguNET.com [209.133.192.48]) by skydiver.jaguNET.com (8.9.3/jag-2.6) with ESMTP id IAA13861 for ; Wed, 27 Jun 2001 08:33:40 -0400 (EDT) Received: (from kodis@localhost) by kodis.jagunet.com (8.11.2/8.11.2) id f5RCWsO02304 for gtk-list@gnome.org; Wed, 27 Jun 2001 08:32:54 -0400 X-Authentication-Warning: papa.jagunet.com: kodis set sender to kodis@jagunet.com using -f Date: Wed, 27 Jun 2001 08:32:53 -0400 From: John Kodis To: gtk-list@gnome.org Subject: Re: gtk_clist_remove : bug or undocumented feature ;) Message-ID: <20010627083253.A2262@papa.jagunet.com> Mail-Followup-To: John Kodis , gtk-list@gnome.org References: <20010626222402.C0238BFA4@transylvania> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010626222402.C0238BFA4@transylvania>; from lestat.lioncourt@innocent.com on Tue, Jun 26, 2001 at 10:24:02PM +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 26, 2001 at 10:24:02PM +0000, David Goncalves wrote: > I'm currently experiencing a strange reaction from a gtk_clist. > I have a gtk_clist configured with GTK_SELECTION_BROWSE and > when i use gtk_clist_remove to remove the LAST row, an invisible > row stay in the list and is unusable... It could be that the unusable last row is just blank space left in the clist's enclosing window. Try setting the policy of the window that holds the clist to allow-shrink and auto-shrink using the gtk_window_set_policy() routine. -- John Kodis. From pbd@op.net Wed Jun 27 09:28:01 2001 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 761392BBBA for ; Wed, 27 Jun 2001 09:28:01 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-07.ppp.op.net [209.152.194.103]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA27351 for ; Wed, 27 Jun 2001 09:27:59 -0400 (EDT) Message-Id: <200106271327.JAA27351@renoir.op.net> To: gtk-list@gnome.org Subject: Re: stacking pixmaps In-reply-to: Your message of "Wed, 27 Jun 2001 12:32:28 BST." <3B39C44C.6BB97EF2@ng-london.org.uk> Date: Wed, 27 Jun 2001 09:28:15 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I think the gtk_canvas widget does what you want: > > http://www.atai.org/gtk-canvas/ > >I don't know if this is the most recent version. It's a port of >GnomeCanvas back to plain gtk, so you can just look up the GnomeCanvas >docs. At the cost of repeating myself, the GtkCanvas is perhaps the most useful and most powerful widget available under Gtk. Is there *any* way we can shame/cajole/bribe/convict/persuade the GTK+ team to remove it from GNOME and follow the example of the back-port by including it in GTK+ 1.3/2.0 ? --p From hp@redhat.com Wed Jun 27 10:26:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A8B882E2DA for ; Wed, 27 Jun 2001 10:26:46 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5REQaa18318; Wed, 27 Jun 2001 10:26:36 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> From: Havoc Pennington Date: 27 Jun 2001 10:26:36 -0400 In-Reply-To: Paul Davis's message of "Wed, 27 Jun 2001 09:28:15 -0400" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > At the cost of repeating myself, the GtkCanvas is perhaps the most > useful and most powerful widget available under Gtk. Is there *any* > way we can shame/cajole/bribe/convict/persuade the GTK+ team to remove > it from GNOME and follow the example of the back-port by including it > in GTK+ 1.3/2.0 ? > libgnomecanvas is in a separate library for GNOME 2, not dependent on any other libs except GTK (and libart). We don't want to move it to GTK with a rename, instead we want to wait until we add a vector graphics API and then have a canvas widget that uses that. Havoc From bonjour@ime.unicamp.br Wed Jun 27 12:12:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pretoria.ime.unicamp.br (pretoria.ime.unicamp.br [143.106.22.7]) by mail.gnome.org (Postfix) with ESMTP id A9C332DCF5 for ; Wed, 27 Jun 2001 12:12:23 -0400 (EDT) Received: from goiania.ime.unicamp.br (goiania.ime.unicamp.br [143.106.96.188]) by pretoria.ime.unicamp.br (8.9.0/8.9.0) with ESMTP id NAA14778 for ; Wed, 27 Jun 2001 13:12:58 -0300 (EST) Date: Wed, 27 Jun 2001 12:56:21 -0300 (EST) From: Filipe Bonjour To: GTK List Subject: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm just starting programming with GTK, and I'm having problems with events. Specifically, I'm writing a program (using GTK/Gnome built by Glade) to visualize data in 2D/3D using a GtkGlArea widget (a subclass of GtkDrawingArea). In short, I have several drawing options, and I want to send the GtkGlArea widget an expose event when the user changes any of these options. I have tried things like: gtk_signal_emit_by_name(glarea, "expose_event"); gtk_signal_emit_by_name(glarea, "expose-event"); (which cause a SIGSEGV) and gtk_signal_emit(glarea, 32); gtk_signal_emit(glarea, GDK_EXPOSE); gtk_signal_emit(glarea, gtk_signal_lookup("expose_event", GTK_TYPE_GL_AREA)); gtk_signal_emit(glarea, gtk_signal_lookup("expose-event", GTK_TYPE_GL_AREA)); which are at best ignored. So I have a few questions... 1) Where are the signal numbers and names defined? I couldn't find them anywhere. For gtk_signal_emit I find it hard to believe that we are expected to give an actual number, I thought there would be some defined symbols, such as "#define GTK_SIGNAL_EXPOSE 32" or something. 2) I guess I could create a bogus event and call the signal-handling routine directly, but that's ugly and I'm pretty sure there's a better and more elegant way. How? Any help would be very appreciated, TIA, Fil +-----------------------------------------------------------------------+ | Dr. Fil Bonjour | Fil Bonjour | | UNICAMP, IMECC, DMA - Room 328 | Rua Alberto de Salvo 53 | | 13081-970 Campinas SP Brazil | 13084-670 Campinas SP Brazil | | Phone: (++55.19) 3788.60.44 | Phone: (+55.19) 3289.77.84 | | Fax: (++55.19) 3289.14.66 | | | Email: bonjour@ime.unicamp.br | Email: fbonjour@uol.com.br | | http://www.ime.unicamp.br/~bonjour| | +-----------------------------------------------------------------------+ From ardm2@cam.ac.uk Wed Jun 27 12:35:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from red.csi.cam.ac.uk (red.csi.cam.ac.uk [131.111.8.70]) by mail.gnome.org (Postfix) with ESMTP id 906F42E196 for ; Wed, 27 Jun 2001 12:35:47 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by red.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FII6-0000Px-00 for gtk-list@gnome.org; Wed, 27 Jun 2001 17:35:46 +0100 Subject: gnome/gtkcanvas From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 27 Jun 2001 17:38:17 +0000 Message-Id: <993663497.11889.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey.. Ok so I've decided to go with gnomecanvas. I'm having trouble drawing images to the canvas though... Here's the code: GdkImlibImage *Image = gdk_imlib_load_image ("mypng.png"); /* create a new canvas */ gtk_widget_push_visual (gdk_imlib_get_visual ()); gtk_widget_push_colormap (gdk_imlib_get_colormap ()); canvas = gnome_canvas_new(); gtk_widget_pop_visual(); gtk_widget_pop_colormap(); . . . . gnome_canvas_item_new (gnome_canvas_root(canvas), gnome_canvas_image_get_type (), "image", Image, "x", 0, "y", 0, "width",(double)Image->rgb_width, "height", (double)Image->rgb_height, NULL); The image does not display, i.e. the canvas remains empty except for non-image objects I draw to it... What am I doing wrong? Cheers, Alex Mathy From emonsler@beamreachnetworks.com Wed Jun 27 12:48:02 2001 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 6B1102E86C for ; Wed, 27 Jun 2001 12:48:02 -0400 (EDT) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.40]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J50PXXM7; Wed, 27 Jun 2001 09:46:53 -0700 Message-ID: <3B3A0EFD.7E89282C@beamreachnetworks.com> Date: Wed, 27 Jun 2001 09:51:09 -0700 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > libgnomecanvas is in a separate library for GNOME 2, not dependent on > any other libs except GTK (and libart). What is the libgnomecanvas license? IIRC, GNOME is GPL, vs. the LGPL of GTK. (I tried to check the license from the gnome.org site, but there were lots of references to "free" software and FSF links, but no license info immediately available) It's not just size that keeps everyone from using the GNOME libs. Eric From hp@redhat.com Wed Jun 27 13:31:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4EF302CF3A for ; Wed, 27 Jun 2001 13:31:44 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5RHVOC18397; Wed, 27 Jun 2001 13:31:24 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Eric M. Monsler" Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> <3B3A0EFD.7E89282C@beamreachnetworks.com> From: Havoc Pennington Date: 27 Jun 2001 13:31:24 -0400 In-Reply-To: "Eric M. Monsler"'s message of "Wed, 27 Jun 2001 09:51:09 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Eric M. Monsler" writes: > What is the libgnomecanvas license? > > IIRC, GNOME is GPL, vs. the LGPL of GTK. No, this is completely untrue - GNOME libraries have always been LGPL. > It's not just size that keeps everyone from using the GNOME libs. It's also suckiness for much of libgnomeui - but with libgnomecanvas split out, neither size nor suckiness should be an issue for using the canvas. Havoc From emonsler@beamreachnetworks.com Wed Jun 27 13:38:00 2001 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 BA2252CC8D for ; Wed, 27 Jun 2001 13:37:59 -0400 (EDT) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.40]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J50PXXPK; Wed, 27 Jun 2001 10:36:52 -0700 Message-ID: <3B3A1AB8.9EE5C5C7@beamreachnetworks.com> Date: Wed, 27 Jun 2001 10:41:12 -0700 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> <3B3A0EFD.7E89282C@beamreachnetworks.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "Eric M. Monsler" writes: > > IIRC, GNOME is GPL, vs. the LGPL of GTK. > > No, this is completely untrue - GNOME libraries have always been LGPL. Well, always happy to lose a fundamental misunderstanding! From john.cupitt@ng-london.org.uk Wed Jun 27 13:41:11 2001 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 068252E8E2 for ; Wed, 27 Jun 2001 13:40:00 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WJ0R; Wed, 27 Jun 2001 18:39:58 +0100 Message-ID: <3B3A191C.E67F1052@ng-london.org.uk> Date: Wed, 27 Jun 2001 18:34:20 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Filipe Bonjour Cc: GTK List Subject: Re: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour wrote: > II have several drawing options, and I want to send the > GtkGlArea widget an expose event when the user changes any of these > options. Hi Filipe, I think you can just do: gtk_widget_queue_draw( widget ); This deals with all of the signal stuff for you. HTH, John From elrin@mclink.it Wed Jun 27 13:43:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.mclink.it (net128-007.mclink.it [195.110.128.7]) by mail.gnome.org (Postfix) with ESMTP id 6D6162E8E2 for ; Wed, 27 Jun 2001 13:43:27 -0400 (EDT) Received: from localhost.localdomain (net147-015.mclink.it [195.110.147.15]) by mail.mclink.it (8.11.0/8.11.0) with SMTP id f5RHhP307810 for ; Wed, 27 Jun 2001 19:43:25 +0200 (CEST) From: Daniele Guerrieri To: gtk-list@gnome.org Date: Wed, 27 Jun 2001 19:39:31 +0200 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <01062719422701.00714@localhost.localdomain> Content-Transfer-Encoding: 8bit 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm a beginner of Gtk. I would like know how move a button in a fixed widget using the GdkSignals Thank you! From golubenkoj@columbiafunds.com Wed Jun 27 13:52:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 2DF1B2E249; Wed, 27 Jun 2001 13:52:16 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 10:50:30 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 10:50:30 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: "'gtk-list@gnome.org'" , "'gtk-devel-list@gnome.org'" Subject: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 10:50:29 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724C36C27394-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, quick question, does anyone know editor with syntax highlighting for GTK+/GNOME API? Thanks, John. -----Original Message----- From: Eric M. Monsler [mailto:emonsler@beamreachnetworks.com] Sent: Wednesday, June 27, 2001 10:41 AM To: Havoc Pennington Cc: Paul Davis; gtk-list@gnome.org Subject: Re: stacking pixmaps Havoc Pennington wrote: > > "Eric M. Monsler" writes: > > IIRC, GNOME is GPL, vs. the LGPL of GTK. > > No, this is completely untrue - GNOME libraries have always been LGPL. Well, always happy to lose a fundamental misunderstanding! _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From alfons@proteus.demon.nl Wed Jun 27 14:00:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from proteus.demon.nl (proteus.demon.nl [212.238.30.186]) by mail.gnome.org (Postfix) with ESMTP id 2A0272E8FB; Wed, 27 Jun 2001 14:00:02 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=proteus.demon.nl ident=alfons) by proteus.demon.nl with smtp (Exim 3.22 #1) id 15FJvc-00007y-00; Wed, 27 Jun 2001 20:20:40 +0200 Date: Wed, 27 Jun 2001 20:20:40 +0200 From: Alfons Hoogervorst To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Message-Id: <20010627202040.22b0356b.alfons@proteus.demon.nl> In-Reply-To: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> References: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> Organization: Doubtful X-Mailer: Sylpheed version 0.5.0claws3 (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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Lo John, On Wed, 27 Jun 2001 10:50:29 -0700 you wrote: JG>Hey, quick question, JG>does anyone know editor with syntax highlighting for GTK+/GNOME API? Yeah, Scintilla... Bye. -- the ancient ruins the former wasted they shall all rise up and restore the ruined cities desolate now for generations From golubenkoj@columbiafunds.com Wed Jun 27 14:19:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id CB5C92BC97; Wed, 27 Jun 2001 14:19:07 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 11:17:22 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 11:17:22 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E7@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 11:17:22 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724FCB828641-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks Alfons, but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. I've wrote a little plugin for Jext (jext.org) editor, to highlight GTK+/GNOME API, but it's written in Java, so it's frustrating because of Java's slow GUI, etc. (http://65.4.117.16/projects/jext/ - 2 screenies). If I can find editor that does that kind of highlighting (written for Linux ;-), it'll be very helpfull. But, I like this SciTE editor a lot, it's seems very good. Thanks again, John. -----Original Message----- From: Alfons Hoogervorst [mailto:alfons@proteus.demon.nl] Sent: Wednesday, June 27, 2001 11:21 AM To: John Golubenko Cc: gtk-list@gnome.org; gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Lo John, On Wed, 27 Jun 2001 10:50:29 -0700 you wrote: JG>Hey, quick question, JG>does anyone know editor with syntax highlighting for GTK+/GNOME API? Yeah, Scintilla... Bye. -- the ancient ruins the former wasted they shall all rise up and restore the ruined cities desolate now for generations NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From pbd@op.net Wed Jun 27 14:27:40 2001 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 158262E917; Wed, 27 Jun 2001 14:27:25 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-20.ppp.op.net [209.152.206.32]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA28109; Wed, 27 Jun 2001 14:27:06 -0400 (EDT) Message-Id: <200106271827.OAA28109@renoir.op.net> To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-reply-to: Your message of "Wed, 27 Jun 2001 11:17:22 PDT." <0E402AD0FEACD411B7C100508BCDF6110108A0E7@cmc-exchange.columbiafunds.com> Date: Wed, 27 Jun 2001 14:27:07 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thanks Alfons, >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. the GTK+ and GNOME API's are written in C. what on earth does it mean to "highlight" the API of a particular library? emacs can do what you want to. obviously, since emacs is turing-complete. --p From golubenkoj@columbiafunds.com Wed Jun 27 14:36:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 1537B2E92B; Wed, 27 Jun 2001 14:35:01 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 11:33:12 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 11:33:12 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 11:33:11 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724F96229368-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I meant that those editors hightligh only int, float, char, etc., a common keywords, but not keywords like GtkObject, GtkWidget, gtk_main_quit, etc. Also you can see what i'm talking about by visiting the url i've posted, and look at [before] and [after] screenshots. The one named [before] shows what every editor out there does, and [after] shows highlighting that i want. Emacs doesn't do it either. Of course I can modify the sources to make it work, but it's another story. Also I don't feel good about discussing it on this public list, sinse it's kinda offtopic... anyway, thanks a lot, john. -----Original Message----- From: Paul Davis [mailto:pbd@Op.Net] Sent: Wednesday, June 27, 2001 11:27 AM To: John Golubenko Cc: gtk-list@gnome.org; gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API >Thanks Alfons, >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. the GTK+ and GNOME API's are written in C. what on earth does it mean to "highlight" the API of a particular library? emacs can do what you want to. obviously, since emacs is turing-complete. --p NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From trutkin@physics.clarku.edu Wed Jun 27 15:19:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from planck.clarku.edu (planck.clarku.edu [140.232.2.12]) by mail.gnome.org (Postfix) with ESMTP id 8BEC72BCF5 for ; Wed, 27 Jun 2001 15:19:25 -0400 (EDT) Received: from trutkin (helo=localhost) by planck.clarku.edu with local-smtp (Exim 3.12 #1 (Debian)) id 15FKqR-0004fD-00 for ; Wed, 27 Jun 2001 15:19:23 -0400 Date: Wed, 27 Jun 2001 15:19:23 -0400 (EDT) From: Taybin Rutkin X-Sender: trutkin@planck.clarku.edu Reply-To: Taybin Rutkin To: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-Reply-To: <200106271827.OAA28109@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 27 Jun 2001, Paul Davis wrote: > >Thanks Alfons, > >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. > > the GTK+ and GNOME API's are written in C. what on earth does it mean > to "highlight" the API of a particular library? I know what he's asking for. I used to use a basic editor for the macintosh called FutureBasic that highlight all the macintosh system calls as well as the reserved words. Try glimmer. It seems to highlight certain gtk+ calls. Or at least it is intelligent to recognize macros and highlight those. Also, gide support two or three scripting languages to customize highlighting. That would probably be the easiest way to get what you want. And if you write a script to do that yourself, don't forget to release it; I think I might be interested in such a feature. Taybin Rutkin From sven@gimp.org Wed Jun 27 15:28:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9055BC4.dip.t-dialin.net [217.5.91.196]) by mail.gnome.org (Postfix) with ESMTP id 986642E848; Wed, 27 Jun 2001 15:28:36 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15FKri-0001Wb-00; Wed, 27 Jun 2001 21:20:42 +0200 To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API References: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> From: Sven Neumann Date: 27 Jun 2001 21:20:42 +0200 In-Reply-To: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> Message-ID: Lines: 29 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "John Golubenko" writes: > Emacs doesn't do it either. Of course I can modify the sources to make it > work, but it's another story. you don't need to modify any source. Just add a few lines to your .emacs. Something like: (custom-set-variables '(c-font-lock-extra-types (quote ("gint" "gfloat" "gchar" "gint8" "gint16" "gint32" "guint" "guint8" "guint16" "guint32" "guchar" "glong" "gboolean" "gshort" "gushort" "gulong" "gdouble" "gldouble" "gpointer" "G_\\w+" "GList" "GSList" "GFunc" "GPOINTER_\\w+" "GINT_\\w+" "GUINT_\\w+" "Gtk\\w+" "Gdk\\w+" "GTK\\w+" "GDK\\w+" "NULL" "Gimp\\w+" "GIMP\\w+" "FT_\\w+" "Pango\\w+" "PANGO\\w+" "->" "FALSE" "TRUE" "FILE" "MIN" "MAX" "CLAMP" "ABS" "DIR" "\\sw+_t" "GCim\\w+"))) You will want to modify/extend this list a bit and I'm sure there are better ways to do this, but this one works reasonably well. Salut, Sven From golubenkoj@columbiafunds.com Wed Jun 27 15:30:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 2FD6D2E887 for ; Wed, 27 Jun 2001 15:30:17 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 12:28:31 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 12:28:31 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0FC@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: "'Taybin Rutkin'" , gtk-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 12:28:30 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724EC5531657-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Taybin, You are very right. Like I've said, i've wrote an update for jext, that has GTK+ API highlighting. It took me a while to find all API calls I can find. Still, i've missed a lot. But sinse it's written in Java, and uses GUI, it's not something I'm going to use, because of slow performance of Java on the front end, etc. I've just started to write GTK+ applications, and I love it. Thanks, John. -----Original Message----- From: Taybin Rutkin [mailto:trutkin@physics.clarku.edu] Sent: Wednesday, June 27, 2001 12:19 PM To: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API On Wed, 27 Jun 2001, Paul Davis wrote: > >Thanks Alfons, > >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. > > the GTK+ and GNOME API's are written in C. what on earth does it mean > to "highlight" the API of a particular library? I know what he's asking for. I used to use a basic editor for the macintosh called FutureBasic that highlight all the macintosh system calls as well as the reserved words. Try glimmer. It seems to highlight certain gtk+ calls. Or at least it is intelligent to recognize macros and highlight those. Also, gide support two or three scripting languages to customize highlighting. That would probably be the easiest way to get what you want. And if you write a script to do that yourself, don't forget to release it; I think I might be interested in such a feature. Taybin Rutkin _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From pbd@op.net Wed Jun 27 15:34:29 2001 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 09FF22D315 for ; Wed, 27 Jun 2001 15:34:29 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-20.ppp.op.net [209.152.206.32]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA06308; Wed, 27 Jun 2001 15:34:20 -0400 (EDT) Message-Id: <200106271934.PAA06308@renoir.op.net> To: Taybin Rutkin Cc: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-reply-to: Your message of "Wed, 27 Jun 2001 15:19:23 EDT." Date: Wed, 27 Jun 2001 15:34:39 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >Thanks Alfons, >> >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. >> >> the GTK+ and GNOME API's are written in C. what on earth does it mean >> to "highlight" the API of a particular library? > >I know what he's asking for. I used to use a basic editor for the >macintosh called FutureBasic that highlight all the macintosh system calls >as well as the reserved words. OK. For emacs: (font-lock-add-keywords 'c-mode '(("gtk_widget_new" 1 font-lock-function-name-face t) ("gtk_widget_whatever" 1 font-lock-function-name-face t) .... ("GtkWidget" 1 font-lock-keyword-face t) ("GtkFrame" 1 font-lock-keyword-face t) .... )) By using etags to build a list of function names, then sed/awk/perl to transform this into an elisp statement like the one above, the job could be done extremely quickly. I don't know how quick emacs would handle this for a library with hundreds of functions but I imagine it would work pretty well. --p (who prefers his source code raw, not burnt to a multicolored crisp) From nhodgson@bigpond.net.au Wed Jun 27 18:51:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailin5.bigpond.com (juicer02.bigpond.com [139.134.6.78]) by mail.gnome.org (Postfix) with ESMTP id EB0CA2DDF4; Wed, 27 Jun 2001 18:51:33 -0400 (EDT) Received: from neil ([144.135.24.81]) by mailin5.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GFM2FC00.JPK; Thu, 28 Jun 2001 08:57:12 +1000 Received: from CPE-144-132-204-10.nsw.bigpond.net.au ([144.132.204.10]) by bwmam05.mailsvc.email.bigpond.com(MailRouter V2.9g 8335/16534); 28 Jun 2001 08:52:18 Message-ID: <033201c0ff5b$9a21b120$0acc8490@neil> From: "Neil Hodgson" To: Cc: References: <20010627193601.7F45C2E39D@mail.gnome.org> Subject: Re: editor with syntax highlighting for GTK+/GNOME API Date: Thu, 28 Jun 2001 08:50:45 +1000 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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: John Golubenko: > If I can find editor that does that kind of highlighting > (written for Linux ;-), it'll be very helpfull. But, I like > this SciTE editor a lot, it's seems very good. The current prerelease versions of Scintilla and SciTE 1.39 support a second set of keywords in the C lexer. It does not support regular expressions or prefix based keyword matching although a prefix matcher would be fairly easy to add. I'd be concerned at the performance implications of using regular expressions for this. If you want to modify the C lexer to support prefix based keyword matching scintilla/src/LexCPP.cxx is the file to modify. Prerelease 1.39 available from the Scintilla CVS at https://sourceforge.net/cvs/?group_id=2439 or as a source zip at http://www.scintilla.org/scite.zip To add the keywords in SciTE add this property listing all the keywords: keywords2.$(file.patterns.cpp)=GtkWidget GtkItemFactory GtkAccelGroup \ ... Neil From lestat.lioncourt@innocent.com Wed Jun 27 19:02:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-5-115.abo.wanadoo.fr [193.252.11.115]) by mail.gnome.org (Postfix) with ESMTP id 999C32BB2D for ; Wed, 27 Jun 2001 19:02:56 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 6FE04C0D2; Thu, 28 Jun 2001 01:02:54 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Wed, 27 Jun 2001 23:02:54 +0000 From: "David Goncalves" To: Cc: Subject: Re: Re: gtk_clist_remove : bug or undocumented feature ;) MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010627230254.6FE04C0D2@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, > > I'm currently experiencing a strange reaction from a gtk_clist. > > I have a gtk_clist configured with GTK_SELECTION_BROWSE and > > when i use gtk_clist_remove to remove the LAST row, an invisible > > row stay in the list and is unusable... > > It could be that the unusable last row is just blank space left in the > clist's enclosing window. Try setting the policy of the window that > holds the clist to allow-shrink and auto-shrink using the > gtk_window_set_policy() routine. I don't think that the last row is just a blank space because this row is clickable but when you try to get informations, from this row it fails. And i only have this problem when i remove the last line of the clist. I don't understand what's appening ;( From nhodgson@bigpond.net.au Wed Jun 27 19:22:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailin8.bigpond.com (juicer39.bigpond.com [139.134.6.96]) by mail.gnome.org (Postfix) with ESMTP id 34C102D200; Wed, 27 Jun 2001 19:22:11 -0400 (EDT) Received: from neil ([144.135.24.81]) by mailin8.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GFM3UD00.D85; Thu, 28 Jun 2001 09:27:49 +1000 Received: from CPE-144-132-204-10.nsw.bigpond.net.au ([144.132.204.10]) by bwmam05.mailsvc.email.bigpond.com(MailRouter V2.9g 8335/43883); 28 Jun 2001 09:22:55 Message-ID: <03a801c0ff5f$e1381960$0acc8490@neil> From: "Neil Hodgson" To: Cc: , Subject: Re: editor with syntax highlighting for GTK+/GNOME AP Date: Thu, 28 Jun 2001 09:21:22 +1000 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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Neil (me): > If you want to modify the C lexer to support prefix based > keyword matching scintilla/src/LexCPP.cxx is the file > to modify. Such an easy feature that its now in and available from the previously mentioned locations. Uses '^' to indicate a prefix by analogy with start-of-line regexps. Try: keywords2.$(file.patterns.cpp)=GtkWidget ^GTK_ ^gtk_ This does lose some functionality over listing all the calls which shows when you have misspelt a call by not highlighting. Neil From zaloi@yahoo.com Wed Jun 27 23:30:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14505.mail.yahoo.com (web14505.mail.yahoo.com [216.136.224.68]) by mail.gnome.org (Postfix) with SMTP id 606662E7A5 for ; Wed, 27 Jun 2001 23:30:20 -0400 (EDT) Message-ID: <20010628033019.95035.qmail@web14505.mail.yahoo.com> Received: from [161.142.78.84] by web14505.mail.yahoo.com; Wed, 27 Jun 2001 20:30:19 PDT Date: Wed, 27 Jun 2001 20:30:19 -0700 (PDT) From: mr zali Subject: gtkfilesel.c To: gtk-list@gnome.org In-Reply-To: <20010618070228.62817.qmail@web14508.mail.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear friend, I want to edit the 'GTK file selector' so that the user can browse their 'home' directory only. I have a problem with gtk-menu-option(at top of of the 'file selector' dialog box). How I want to edit the gtkfilesel.c source code so that the gtk-menu-option, display 'home directory' and forward only. Can u guide me.. :-) regards, __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From deekshit.mantampady@wipro.com Thu Jun 28 00:20:37 2001 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 00DF92C983 for ; Thu, 28 Jun 2001 00:20:31 -0400 (EDT) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id f5S9wtc13271 for ; Thu, 28 Jun 2001 09:58:55 GMT Received: from wipro.com ([192.168.22.180]) by sarovar.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GFMG4L00.G5X for ; Thu, 28 Jun 2001 09:23:09 +0530 Message-ID: <3B3AA907.11DE77FB@wipro.com> Date: Wed, 27 Jun 2001 20:48:23 -0700 From: Deekshit Mantampady X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: How to make menu insensitive 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am using "GtkItemFactory" to create menus. I want to know How I enable or disable, make it visible or invisible, dynamically. Can anybody help me to find out solution. Regards Deekshit M From suzhe@gnuchina.org Thu Jun 28 00:35:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnuchina.org (unknown [210.73.87.125]) by mail.gnome.org (Postfix) with ESMTP id 8D0212E81D for ; Thu, 28 Jun 2001 00:35:53 -0400 (EDT) Received: from gnuchina.org ([166.111.148.127]) by gnuchina.org (8.11.3/8.9.3) with ESMTP id f5S4XI929392 for ; Thu, 28 Jun 2001 12:33:18 +0800 Message-ID: <3B3AB3FA.6090801@gnuchina.org> Date: Thu, 28 Jun 2001 12:35:06 +0800 From: James Su Reply-To: suzhe@gnuchina.org User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5-1.4 i686; en-US; rv:0.9.1) Gecko/20010612 X-Accept-Language: zh-cn, zh, en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Can I get the screen resolution via Gdk/Gtk ? Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I want to get the screen resolution (dpi), but how can I do it within gdk/gtk? Regards, James Su From hp@redhat.com Thu Jun 28 01:03:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B31A92E95A for ; Thu, 28 Jun 2001 01:03:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5S53bG07866; Thu, 28 Jun 2001 01:03:37 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: suzhe@gnuchina.org Cc: gtk-list@gnome.org Subject: Re: Can I get the screen resolution via Gdk/Gtk ? References: <3B3AB3FA.6090801@gnuchina.org> From: Havoc Pennington Date: 28 Jun 2001 01:03:37 -0400 In-Reply-To: James Su's message of "Thu, 28 Jun 2001 12:35:06 +0800" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: James Su writes: > > I want to get the screen resolution (dpi), but how can I do it within > gdk/gtk? > gdk_screen_width_mm() gives size in millimeters, gdk_screen_width() size in pixels, the math to get pixels per millimeter is pretty simple. Beware though, for many X servers the millimeter size will be completely bogus. Havoc From pranjal@lgsi.co.in Thu Jun 28 01:08:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from polaris.lgsi.co.in (unknown [202.54.13.206]) by mail.gnome.org (Postfix) with ESMTP id 520B32E974 for ; Thu, 28 Jun 2001 01:08:05 -0400 (EDT) Received: from pranjal ([202.54.13.195]) by polaris.lgsi.co.in (Netscape Messaging Server 4.15) with ESMTP id GFMJWX00.QNV for ; Thu, 28 Jun 2001 10:44:57 +0530 From: "Pranjal Saikia" To: Subject: GTK FB !! Date: Thu, 28 Jun 2001 11:26:19 +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.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi !! I'm trying to develop one application using GTK FB for embedded system. Can anyone tell me abt the steps to Install as well as the verions of GTK + FB ? Regards Pranjal From linuxfun@163.com Thu Jun 28 02:27:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.163.com (unknown [202.108.44.225]) by mail.gnome.org (Postfix) with ESMTP id EDCE72BD60 for ; Thu, 28 Jun 2001 02:27:34 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp3.163.com (Postfix) with SMTP id 61A811D30C234 for ; Thu, 28 Jun 2001 14:19:51 +0800 (CST) Message-ID: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> From: "linuxfun" To: "GTK+" Subject: Hi Date: Thu, 28 Jun 2001 14:25:39 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C0FFDE.347EC640" 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.5 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_0013_01C0FFDE.347EC640 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGkNCkkgYW0gdGhlIGJlZ2lubmVyIG9nIEdUSysgYnV0IEkgbG92ZSBpdCB2ZXJ5IG11Y2guSGVy ZSBpcyBteSBwcm9ibGVvbToNCkkgY2Fubm90IGNvbXBpbGUgbXkgR1RLIHByb2dyYW1tIGhlbGxv LmMgaW4gUmVkaGF0IDYuMSx1c2UgZ2NjIGhlbGxvLmMgLW8gaGVsbG8gJ2d0ay1jb25maWctLWNm bGFncy0tbGlicycsd2h5PyBJIGluc3RhbGxlZCB3b3Jrc3RhdGlvbiByZWRoYXQuDQoNCnRoYW5r IGFsbCBvZiB5b3UhIA0K ------=_NextPart_000_0013_01C0FFDE.347EC640 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj5IaTwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgc2l6ZT0yPkkgYW0gdGhlIGJlZ2lubmVyIG9nIEdUSysgYnV0IEkgbG92ZSBpdCB2 ZXJ5IG11Y2guSGVyZSBpcyBteSANCnByb2JsZW9tOjwvRk9OVD48L0RJVj4NCjxESVY+PEZPTlQg c2l6ZT0yPkkgY2Fubm90IGNvbXBpbGUgbXkgR1RLIHByb2dyYW1tIGhlbGxvLmMgaW4gUmVkaGF0 IDYuMSx1c2UgZ2NjIA0KaGVsbG8uYyAtbyBoZWxsbyAnZ3RrLWNvbmZpZy0tY2ZsYWdzLS1saWJz Jyx3aHk/IEkgaW5zdGFsbGVkIHdvcmtzdGF0aW9uIA0KcmVkaGF0LjwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgc2l6ZT0yPjwvRk9OVD4mbmJzcDs8L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0yPnRo YW5rIGFsbCBvZiB5b3UhIDwvRk9OVD48L0RJVj48L0JPRFk+PC9IVE1MPg0K ------=_NextPart_000_0013_01C0FFDE.347EC640-- From Florent.Devin@lifl.fr Thu Jun 28 02:57:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by mail.gnome.org (Postfix) with ESMTP id 785AE2DC95 for ; Thu, 28 Jun 2001 02:57:00 -0400 (EDT) Received: from lifl.fr (brakina.lifl.fr [134.206.10.212]) by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id IAA01960 ; Thu, 28 Jun 2001 08:56:34 +0200 (MET DST) Message-ID: <3B3AD5A1.7070502@lifl.fr> Date: Thu, 28 Jun 2001 08:58:41 +0200 From: "Florent.Devin" User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: gnome/gtkcanvas References: <993663497.11889.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy wrote: > Hey.. > Ok so I've decided to go with gnomecanvas. > I'm having trouble drawing images to the canvas though... > Here's the code: > > GdkImlibImage *Image = gdk_imlib_load_image ("mypng.png"); > > /* create a new canvas */ > gtk_widget_push_visual (gdk_imlib_get_visual ()); > gtk_widget_push_colormap (gdk_imlib_get_colormap ()); > canvas = gnome_canvas_new(); > gtk_widget_pop_visual(); > gtk_widget_pop_colormap(); > . > . > . > . > gnome_canvas_item_new (gnome_canvas_root(canvas), > gnome_canvas_image_get_type (), > "image", Image, > "x", 0, > "y", 0, > "width",(double)Image->rgb_width, > "height", (double)Image->rgb_height, > NULL); > You should use "x", 0.0, "y", 0.0, This is to respect the correct type an int is not a float... and perhaps put an anchor for your image, I can't remember if it's necessary. "anchor", GTK_ANCHOR_... -- Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL) LIFL, Laboratoire d'Informatique Fondamentale de LILLE USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex From Florent.Devin@lifl.fr Thu Jun 28 03:02:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by mail.gnome.org (Postfix) with ESMTP id 1ECF62E381 for ; Thu, 28 Jun 2001 03:02:07 -0400 (EDT) Received: from lifl.fr (brakina.lifl.fr [134.206.10.212]) by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id JAA02326 ; Thu, 28 Jun 2001 09:02:03 +0200 (MET DST) Message-ID: <3B3AD6EB.5070405@lifl.fr> Date: Thu, 28 Jun 2001 09:04:11 +0200 From: "Florent.Devin" User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: en MIME-Version: 1.0 To: Filipe Bonjour Cc: GTK List Subject: Re: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour wrote: > Hi, > > I'm just starting programming with GTK, and I'm having problems with > events. Specifically, I'm writing a program (using GTK/Gnome built by > Glade) to visualize data in 2D/3D using a GtkGlArea widget (a subclass > of GtkDrawingArea). > > In short, I have several drawing options, and I want to send the > GtkGlArea widget an expose event when the user changes any of these > options. I have tried things like: > > gtk_signal_emit_by_name(glarea, "expose_event"); > gtk_signal_emit_by_name(glarea, "expose-event"); > > (which cause a SIGSEGV) and > > gtk_signal_emit(glarea, 32); > gtk_signal_emit(glarea, GDK_EXPOSE); > gtk_signal_emit(glarea, gtk_signal_lookup("expose_event", > GTK_TYPE_GL_AREA)); > gtk_signal_emit(glarea, gtk_signal_lookup("expose-event", > GTK_TYPE_GL_AREA)); > > which are at best ignored. So I have a few questions... > > 1) Where are the signal numbers and names defined? I couldn't find them > anywhere. For gtk_signal_emit I find it hard to believe that we are > expected to give an actual number, I thought there would be some > defined symbols, such as "#define GTK_SIGNAL_EXPOSE 32" or something. > gtk_signal_emit_by_name (GTK_OBJECT (widget), "expose_event", widget); which mean that you have to provide all parameter of the function which is call when the signal is emited. In my case the prototype is : gint f (GtkWidget *widget, GdkEventExpose *event, gpointer userdata) Hope this help -- Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL) LIFL, Laboratoire d'Informatique Fondamentale de LILLE USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex From craig.emery@3glab.com Thu Jun 28 03:13:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 1AD1D2E80D for ; Thu, 28 Jun 2001 03:13:33 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15FVzW-0004Vy-00 for gtk-list@gnome.org; Thu, 28 Jun 2001 08:13:30 +0100 Message-ID: <3B3AD8F4.50905@3glab.com> Date: Thu, 28 Jun 2001 08:12:52 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010626 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK List Subject: Re: How to make menu insensitive References: <3B3AA907.11DE77FB@wipro.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15FVzW-0004Vy-00*xrg5tS1097w* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After setting up the menu with the item factory I use gtk_item_factory_get_widget () to get the widget that's created with the path of the item I want. Then (if, say, it's a check-box item) you can call gtk_check_menu_item_set_active (...) might not be the best method, but works for me. Craig. Deekshit Mantampady wrote: >Hi, > > I am using "GtkItemFactory" to create menus. I want to know How I >enable or disable, make it visible or invisible, dynamically. Can >anybody help me to find out solution. > >Regards >Deekshit M > From craig.emery@3glab.com Thu Jun 28 04:03:23 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 604CB2BD26 for ; Thu, 28 Jun 2001 04:03:21 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15FWlj-0008S8-00 for gtk-list@gnome.org; Thu, 28 Jun 2001 09:03:19 +0100 Message-ID: <3B3AE4A2.9050903@3glab.com> Date: Thu, 28 Jun 2001 09:02:42 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010626 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK+ Subject: Re: Hi References: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15FWlj-0008S8-00*9PQ7TU4YBSY* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yup. Looks like you're using the wrong quotes in your compile command. You've got "single quotation marks" (i.e. ' ) but you need apostrophies (i.e. ` ) On my keyboard, the apostrophy is up by the non-keypad 1 key. Apostrophies (I've heard them called ticks too; that's only one sylable, much easier to "talk") mean: "run this command and put it's output **here**" So the output of the call to gtk-config (that gives the compiler flags, in your case, for bith #include directives and linking) will be supplied to gcc. This is failrly simple shell stuff and, incidentally, nothing to do with GTK+. The shell is your friend. Learn it well. Craig. linuxfun wrote: > Hi > > I am the beginner og GTK+ but I love it very much.Here is my probleom: > > I cannot compile my GTK programm hello.c in Redhat 6.1,use gcc hello.c > -o hello 'gtk-config--cflags--libs',why? I installed workstation redhat. > > thank all of you! > From sven@gimp.org Thu Jun 28 05:01:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A24.dip.t-dialin.net [217.80.26.36]) by mail.gnome.org (Postfix) with ESMTP id 832F22DEA3 for ; Thu, 28 Jun 2001 05:01:26 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15FX6T-000892-00; Thu, 28 Jun 2001 10:24:45 +0200 To: "Florent.Devin" Cc: Filipe Bonjour , GTK List Subject: Re: Signals References: <3B3AD6EB.5070405@lifl.fr> From: Sven Neumann Date: 28 Jun 2001 10:24:45 +0200 In-Reply-To: <3B3AD6EB.5070405@lifl.fr> Message-ID: Lines: 19 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "Florent.Devin" writes: > gtk_signal_emit_by_name (GTK_OBJECT (widget), "expose_event", widget); > > which mean that you have to provide all parameter of the function which > is call when the signal is emited. > > In my case the prototype is : > gint f (GtkWidget *widget, GdkEventExpose *event, gpointer userdata) and you still should _not_ create synthetic expose events, but use gtk_widget_queue_draw() instead. Salut, Sven From john.cupitt@ng-london.org.uk Thu Jun 28 06:57:55 2001 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 822572DBB9 for ; Thu, 28 Jun 2001 06:57:55 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WKZX; Thu, 28 Jun 2001 11:57:54 +0100 Message-ID: <3B3B0C5F.A714E371@ng-london.org.uk> Date: Thu, 28 Jun 2001 11:52:15 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Craig Emery Cc: GTK List Subject: Re: How to make menu insensitive References: <3B3AA907.11DE77FB@wipro.com> <3B3AD8F4.50905@3glab.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Craig Emery wrote: > > After setting up the menu with the item factory I use > gtk_item_factory_get_widget () > to get the widget that's created with the path of the item I want. > > Then (if, say, it's a check-box item) you can call > > gtk_check_menu_item_set_active (...) > > might not be the best method, but works for me. > > Craig. > > Deekshit Mantampady wrote: > > >Hi, > > > > I am using "GtkItemFactory" to create menus. I want to know How I > >enable or disable, make it visible or invisible, dynamically. Can > >anybody help me to find out solution. > > > >Regards > >Deekshit M Hi, you can also use gtk_widget_show()/gtk_widget_hide() to make menu items appear and disappear, and gtk_widget_set_sensitive() to make items grey out/not grey out. John From maiano@ensma.fr Thu Jun 28 07:06:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from graal.ensma.fr (graal.ensma.fr [193.55.167.3]) by mail.gnome.org (Postfix) with ESMTP id 353C52DE4C for ; Thu, 28 Jun 2001 07:06:06 -0400 (EDT) Received: from lisi-linux.ensma.fr (lisi-linux.ensma.fr [193.55.163.95]) by graal.ensma.fr (8.9.1b+Sun/8.9.1) with SMTP id NAA02999 for ; Thu, 28 Jun 2001 13:04:57 +0100 (WET DST) From: S M Date: Thu, 28 Jun 2001 11:05:07 GMT Message-ID: <20010628.11050700@lisi-linux.ensma.fr> Subject: Drag and Drop To: gtk-list@gnome.org X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Linux) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary= "------------=_4D4800C722E808580338" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------=_4D4800C722E808580338 Content-Description: filename="text1.txt" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I have got few questions about Drag and Drop: First, At which time are released the following signals: =AB drag-begin = =BB,=20 =AB drag-end =BB, =AB drag-data-get =BB, =AB drag-data-received =BB, =AB= drag-motion =BB,=20 =AB drag-drop =BB, =AB drag-leave =BB, =AB drag-data-delete =BB? Then, What do we exactly obtain in GdkDragContext? And, How do we get the destination tree position when we perform a Drag = and Drop?=20 What about the use of x and y in =AB drag-data-received =BB callback, fo= r a=20 tree? ? S. Maiano --------------=_4D4800C722E808580338 Content-Description: filename="text1.html" Content-Type: text/html Content-Transfer-Encoding: quoted-printable Drag and Drop
Hi,

  I have got few questions about Drag and Drop:

First, At which time are released the following signals:
« drag-begin », =
« drag-end », « drag-data-get &raq=
uo;,
« drag-data-received », « drag-motion&n=
bsp;», « drag-drop », « drag-leav=
e »,
« drag-data-delete »?

Then, What do we exactly obtain in Gdk=
DragContext?


And, How do we get the destination tre=
e position when we perform a Drag
and Drop?=20
What about the use of x and y in « drag-data-received &r=
aquo; callback, for a
tree? ?

S. Maiano
--------------=_4D4800C722E808580338-- From mark@winksmith.com Thu Jun 28 09:35:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from internal.winksmith.com (dsl254-080-158.nyc1.dsl.speakeasy.net [216.254.80.158]) by mail.gnome.org (Postfix) with ESMTP id 5CDA22CE47 for ; Thu, 28 Jun 2001 09:35:27 -0400 (EDT) Received: from alpha.winksmith.com (IDENT:root@alpha.winksmith.com [192.168.1.10]) by internal.winksmith.com (8.11.0/8.11.0) with ESMTP id f5SDYvo10136; Thu, 28 Jun 2001 09:34:57 -0400 Received: (from mark@localhost) by alpha.winksmith.com (8.11.0/8.11.0) id f5SDZAL18031; Thu, 28 Jun 2001 09:35:10 -0400 Date: Thu, 28 Jun 2001 09:35:07 -0400 From: mark@winksmith.com To: gtk-list@gnome.org Cc: Judd Montgomery Subject: calendar widget on alpha/rh7.0 Message-ID: <20010628093507.A18013@winksmith.com> Reply-To: mark@winksmith.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using a great application called jpilot on my DEC alpha. The operating system is RH7.0 (gtk+1.2.8). The program works pretty good except for the GtkCalendar widget. It gets all vertically squeezed. This only occurs on the alpha architecture. gtk 1.2.8 works as expected on intel. I have a small-ish program (supplied by judd, email listed above) which creates the defect. I can also supply 4-5k jpg snapshots of the squeezing effect. I researched the bugzilla database on rh and for gtk, did a google search, and searched the mail archives, but couldn't find any mention of this phenomenon. Is anyone familiar with this? can anyone help me? -- Mark Smith mark@winksmith.com From rbultje@ronald.bitfreak.net Thu Jun 28 16:30:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 5CA192BD2A for ; Thu, 28 Jun 2001 16:30:16 -0400 (EDT) Received: from [192.168.0.112] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5SLC0F04230 for ; Thu, 28 Jun 2001 23:12:00 +0200 (CEST) Subject: bug? From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Jun 2001 22:30:05 +0200 Message-Id: <993760215.9692.2.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi people, I have a window of two buttons and one label in a hbox. If I change the text in the label, as a reaction on a signal, the hbox will suddenly enlarge and be much larger than it should be... Code of the window: hbox2 = gtk_hbox_new(FALSE, 10); button = gtk_button_new(); //_with_label("Stop []"); /* kill */ pixmap_widget = gtk_widget_from_xpm_data(editor_stop_xpm); gtk_container_add(GTK_CONTAINER(button), pixmap_widget); gtk_widget_show (pixmap_widget); gtk_tooltips_set_tip(tooltip, button, "Stop Preview Video Stream", NULL); gtk_widget_set_usize(button, 32, 32); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(stop_scene_transition), NULL); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE,FALSE, 0); gtk_widget_show (button); button = gtk_button_new(); //_with_label("Play |>"); /* lavpipe | yuvplay */ pixmap_widget = gtk_widget_from_xpm_data(editor_play_xpm); gtk_container_add(GTK_CONTAINER(button), pixmap_widget); gtk_widget_show (pixmap_widget); gtk_tooltips_set_tip(tooltip, button, "Preview the Scene Transition", NULL); gtk_widget_set_usize(button, 32, 32); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(play_scene_transition), (gpointer)options); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE,FALSE, 0); gtk_widget_show (button); sprintf(temp, "0 / %d - 0:00:00.00", GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1); preview_frame_count_label = gtk_label_new(temp); gtk_box_pack_start (GTK_BOX (hbox2), preview_frame_count_label, TRUE,FALSE, 0); gtk_widget_show (preview_frame_count_label); gtk_box_pack_start (GTK_BOX (vbox2), hbox2, TRUE, FALSE, 0); gtk_widget_show(hbox2); The signal does the following: char temp[64]; int d,h,m,s,f; sscanf(msg, "Playing frame %d - %d:%d:%d.%d", &d, &h, &m, &s, &f); sprintf(temp, "%d / %d - %d:%2.2d:%2.2d.%2.2d", d, GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1, h,m,s,f); gtk_label_set_text(GTK_LABEL(preview_frame_count_label), temp); And the first time this signal is called, the hbox enlarges. After that, I can resize the window and it will stay small until I get back to another callback which sets it back to the original state: char temp[64]; sprintf(temp, "0 / %d - 0:00:00.00" , GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1); gtk_label_set_text(GTK_LABEL(preview_frame_count_label), temp); Then, it gets big again. Is this a (known) bug? And is there a way to solve this? Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From pbd@op.net Thu Jun 28 17:32:40 2001 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 A83072BB01 for ; Thu, 28 Jun 2001 17:32:39 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-16.ppp.op.net [209.152.206.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id RAA03942; Thu, 28 Jun 2001 17:32:30 -0400 (EDT) Message-Id: <200106282132.RAA03942@renoir.op.net> To: Ronald Bultje Cc: GTK Mailing List Subject: Re: bug? In-reply-to: Your message of "28 Jun 2001 22:30:05 +0200." <993760215.9692.2.camel@tux> Date: Thu, 28 Jun 2001 17:32:59 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have a window of two buttons and one label in a hbox. >If I change the text in the label, as a reaction on a signal, the hbox >will suddenly enlarge and be much larger than it should be... labels (and containers) expand to display their contents unless told otherwise. whats the bug? if you want the box to be of a fixed size, use gtk_widget_set_usize(). --p From ardm2@cam.ac.uk Thu Jun 28 20:53:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from orange.csi.cam.ac.uk (orange.csi.cam.ac.uk [131.111.8.77]) by mail.gnome.org (Postfix) with ESMTP id 3CD1A2CA8C for ; Thu, 28 Jun 2001 20:53:44 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by orange.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FmXX-0006sq-00 for gtk-list@gnome.org; Fri, 29 Jun 2001 01:53:43 +0100 Subject: GC's From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 29 Jun 2001 01:56:16 +0000 Message-Id: <993779777.4838.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, I'm trying to get the hang of GdkGC's but I can't find any decent documentation... For example, if I wanted to draw something in, say, red on a pixmap, how would I go about that? I currently do this, but it doesn't seem to work GdkGc selectedGC; //I think the following line is the problem // I have tried this with the pixmap instead of widget->window // but then the colormap is null.. with this code, nothing happens GdkColormap *cmap = gdk_window_get_colormap (widget->window); GdkColor cred; cred.red =1.0; cred.green = 0; cred.blue = 0; gdk_color_alloc (cmap, &cred); selectedGC = gdk_gc_new (pictureBuff); gdk_gc_set_foreground (selectedGC, &cred); cheers, Alex Mathy From linuxfun@163.com Thu Jun 28 21:47:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.163.com (unknown [202.108.44.225]) by mail.gnome.org (Postfix) with ESMTP id B47C92BB98 for ; Thu, 28 Jun 2001 21:47:06 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp3.163.com (Postfix) with SMTP id 94ED11D4D35B0; Fri, 29 Jun 2001 09:27:32 +0800 (CST) Message-ID: <001701c1003b$8155d140$8002a8c0@SHECA.COM> From: "linuxfun" To: "Craig Emery" , "GTK+" References: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> <3B3AE4A2.9050903@3glab.com> Subject: Re: Hi Date: Fri, 29 Jun 2001 09:33:24 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: RGVhciBDcmFpZyBFbWVyeToNClRoYW5rIHlvdSB2ZXJ5IG11Y2ggZm9yIHlvdXIgcmVwbHkuDQpJ IGFtIGEgQ2hpbmVzZSBib3kgYW5kIGJlZ2luIHRvIGxlYXJuIHByb2dyYW1taW5nIG9uIExpbnV4 Lkl0J3MgbXkgaW50ZXJlc3QuQnV0IGF0IHRoZSB2ZXJ5IGJlZ2lubmluZyAsZXZlcnl0aGluZyBz ZWVtcyB0b28gZGlmZmljdWx0LjopIEFueXdheSBJIGxvdmUgdGhpcy4NCmF0ICMgLEkgdHlwZSBn dGstY29uZmlnIC0tdmVyc2lvbiAsaXQgcmVwbHlzIDoxLjIuNSxzbyBpdCBzZWVtcyB0aGF0IHRo ZSBHVEsrIGlzIGdvaW5nIHdlbGw/DQphbmQgSSAjbWFuIGd0ay1jb25maWcgdG8gZ2V0IGhlbHAu QnV0IEkgZG8gbm90IGtub3cgdGhlIHJlbGF0aW9uc2hpcCBiZXR3ZWVuICIjZ2NjIC1vIGRlc3Qu YyBzb3VyY2UuYyBgZ3RrLWNvbmcuLi4uLi4uYCIgYW5kIGNvbW1hbmQgImd0ay1jb25maWciLGNv dWxkIHlvdSB0ZWxsIG1lIHdoZW4geW91IGFyZSBmcmVlPw0KdGhhbmtzIGEgbG90IQ0KUFM6Zm9y Z2l2ZSBtZSB0aGF0IG15IGVuZ2xpc2ggaXMgbm90IGZsdWVudC4NCg0KLS0tLS0gT3JpZ2luYWwg TWVzc2FnZSAtLS0tLSANCkZyb206ICJDcmFpZyBFbWVyeSIgPGNyYWlnLmVtZXJ5QDNnbGFiLmNv bT4NClRvOiAiR1RLKyIgPGd0ay1saXN0QGdub21lLm9yZz4NClNlbnQ6IFRodXJzZGF5LCBKdW5l IDI4LCAyMDAxIDQ6MDIgUE0NClN1YmplY3Q6IFJlOiBIaQ0KDQoNCj4gWXVwLiBMb29rcyBsaWtl IHlvdSdyZSB1c2luZyB0aGUgd3JvbmcgcXVvdGVzIGluIHlvdXIgY29tcGlsZSBjb21tYW5kLg0K PiANCj4gWW91J3ZlIGdvdCAic2luZ2xlIHF1b3RhdGlvbiBtYXJrcyIgKGkuZS4gJyApIGJ1dCB5 b3UgbmVlZCBhcG9zdHJvcGhpZXMNCj4gKGkuZS4gYCApDQo+IE9uIG15IGtleWJvYXJkLCB0aGUg YXBvc3Ryb3BoeSBpcyB1cCBieSB0aGUgbm9uLWtleXBhZCAxIGtleS4NCj4gDQo+IEFwb3N0cm9w aGllcyAoSSd2ZSBoZWFyZCB0aGVtIGNhbGxlZCB0aWNrcyB0b287IHRoYXQncyBvbmx5IG9uZSBz eWxhYmxlLA0KPiBtdWNoIGVhc2llciB0byAidGFsayIpIG1lYW46ICJydW4gdGhpcyBjb21tYW5k IGFuZCBwdXQgaXQncyBvdXRwdXQgKipoZXJlKioiDQo+IA0KPiBTbyB0aGUgb3V0cHV0IG9mIHRo ZSBjYWxsIHRvIGd0ay1jb25maWcgKHRoYXQgZ2l2ZXMgdGhlIGNvbXBpbGVyIGZsYWdzLA0KPiBp biB5b3VyIGNhc2UsIGZvciBiaXRoICNpbmNsdWRlIGRpcmVjdGl2ZXMgYW5kIGxpbmtpbmcpIHdp bGwgYmUgc3VwcGxpZWQNCj4gdG8gZ2NjLg0KPiANCj4gVGhpcyBpcyBmYWlscmx5IHNpbXBsZSBz aGVsbCBzdHVmZiBhbmQsIGluY2lkZW50YWxseSwgbm90aGluZyB0byBkbyB3aXRoDQo+IEdUSysu DQo+IA0KPiBUaGUgc2hlbGwgaXMgeW91ciBmcmllbmQuIExlYXJuIGl0IHdlbGwuDQo+IA0KPiBD cmFpZy4NCj4gDQo+IGxpbnV4ZnVuIHdyb3RlOg0KPiANCj4gPiBIaQ0KPiA+DQo+ID4gSSBhbSB0 aGUgYmVnaW5uZXIgb2cgR1RLKyBidXQgSSBsb3ZlIGl0IHZlcnkgbXVjaC5IZXJlIGlzIG15IHBy b2JsZW9tOg0KPiA+DQo+ID4gSSBjYW5ub3QgY29tcGlsZSBteSBHVEsgcHJvZ3JhbW0gaGVsbG8u YyBpbiBSZWRoYXQgNi4xLHVzZSBnY2MgaGVsbG8uYw0KPiA+IC1vIGhlbGxvICdndGstY29uZmln LS1jZmxhZ3MtLWxpYnMnLHdoeT8gSSBpbnN0YWxsZWQgd29ya3N0YXRpb24gcmVkaGF0Lg0KPiA+ DQo+ID4gdGhhbmsgYWxsIG9mIHlvdSENCj4gPg0KPiANCj4gDQo+IA0KPiBfX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPiBndGstbGlzdCBtYWlsaW5nIGxp c3QNCj4gZ3RrLWxpc3RAZ25vbWUub3JnDQo+IGh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFu L2xpc3RpbmZvL2d0ay1saXN0DQo= From topper@virginia.edu Thu Jun 28 22:45:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 9BF9B2DBE0 for ; Thu, 28 Jun 2001 22:45:22 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa27826; 28 Jun 2001 22:45 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id WAA12245 for ; Thu, 28 Jun 2001 22:45:20 -0400 (EDT) Message-ID: <3B3BE054.45BDDCFA@virginia.edu> Date: Thu, 28 Jun 2001 21:56:37 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to set gtk_entry size? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm creating a small window that takes in parameters for the creation of objects on the fly. So I'm using a bunch of gtk_entrys to grab those settings. But I seem unable to control the actual (physical) width of these entries. Using gtk_entry_max_length() has no effect on that. I *guess* I could use gtk_widget_set_usize() but would rather not since it uses pixel values. Thanks, DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From pbd@op.net Thu Jun 28 23:20:02 2001 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 B684E2EA5A for ; Thu, 28 Jun 2001 23:19:44 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-1a.ppp.op.net [209.152.194.122]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA01237; Thu, 28 Jun 2001 23:19:10 -0400 (EDT) Message-Id: <200106290319.XAA01237@renoir.op.net> To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "Thu, 28 Jun 2001 21:56:37 EDT." <3B3BE054.45BDDCFA@virginia.edu> Date: Thu, 28 Jun 2001 23:19:49 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I'm creating a small window that takes in parameters for the creation of >objects on the fly. So I'm using a bunch of gtk_entrys to grab those >settings. But I seem unable to control the actual (physical) width of >these entries. Using gtk_entry_max_length() has no effect on that. > >I *guess* I could use gtk_widget_set_usize() but would rather not since >it uses pixel values. my approach to this is to: 1) determine the longest string that will appear in the entry 2) use gdk_string_extents to get the width of that string in the particular style in use for the entry widget 3) use gtk_widget_set_usize to that size to demonstrate this function (which i trust made it into GTK+ 1.3), i enclose (once again): /* Copyright (C) 1998-99 Paul Barton-Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. $Id: gtkutils.c,v 1.1 1999/11/29 18:38:11 pbd Exp $ */ #include void gtk_widget_set_usize_to_display_given_text (GtkWidget *w, const gchar *text, gint hpadding, gint vpadding) { guint width; guint lbearing; guint rbearing; guint ascent; guint descent; gdk_string_extents (w->style->font, text, &lbearing, &rbearing, &width, &ascent, &descent); gtk_widget_set_usize (w, width+hpadding, ascent+descent+vpadding); } From rbultje@ronald.bitfreak.net Fri Jun 29 02:39:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id 689E02BEA6 for ; Fri, 29 Jun 2001 02:39:11 -0400 (EDT) Received: from Ronald.ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id IAA24943; Fri, 29 Jun 2001 08:39:07 +0200 (CEST) Message-Id: <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> X-Sender: rbultje@ronald.bitfreak.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 29 Jun 2001 08:38:55 +0200 To: Paul Davis From: Ronald Bultje Subject: Re: bug? Cc: gtk-list@gnome.org In-Reply-To: <200106282132.RAA03942@renoir.op.net> References: 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: At 17:32 28-06-2001 -0400, you wrote: > >I have a window of two buttons and one label in a hbox. > >If I change the text in the label, as a reaction on a signal, the hbox > >will suddenly enlarge and be much larger than it should be... > >labels (and containers) expand to display their contents unless told >otherwise. > >whats the bug? > >if you want the box to be of a fixed size, use gtk_widget_set_usize(). The content of the label is *much* smaller than the size is expands to, that's the bug/problem. The content or "size of content" does not change. It has the same number of characters, even. But the hbox still expands and directly after that I can make the window smaller so it expands to a higher size than it needs...... That does not sound like how it should be to me, but I could be wrong of course. Anyway, I'll try using the set_usize, although not the nicest solution. Ronald From rbultje@ronald.bitfreak.net Fri Jun 29 02:42:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.127.132]) by mail.gnome.org (Postfix) with ESMTP id 8E5302EA97 for ; Fri, 29 Jun 2001 02:42:34 -0400 (EDT) Received: from Ronald.ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp3.xs4all.nl (8.9.3/8.9.3) with ESMTP id IAA17002; Fri, 29 Jun 2001 08:42:31 +0200 (CEST) Message-Id: <5.1.0.14.0.20010629084054.00a04670@ronald.bitfreak.net> X-Sender: rbultje@ronald.bitfreak.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 29 Jun 2001 08:42:19 +0200 To: Alexandre Mathy , gtk-list@gnome.org From: Ronald Bultje Subject: Re: GC's In-Reply-To: <993779777.4838.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: At 01:56 29-06-2001 +0000, Alexandre Mathy wrote: >cred.red =1.0; That should be 1.0 * 65535.0 GdkColors work with [0-65535] rather than [0.0-1.0]. Ronald From Steph.Fox@btinternet.com Fri Jun 29 06:18:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id D00672EACB for ; Fri, 29 Jun 2001 06:18:55 -0400 (EDT) Received: from [213.1.74.67] (helo=t2r1o8) by protactinium with smtp (Exim 3.22 #9) id 15FvMP-00056P-00 for gtk-list@gnome.org; Fri, 29 Jun 2001 11:18:49 +0100 Message-ID: <026c01c10084$e4df3140$c2107bd5@t2r1o8> From: "Steph" To: Subject: GTK WINDOWS PORT Date: Fri, 29 Jun 2001 11:18:43 +0100 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello ppl I come of the PHP-GTK community & have several queries re the windows = port which hopefully someone here can assist with. First off (tester question to see if I'm in the right place) - GtkText = set_line_wrap() is putting \r returns (little black boxes) at every = wrap. =20 We're using 1.3 Any knowledge/comments, anyone? ty Steph From binnema@djcb.dyndns.org Wed Jun 27 15:59:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from djcb.dyndns.org (29dyn214.dh.casema.net [213.17.5.214]) by mail.gnome.org (Postfix) with SMTP id 5C2912DEF0 for ; Wed, 27 Jun 2001 15:59:37 -0400 (EDT) Received: (qmail 30366 invoked by uid 550); 27 Jun 2001 20:00:57 -0000 Received: from unknown (192.168.1.2) by 192.168.1.1 with QMQP; 27 Jun 2001 20:00:57 -0000 Date: Wed, 27 Jun 2001 22:08:31 +0200 From: "Dirk-Jan C. Binnema" To: gtk-list@gnome.org Cc: gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Message-ID: <20010627220830.A910@mindcrime.djb.nl> Reply-To: bulkmeel@yahoo.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.18i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed Jun 27, 2001 at 09:20:42PM +0200, Sven Neumann wrote: > (custom-set-variables > '(c-font-lock-extra-types (quote ("gint" "gfloat" "gchar" > "gint8" "gint16" "gint32" "guint" "guint8" "guint16" > "guint32" "guchar" "glong" "gboolean" "gshort" "gushort" > "gulong" "gdouble" "gldouble" "gpointer" "G_\\w+" > "GList" "GSList" "GFunc" "GPOINTER_\\w+" "GINT_\\w+" "GUINT_\\w+" > "Gtk\\w+" "Gdk\\w+" "GTK\\w+" "GDK\\w+" "NULL" > "Gimp\\w+" "GIMP\\w+" > "FT_\\w+" > "Pango\\w+" "PANGO\\w+" > "->" "FALSE" "TRUE" "FILE" "MIN" "MAX" "CLAMP" "ABS" "DIR" "\\sw+_t" > "GCim\\w+"))) > > You will want to modify/extend this list a bit and I'm sure there are > better ways to do this, but this one works reasonably well. Indeed; there's an OpenGL mode for emacs that goes a step further, and has built in completion for functions, knows about their args etc. Something like that would certainly be nice for GTK+ (probably best with separate glib.el, gtk.el and gnome.el), but would be a *lot* of work. Well, at least we can use tags. --Dirk-Jan. From andres_giraldo@yahoo.com Fri Jun 29 10:05:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11503.mail.yahoo.com (web11503.mail.yahoo.com [216.136.172.35]) by mail.gnome.org (Postfix) with SMTP id 234CD2BB19 for ; Fri, 29 Jun 2001 10:05:40 -0400 (EDT) Message-ID: <20010629140539.42763.qmail@web11503.mail.yahoo.com> Received: from [209.205.77.165] by web11503.mail.yahoo.com; Fri, 29 Jun 2001 07:05:39 PDT Date: Fri, 29 Jun 2001 07:05:39 -0700 (PDT) From: "Andrés" Giraldo Subject: How gtk_widget_hide works? To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to set unvisible a window, using: GtkWidget *window; gtk_widget_hide (window); but it doesn't work... I'm just need to hide a window to set it unvisible for a while, so what am I doing wrong? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From pbd@op.net Fri Jun 29 10:35:47 2001 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 77FB42EB0F for ; Fri, 29 Jun 2001 10:35:40 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA14511; Fri, 29 Jun 2001 10:35:36 -0400 (EDT) Message-Id: <200106291435.KAA14511@renoir.op.net> To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug? In-reply-to: Your message of "Fri, 29 Jun 2001 08:38:55 +0200." <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> Date: Fri, 29 Jun 2001 10:36:21 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >The content of the label is *much* smaller than the size is expands to, >that's the bug/problem. >The content or "size of content" does not change. It has the same number of >characters, even. But the hbox still expands and directly after that I can >make the window smaller so it expands to a higher size than it needs...... >That does not sound like how it should be to me, but I could be wrong of >course. is the container set to "homogeneous" ? if so, all of its children are required to be of the same size. did you unset this? also, what padding and expand options did you use? --p From hp@redhat.com Fri Jun 29 10:43:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 296402EB10 for ; Fri, 29 Jun 2001 10:43:54 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEhdb01031; Fri, 29 Jun 2001 10:43:39 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Steph" Cc: Subject: Re: GTK WINDOWS PORT References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> From: Havoc Pennington Date: 29 Jun 2001 10:43:39 -0400 In-Reply-To: "Steph"'s message of "Fri, 29 Jun 2001 11:18:43 +0100" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Steph" writes: > Hello ppl > > I come of the PHP-GTK community & have several queries re the windows port which hopefully someone here can assist with. > > First off (tester question to see if I'm in the right place) - GtkText set_line_wrap() is putting \r returns (little black boxes) at every wrap. > > We're using 1.3 > Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) It's on-topic to ask about GTK win32 here, but I believe the gimp-win32 list (? something like that) may have more people who knows win32-specific answers. Havoc From hp@redhat.com Fri Jun 29 10:45:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A436A2EB1A for ; Fri, 29 Jun 2001 10:45:18 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEiwP01037; Fri, 29 Jun 2001 10:44:58 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106290319.XAA01237@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 10:44:58 -0400 In-Reply-To: Paul Davis's message of "Thu, 28 Jun 2001 23:19:49 -0400" Message-ID: Lines: 8 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > to demonstrate this function (which i trust made it into GTK+ 1.3), i > enclose (once again): What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). Havoc From andrei@ispi.net Fri Jun 29 10:47:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wynton.ispi.net (wynton.ispi.net [206.131.193.10]) by mail.gnome.org (Postfix) with ESMTP id DA0FA2BB41 for ; Fri, 29 Jun 2001 10:47:33 -0400 (EDT) Received: by ispi.net (secure version) id JAA10142; Fri, 29 Jun 2001 09:47:17 -0500 X-Authentication-Warning: cassandra.ispi.prv: andrey set sender to andrei@ispi.net using -f Date: Fri, 29 Jun 2001 09:47:17 -0500 From: Andrei Zmievski To: Havoc Pennington Cc: Steph , gtk-list@gnome.org Subject: Re: GTK WINDOWS PORT Message-ID: <20010629094717.P9196@ispi.net> References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> 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 Fri, Jun 29, 2001 at 10:43:39AM -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, 29 Jun 2001, Havoc Pennington wrote: > > We're using 1.3 > > > > Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to > define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) > > It's on-topic to ask about GTK win32 here, but I believe the > gimp-win32 list (? something like that) may have more people who knows > win32-specific answers. I have to correct her, PHP-GTK users have to use Gtk+ 1.3 for Windows because it's the one with the least bugs -- they don't compile it. -Andrei * We are not a clone. * From hp@redhat.com Fri Jun 29 10:47:42 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2B2C92BB41 for ; Fri, 29 Jun 2001 10:47:42 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TElRL01040; Fri, 29 Jun 2001 10:47:27 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: GC's References: <993779777.4838.0.camel@ardm2> From: Havoc Pennington Date: 29 Jun 2001 10:47:26 -0400 In-Reply-To: Alexandre Mathy's message of "29 Jun 2001 01:56:16 +0000" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy writes: > Hey, > I'm trying to get the hang of GdkGC's but I can't find any decent > documentation... The "scribble" example in the tutorial may help, and the Xlib Programming Manual (vol 1) is good if you want tons of details. > GdkGc selectedGC; > > //I think the following line is the problem > // I have tried this with the pixmap instead of widget->window > // but then the colormap is null.. with this code, nothing happens > GdkColormap *cmap = gdk_window_get_colormap (widget->window); Suggest simply: gtk_widget_get_colormap (widget) > cred.red =1.0; These values are in the range [0,G_MAXUSHORT] Havoc From hp@redhat.com Fri Jun 29 10:49:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B4A1A2EAFD for ; Fri, 29 Jun 2001 10:49:03 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEmm101043; Fri, 29 Jun 2001 10:48:48 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: Paul Davis , gtk-list@gnome.org Subject: Re: bug? References: <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> From: Havoc Pennington Date: 29 Jun 2001 10:48:48 -0400 In-Reply-To: Ronald Bultje's message of "Fri, 29 Jun 2001 08:38:55 +0200" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > The content of the label is *much* smaller than the size is expands to, that's > the bug/problem. > The content or "size of content" does not change. It has the same number of > characters, even. But the hbox still expands and directly after that I can make > the window smaller so it expands to a higher size than it needs...... That does > not sound like how it should be to me, but I could be wrong of > course. No, that shouldn't happen. If you can come up with a test case we can compile, it'd be great if you could file a bug on bugzilla.gnome.org. Havoc From hp@redhat.com Fri Jun 29 10:50:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EB40B2EAFD for ; Fri, 29 Jun 2001 10:50:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEnpp01046; Fri, 29 Jun 2001 10:49:51 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "=?iso-8859-1?q?Andr=E9s?=" Giraldo Cc: Gtk List Subject: Re: How gtk_widget_hide works? References: <20010629140539.42763.qmail@web11503.mail.yahoo.com> From: Havoc Pennington Date: 29 Jun 2001 10:49:51 -0400 In-Reply-To: "=?iso-8859-1?q?Andr=E9s?=" Giraldo's message of "Fri, 29 Jun 2001 07:05:39 -0700 (PDT)" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Andr s" Giraldo writes: >=20 > I'm trying to set unvisible a window, using: >=20 > GtkWidget *window; >=20 > gtk_widget_hide (window); >=20 > but it doesn't work... I'm just need to hide a window > to set it unvisible for a while, so what am I doing wrong? >=20 gtk_widget_hide() should work, must be something else wrong with the code. Havoc From pbd@op.net Fri Jun 29 10:58:08 2001 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 801B62EB24 for ; Fri, 29 Jun 2001 10:58:08 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16712; Fri, 29 Jun 2001 10:57:54 -0400 (EDT) Message-Id: <200106291457.KAA16712@renoir.op.net> To: Havoc Pennington Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "29 Jun 2001 10:44:58 EDT." Date: Fri, 29 Jun 2001 10:58:39 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> to demonstrate this function (which i trust made it into GTK+ 1.3), i >> enclose (once again): > >What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). That can't be right. The text of characters in some fonts varies widely. If I want an entry to precisely contain "lllllllll", it may be totally different size than if I want it to contain "mxmxmxmxmxmxm". Not to mention issues with non-Latin1 text. Oh well, I guess I'll keep posting gtk_entry_set_usize_from_given_text() :) --p From hp@redhat.com Fri Jun 29 11:30:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 9CF4E2EB59 for ; Fri, 29 Jun 2001 11:30:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TFURH32606; Fri, 29 Jun 2001 11:30:27 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106291457.KAA16712@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 11:30:26 -0400 In-Reply-To: Paul Davis's message of "Fri, 29 Jun 2001 10:58:39 -0400" Message-ID: Lines: 27 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >> to demonstrate this function (which i trust made it into GTK+ 1.3), i > >> enclose (once again): > > > >What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). > > That can't be right. The text of characters in some fonts varies > widely. If I want an entry to precisely contain "lllllllll", it may be > totally different size than if I want it to contain > "mxmxmxmxmxmxm". Not to mention issues with non-Latin1 text. > > Oh well, I guess I'll keep posting gtk_entry_set_usize_from_given_text() :) > There are no issues with non-Latin1 text. set_width_chars() uses the 'average char width' from the Pango font, which is somewhat a voodoo number, but does consider the existence of non-Latin1. After all that's the point of Pango. set_width_chars() is intended for when you don't know exactly which chars it will contain - if you know the entry will contain "lllllll" then setting the usize is probably right, but also, using a label rather than an entry is probably right. ;-) Havoc From pbd@op.net Fri Jun 29 11:40:31 2001 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 367092EB67 for ; Fri, 29 Jun 2001 11:40:31 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA20868; Fri, 29 Jun 2001 11:40:28 -0400 (EDT) Message-Id: <200106291540.LAA20868@renoir.op.net> To: Havoc Pennington Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "29 Jun 2001 11:30:26 EDT." Date: Fri, 29 Jun 2001 11:41:13 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >There are no issues with non-Latin1 text. set_width_chars() uses the >'average char width' from the Pango font, which is somewhat a voodoo >number, but does consider the existence of non-Latin1. After all >that's the point of Pango. > >set_width_chars() is intended for when you don't know exactly which >chars it will contain - if you know the entry will contain "lllllll" >then setting the usize is probably right, but also, using a label >rather than an entry is probably right. ;-) ah, what i failed to notice was that the prefix is "gtk_entry" rather than "gtk_widget". in fact, i failed to notice it so much that i even used the same prefix when referring to the function i posted (which is actually prefixed gtk_widget_...). that helps to explain the approach you've taken. is this going to work for spinbuttons as well? my recollection is that the GtkEntry widget is supposed to be "private", and thus not amenable to tricks to set its width. or do we just violate the privacy rule and set it anyway, since trying it on the overall widget fails miserably due to the (unknowable) width of the controls (typically arrows). --p From hp@redhat.com Fri Jun 29 12:07:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id C144C2CCF3 for ; Fri, 29 Jun 2001 12:07:24 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TG79O25651; Fri, 29 Jun 2001 12:07:09 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106291540.LAA20868@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 12:07:09 -0400 In-Reply-To: Paul Davis's message of "Fri, 29 Jun 2001 11:41:13 -0400" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > is this going to work for spinbuttons as well? my recollection is that > the GtkEntry widget is supposed to be "private", and thus not amenable > to tricks to set its width. or do we just violate the privacy rule and > set it anyway, since trying it on the overall widget fails miserably > due to the (unknowable) width of the controls (typically arrows). > SpinButton is_a GtkEntry rather than containing one, so it isn't really supposed to be private. (Though the is_a relationship is a bit questionable.) Anyhow, spin buttons now default to basing their size request on MAX (width_of_min_value, width_of_max_value), with a random hardcoded min size of 30 pixels. You can override this with either gtk_entry_set_width_chars() or gtk_widget_set_usize(). Havoc From Steph.Fox@btinternet.com Fri Jun 29 12:35:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rhenium (rhenium.btinternet.com [194.73.73.93]) by mail.gnome.org (Postfix) with ESMTP id E34C32E12E for ; Fri, 29 Jun 2001 12:32:56 -0400 (EDT) Received: from [62.7.121.142] (helo=t2r1o8) by rhenium with smtp (Exim 3.22 #9) id 15G1CK-0003QN-00; Fri, 29 Jun 2001 17:32:49 +0100 Message-ID: <004801c100b9$1fea8ee0$7406073e@t2r1o8> From: "Steph" To: "Havoc Pennington" , "Raymond Wan" Cc: References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> Subject: Re: GTK WINDOWS PORT Date: Fri, 29 Jun 2001 17:32:39 +0100 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks Havoc, I'll go back to basics & get details of what's been = compiled & how for our Windows binary & then check out the list you = referred to. Thanks to you too, Raymond - s'nice to get a quick response! ----- Original Message -----=20 From: "Havoc Pennington" To: "Steph" Cc: Sent: Friday, June 29, 2001 3:43 PM Subject: Re: GTK WINDOWS PORT "Steph" writes: > Hello ppl >=20 > I come of the PHP-GTK community & have several queries re the windows = port which hopefully someone here can assist with. >=20 > First off (tester question to see if I'm in the right place) - GtkText = set_line_wrap() is putting \r returns (little black boxes) at every = wrap. =20 >=20 > We're using 1.3 >=20 Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) It's on-topic to ask about GTK win32 here, but I believe the gimp-win32 list (? something like that) may have more people who knows win32-specific answers. Havoc From bonjour@ime.unicamp.br Fri Jun 29 12:48:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pretoria.ime.unicamp.br (pretoria.ime.unicamp.br [143.106.22.7]) by mail.gnome.org (Postfix) with ESMTP id 563EE2E1EF for ; Fri, 29 Jun 2001 12:40:32 -0400 (EDT) Received: from athenas.ime.unicamp.br (athenas.ime.unicamp.br [143.106.22.3]) by pretoria.ime.unicamp.br (8.9.0/8.9.0) with ESMTP id NAA23065 for ; Fri, 29 Jun 2001 13:41:07 -0300 (EST) Date: Fri, 29 Jun 2001 13:40:17 -0300 (EST) From: Filipe Bonjour To: GTK List Subject: Synchronizing X 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Under Xlib you can call XSynchronize to synchronize the X server and catch bugs. Is there a similar call under GTK/GNOME? Otherwise, can I get the display from a gtk/gdk function and pass it to XSyncronize? (How?) Thanks, Fil +-----------------------------------------------------------------------+ | Dr. Fil Bonjour | Fil Bonjour | | UNICAMP, IMECC, DMA - Room 328 | Rua Alberto de Salvo 53 | | 13081-970 Campinas SP Brazil | 13084-670 Campinas SP Brazil | | Phone: (++55.19) 3788.60.44 | Phone: (+55.19) 3289.77.84 | | Fax: (++55.19) 3289.14.66 | | | Email: bonjour@ime.unicamp.br | Email: fbonjour@uol.com.br | | http://www.ime.unicamp.br/~bonjour| | +-----------------------------------------------------------------------+ From robyegiuly@libero.it Fri Jun 29 12:48:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mail.gnome.org (Postfix) with ESMTP id B16532E226 for ; Fri, 29 Jun 2001 12:42:41 -0400 (EDT) Received: from mail.libero.it (151.25.37.171) by smtp1.libero.it (5.5.025) id 3AE980E700E7931B for gtk-list@gnome.org; Fri, 29 Jun 2001 18:42:40 +0200 Date: Fri, 29 Jun 2001 18:44:30 +0200 From: Roberto Sobachi To: gtk-list@gnome.org Subject: ICONS!!! Message-ID: <20010629184430.A542@DEBIAN> Reply-To: robyegiuly@libero.it Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.0.pre5 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I associate an icon to my application for the task list or the top of the window? -- --------------- Roberto Sobachi From bachn@LESTERELECTRICAL.com Fri Jun 29 12:49:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from nt_le.Lesterelectrical.com (h216-170-003-037.adsl.navix.net [216.170.3.37]) by mail.gnome.org (Postfix) with ESMTP id 190C62E2C4 for ; Fri, 29 Jun 2001 12:48:04 -0400 (EDT) Received: by NT_LE with Internet Mail Service (5.5.2448.0) id ; Fri, 29 Jun 2001 11:48:01 -0500 Message-ID: From: Bach Ngo To: "'gtk-list@gnome.org'" Subject: How do I know the version of gtk? Date: Fri, 29 Jun 2001 11:47:55 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi How can I find out what the version of gtk? Bach Ngo From rbultje@ronald.bitfreak.net Fri Jun 29 12:52:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 107192E18B for ; Fri, 29 Jun 2001 12:52:36 -0400 (EDT) Received: from [192.168.0.96] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5THYDF13014; Fri, 29 Jun 2001 19:34:13 +0200 (CEST) Subject: Re: bug? From: Ronald Bultje To: Paul Davis Cc: GTK Mailing List In-Reply-To: <200106291435.KAA14511@renoir.op.net> References: <200106291435.KAA14511@renoir.op.net> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 29 Jun 2001 20:44:28 +0200 Message-Id: <993840279.968.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 10:36:21 -0400, Paul Davis wrote: > is the container set to "homogeneous" ? if so, all of its children are > required to be of the same size. did you unset this? also, what I set it to FALSE... > padding and expand options did you use? padding of 10 pixels, changing it to 0 made no difference. expand: false as well... Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From hp@redhat.com Fri Jun 29 13:40:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 40E3D2E204 for ; Fri, 29 Jun 2001 13:40:11 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5THdrf04270; Fri, 29 Jun 2001 13:39:53 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Filipe Bonjour Cc: GTK List Subject: Re: Synchronizing X References: From: Havoc Pennington Date: 29 Jun 2001 13:39:53 -0400 In-Reply-To: Filipe Bonjour's message of "Fri, 29 Jun 2001 13:40:17 -0300 (EST)" Message-ID: Lines: 12 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour writes: > > Under Xlib you can call XSynchronize to synchronize the X server and > catch bugs. Is there a similar call under GTK/GNOME? Otherwise, can I > get the display from a gtk/gdk function and pass it to XSyncronize? > (How?) > Just start your app with the "--sync" option. Havoc From kodis@jagunet.com Fri Jun 29 16:27:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from skydiver.jaguNET.com (skydiver.jaguNET.com [209.133.192.8]) by mail.gnome.org (Postfix) with ESMTP id 051D02CF0A for ; Fri, 29 Jun 2001 16:27:39 -0400 (EDT) Received: from kodis.jagunet.com (kodis.jaguNET.com [209.133.192.48]) by skydiver.jaguNET.com (8.9.3/jag-2.6) with ESMTP id QAA01296 for ; Fri, 29 Jun 2001 16:27:37 -0400 (EDT) Received: (from kodis@localhost) by kodis.jagunet.com (8.11.2/8.11.2) id f5TKRZb12256 for gtk-list@gnome.org; Fri, 29 Jun 2001 16:27:35 -0400 X-Authentication-Warning: papa.jagunet.com: kodis set sender to kodis@jagunet.com using -f Date: Fri, 29 Jun 2001 16:27:34 -0400 From: John Kodis To: gtk-list@gnome.org Subject: Re: ICONS!!! Message-ID: <20010629162734.B12221@papa.jagunet.com> Mail-Followup-To: John Kodis , gtk-list@gnome.org References: <20010629184430.A542@DEBIAN> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010629184430.A542@DEBIAN>; from robyegiuly@libero.it on Fri, Jun 29, 2001 at 06:44:30PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, Jun 29, 2001 at 06:44:30PM +0200, Roberto Sobachi wrote: > > How can I associate an icon to my application for the task list or the top > of the window? While this might be considered heresy on a gtk list, the only way I know to do this is: gnome_window_icon_set_default_from_file("/path/to/icon.png"); -- John Kodis. From watchthinker@netease.com Fri Jun 29 20:17:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.netease.com (unknown [202.103.134.10]) by mail.gnome.org (Postfix) with ESMTP id 3C80B2BF20 for ; Fri, 29 Jun 2001 20:17:44 -0400 (EDT) Received: from default (unknown [211.159.47.200]) by smtp1.netease.com (Postfix) with ESMTP id 8AC121C535783 for ; Sat, 30 Jun 2001 08:22:49 +0800 (CST) Date: Sat, 30 Jun 2001 08:15:46 +0800 From: watchthinker To: gtk-list@gnome.org Subject: win32 port In-Reply-To: <20010629145202.E77FD2EB35@mail.gnome.org> References: <20010629145202.E77FD2EB35@mail.gnome.org> Message-Id: <20010630080944.7918.WATCHTHINKER@netease.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.03 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear All: I am new to gtk. I want to use gtk to write win32 programs. But when the complied program run, there is a console window appears. What to do to close the console windows? Thanks! From pfeiffer@cs.nmsu.edu Fri Jun 29 20:37:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.CS.NMSU.Edu (cs.CS.NMSU.Edu [128.123.64.2]) by mail.gnome.org (Postfix) with ESMTP id 79EBB2E3AE for ; Fri, 29 Jun 2001 20:37:02 -0400 (EDT) Received: from viper.cs.nmsu.edu (root@viper [128.123.64.113]) by cs.CS.NMSU.Edu (8.8.6/8.8.6) with ESMTP id SAA05026 for ; Fri, 29 Jun 2001 18:37:01 -0600 (MDT) Received: (pfeiffer@localhost) by viper.cs.nmsu.edu (8.10.2/8.6.12) id f5U0b0q11303; Fri, 29 Jun 2001 18:37:00 -0600 Date: Fri, 29 Jun 2001 18:37:00 -0600 Message-Id: <200106300037.f5U0b0q11303@viper.cs.nmsu.edu> X-Authentication-Warning: viper.cs.nmsu.edu: pfeiffer set sender to pfeiffer@cs.nmsu.edu using -f From: Joe Pfeiffer To: gtk-list@gnome.org Subject: focus and notebook tabs? Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using a gtknotebook, and need to have some pages inaccessible depending on the state of the program. I'm using gtk version 1.2.10. My first try at this was to simply get the tab and set it insensitive; when I did that, the tab ``greyed out'' appropriately, but if I clicked on it I went to the tab's page anyway. Following a suggestion on the gtkmm mailing list (I'm actually working in gtkmm, but I think I'm looking at gtk troubles here), I intercepted the page-switch signal, and only let the switch happen if the tab was sensitive. This is working, but I'm having trouble controlling keyboard navigation. I can use the key to set the focus on the greyed-out tab, even though pressing the key when it has the focus has no effect (well, it tries to switch pages, but I'm intercepting that). Following another gtkmm suggestion, I'm using GTK_OBJECT_UNSET_FLAGS to unset the GTK_CAN_FOCUS flag. This is having no effect; it still gets the focus. So... how should I be doing this? -- 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 SWNMRSEF: http://www.nmsu.edu/~scifair From abrice2@home.com Sat Jun 30 02:53:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from femail17.sdc1.sfba.home.com (femail17.sdc1.sfba.home.com [24.0.95.144]) by mail.gnome.org (Postfix) with ESMTP id 1D6262BB38 for ; Sat, 30 Jun 2001 02:53:07 -0400 (EDT) Received: from home.com ([24.250.194.198]) by femail17.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010630065306.MLBF13663.femail17.sdc1.sfba.home.com@home.com> for ; Fri, 29 Jun 2001 23:53:06 -0700 Message-ID: <3B3D7840.2804DF71@home.com> Date: Fri, 29 Jun 2001 23:57:04 -0700 From: Aaron Brice X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: XPM collection? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This probably gets asked a lot but it's not in the FAQ so... Can anyone recommend a good site to get collections of XPM icons? Thanks, Aaron From andres_giraldo@yahoo.com Sat Jun 30 10:06:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11501.mail.yahoo.com (web11501.mail.yahoo.com [216.136.172.46]) by mail.gnome.org (Postfix) with SMTP id 8F16D2D438 for ; Sat, 30 Jun 2001 10:06:31 -0400 (EDT) Message-ID: <20010630140630.14259.qmail@web11501.mail.yahoo.com> Received: from [209.205.77.165] by web11501.mail.yahoo.com; Sat, 30 Jun 2001 07:06:30 PDT Date: Sat, 30 Jun 2001 07:06:30 -0700 (PDT) From: "Andrés" Giraldo Subject: gtk_signal_connect To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I created a class that connect 2 signals from 2 widgtes to the same function: class myclass { char *string; myclass { string = "Hello World"; } void some_function () { GtkWidget *button = gtk_new_button_with_label ("Tes") GtkWidget *drawing_area = gtk_drawing_area_new (); ... gtk_widget_show (button); gtk_widget_show (drawing_area); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this) gtk_signal_connect (GTK_OBJECT (drawing_area), "expose_event", GTK_SIGNAL_FUNC (on_drawing_area_expose_event), this) } static void on_button_clicked (GtkButton *button, gpointer arg) { ((myclass *) arg)->test (); } static void on_drawing_area_expose_event (GtkDrawingArea *drawing_area, gpointer arg) { ((myclass *) arg)->test (); } void test () { cout << string << "\n"; } } So... why it works with the "clicked" button's signal, but it doesn't work with the "expose_event" drawing_area's signal? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From sven@gimp.org Sat Jun 30 12:16:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD90020D1.dip.t-dialin.net [217.0.32.209]) by mail.gnome.org (Postfix) with ESMTP id 079812DBEC for ; Sat, 30 Jun 2001 12:16:24 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15GNIK-0000iN-00; Sat, 30 Jun 2001 18:08:28 +0200 To: "AndrXs" Giraldo Cc: Gtk List Subject: Re: gtk_signal_connect References: <20010630140630.14259.qmail@web11501.mail.yahoo.com> From: Sven Neumann Date: 30 Jun 2001 18:08:28 +0200 In-Reply-To: <20010630140630.14259.qmail@web11501.mail.yahoo.com> Message-ID: Lines: 24 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "AndrXs" Giraldo writes: > static void on_button_clicked (GtkButton *button, > gpointer arg) > > static void on_drawing_area_expose_event > (GtkDrawingArea *drawing_area, gpointer arg) > > So... why it works with the "clicked" button's signal, > but it doesn't work with the "expose_event" > drawing_area's signal? because the "expose_event" signal has a different signature. Your signal handler should look like: static gint on_drawing_area_expose_event (GtkDrawingArea *drawing_area, GdkEventExpose *event, gpointer arg) Salut, Sven From skip@beluga.mojam.com Thu May 31 21:02:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-131-167-214.ce.mediaone.net [24.131.167.214]) by mail.gnome.org (Postfix) with ESMTP id 1106D2BDDD for ; Thu, 31 May 2001 21:02:22 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id CA0D52814; Thu, 31 May 2001 20:02:23 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15126.59807.757971.704953@beluga.mojam.com> Date: Thu, 31 May 2001 20:02:23 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: object_data -> qdata? In-Reply-To: References: <15126.51607.39215.891459@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Havoc" == Havoc Pennington writes: Havoc> Skip Montanaro writes: >> Where in 1.2 you have >> >> >K_OBJECT (widget)->object_data >> Havoc> Yikes, you shouldn't be using this I don't think. ;-) Havoc> What are you trying to do, maybe we can give you what you should Havoc> be using in that context. I'm just trying to get Tim Janik's Gerd app running under 1.3.5: http://www.gtk.org/~timj/gerd/ I'm trying to take the simplest path possible at this point. I figure if I can get it running, someone else can make it pretty... Skip From zxjdz@21cn.com Fri Jun 1 04:54:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from 21cn.com (unknown [202.104.32.251]) by mail.gnome.org (Postfix) with SMTP id BA3FA2BBE7; Fri, 1 Jun 2001 04:54:03 -0400 (EDT) Received: from zzz([61.165.154.208]) by 21cn.com(AIMC 2.9.5.1) with SMTP id jm03b17bd44; Fri, 01 Jun 2001 16:53:37 +0800 Message-ID: <016601c0ea78$b7e6df70$b100a8c0@Dazheng.com> From: "Zou xiaojun" To: Cc: , References: <010701c0e98c$709e4e10$b100a8c0@Dazheng.com> <3B161431.8049A2F@ng-london.org.uk> Subject: The problem about jpeg solved! Thank you all! Date: Fri, 1 Jun 2001 16:56:13 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: base64 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: aGksDQoNCiAgICBUaGFuayB5b3UgZm9yIHJlcGx5LlRob3NlIGxldHRlcnMgaGVscCBtZSBtdWNo IQ0KDQogICAgTm93IEkgdXNlIGpwZWctNmIgJiBHZGtSR0IgaW1wbGVtZW50aW5nIGl0IHN1Y2Nl c3NmdWxseSENCg0KQmVzdCBSZWdhcmRzDQpab3UNCg== From otaylor@redhat.com Fri Jun 1 09:22:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 68CB72BEF2 for ; Fri, 1 Jun 2001 09:22:30 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 08741242226; Fri, 1 Jun 2001 09:22:29 -0400 (EDT) To: Mark Leisher Cc: gtk-list@gnome.org Subject: Re: Some cut,copy and paste thoughts References: <991197305.7414.7.camel@dhcp-64-104-195-74.cisco.com> <15125.1642.372420.281433@helion.crl.nmsu.edu> <991273192.997.1.camel@dhcp-64-104-195-74.cisco.com> <15126.19119.603419.917486@helion.crl.nmsu.edu> <15126.35568.331688.319880@helion.crl.nmsu.edu> From: Owen Taylor Date: 01 Jun 2001 09:22:29 -0400 In-Reply-To: Mark Leisher's message of "Thu, 31 May 2001 12:18:24 -0600 (MDT)" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Mark Leisher writes: > Owen> I'm not sure why it is working for you, but there AFAIK nothing of > Owen> this nature in the selection protocol as described in the ICCCM, and > Owen> I don't remember implementing it in GTK+ either. > > We must be talking about different things. > > Calling XGetWindowProperty() with a selection and type just returns a buffer > of bytes. If the number of bytes returned is > 0, there is something in the > selection. This is generally sufficient for dynamically setting menu item > sensitivity during a "map_event". Why do you think there will be a property holding the contents of the selection? (What target would it correspond to? Nothing has been requested yet.) Can you point out the place in the ICCCM where this is described? ftp://ftp.x.org/pub/R6.6/xc/doc/hardcopy/ICCCM/icccm.PS.gz Regards, Owen From www-data@emacinc.com Fri Jun 1 10:47:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.emacinc.com (unknown [208.248.202.76]) by mail.gnome.org (Postfix) with ESMTP id B7C4A2E0CD for ; Fri, 1 Jun 2001 10:47:40 -0400 (EDT) Received: from www-data by mail.emacinc.com with local (Exim 3.12 #1 (Debian)) id 155qMZ-0005DD-00 for ; Fri, 01 Jun 2001 09:57:19 -0500 To: gtk-list@gnome.org Subject: error messages From: ngustavson@emacinc.com Reply-To: ngustavson@emacinc.com Cc: X-Mailer: AeroMail (http://the.cushman.net/reverb/aeromail/) Message-Id: Date: Fri, 01 Jun 2001 09:57:19 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: need to be able to suppress error messages while my program is running. Does anyone know how? From hp@redhat.com Fri Jun 1 11:52:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AE0312E8D5 for ; Fri, 1 Jun 2001 11:52:41 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f51FskR21621; Fri, 1 Jun 2001 11:54:46 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: ngustavson@emacinc.com Cc: gtk-list@gnome.org Subject: Re: error messages References: From: Havoc Pennington Date: 01 Jun 2001 11:54:46 -0400 In-Reply-To: ngustavson@emacinc.com's message of "Fri, 01 Jun 2001 09:57:19 -0500" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ngustavson@emacinc.com writes: > need to be able to suppress error messages while my program is running. Does anyone > know how? > Redirect stderr to /dev/null, or you can use g_log_set_handler(). Havoc From king@eiffel.com Fri Jun 1 12:51:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 253F32CDC3 for ; Fri, 1 Jun 2001 12:51:53 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 155s9P-0008Al-00 for gtk-list@gnome.org; Fri, 01 Jun 2001 09:51:51 -0700 Message-ID: <092201c0eabc$37fb2110$750a000a@naples> From: "Ian King" To: Subject: Left Alt and Right Alt Date: Fri, 1 Jun 2001 09:59:27 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there anyway to dynamically query whether a Left Alt key is pressed and not the right, I am using GDK_MOD1_MASK at the moment but this seems to do both. Ian King From hp@redhat.com Fri Jun 1 14:03:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7FA932C7E9 for ; Fri, 1 Jun 2001 14:03:51 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f51I66X12914; Fri, 1 Jun 2001 14:06:06 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Left Alt and Right Alt References: <092201c0eabc$37fb2110$750a000a@naples> From: Havoc Pennington Date: 01 Jun 2001 14:06:06 -0400 In-Reply-To: "Ian King"'s message of "Fri, 1 Jun 2001 09:59:27 -0700" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > Is there anyway to dynamically query whether a Left Alt key is pressed and > not the right, I am using GDK_MOD1_MASK at the moment but this seems to do > both. > If you're using Alt as a modifier, then it will produce broken/surprising behavior for end users if you distinguish these (mod1 doesn't actually even have to be on the keys labeled "Alt", on my system it's only on one of them, etc.). But the basic way you'd do this is to track key press / key release events and keep a flag whether the left/right alt keys are pressed. event->keyval == GDK_Alt_L, event->keyval == GDK_Alt_R. Also some disabled users may be using a "sticky modifiers" feature where they tap alt, release, then tap another key. I'm not sure if you get the key release event before or after the MOD1_MASK flag disappears in this case. Havoc From king@eiffel.com Fri Jun 1 14:08:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 243ED2E308 for ; Fri, 1 Jun 2001 14:08:27 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 155tLV-0002cT-00 for gtk-list@gnome.org; Fri, 01 Jun 2001 11:08:25 -0700 Message-ID: <09a201c0eac6$ea6fe600$750a000a@naples> From: "Ian King" To: Subject: Ctree in scrolled window Date: Fri, 1 Jun 2001 11:16:02 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I place a ctree in a scrollable window (with horizontal and vertical automatic policy) with gtk_container_add, I only get the vertical scrollbar, no matter how wide the ctree is. How do I hack the ctree so that I do not get size allocation errors and so that the horizontal scrollbar is actually shown when required. Ian King From skip@beluga.mojam.com Fri Jun 1 17:08:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 18A622BAC2 for ; Fri, 1 Jun 2001 17:08:56 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id EEF972814; Fri, 1 Jun 2001 16:08:59 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15128.1131.913997.532592@beluga.mojam.com> Date: Fri, 1 Jun 2001 16:08:59 -0500 To: gtk-list@gnome.org Subject: Gerd for Gtk 1.3.x X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I made some progress porting Tim Janik's Gerd program to Gtk 1.3.x. If anyone's interested in the results, let me know and I'll shoot you a context diff. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From jdiago@escher.puj.edu.co Fri Jun 1 19:28:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from escher.puj.edu.co (c3281-136.impsat.com.co [200.32.81.136]) by mail.gnome.org (Postfix) with ESMTP id 7F8E52BAE9 for ; Fri, 1 Jun 2001 19:28:30 -0400 (EDT) Received: from localhost (jdiago@localhost) by escher.puj.edu.co (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id SAA13469; Fri, 1 Jun 2001 18:28:27 -0500 Date: Fri, 1 Jun 2001 18:28:26 -0500 (COT) From: Jose Fernando Diago To: Havoc Pennington Cc: GTK+ List Subject: Question about printing a drawable 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. This question goes to Havoc. I read this message from the GTK+ mailing list archives: >Re: Printing snapshot of a window > From: Havoc Pennington > To: "Tim Betts" > Cc: gtk-app-devel-list gnome org > Subject: Re: Printing snapshot of a window > Date: 01 Jun 2000 13:12:06 -0400 >"Tim Betts" writes: >> Just wondered if anyone knew of a C library or way of programmically >>taking a snapshot of a given X GtkWindow and printing it to a lazer >>printer. I would like to do it all from within the application via a >>print button. Any ideas, references or code would be greatly >>appreciated. >gdk-pixbuf can take a snapshot of a drawable, and gnome-print has a >routine to print a GdkPixbuf. You can copy the code if you don't want >to use the libraries. >Havoc So my question is: What's the gdk-pixbuf? How can I use it? Thanks. Jose. From skip@beluga.mojam.com Fri Jun 1 22:22:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 743972BE13 for ; Fri, 1 Jun 2001 22:22:10 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id AD6AC2814; Fri, 1 Jun 2001 21:22:13 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15128.19924.937913.885668@beluga.mojam.com> Date: Fri, 1 Jun 2001 21:22:12 -0500 To: Jose Fernando Diago Cc: GTK+ List Subject: Re: Question about printing a drawable In-Reply-To: References: X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jose> So my question is: What's the gdk-pixbuf? How can I use it? Gdk-pixbuf is an image manipulation library. The reference manual is at http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/index.html I'm not aware of any tutorial documentation and all the links I could find to Imlib tutorials (gdk-pixbuf's predecessor) seem to be broken. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Fri Jun 1 23:26:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 54AFE2D3D6 for ; Fri, 1 Jun 2001 23:26:33 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f523S0X22341; Fri, 1 Jun 2001 23:28:00 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Jose Fernando Diago Cc: GTK+ List Subject: Re: Question about printing a drawable References: From: Havoc Pennington Date: 01 Jun 2001 23:27:59 -0400 In-Reply-To: Jose Fernando Diago's message of "Fri, 1 Jun 2001 18:28:26 -0500 (COT)" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jose Fernando Diago writes: > > So my question is: What's the gdk-pixbuf? How can I use it? > There's a new app that does exactly this (gdk-pixbuf for screenshots, gnome-print to print): http://lists.eazel.com/pipermail/nautilus-list/2001-May/003389.html Will probably come with the panel sooner or later. Havoc From needles@industrialmusic.com Sun Jun 3 15:32:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from industrialmusic.com (unknown [216.101.163.50]) by mail.gnome.org (Postfix) with ESMTP id AB95B2D45F for ; Sun, 3 Jun 2001 15:32:03 -0400 (EDT) Received: (from needles@localhost) by industrialmusic.com (8.9.3/8.9.3) id MAA10514 for gtk-list@gnome.org; Sun, 3 Jun 2001 12:56:47 -0700 From: "needles@industrialmusic.com" Message-Id: <200106031956.MAA10514@industrialmusic.com> Subject: Programming Help. Determing what line the user clicks in GtkText To: gtk-list@gnome.org Date: Sun, 3 Jun 2001 12:56:47 -0700 (PDT) X-Mailer: ELM [version 2.5 PL3] 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm using gtk+ 1.2.10 on RedHat 7.1. I'm trying to display text in a scrollable window, then get a callback when the user clicks on the text. I did that by using a GtkText widget and connecting it to the "button-press-event" signal. That gives me the callback when I want it, but I can't figure out what line the user clicked on. I tried using the GList textWidget->current_line and counting till I got to the start of the list which almost work. It gave me the previous line that was clicked on. Does anyone have any ideas of the best way to do what I want? I'm not opposed to modifying gtktext.c or using a different widget. I realize that Gtk+2.0 will have a lot of changes in the text area, but I don't know if it is in usable form yet. Some other requirements I need is the ability to highlight different lines. I'm trying to write a TMS320C54x DSP simulator under the GPL license. Thanks for any help Kerry -- Windows 95: n. 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition. From bowman@montana.com Mon Jun 4 00:47:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailA.montana.com (mailA.montana.com [199.2.139.116]) by mail.gnome.org (Postfix) with ESMTP id E08732BA98 for ; Mon, 4 Jun 2001 00:46:59 -0400 (EDT) Received: from odin (mso1-114.montana.com [208.4.224.114]) by mailA.montana.com (8.11.2/8.11.2) with SMTP id f544fOw26028 for ; Sun, 3 Jun 2001 22:41:24 -0600 (MDT) Message-ID: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> From: "bowman" To: Subject: getting a GtkWidget* Date: Sun, 3 Jun 2001 22:46:15 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I haven't been able to hit on quite the right thing in the FAQ or docs. I've been working with glade, which doesn't expose the widgets used in the generated interface.c file. If I have connected a callback to a button click, for instance, and I would like to get the text from an GetEntry widget, is there a graceful way to get a pointer to the entry? It looks like my options are passing a GList of the widget pointers I'll be interested in during the callback, or getting the ancestor container of the button and iterating through the children. Is there anything analogous to XtNameToWidget? thanks. From tvv@sparc.spb.su Mon Jun 4 04:11:58 2001 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 913742DC31 for ; Mon, 4 Jun 2001 04:11:57 -0400 (EDT) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.10.1/8.10.1) with ESMTP id f548BuC02849 for ; Mon, 4 Jun 2001 12:11:56 +0400 (MSD) Received: from sparc.spb.su (norwich.sparc.spb.su [192.168.205.226]) by mail.sparc.spb.su (8.11.3/8.11.1) with ESMTP id f548CZE61308 for ; Mon, 4 Jun 2001 12:12:35 +0400 (MSD) (envelope-from tvv@sparc.spb.su) Message-ID: <3B1B430A.C1BDD77D@sparc.spb.su> Date: Mon, 04 Jun 2001 12:12:58 +0400 From: Vitaly Tishkov 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_tree_view_column_set_min_width (column, 0) segvs Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, The following example segvs. #include int main (int argc, char** argv) { GtkTreeViewColumn* column; gtk_init (&argc, &argv); column = gtk_tree_view_column_new (); gtk_tree_view_column_set_min_width (column, 1); } What am I doing wrong or is it a bug? Thanks, Vitaly. From 4dadio@telkom.net Mon Jun 4 06:46:38 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 3D9AF2BDE3 for ; Mon, 4 Jun 2001 06:46:36 -0400 (EDT) Received: out-mta3.plasa.com; Mon, 04 Jun 2001 17:46:27 +0700 Received: out-mta2.plasa.com; Mon, 04 Jun 2001 17:46:27 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 61793 for ; Mon, 04 Jun 2001 17:46:27 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: problem with gtk_entry_get_text() To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Mon, 04 Jun 2001 17:46:27 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've some problems in gtk+ ver. 1.2.0. Well, I thimk the funtion, gtk_entry_get_text(), make a problem. I can't get any character from entries. dadio From niklas.hoglund@telia.com Mon Jun 4 07:40:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by mail.gnome.org (Postfix) with ESMTP id CBF4F2DE6A for ; Mon, 4 Jun 2001 07:40:56 -0400 (EDT) Received: from d1o828.telia.com (d1o828.telia.com [213.65.100.241]) by mailc.telia.com (8.11.2/8.11.0) with ESMTP id f54BetY06075 for ; Mon, 4 Jun 2001 13:40:55 +0200 (CEST) Received: from zero (h204n1fls33o828.telia.com [213.65.102.204]) by d1o828.telia.com (8.10.2/8.10.1) with ESMTP id f54Betb28805 for ; Mon, 4 Jun 2001 13:40:55 +0200 (CEST) Received: from niklas by zero with local (Exim 3.22 #1 (Debian)) id 156sjE-0001FW-00 for ; Mon, 04 Jun 2001 13:41:00 +0200 Date: Mon, 4 Jun 2001 13:41:00 +0200 To: gtk-list@gnome.org Subject: Drawing in window gives it focus in win32 Message-ID: <20010604134059.A4790@mail.canit.se> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.18i From: Niklas Hoglund Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems that whenever I draw in a custom widget and whenever I add items to a clist the GTK window containing it gets keyboard focus. This is unbearable as it happens in a window containing a status display which monitors actions that happen in the background. During background activities this renders the machine practically unusable. This happens on Windows NT. I don't know if it happens on other systems. What can I do about this? I have code to draw the relevant things using native windows calls, but I'd rather use GTK/GDK. -- Niklas From bowman@montana.com Mon Jun 4 09:28:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailB.montana.com (mailB.montana.com [199.2.139.117]) by mail.gnome.org (Postfix) with ESMTP id 02D0D2D2DB for ; Mon, 4 Jun 2001 09:28:47 -0400 (EDT) Received: from odin (mso1-163.montana.com [208.4.224.163]) by mailB.montana.com (8.11.2/8.11.2) with SMTP id f54DMIS00860; Mon, 4 Jun 2001 07:22:30 -0600 (MDT) Message-ID: <004101c0ecfa$31228960$0100a8c0@mshome.net> From: "bowman" To: "dodi-nug" <4dadio@telkom.net>, References: Subject: Re: problem with gtk_entry_get_text() Date: Mon, 4 Jun 2001 07:27:53 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "dodi-nug" <4dadio@telkom.net> > > Well, I thimk the funtion, gtk_entry_get_text(), make a > problem. > I can't get any character from entries. The docs say this is a deprecated function. Why don't you try: something like: msg = gtk_editable_get_chars ((GtkEditable*) msg_text, 0, -1); where 0 is the start_pos, and -1 the default 'get everything' end_pos. From rbultje@ronald.bitfreak.net Mon Jun 4 09:36:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 66AD92DFC3 for ; Mon, 4 Jun 2001 09:36:40 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f54ELCC13549 for ; Mon, 4 Jun 2001 16:21:12 +0200 (CEST) From: "Ronald Bultje" To: Subject: wait for a condition to be satisfied Date: Mon, 4 Jun 2001 15:42:41 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, I'm looking for a function which returns if a certain condition is satisfied. I'm now using: /* now, we need to pause until scene detection is done */ while (scene_detection_reply == 1) usleep(100000); but this is ugly (imho, that is ;-) ). Is there something like waitfor(scenedetection != 1) in Gtk, glib or anything? Secondly, sleep() (and usleep()) are not thread-safe, are they? is there anything thread-safe as a replacement for sleep()? (I heard about g_sleep but "grep -r g_sleep /usr/include/*" gives no results) Regards and thanks in advance, Ronald Bultje From sven@gimp.org Mon Jun 4 10:03:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A1A.dip.t-dialin.net [217.80.26.26]) by mail.gnome.org (Postfix) with ESMTP id B163D2BC79 for ; Mon, 4 Jun 2001 10:03:42 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 156urP-0001as-00; Mon, 04 Jun 2001 15:57:35 +0200 To: "Ronald Bultje" Cc: Subject: Re: wait for a condition to be satisfied References: From: Sven Neumann Date: 04 Jun 2001 15:57:35 +0200 In-Reply-To: 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "Ronald Bultje" writes: > I'm looking for a function which returns if a certain condition is > satisfied. since you seem to be using threads, why not use pthread_cond_wait() ? Salut, Sven From hoshem@mel.comcen.com.au Mon Jun 4 10:47:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem056.mnementh.comcen.com.au [203.23.238.115]) by mail.gnome.org (Postfix) with ESMTP id A292D2BA99 for ; Mon, 4 Jun 2001 10:47:48 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f54ExrT11518; Tue, 5 Jun 2001 00:59:53 +1000 Date: Tue, 5 Jun 2001 00:59:53 +1000 From: Helmethead To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: wait for a condition to be satisfied Message-ID: <20010605005953.A11070@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , gtk-list@gnome.org 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 rbultje@ronald.bitfreak.net on Mon, Jun 04, 2001 at 03:42:41PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 04, 2001 at 03:42:41PM +0200, Ronald Bultje wrote: > Hi there, > > I'm looking for a function which returns if a certain condition is > satisfied. I'm now using: > > /* now, we need to pause until scene detection is done */ > while (scene_detection_reply == 1) > usleep(100000); > > but this is ugly (imho, that is ;-) ). Is there something like > waitfor(scenedetection != 1) in Gtk, glib or anything? Well in a normal program this kind of problem doesn't come up, since it has a single thread of execution. It does in threaded programs though, and pthreads condition variables probably fit the bill nicely ;) If your code snippet is waiting for something even more external to modify the variable (variable lives in shared memory perhaps), then you'd have to roll your own mechanism from pipes or signals or something. If you don't wanna poll (sleep,test,sleep,test etc), it basically comes down to getting the thread that changed the variable, to notify the thread that's waiting for the variable to be changed. > Secondly, sleep() (and usleep()) are not thread-safe, are they? is there > anything thread-safe as a replacement for sleep()? (I heard about g_sleep > but "grep -r g_sleep /usr/include/*" gives no results) Dahm, I heard something like this but I can't remember or find anything in the pthreads docs. I don't program in threads.. I can do a better job of scheduling my simultaneous tasks than the linux kernel any day ;-) From loban@ugcs.caltech.edu Mon Jun 4 10:53:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from spew.ugcs.caltech.edu (spew.ugcs.caltech.edu [131.215.43.154]) by mail.gnome.org (Postfix) with ESMTP id 26B8D2E18E for ; Mon, 4 Jun 2001 10:53:39 -0400 (EDT) Received: by spew.ugcs.caltech.edu (Postfix, from userid 9289) id DBA902446E; Mon, 4 Jun 2001 07:53:37 -0700 (PDT) Date: Mon, 4 Jun 2001 07:53:37 -0700 From: Loban Amaan Rahman To: bowman Cc: gtk-list@gnome.org Subject: Re: getting a GtkWidget* Message-ID: <20010604075337.A12312@spew.ugcs.caltech.edu> References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net>; from bowman@montana.com on Sun, Jun 03, 2001 at 10:46:15PM -0600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes, but in order to do this you need to use libglade to dynamically load the XML file at runtime to create the widgets. You can give each widget a name, and then call glade_xml_get_widget(GladeXML *self, char *name) to get a pointer to the GtkWidget. If you aren't using libglade, but having glade pregenerate the code for you, i'm not perfectly sure what the proper solution is. Loban. > I haven't been able to hit on quite the right thing in the FAQ or docs. I've > been working with glade, which doesn't expose the widgets used in the > generated interface.c file. If I have connected a callback to a button > click, for instance, and I would like to get the text from an GetEntry > widget, is there a graceful way to get a pointer to the entry? > > It looks like my options are passing a GList of the widget pointers I'll be > interested in during the callback, or getting the ancestor container of the > button and iterating through the children. > > Is there anything analogous to XtNameToWidget? /-------------------------------------------------------------------\ | Loban Amaan Rahman <-- anagram of --> Aha! An Abnormal Man! | | loban@earthling.net, loban@ugcs.caltech.edu, http://i.am/loban | \-------------------------------------------------------------------/ From edsonlima@magnumsa.com.br Mon Jun 4 14:21:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ncc1701.magnumsa.com.br (unknown [200.189.50.122]) by mail.gnome.org (Postfix) with ESMTP id 57F862DC17 for ; Mon, 4 Jun 2001 14:21:44 -0400 (EDT) Received: from edson (edson.magnumsa.com.br [172.16.0.121]) by ncc1701.magnumsa.com.br (8.9.3/8.9.3) with SMTP id PAA10470 for ; Mon, 4 Jun 2001 15:26:04 -0300 Posted-Date: Mon, 4 Jun 2001 15:26:04 -0300 Message-ID: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Reply-To: "Edson Lima" From: "Edson Lima" To: Subject: GTK+ with PHP Date: Mon, 4 Jun 2001 15:18:00 -0300 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like to know somebody already knows some thing of GTK+ with PHP. From hp@redhat.com Mon Jun 4 14:49:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0F0F52BAC0 for ; Mon, 4 Jun 2001 14:49:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f54IpUv05371; Mon, 4 Jun 2001 14:51:30 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Vitaly Tishkov Cc: gtk-list@gnome.org Subject: Re: gtk_tree_view_column_set_min_width (column, 0) segvs References: <3B1B430A.C1BDD77D@sparc.spb.su> From: Havoc Pennington Date: 04 Jun 2001 14:51:30 -0400 In-Reply-To: Vitaly Tishkov's message of "Mon, 04 Jun 2001 12:12:58 +0400" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vitaly Tishkov writes: > > #include > int > main (int argc, char** argv) > { > GtkTreeViewColumn* column; > > gtk_init (&argc, &argv); > > column = gtk_tree_view_column_new (); > gtk_tree_view_column_set_min_width (column, 1); > } > > What am I doing wrong or is it a bug? > Probably a bug, looks reasonable to me. Havoc From skip@beluga.mojam.com Mon Jun 4 15:23:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id C46A02E318 for ; Mon, 4 Jun 2001 15:23:57 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id D3C5B2813; Mon, 4 Jun 2001 14:23:58 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15131.57422.598775.865140@beluga.mojam.com> Date: Mon, 4 Jun 2001 14:23:58 -0500 To: gtk-list@gnome.org Subject: themes & key bindings? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen Taylor's theme architecture guide: http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html doesn't mention key/button bindings at all. Do themes only deal with the visual aspects of the user interface? If I create a new widget for an application, what hooks (if any) do I need to provide to make it "themeable"? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From erik@turner.org Mon Jun 4 15:36:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c000.snv.cp.net (c000-h000.c000.snv.cp.net [209.228.32.64]) by mail.gnome.org (Postfix) with SMTP id 5F4C92DC1E for ; Mon, 4 Jun 2001 15:32:58 -0400 (EDT) Received: (cpmta 24969 invoked from network); 4 Jun 2001 12:32:57 -0700 Received: from cpe-66-1-218-98.fl.sprintbbd.net (HELO ECTGateway) (66.1.218.98) by smtp.turner.org (209.228.32.64) with SMTP; 4 Jun 2001 12:32:57 -0700 X-Sent: 4 Jun 2001 19:32:57 GMT Message-ID: <012c01c0ed2c$de7c35c0$6664a8c0@riocasa> From: "Erik Turner" To: References: <15131.57422.598775.865140@beluga.mojam.com> Subject: Drop down signal for GtkCombo Date: Mon, 4 Jun 2001 15:30:52 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've got a GtkCombo and I would like to see a signal for the dropdown event so that I can refresh the dropdown list before it's displayed. Is there an easy way to do this? Thanks in advance, Erik Turner From 4dadio@telkom.net Mon Jun 4 18:26:09 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 9D3EE2CFD8 for ; Mon, 4 Jun 2001 18:26:07 -0400 (EDT) Received: out-mta3.plasa.com; Tue, 05 Jun 2001 05:26:01 +0700 Received: out-mta2.plasa.com; Tue, 05 Jun 2001 05:26:01 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 289900; Tue, 05 Jun 2001 05:26:01 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: Re: problem with gtk_entry_get_text() To: "bowman" Cc: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Tue, 05 Jun 2001 05:26:01 +0700 Message-ID: In-Reply-To: <004101c0ecfa$31228960$0100a8c0@mshome.net> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: erouter=gtk_entry_new(); gtk_widget_show(erouter); gtk_box_pack_start(GTK_BOX(hbox1),erouter,TRUE,TRUE,0); isi = gtk_editable_get_chars(GTK_EDITABLE(erouter),0,-1); gtk_editable_chars cause the same problem with gtk_entry_get_text() On Mon, 4 Jun 2001 07:27:53 -0600 "bowman" wrote: > > From: "dodi-nug" <4dadio@telkom.net> > > > > Well, I thimk the funtion, gtk_entry_get_text(), make a > > problem. > > I can't get any character from entries. > > The docs say this is a deprecated function. Why don't you > try: > something like: > > msg = gtk_editable_get_chars ((GtkEditable*) msg_text, > 0, -1); > > where 0 is the start_pos, and -1 the default 'get > everything' end_pos. > > From damon@ximian.com Mon Jun 4 18:49:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id D78E22E3B8 for ; Mon, 4 Jun 2001 18:49:56 -0400 (EDT) Received: from ximian.com (IDENT:damon@karuna.ximian.com [141.154.95.114]) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id SAA24045; Mon, 4 Jun 2001 18:49:50 -0400 Message-ID: <3B1C1014.798F27BA@ximian.com> Date: Mon, 04 Jun 2001 18:47:48 -0400 From: Damon Chaplin X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: bowman Cc: gtk-list@gnome.org Subject: Re: getting a GtkWidget* References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: bowman wrote: > > I haven't been able to hit on quite the right thing in the FAQ or docs. I've > been working with glade, which doesn't expose the widgets used in the > generated interface.c file. If I have connected a callback to a button > click, for instance, and I would like to get the text from an GetEntry > widget, is there a graceful way to get a pointer to the entry? > > It looks like my options are passing a GList of the widget pointers I'll be > interested in during the callback, or getting the ancestor container of the > button and iterating through the children. > > Is there anything analogous to XtNameToWidget? Glade outputs a lookup_widget() function in support.c that you can use. See the FAQ on http://glade.gnome.org Damon From hp@redhat.com Mon Jun 4 21:22:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8141C2BAB6 for ; Mon, 4 Jun 2001 21:22:41 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f551PB128575; Mon, 4 Jun 2001 21:25:11 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: themes & key bindings? References: <15131.57422.598775.865140@beluga.mojam.com> From: Havoc Pennington Date: 04 Jun 2001 21:25:11 -0400 In-Reply-To: Skip Montanaro's message of "Mon, 4 Jun 2001 14:23:58 -0500" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > Owen Taylor's theme architecture guide: > > http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html > > doesn't mention key/button bindings at all. Do themes only deal with the > visual aspects of the user interface? Yes. Keybindings are done with GtkBindingSet. GTK 2 uses binding set fairly extensively, so there are lots of examples in the source. > If I create a new widget for an application, what hooks (if any) do I need > to provide to make it "themeable"? Draw with colors in widget->style, be sure any computations based on widget->style are recalculated either on size_request/size_allocate or in a style_set handler, use the gtk_paint_ routines to draw rather than gdk_draw_ whenever a gtk_paint_ routine is appropriate. Again, many examples in GTK source. Havoc From switk@yahoo.com Mon Jun 4 22:30:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx08.cluster1.charter.net (dc-mx08.cluster0.hsacorp.net [209.225.8.18]) by mail.gnome.org (Postfix) with ESMTP id 1D3DD2BDFD for ; Mon, 4 Jun 2001 22:30:50 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx08.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 7106414; Mon, 04 Jun 2001 22:36:44 -0400 Subject: Re: GTK+ with PHP From: Stephen Witkop To: Edson Lima Cc: gtk-list@gnome.org In-Reply-To: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> References: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Jun 2001 22:30:45 -0400 Message-Id: <991708249.27473.0.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: http://gtk.php.net Stephen On 04 Jun 2001 15:18:00 -0300, Edson Lima wrote: > Hello, > I would like to know somebody already knows some thing of GTK+ with PHP. > From bowman@montana.com Mon Jun 4 23:18:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailC.montana.com (mailC.montana.com [199.2.139.118]) by mail.gnome.org (Postfix) with ESMTP id F03A22BAB6 for ; Mon, 4 Jun 2001 23:18:03 -0400 (EDT) Received: from odin (mso1-76.montana.com [208.4.224.76]) by mailC.montana.com (8.11.2/8.11.2) with SMTP id f553CI211221 for ; Mon, 4 Jun 2001 21:12:20 -0600 (MDT) Message-ID: <004d01c0ed6e$20d9bd20$4ce004d0@mshome.net> From: "bowman" To: References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> <3B1C1014.798F27BA@ximian.com> Subject: Re: getting a GtkWidget* Date: Mon, 4 Jun 2001 21:17:55 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "Damon Chaplin" > > Glade outputs a lookup_widget() function in support.c that you can use. Thanks. I eventually worked my way down to the Glade FAQ in the tarball. I was looking for something native to Gtk, where the lookup_widget depends on Glade sticking the name/pointer pair into the top level widget and later retrieving it. It certainly works. I'm a little sensitive about user data; I work with a suite of Motif apps that go back almost 10 years -- appending data to a widget has be used and abused over those years to the point you never know just what might be lurking in some widget. From bowman@montana.com Mon Jun 4 23:24:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from maild.montana.com (mailD.montana.com [199.2.139.119]) by mail.gnome.org (Postfix) with ESMTP id 5EBF12BABF for ; Mon, 4 Jun 2001 23:24:44 -0400 (EDT) Received: from odin (mso1-76.montana.com [208.4.224.76]) by maild.montana.com (8.11.2/8.11.2) with SMTP id f553oUB04390 for ; Mon, 4 Jun 2001 21:50:30 -0600 (MDT) Message-ID: <005a01c0ed6f$0f58bb40$4ce004d0@mshome.net> From: "bowman" To: References: <20010605005953.A11070@BuffyRox.localdomain> Subject: Re: wait for a condition to be satisfied Date: Mon, 4 Jun 2001 21:24:38 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "Helmethead" > > Secondly, sleep() (and usleep()) are not thread-safe, are they? is there > > anything thread-safe as a replacement for sleep()? (I heard about g_sleep > > but "grep -r g_sleep /usr/include/*" gives no results) > > Dahm, I heard something like this but I can't remember or find anything in the pthreads docs. I don't program in threads.. I can do a better job of scheduling my simultaneous tasks than the linux kernel any day ;-) for what it's worth, nanosleep() is the usual thread-safe sleep. it works a little differently, but the man nanosleep page should clarify it. From chris.l.pettit@lmco.com Tue Jun 5 08:38:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailgw1a.lmco.com (mailgw1a.lmco.com [192.31.106.7]) by mail.gnome.org (Postfix) with ESMTP id C2DD02BE02 for ; Tue, 5 Jun 2001 08:38:19 -0400 (EDT) Received: from emss02g01.ems.lmco.com (relay2.ems.lmco.com [166.29.2.54]) by mailgw1a.lmco.com (8.8.8/8.8.8) with ESMTP id GAA02523 for ; Tue, 5 Jun 2001 06:38:19 -0600 (MDT) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-33 #38887) id <0GEG00H01J3UOR@lmco.com> for gtk-list@gnome.org; Tue, 5 Jun 2001 06:38:18 -0600 (MDT) Received: from emss06m01.ems.lmco.com ([134.5.45.74]) by lmco.com (PMDF V5.2-33 #38887) with ESMTP id <0GEG00ECWJ3QCG@lmco.com> for gtk-list@gnome.org; Tue, 05 Jun 2001 06:38:14 -0600 (MDT) Received: by emss06m01.ems.lmco.com with Internet Mail Service (5.5.2653.19) id ; Tue, 05 Jun 2001 08:38:19 -0400 Content-return: allowed Date: Tue, 05 Jun 2001 08:38:13 -0400 From: "Pettit, Chris L" Subject: Need a 3D diagram of Gtk window stack up for presentation tomorro w (6/6) To: "Gtk-List (E-mail)" Message-id: MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Help !! I'm assembling a presentation on open source GUI development. Recently, i saw a schematic 3D stack-up diagram for the gtk window elements and structure ... and didn't save it. ( Yes, i should know better. A classic lesson from running scanning electron microscopes +20 yrs ) Well, now I can't find it. I was hoping someone could point me to a similar source. I'm pretty sure it was at one of the gtk sites... but, I am getting older ;-). The presentation is tomorrow and I'd really like to have this to talk about. Thx, chris ====================================== Chris Pettit Aircraft Vehicle Integration Facility Embedded Systems Programming * Lockheed Martin Aeronautics Company D/6H52 Z/0698 86 South Cobb Drive Marietta, GA 30063-0698 * Chris.L.Pettit@lmco.com * 770-793-2595 (Voice) * 770-793-2001 (FAX) ====================================== "They have computers, and they may have other weapons of mass destruction." - Janet Reno "If you think there's a solution, you're a part of the problem." - George Carlin ====================================== From jrb@redhat.com Mon Jun 4 14:54:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aware-of-vacuity.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 94CE52DE1F for ; Mon, 4 Jun 2001 14:54:31 -0400 (EDT) Received: (from jrb@localhost) by aware-of-vacuity.labs.redhat.com (8.11.2/8.11.2) id f54IrMH10144; Mon, 4 Jun 2001 14:53:22 -0400 X-Authentication-Warning: aware-of-vacuity.labs.redhat.com: jrb set sender to jrb@redhat.com using -f To: gtk-list@gnome.org Cc: Vitaly Tishkov Subject: Re: [Vitaly Tishkov ] gtk_tree_view_column_set_min_width (column, 0) segvs References: X-URL: From: Jonathan Blandford Date: 04 Jun 2001 14:53:22 -0400 In-Reply-To: Message-ID: Lines: 24 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vitaly Tishkov Writes: > Hi, > > The following example segvs. > > > #include > int > main (int argc, char** argv) > { > GtkTreeViewColumn* column; > > gtk_init (&argc, &argv); > > column = gtk_tree_view_column_new (); > gtk_tree_view_column_set_min_width (column, 1); > } > > What am I doing wrong or is it a bug? It's a bug. I'm fixing it now. -Jonathan From mnatsu@cicese.mx Tue Jun 5 08:03:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 98CD42DF49 for ; Tue, 5 Jun 2001 08:03:02 -0400 (EDT) Received: from matrix.cicese.mx (matrix.cicese.mx [158.97.23.247]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f55C31f25139 for ; Tue, 5 Jun 2001 05:03:01 -0700 (PDT) Received: (from mnatsu@localhost) by matrix.cicese.mx (8.9.3+Sun/8.9.1) id FAA26163; Tue, 5 Jun 2001 05:03:00 -0700 (PDT) Date: Tue, 5 Jun 2001 05:02:58 -0700 (PDT) From: Masaru Natsu Cardenas To: gtk-list@gnome.org Subject: Help 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello i'm new in the gtk programming subject.. i ave only 3 days programming in Gtk and im trayng to make a simple prog: i'm trayng to open a xpm file and dsiplay it into a window and thats all. if anyone know where i can found some code .. to read and learn.. it will be very usefull thanks.. Hello from Mexico =) From jiang.xu@echostar.com Tue Jun 5 11:31:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 0B4102BBB2 for ; Tue, 5 Jun 2001 11:31:10 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA02991 for ; Tue, 5 Jun 2001 11:31:09 -0400 Received: from linux0.echostar.com (w146-253.echostar.com [205.172.146.253]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f55FTTb04256 for ; Tue, 5 Jun 2001 11:29:29 -0400 Received: from echostar.com (linux7.echostar.com [10.79.98.107]) by linux0.echostar.com (Postfix) with ESMTP id 64F7979085; Tue, 5 Jun 2001 09:30:45 -0600 (MDT) Message-ID: <3B1CFB25.B8676254@echostar.com> Date: Tue, 05 Jun 2001 09:30:45 -0600 From: Jiang XU X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.4.0 i686) X-Accept-Language: zh-CN, en MIME-Version: 1.0 To: "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" Subject: where I can find more API information about GdkImlib Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Guys, I try to use GdkImlib to load transparent pixmap, such as using gdk_imlib_XXX calls. I wonder where I can find more API document about GdkImlib? Thanks Jiang From rhfreeman@micron.com Tue Jun 5 12:10:43 2001 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 007A12BDFD for ; Tue, 5 Jun 2001 12:10:42 -0400 (EDT) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.9.2/8.9.2) with ESMTP id KAA11080 for ; Tue, 5 Jun 2001 10:10:42 -0600 (MDT) Received: from ntexchange01.micron.com (ntexchange01 [137.201.104.84]) by mail-srv1.micron.com (8.9.2/8.9.2) with ESMTP id KAA11054 for ; Tue, 5 Jun 2001 10:10:41 -0600 (MDT) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Tue, 5 Jun 2001 10:10:40 -0600 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: Compiling GTK apps with Sun's Forte compiler Date: Tue, 5 Jun 2001 10:10:31 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, Sun's compiler doesn't seem to get on with GTK too well. Anyone got any ideas what I can do to change this rather odd behaviour? /opt/SUNWspro/bin/../WS6U1/bin/cc -g -mt -xCC -c -I. -I/opt/gnu/include -I/opt/gnu/include/glib -I/opt/gnu/lib/glib/include -I/usr/openwin/include -I/usr/dt/include -o output/rwaves2-filehandler.o rwaves2-filehandler.c *** Error code 2 "/opt/gnu/include/glib.h", line 1554: undefined or not a type: inline "/opt/gnu/include/glib.h", line 1555: parameter not in identifier list: g_bit_nth_lsf "/opt/gnu/include/glib.h", line 1557: only "register" valid as formal parameter storage class "/opt/gnu/include/glib.h", line 1557: parameter not in identifier list: inline "/opt/gnu/include/glib.h", line 1557: syntax error before or at: gint "/opt/gnu/include/glib.h", line 1560: parameter not in identifier list: g_bit_nth_lsf "/opt/gnu/include/glib.h", line 1560: parameter not in identifier list: __func__ "/opt/gnu/include/glib.h", line 1560: cannot initialize parameter: __func__ "/opt/gnu/include/glib.h", line 1563: undefined symbol: nth_bit "/opt/gnu/include/glib.h", line 1564: undefined symbol: mask "/opt/gnu/include/glib.h", line 1567: undefined symbol: nth_bit "/opt/gnu/include/glib.h", line 1569: warning: statement not reached "/opt/gnu/include/glib.h", line 1569: cannot recover from previous errors : cc: acomp failed for rwaves2-filehandler.c dmake: Fatal error: Command failed for target `output/rwaves2-filehandler.o' Thanks! Rich From skip@beluga.mojam.com Tue Jun 5 12:40:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 345FF2E469 for ; Tue, 5 Jun 2001 12:40:25 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id E64FC2818; Tue, 5 Jun 2001 11:40:24 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.2936.859775.496672@beluga.mojam.com> Date: Tue, 5 Jun 2001 11:40:24 -0500 To: gtk-list@gnome.org Subject: adjustment property on scales and scrollbars get/set methods on range X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: According to the 2.0 reference manual the GtkHScale, GtkVScale, GtkHScrollbar and GtkVScrollbar classes all define an adjustment property, but get_adjustment and set_adjustment methods are defined at the GtkRange level. Is this an inconsistency in the documentation or do each of the scale and scrollbar classes define adjustment properties? If they do, why isn't this defined at the level of the GtkRange class instead? -- Skip Montanaro (skip@pobox.com) (847)971-7098 From skip@beluga.mojam.com Tue Jun 5 12:58:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id E364D2E482 for ; Tue, 5 Jun 2001 12:58:06 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 4B71D2818; Tue, 5 Jun 2001 11:58:06 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.3998.127554.140938@beluga.mojam.com> Date: Tue, 5 Jun 2001 11:58:06 -0500 To: rhfreeman Cc: "'gtk-list@gnome.org'" Subject: Re: Compiling GTK apps with Sun's Forte compiler In-Reply-To: References: X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Rich> Sun's compiler doesn't seem to get on with GTK too well. ... Rich> "/opt/gnu/include/glib.h", line 1554: undefined or not a type: inline For starters it looks like it doesn't understand the "inline" keyword. I'd check a few things: 1. Make sure that configure used the Sun compiler when it ran. 2. Check the various inline-related defines in config.h: /* Have __inline keyword */ #define G_HAVE___INLINE 1 /* Have __inline__ keyword */ #define G_HAVE___INLINE__ 1 /* Have inline keyword */ #define G_HAVE_INLINE 1 If you comment them out does the situation improve? 3. Delete config.cache and try reconfiguring. If it insists on using gcc, set the (I think) CC environment variable explicitly. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Tue Jun 5 14:40:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 669D52E4A4 for ; Tue, 5 Jun 2001 14:38:10 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f55IeYV02037; Tue, 5 Jun 2001 14:40:34 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: rhfreeman Cc: "'gtk-list@gnome.org'" Subject: Re: Compiling GTK apps with Sun's Forte compiler References: From: Havoc Pennington Date: 05 Jun 2001 14:40:34 -0400 In-Reply-To: rhfreeman's message of "Tue, 5 Jun 2001 10:10:31 -0600" Message-ID: Lines: 11 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: rhfreeman writes: > > Sun's compiler doesn't seem to get on with GTK too well. Anyone got any > ideas what I can do to change this rather odd behaviour? You have to build GLib apps with the same compiler used to build GLib, since GLib uses compiler-specific features according to compile-time checks. That might explain it. Havoc From hp@redhat.com Tue Jun 5 14:41:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7499A2DC11 for ; Tue, 5 Jun 2001 14:41:02 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f55IhUC02040; Tue, 5 Jun 2001 14:43:30 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: adjustment property on scales and scrollbars get/set methods on range References: <15133.2936.859775.496672@beluga.mojam.com> From: Havoc Pennington Date: 05 Jun 2001 14:43:30 -0400 In-Reply-To: Skip Montanaro's message of "Tue, 5 Jun 2001 11:40:24 -0500" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > According to the 2.0 reference manual the GtkHScale, GtkVScale, > GtkHScrollbar and GtkVScrollbar classes all define an adjustment property, > but get_adjustment and set_adjustment methods are defined at the GtkRange > level. Is this an inconsistency in the documentation or do each of the > scale and scrollbar classes define adjustment properties? If they do, why > isn't this defined at the level of the GtkRange class instead? > It is at the GtkRange level in the code, I'm not sure what's up with the docs. Havoc From cone@moritz.mine.nu Tue Jun 5 15:24:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prototype (pD9012D3D.dip.t-dialin.net [217.1.45.61]) by mail.gnome.org (Postfix) with ESMTP id 8F1992CC48 for ; Tue, 5 Jun 2001 15:24:48 -0400 (EDT) Received: from cone by prototype with local (Exim 3.22 #1 (Debian)) id 157OJL-0000Ap-00 for ; Tue, 05 Jun 2001 23:24:23 +0200 Date: Tue, 5 Jun 2001 23:24:22 +0200 From: Moritz Angermann To: gtk-list@gnome.org Subject: Re: GTK+ with PHP Message-ID: <20010605232422.B537@prototype> References: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br>; from edsonlima@magnumsa.com.br on Mon, Jun 04, 2001 at 20:18:00 +0200 X-Mailer: Balsa 1.0.pre5 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: yea i do, my latest project is a PHP / GTK based Napster Client ... On Mon, 04 Jun 2001 20:18:00 Edson Lima wrote: > Hello, > I would like to know somebody already knows some thing of GTK+ with PHP. > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > From skip@beluga.mojam.com Tue Jun 5 15:35:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 2990E2DC11 for ; Tue, 5 Jun 2001 15:35:33 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 976BA2819; Tue, 5 Jun 2001 14:35:32 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.13444.459493.270927@beluga.mojam.com> Date: Tue, 5 Jun 2001 14:35:32 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: adjustment property on scales and scrollbars get/set methods on range In-Reply-To: References: <15133.2936.859775.496672@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> According to the 2.0 reference manual the GtkHScale, GtkVScale, >> GtkHScrollbar and GtkVScrollbar classes all define an adjustment >> property, but get_adjustment and set_adjustment methods are defined >> at the GtkRange level. Havoc> It is at the GtkRange level in the code, I'm not sure what's up Havoc> with the docs. I went to file a bug report and discovered I was in error. I was referring to a local snapshot of the 2.0 docs I took in late April. It looks like the current docs on developer.gnome.org are correct. Skip From 4dadio@telkom.net Tue Jun 5 17:29:46 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 35A2B2BDDA for ; Tue, 5 Jun 2001 17:25:14 -0400 (EDT) Received: out-mta3.plasa.com; Wed, 06 Jun 2001 04:25:06 +0700 Received: out-mta2.plasa.com; Wed, 06 Jun 2001 04:25:06 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 640545 for ; Wed, 06 Jun 2001 04:25:05 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: gtk_editable_get_chars=gtk_entry_get_text To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Wed, 06 Jun 2001 04:25:05 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: i failed to get text from entry text's widget, it seem that in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html) doesn't work too. i have tried gtk_editable_get_chars ( Mr. bowman's advise), but i didn't work too. so i need advise from all of you guys thanks dadio From mathew@fugue.jpl.nasa.gov Tue Jun 5 19:38:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ampersand.jpl.nasa.gov (ampersand.jpl.nasa.gov [137.78.28.29]) by mail.gnome.org (Postfix) with ESMTP id E73D52E107 for ; Tue, 5 Jun 2001 19:38:33 -0400 (EDT) Received: from fugue.jpl.nasa.gov (fugue.jpl.nasa.gov [137.78.28.46]) by ampersand.jpl.nasa.gov (8.9.3/8.9.3/RSE-jhk-1.15) with ESMTP id QAA19531 for ; Tue, 5 Jun 2001 16:38:29 -0700 (PDT) Received: from fugue.jpl.nasa.gov (localhost [127.0.0.1]) by fugue.jpl.nasa.gov (8.9.1a/8.9.1/JPLRsol2.jhk-1.7a) with ESMTP id QAA11326 for ; Tue, 5 Jun 2001 16:38:27 -0700 (PDT) Message-Id: <200106052338.QAA11326@fugue.jpl.nasa.gov> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.3 #8[UCI] To: gtk-list@gnome.org Subject: gtk.themes.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 05 Jun 2001 16:38:27 -0700 From: Mathew Yeates Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Has been down for awhile. Anybody know why and when it's going to be back up? Mathew From king@eiffel.com Tue Jun 5 20:05:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 5FE782BCB1 for ; Tue, 5 Jun 2001 20:05:36 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 157QpH-0001RE-00 for gtk-list@gnome.org; Tue, 05 Jun 2001 17:05:31 -0700 Message-ID: <06ca01c0ee1d$6ede5260$750a000a@naples> From: "Ian King" To: Subject: Removing a selected list item from a combo box Date: Tue, 5 Jun 2001 17:12:54 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way that a listitem can remove itself from a combo box on its selection without the application seg faulting. Thanks for your time Ian King From Adam.K@klografx.de Tue Jun 5 11:38:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id A6E6A2DFFD for ; Tue, 5 Jun 2001 11:38:11 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA04516 for ; Tue, 5 Jun 2001 11:38:11 -0400 Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f55FaUb04913 for ; Tue, 5 Jun 2001 11:36:30 -0400 Received: from [195.20.224.208] (helo=mrvdom01.schlund.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 157IuD-0003xQ-00; Tue, 5 Jun 2001 17:38:05 +0200 Received: from p3e9e004a.dip.t-dialin.net ([62.158.0.74] helo=klografx.de) by mrvdom01.schlund.de with smtp (Exim 2.12 #2) id 157ItA-0004hx-00; Tue, 5 Jun 2001 17:37:00 +0200 From: Adam Kopacz To: jiang.xu@echostar.com Cc: gtk-app-devel-list@gnome.org, gtk-list@redhat.com Subject: Re: where I can find more API information about GdkImlib In-Reply-To: <3B1CFB25.B8676254@echostar.com> Organization: kLoGraFX Network Date: Tue, 05 Jun 2001 17:37:29 +0200 (CEST) X-Mailer: XCmail 1.3 - with PGP support, PGP engine version 0.5 (Linux) X-Mailerorigin: http://www.fsai.fh-trier.de/~schmitzj/Xclasses/XCmail/ MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-Id: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Reply to eMail from 'jiang.xu@echostar.com' about 'where I can find more API information about GdkImlib' Hi Jiang XU, > I try to use GdkImlib to load transparent pixmap, such as using > gdk_imlib_XXX calls. > I wonder where I can find more API document about GdkImlib? there is a html-file in the imlib.tgz.. you can download it from my www.klografx.net/qiv/ site.. -- Adam Kopacz kLoGraFX Network Kieselgrund 39 http://klografx.de/ D-68239 Mannheim http://kopacz.de/ ___________________________________________________________ Tel: 06214816775 - Mobil: 01736602174 - ICQ UIN: 257499 From hoshem@mel.comcen.com.au Tue Jun 5 22:42:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 0B0EB2DBD1 for ; Tue, 5 Jun 2001 22:42:48 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id WAA09671 for ; Tue, 5 Jun 2001 22:42:47 -0400 Received: from BuffyRox.localdomain (modem039.mnementh.comcen.com.au [203.23.238.98]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f562f5b02815 for ; Tue, 5 Jun 2001 22:41:05 -0400 Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5604Jj17107; Wed, 6 Jun 2001 10:04:19 +1000 Date: Wed, 6 Jun 2001 10:04:18 +1000 From: Helmethead To: Jiang XU Cc: "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" Subject: Re: where I can find more API information about GdkImlib Message-ID: <20010606100418.A16987@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Jiang XU , "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" References: <3B1CFB25.B8676254@echostar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1CFB25.B8676254@echostar.com>; from jiang.xu@echostar.com on Tue, Jun 05, 2001 at 09:30:45AM -0600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 05, 2001 at 09:30:45AM -0600, Jiang XU wrote: > Guys, > > I try to use GdkImlib to load transparent pixmap, such as using > gdk_imlib_XXX calls. > I wonder where I can find more API document about GdkImlib? > > Thanks > > Jiang Imlib api docs should have come with your imlib development package. Look in /usr/doc or /usr/share/doc. From hoshem@mel.comcen.com.au Tue Jun 5 23:23:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem039.mnementh.comcen.com.au [203.23.238.98]) by mail.gnome.org (Postfix) with ESMTP id E368D2BAC0 for ; Tue, 5 Jun 2001 23:23:43 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f563aI318004; Wed, 6 Jun 2001 13:36:18 +1000 Date: Wed, 6 Jun 2001 13:36:18 +1000 From: Helmethead To: Masaru Natsu Cardenas Cc: gtk-list@gnome.org Subject: Re: Help Message-ID: <20010606133618.A17955@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Masaru Natsu Cardenas , gtk-list@gnome.org 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 mnatsu@cicese.mx on Tue, Jun 05, 2001 at 05:02:58AM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 05, 2001 at 05:02:58AM -0700, Masaru Natsu Cardenas wrote: > Hello i'm new in the gtk programming subject.. i ave only 3 days > programming in Gtk and im trayng to make a simple prog: > > i'm trayng to open a xpm file and dsiplay it into a window and thats all. > > if anyone know where i can found some code .. to read and learn.. it will > be very usefull > > thanks.. > > Hello from Mexico > =) GTK+ can't read image files by itself, you use either gdk-pixbuf or imlib to do that. You probably have one or the other already on your system. If you have imlib installed (development packages) it should have installed some documentation somewhere, probably /usr/doc or /usr/share/doc. From tjlewis@link.com Wed Jun 6 06:09:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from issun6.hti.com (sunmgr.hti.com [130.210.206.69]) by mail.gnome.org (Postfix) with ESMTP id B0BBC2E161 for ; Wed, 6 Jun 2001 06:09:25 -0400 (EDT) Received: from issun5.hti.com ([130.210.202.3]) by issun6.hti.com (Netscape Messaging Server 3.6) with ESMTP id AAA46E9 for ; Wed, 6 Jun 2001 04:36:05 -0500 Received: from home.com ([130.210.4.11]) by issun5.hti.com (Netscape Messaging Server 3.6) with ESMTP id AAA536B for ; Wed, 6 Jun 2001 05:09:34 -0500 Message-ID: <3B1E0006.ACBD2BEC@home.com> Date: Wed, 06 Jun 2001 06:03:50 -0400 From: "Thomas J Lewis" 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: seg fault, gtk_fixed_expose 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: get segmentation fault when clicking on windows. doesn't happen all the time. doesn't point to a line of code in my software. running xxgdb get error message: Program received signal SIGSEGV, Segmentation fault. 0x401ba306 in gtk_fixed_expose () from /usr/lib/libgtk-1.2.so.0 (xxgdb) thanks in advance, tom From john.cupitt@ng-london.org.uk Wed Jun 6 06:25:24 2001 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 538DF2E4DA for ; Wed, 6 Jun 2001 06:25:10 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43KH; Wed, 6 Jun 2001 11:25:09 +0100 Message-ID: <3B1E03C1.5249BBDE@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:19:45 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Thomas J Lewis Cc: gtk-list@gnome.org Subject: Re: seg fault, gtk_fixed_expose References: <3B1E0006.ACBD2BEC@home.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thomas J Lewis wrote: > get segmentation fault when clicking > on windows. doesn't happen all the time. > doesn't point to a line of code in my software. > running xxgdb get error message: > > Program received signal SIGSEGV, Segmentation fault. > 0x401ba306 in gtk_fixed_expose () from /usr/lib/libgtk-1.2.so.0 > (xxgdb) Hi Tom, if this happens with your application, and other GTK programs on your machine are OK, it's probably a problem in your code somewhere. This sort of thing is uaually a memory problem: you're perhaps freeing something twice, or writing beyond the end of an area of memory you allocated. Try running with electric fence, or try memprof. HTH, John From john.cupitt@ng-london.org.uk Wed Jun 6 06:31:06 2001 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 7643B2BC09 for ; Wed, 6 Jun 2001 06:31:06 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43K4; Wed, 6 Jun 2001 11:31:05 +0100 Message-ID: <3B1E0526.3AAD8ADF@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:25:42 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ian King Cc: gtk-list@gnome.org Subject: Re: Removing a selected list item from a combo box References: <06ca01c0ee1d$6ede5260$750a000a@naples> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ian King wrote: > Is there any way that a listitem can remove itself from a combo box on its > selection without the application seg faulting. Hi Ian, I remember struggling with something like this ... the solution I found was to warp the focus to some other widget (with gtk_widget_grab_focus()) before the delete. John From john.cupitt@ng-london.org.uk Wed Jun 6 06:40:32 2001 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 38A122D026 for ; Wed, 6 Jun 2001 06:40:32 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43LP; Wed, 6 Jun 2001 11:40:31 +0100 Message-ID: <3B1E075C.13F084A2@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:35:08 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: dodi-nug <4dadio@telkom.net> Cc: gtk-list@gnome.org Subject: Re: gtk_editable_get_chars=gtk_entry_get_text 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dodi-nug wrote: > i failed to get text from entry text's widget, it seem that > in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html) > doesn't work too. > i have tried gtk_editable_get_chars ( Mr. bowman's advise), > but i didn't work too. It should work. Try: char *txt = gtk_editable_get_chars( GTK_EDITABLE( text ), 0, -1 ); printf( "You typed: \"%s\"\n", txt ); free( txt ); John From howardzzh@yahoo.com Wed Jun 6 06:56:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13402.mail.yahoo.com (web13402.mail.yahoo.com [216.136.175.60]) by mail.gnome.org (Postfix) with SMTP id BF2E12BC09 for ; Wed, 6 Jun 2001 06:56:13 -0400 (EDT) Message-ID: <20010606105613.89298.qmail@web13402.mail.yahoo.com> Received: from [131.215.103.7] by web13402.mail.yahoo.com; Wed, 06 Jun 2001 03:56:13 PDT Date: Wed, 6 Jun 2001 03:56:13 -0700 (PDT) From: Howard Zhou Subject: Help, how to set background color of a text(window) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everyone, We are currently writing a text editor and I wonder whether there is an easy way to set up the background color of a text widget (or a window). We can set the background of the text we will insert, but that doesn't fill the entire window, so is there something like a function that I can call to accomplish that? Thanks! Howard __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From edsonlima@magnumsa.com.br Wed Jun 6 09:32:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ncc1701.magnumsa.com.br (unknown [200.189.50.122]) by mail.gnome.org (Postfix) with ESMTP id 4BD0D2DE2A for ; Wed, 6 Jun 2001 09:32:38 -0400 (EDT) Received: from edson (edson.magnumsa.com.br [172.16.0.121]) by ncc1701.magnumsa.com.br (8.9.3/8.9.3) with SMTP id KAA07765 for ; Wed, 6 Jun 2001 10:37:03 -0300 Posted-Date: Wed, 6 Jun 2001 10:37:03 -0300 Message-ID: <002b01c0ee8c$a0bdcf80$790010ac@magnumsa.com.br> Reply-To: "Edson Lima" From: "Edson Lima" To: Subject: To Moritz Angermann Date: Wed, 6 Jun 2001 10:28:52 -0300 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Moritz Could you help me with some study aid of GTK+ with PHP, and how to access database?? From hbensaid@ensisun.imag.fr Wed Jun 6 09:36:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imag.imag.fr (imag.imag.fr [129.88.30.1]) by mail.gnome.org (Postfix) with ESMTP id F0E902E537; Wed, 6 Jun 2001 09:36:57 -0400 (EDT) Received: from ensisun.imag.fr (ensisun.imag.fr [195.221.228.2]) by imag.imag.fr (8.11.3/8.11.3) with ESMTP id f56Dauk11061; Wed, 6 Jun 2001 15:36:56 +0200 (MEST) Received: from localhost (hbensaid@localhost) by ensisun.imag.fr (8.9.3/8.8.5) with ESMTP id PAA23625; Wed, 6 Jun 2001 15:38:33 +0200 (MET DST) Date: Wed, 6 Jun 2001 15:38:33 +0200 (MET DST) From: "hicham.bensaid@ensimag.imag.fr" X-X-Sender: To: Cc: gtk , gtk app Subject: Re: Printing In-Reply-To: <3B1E0D92.41F9E806@fi.usj.edu.lb> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Try to use gtkextra library it provides tools for drawing graphics, and for printing in ps format, you can find it in "gtkextra.sourceforge.net" On Wed, 6 Jun 2001 dany.mezher@fi.usj.edu.lb wrote: > Hello!!! > > I am writing an application using gtk and I want to allow the user to > print some graphical results. How can I do it??? > > Thanks > Dany Mezher > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > From dany.mezher@fi.usj.edu.lb Wed Jun 6 09:24:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from estrelita.usj.edu.lb (estrelita.usj.edu.lb [193.227.161.97]) by mail.gnome.org (Postfix) with ESMTP id 7576B2E52C; Wed, 6 Jun 2001 09:20:24 -0400 (EDT) Received: from fi.usj.edu.lb (pc118.esib.edu.lb [192.168.1.118] (may be forged)) by estrelita.usj.edu.lb (8.9.3/8.9.3) with ESMTP id QAA28351; Wed, 6 Jun 2001 16:15:15 +0300 From: dany.mezher@fi.usj.edu.lb Message-ID: <3B1E0D92.41F9E806@fi.usj.edu.lb> Date: Wed, 06 Jun 2001 14:01:38 +0300 X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: gtk , gtk app Subject: Printing 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello!!! I am writing an application using gtk and I want to allow the user to print some graphical results. How can I do it??? Thanks Dany Mezher From pbd@op.net Wed Jun 6 10:37:41 2001 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 E97952CEDE for ; Wed, 6 Jun 2001 10:37:40 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0f.ppp.op.net [209.152.194.111]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA23956; Wed, 6 Jun 2001 10:37:36 -0400 (EDT) Message-Id: <200106061437.KAA23956@renoir.op.net> To: Howard Zhou Cc: gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-reply-to: Your message of "Wed, 06 Jun 2001 03:56:13 PDT." <20010606105613.89298.qmail@web13402.mail.yahoo.com> Date: Wed, 06 Jun 2001 10:37:40 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi everyone, > We are currently writing a text editor and I wonder despite the mellifluous superfluousness of existing text based applications for unix like operating systems, we have decided to implement yet another text editor that will no doubt include bits and pieces of the functionality offered by the other 3 dozen or more text editors listed at FreshMeat but will still fail to do everything done by long lived text editors that don't meet our particular aesthetic criteria. >whether there is an easy way to set up the background >color of a text widget (or a window). Have you read Havoc's color-setting FAQ? Search the archives of this list; it was posted here recently. It would be nice if it showed up in the GTK FAQ. --p From skip@beluga.mojam.com Wed Jun 6 11:11:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id AF3EA2CEDE for ; Wed, 6 Jun 2001 11:11:53 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 03E3D2818; Wed, 6 Jun 2001 10:11:51 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15134.18487.924366.641640@beluga.mojam.com> Date: Wed, 6 Jun 2001 10:11:51 -0500 To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-Reply-To: <200106061437.KAA23956@renoir.op.net> References: <20010606105613.89298.qmail@web13402.mail.yahoo.com> <200106061437.KAA23956@renoir.op.net> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Paul" == Paul Davis writes: Paul> implement yet another text editor that will no doubt ... still Paul> fail to do everything done by long lived text editors that don't Paul> meet our particular aesthetic criteria. Agreed. Is there a move afoot to Gtk-ize XEmacs? I found the following page: http://www.cs.indiana.edu/elisp/gui-xemacs/ I don't know what blessings this project has with the powers-that-be, but it seems to me that working toward completing this project would be more fruitful than writing YATE. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From Valdis.Kletnieks@vt.edu Wed Jun 6 11:20:14 2001 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 B1A582E1F1 for ; Wed, 6 Jun 2001 11:20:14 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f56FIo301273; Wed, 6 Jun 2001 11:18:50 -0400 Message-Id: <200106061518.f56FIo301273@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.3.1 01/19/2001 with nmh-1.0.4+dev To: skip@pobox.com (Skip Montanaro) Cc: Paul Davis , gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-Reply-To: Your message of "Wed, 06 Jun 2001 10:11:51 CDT." <15134.18487.924366.641640@beluga.mojam.com> 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[ <200106061437.KAA23956@renoir.op.net> <15134.18487.924366.641640@beluga.mojam.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1200707942P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 06 Jun 2001 11:18:50 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1200707942P Content-Type: text/plain; charset=us-ascii On Wed, 06 Jun 2001 10:11:51 CDT, Skip Montanaro said: > Agreed. Is there a move afoot to Gtk-ize XEmacs? I found the following > page: > > http://www.cs.indiana.edu/elisp/gui-xemacs/ XEmacs 21.4 and 21.5 have --with-gtk options for configure. Unfortunately, at the current time, you have to choose Gtk support or the standard X support (the biggest single loss is that the Gtk code doesn't support opening frames on different $DISPLAY devices). -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-1200707942P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOx5J2nAt5Vm009ewEQLwfwCfeSQQ8MxWYYzkZtpki9/FqSNCSNoAn063 SksZenmQg99QLZZLmZFbWhLp =jAaB -----END PGP SIGNATURE----- --==_Exmh_-1200707942P-- From hp@redhat.com Wed Jun 6 12:14:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EE5C32BAE9 for ; Wed, 6 Jun 2001 12:13:59 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f56GGPM28993; Wed, 6 Jun 2001 12:16:25 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Howard Zhou , gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) References: <200106061437.KAA23956@renoir.op.net> From: Havoc Pennington Date: 06 Jun 2001 12:16:25 -0400 In-Reply-To: Paul Davis's message of "Wed, 06 Jun 2001 10:37:40 -0400" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >whether there is an easy way to set up the background > >color of a text widget (or a window). > > Have you read Havoc's color-setting FAQ? Search the archives of this > list; it was posted here recently. It would be nice if it showed up in > the GTK FAQ. > The URL is: http://pobox.com/~hp/gtk-colors.html Havoc From rsteinke@w-link.net Wed Jun 6 13:35:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 8BF5B2BA83 for ; Wed, 6 Jun 2001 13:35:22 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 157hGO-0004ie-00 for ; Wed, 06 Jun 2001 10:38:36 -0700 Date: Wed, 06 Jun 2001 10:38:36 -0700 To: gtk-list@gnome.org Subject: 1 bit GdkVisual Message-ID: <3B1E6A9C.nailDZB1W5P9I@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm trying to add a utility program which will pull certain GdkBitmaps from the code of my main program and save them as xpms. Since nothing I'm doing in the utility program actually uses gtk, I'm running gdk_init() instead. Everything works fine, except that to create a colormap for the bitmaps I need a visual, and the system visual isn't loaded in gdk_init(). What would be a sensible visual for a bitmap? Ron Steinke From inodal@teleline.es Wed Jun 6 18:07:51 2001 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 B17372BC8B for ; Wed, 6 Jun 2001 18:07:50 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp3.ldap.isp (Netscape Messaging Server 4.15) with ESMTP id GEJ42T03.K3I for ; Thu, 7 Jun 2001 00:06:29 +0200 Message-ID: <3B1E9B48.796ACCDD@teleline.es> Date: Wed, 06 Jun 2001 23:06:16 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: Segmetation fault using assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, May 24, 2001 at 07:29:29PM +0100, Ignacio Nodal wrote: > Hi, > > I want to write a function to read a pixmap string and store it into a > GdkPixmap, but without having to know which widget it will be added into.By > the way the widget could be still not created at all. > The problem is if I use gdk_pixmap_create_from_xpm_d() one of its parameters > force me to specify a "GdkWindow *window". I'm not using any transparent > color, so the "style" isn't a real problem for me... > If I use a non-existing widget I obviously get this error: > "Gdk-WARNING **: Creating pixmap from xpm with NULL window and colormap" > This was written by me a long long time ago ;)) Now, I've been working again on it. Helmethead told me to do it using pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(),&mask, NULL, xpm_structure); I used it, and it seems to work fine, the problem is i'm using C++ (yes yes.. don't tell me to use the Gtk-- again, I already know ;)) and I'm getting a Segmentation fault when trying to assign the GdkPixmap *pixmap returned by "gdk_pixmap_colormap_create_from_xpm_d()" to my "GdkPixmap& pix" parameter.. Here is my C++ function... gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **) pixstring); g_print("The program arrives this point\n"); (GdkPixmap *) pix = pixmap; g_print("Segmentation fault is in the line above\n"); if (&pix == NULL) {return (FALSE);} else {return (TRUE);} } ...any idea about what can be wrong? Thanks in advance, Ignacio Nodal From inodal@teleline.es Wed Jun 6 18:18:12 2001 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 B85762E664 for ; Wed, 6 Jun 2001 18:18:11 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEJ4K106.E3M for ; Thu, 7 Jun 2001 00:16:49 +0200 Message-ID: <3B1E9DB5.1BE2D28B@teleline.es> Date: Wed, 06 Jun 2001 23:16:37 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sorry,there was a fault on the function I pasted ;)) gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **) pixstring); g_print("The program arrives this point\n"); pix = *pixmap; g_print("Segmentation fault is in the line above\n"); if (&pix == NULL) {return (FALSE);} else {return (TRUE);} } In the previous mail I put "(GdkPixmap *) pix = pixmap;" instead of "pix = *pixmap;"... that returns me this error: cannot convert `pix' from type `_GdkWindow' to type `GdkPixmap *' but not the segmentation fault I get with "pix = *pixmap;" which I don't really understand ;(( Thanks again, Ignacio Nodal From hp@redhat.com Wed Jun 6 20:43:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AA75F2BBA9 for ; Wed, 6 Jun 2001 20:43:50 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f570kF323291; Wed, 6 Jun 2001 20:46:15 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ignacio Nodal Cc: GTK-List Subject: Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) References: <3B1E9DB5.1BE2D28B@teleline.es> From: Havoc Pennington Date: 06 Jun 2001 20:46:15 -0400 In-Reply-To: Ignacio Nodal's message of "Wed, 06 Jun 2001 23:16:37 +0200" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > but not the segmentation fault I get with "pix = *pixmap;" which I don't > really understand ;(( You can't copy GdkPixmap by value. It can only be manipulated as a pointer. Havoc From hoshem@mel.comcen.com.au Thu Jun 7 02:07:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp48.angel.comcen.com.au [203.23.238.48]) by mail.gnome.org (Postfix) with ESMTP id 9AC4D2BAF1 for ; Thu, 7 Jun 2001 02:07:43 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f576Kdh29499; Thu, 7 Jun 2001 16:20:39 +1000 Date: Thu, 7 Jun 2001 16:20:39 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) Message-ID: <20010607162039.A29408@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1E9DB5.1BE2D28B@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1E9DB5.1BE2D28B@teleline.es>; from inodal@teleline.es on Wed, Jun 06, 2001 at 11:16:37PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Jun 06, 2001 at 11:16:37PM +0200, Ignacio Nodal wrote: > Sorry,there was a fault on the function I pasted ;)) > > gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) > //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix > { > > GdkPixmap *pixmap; > GdkBitmap *mask; > > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **) > pixstring); > > > > g_print("The program arrives this point\n"); > pix = *pixmap; &pix must be a valid pointer, or this will segfault, just like if (char *)ptr is not a valid pointer, *ptr = 'f' will segfault. This means you're doing something wrong if.. > g_print("Segmentation fault is in the line above\n"); > > if (&pix == NULL) {return (FALSE);} else {return (TRUE);} ..you're expecting &pix might be NULL here. I've forgotten everything I ever knew about c++ but I don't think it can be NULL anyway. Using GTK structures without any indirection is a bad idea, besides. I suspect what you really wanted to do here is something like this, using a reference to a pointer: gboolean ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, pixstring); pix = pixmap; if (pix == NULL) return FALSE; else return TRUE; } Then you would use the function like this: #include "myxpm.xpm" // declares char *myxpm[] GdkPixmap *pixmap; ParameterKernel::ReadPixmap (myxpm, pixmap); From inodal@teleline.es Thu Jun 7 06:12:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id 61B712CB09 for ; Thu, 7 Jun 2001 06:12:12 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEK1M301.M1G for ; Thu, 7 Jun 2001 12:10:51 +0200 Message-ID: <3B1F450E.D98882E4@teleline.es> Date: Thu, 07 Jun 2001 11:10:38 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: (gtk_pixmap_new): assertion `val != NULL' failed 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje wrote: > > Hi Ignacio, > > [...] . Why not try this: > > gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap *pix) > /* "&" changed into "*" */ > [...] > GdkPixmap *pixmap; > [...] > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), ... > [...] > pix = pixmap; /* got rid of the "*" because you're allocating a > pointer to a pointer - so they're the same */ > > That's the good way of doing it, I guess. > Regards, > > Ronald This avoids the segmentation fault... but then.. when I use gtk_pixmap_new() I get this other error: "Gtk-CRITICAL **: file gtkpixmap.c: line 97 (gtk_pixmap_new): assertion `val != NULL' failed." Here is the part of the code involve... Somewhere in the main program I create a button, ParameterButton is subclass of ParameterKernel [...] ParameterButton* button = new ParameterButton(PixmapButton); [...] Then I call the ReadPixmap function in the class constructor: if (_type = PixmapButton) { _pixmap_read = ReadPixmap(pixstring, _pixmap);} [...] Then I try to use my "stored" _pixmap, declared as GdkPixmap* _pixmap being a field of the ParameterButton class, in another member-function I have to create/show the buttons: [...] if (_pixmap_read) { GtkWidget* pixmapwidget; g_print("_pixmap_read seems to have been correctly updated\n"); if (_pixmap == NULL) { g_print("Why the hell isn't my GdkPixmap* _pixmap correctly updated ;(\n");} pixmapwidget = gtk_pixmap_new( _pixmap, NULL ); gtk_widget_show( pixmapwidget); gtk_container_add(GTK_CONTAINER(_button), pixmapwidget); [...] Why isn't my _pixmap field being updated? Thanks again and again and again ;) Ignacio Nodal From hoshem@mel.comcen.com.au Thu Jun 7 06:49:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 517922D033 for ; Thu, 7 Jun 2001 06:49:33 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57B2R731002; Thu, 7 Jun 2001 21:02:27 +1000 Date: Thu, 7 Jun 2001 21:02:27 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607210227.A30953@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1F450E.D98882E4@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1F450E.D98882E4@teleline.es>; from inodal@teleline.es on Thu, Jun 07, 2001 at 11:10:38AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:10:38AM +0200, Ignacio Nodal wrote: > Why isn't my _pixmap field being updated? > > Thanks again and again and again ;) > > Ignacio Nodal Sigh :) Have you ever tried doing this when you were learning C: void foo (int i) { i = 10; printf ("%d\n", i); } int main () { int a = 5; printf ("%d\n", a); foo (a); printf ("%d\n", a); return 0; } the output will be: 5 10 5 and not: 5 10 10 That's the same reason why ronald's proposal won't work. Mine will tho unless I've made some silly screw up too :) By the way I didn't make much sense when I was talking about the cause of the segfault, I was confusing myself. Are you sure it was on the line you said it was? Did you actually try out the g_prints to see if they print? From rbultje@ronald.bitfreak.net Thu Jun 7 07:37:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 7DF8E2DBDC for ; Thu, 7 Jun 2001 07:37:00 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f57CL3C01561; Thu, 7 Jun 2001 14:21:03 +0200 (CEST) From: "Ronald Bultje" To: "Helmethead" Cc: Subject: RE: (gtk_pixmap_new): assertion `val != NULL' failed Date: Thu, 7 Jun 2001 13:42:54 +0200 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: <20010607210227.A30953@BuffyRox.localdomain> Importance: Normal 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Helmethead, >Have you ever tried doing this when you were learning C: [nice code] This is true. >That's the same reason why ronald's proposal won't work. Mine will tho >unless I've made some silly screw up too :) >By the way I didn't make much sense when I was talking about the cause >of the segfault, I was confusing myself. Are you sure it was on the >line you said it was? Did you actually try out the g_prints to see if >they print? But this is not. Because I work with pointers, so the data should be saved. Right? Or am I really missing a big big big big point here? I do see your point here - but as far as I see my code did work with pointers - so the data should be kept in place. --- #include "image.xpm" void create_pixmap(GtkWidget *w) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **)image_xpm); w = gtk_pixmap_new (pixmap, mask); } void test() { GtkWidget *w = NULL; create_pixmap(w); if (w == NULL) g_print("I am stupid\n"); else g_print("I am not that stupid\n"); } --- Should return "I am not that stupid", right? (I don't have a xwindows computer on my hands here so I can't test it - grom). w is a pointer in itself, so although I'm not making pointers to this pointer, we're still working with pointers so your point in the simple-C example is a good point but does not apply here. Right? But I might have missed your point completely :-). Regards, Ronald From lah@micropp.se Thu Jun 7 07:59:38 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from albert.micropp.se (unknown [62.168.157.3]) by mail.gnome.org (Postfix) with ESMTP id AC45F2BBA9 for ; Thu, 7 Jun 2001 07:59:37 -0400 (EDT) Received: by albert.micropp.se (Postfix, from userid 1000) id BB6C24145; Thu, 7 Jun 2001 13:59:34 +0200 (CEST) Date: Thu, 7 Jun 2001 13:59:34 +0200 To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607135934.A21230@albert.micropp.se> References: <20010607210227.A30953@BuffyRox.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 01:42:54PM +0200 From: lah@micropp.se (Lars Hallberg) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:42:54PM +0200, Ronald Bultje wrote: > > --- > #include "image.xpm" > void create_pixmap(GtkWidget *w) { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > w = gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w = NULL; > create_pixmap(w); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } > --- > > Should return "I am not that stupid", right? (I don't have a xwindows > computer on my hands here so I can't test it - grom). unless create_pixmap(w) is C++ with an referens argument this program *will* output "I am stupid\n". In C, ther is *no* way the create_pixmap funktion can change its argument. It can change the memory the pointer points to (but then it have to be pointing to valid memory, not NULL), but it can *not* change the pointer itself. So, i C, w is garanteed to still point to NULL! You actuly have to send a pointer to a pointer for the funktion to be able to change the pointer. That is a poor interface tho, in C a initsilasion funktion (like fopen) that returns a alocated chunk of memory whit a fiting pointer type is commonly used. /Lars From inodal@teleline.es Thu Jun 7 08:54:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id E01222BD69 for ; Thu, 7 Jun 2001 08:54:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEK94L04.U0G for ; Thu, 7 Jun 2001 14:53:09 +0200 Message-ID: <3B1F6B18.3F9E4233@teleline.es> Date: Thu, 07 Jun 2001 13:52:56 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Helmethead wrote: >Sigh :) hehehe, be patient with me :))) > > Have you ever tried doing this when you were learning C: > void foo (int i) > { > i = 10; > printf ("%d\n", i); > } int main () > { > int a = 5; printf ("%d\n", a); > foo (a); > printf ("%d\n", a); > return 0; >} > the output will be: > 5 > 10 > 5 > and not: > 5 > 10 > 10 > That's the same reason why ronald's proposal won't work. > Mine will tho unless I've made some silly screw up too :) > By the way I didn't make much sense when I was talking about > the cause of the segfault, I was confusing myself. Are you > sure it was on the line you said it was? Did you actually try > out the g_prints to see if they print? Yeah, but.. gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap *pix) is more like void foo(int* i), or not? Well, I suppose not, since then my program would be working fine :))) The program crahsed on the line I said, because it printed "The program arrives this point\n" and then returned me the segmentation fault, not printing "Segmentation fault is in the line above\n". [...] g_print("The program arrives this point\n"); pix = *pixmap; g_print("Segmentation fault is in the line above\n"); [...] When I use Ronald's proposal it doesn't return me any segmentation fault (both g_prints are shown) but then, when using gtk_pixmap_new() out from the ReadPixmap() function I get the "assertion `val != NULL' failed" error mentioned in my previous mail... Is there anyway to use my GdkPixmap* _pixmap as a parameter for gtk_pixmap_new(), outside from the function where I create it using gdk_pixmap_colormap_create_from_xpm_d()??? really, anyway... Thanks again... And sorry if my bad programming skills turn you nervous, just some more sighs and I hope it will work :)))) Ignacio Nodal From rwan@cs.mu.oz.au Thu Jun 7 09:44:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 5E1B52BAF1 for ; Thu, 7 Jun 2001 09:43:58 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id XAA22540 for ; Thu, 7 Jun 2001 23:43:08 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id EB24775AA; Thu, 7 Jun 2001 23:43:07 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id E93F2AC94 for ; Thu, 7 Jun 2001 23:43:07 +1000 (EST) Date: Thu, 7 Jun 2001 23:43:07 +1000 (EST) From: Raymond Wan To: GTK-List Subject: Installing gtk without root access 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, A few weeks ago, someone posted a message about having problems installing GTK without root access. I'm having problems with it now, but before I go digging through the scripts, can someone confirm to me whether or not it is possible to install GTK without root access? Unfortunately, our system administrator is overloaded with work (as most sysadmins are :) ), so I would like to try to install it myself. The person who posted that message got a lot of helpful advice but no one said that it was not possible to install GTK without root permission, so can I presume it is possible? BTW, I'm talking about the current version of GTK v1.3 (v1.2.9 is already installed) and I guess I would need to install it and any required components such as GDK. Thanks! Ray From rbultje@ronald.bitfreak.net Thu Jun 7 09:57:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 13DF62DF00 for ; Thu, 7 Jun 2001 09:57:17 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f57EfPC23205; Thu, 7 Jun 2001 16:41:25 +0200 (CEST) From: "Ronald Bultje" To: "Lars Hallberg" Cc: Subject: RE: (gtk_pixmap_new): assertion `val != NULL' failed Date: Thu, 7 Jun 2001 16:03:16 +0200 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: <20010607135934.A21230@albert.micropp.se> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, mr. stupid was playing in my head again. >> #include "image.xpm" >> void create_pixmap(GtkWidget *w) { >> GdkPixmap *pixmap; >> GdkBitmap *mask; >> pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, >> gtk_widget_get_default_colormap(), >> &mask, NULL, (gchar **)image_xpm); >> w = gtk_pixmap_new (pixmap, mask); >> } >> void test() { >> GtkWidget *w = NULL; >> create_pixmap(w); >> if (w == NULL) g_print("I am stupid\n"); >> else g_print("I am not that stupid\n"); >> } >> --- >> >> Should return "I am not that stupid", right? (I don't have a xwindows >> computer on my hands here so I can't test it - grom). > >unless create_pixmap(w) is C++ with an referens argument this program >*will* output "I am stupid\n". In C, ther is *no* way the >create_pixmap >funktion can change its argument. It can change the memory the pointer >points to (but then it have to be pointing to valid memory, not NULL), >but it can *not* change the pointer itself. So, i C, w is garanteed >to still point to NULL! You actuly have to send a pointer to a pointer >for the funktion to be able to change the pointer. Double oops. I forgot that. Let's try this one then: #include "image.xpm" void create_pixmap(GtkWidget **w) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **)image_xpm); *w = gtk_pixmap_new (pixmap, mask); } void test() { GtkWidget *w = NULL; create_pixmap(&w); if (w == NULL) g_print("I am stupid\n"); else g_print("I am not that stupid\n"); } This better? :-) Stupid me... Regards, Ronald From lah@micropp.se Thu Jun 7 10:13:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from albert.micropp.se (unknown [62.168.157.3]) by mail.gnome.org (Postfix) with ESMTP id E2BFA2BEF8 for ; Thu, 7 Jun 2001 10:13:00 -0400 (EDT) Received: by albert.micropp.se (Postfix, from userid 1000) id 0B9C84145; Thu, 7 Jun 2001 16:13:00 +0200 (CEST) Date: Thu, 7 Jun 2001 16:13:00 +0200 To: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607161300.A21786@albert.micropp.se> References: <20010607135934.A21230@albert.micropp.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 04:03:16PM +0200 From: lah@micropp.se (Lars Hallberg) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 04:03:16PM +0200, Ronald Bultje wrote: > > Double oops. I forgot that. Let's try this one then: Shuld work if the pixmap stuf is right (haven't used that). But I would predere: > #include "image.xpm" > GtkWidget *create_pixmap() { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > return gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w; > w = create_pixmap(); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } It is not only a cuestion of taste, 99% of C-code use this convention, so it is more consistent and easy to remember and understand. /Lars From sven@gimp.org Thu Jun 7 11:26:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 26A7F2DF20 for ; Thu, 7 Jun 2001 11:26:57 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 1581Zp-0001Qg-00; Thu, 07 Jun 2001 17:20:01 +0200 To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access References: From: Sven Neumann Date: 07 Jun 2001 17:20:01 +0200 In-Reply-To: Message-ID: Lines: 22 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Raymond Wan writes: > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. ./configure --prefix= make make install Then you'll have to add $prefix/bin to your PATH environment variable, $prefix/lib to LD_LIBRARY_PATH and $prefix/lib/pkgconfig to PKG_CONFIG_PATH and you are done. Salut, Sven From erik@arthur.ubicom.tudelft.nl Thu Jun 7 11:35:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhst2.its.tudelft.nl (mailhst2.its.tudelft.nl [130.161.34.250]) by mail.gnome.org (Postfix) with ESMTP id 3B6ED2E74F for ; Thu, 7 Jun 2001 11:34:45 -0400 (EDT) Received: from arthur.ubicom.tudelft.nl (root@arthur.ubicom.tudelft.nl [130.161.43.222]) by mailhst2.its.tudelft.nl (8.9.3/8.9.3) with ESMTP id RAA28086; Thu, 7 Jun 2001 17:34:42 +0200 (METDST) Received: (from erik@localhost) by arthur.ubicom.tudelft.nl (8.9.3/8.9.3/Debian 8.9.3-21) id RAA11614; Thu, 7 Jun 2001 17:31:14 +0200 Date: Thu, 7 Jun 2001 17:31:14 +0200 From: Erik Mouw To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010607173113.B10688@arthur.ubicom.tudelft.nl> 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 rwan@cs.mu.oz.au on Thu, Jun 07, 2001 at 11:43:07PM +1000 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy! Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. Sure, no problem. > The person who posted that message got a lot of helpful advice but > no one said that it was not possible to install GTK without root > permission, so can I presume it is possible? Yes. export MY_GTK=/home/myhome/gtk export PATH=$MY_GTK/bin:$PATH export LD_LIBRARY_PATH=$MY_GTK/lib Now configure install GTK the usual way, but use the flag --prefix=$MY_GTK for all configure scripts. Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ From hoshem@mel.comcen.com.au Thu Jun 7 11:49:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id AC0832E782 for ; Thu, 7 Jun 2001 11:49:21 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57G2PA00489; Fri, 8 Jun 2001 02:02:25 +1000 Date: Fri, 8 Jun 2001 02:02:25 +1000 From: Helmethead To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010608020225.A31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , gtk-list@gnome.org References: <20010607210227.A30953@BuffyRox.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 01:42:54PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:42:54PM +0200, Ronald Bultje wrote: > Hi Helmethead, > > >Have you ever tried doing this when you were learning C: > [nice code] > > This is true. > > >That's the same reason why ronald's proposal won't work. Mine will tho > >unless I've made some silly screw up too :) > >By the way I didn't make much sense when I was talking about the cause >of > the segfault, I was confusing myself. Are you sure it was on the > >line you said it was? Did you actually try out the g_prints to see if > >they print? > > But this is not. Because I work with pointers, so the data should be saved. > Right? Or am I really missing a big big big big point here? Actually, that's not true :) To pass a variable to a function so the function can modify it, you need to pass the address of the variable (like the mask argument to gdk_pixmap_colormap_create_from_xpm_d). That means the function parameter's type is another level of pointerness (indirection is the technical word) past your original variable. If your original variable is an int, the function has to take int*. If the original variable is GtkWidget*, the function has to take a GtkWidget**. I'll use your example for another example (heh) > I do see your point here - but as far as I see my code did work with > pointers - so the data should be kept in place. > > --- > #include "image.xpm" > void create_pixmap(GtkWidget *w) { void create_pixmap(GtkWidget **w) { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > w = gtk_pixmap_new (pixmap, mask); *w = gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w = NULL; > create_pixmap(w); create_pixmap(&w); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } > --- From hoshem@mel.comcen.com.au Thu Jun 7 12:06:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 15EB02CE45 for ; Thu, 7 Jun 2001 12:06:23 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57GEYl00519; Fri, 8 Jun 2001 02:14:34 +1000 Date: Fri, 8 Jun 2001 02:14:33 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010608021433.B31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.localdomain> <3B1F6B18.3F9E4233@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1F6B18.3F9E4233@teleline.es>; from inodal@teleline.es on Thu, Jun 07, 2001 at 01:52:56PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:52:56PM +0200, Ignacio Nodal wrote: > Helmethead wrote: > > >Sigh :) > hehehe, be patient with me :))) No worries, I have nothing else to do ;) > > > > Have you ever tried doing this when you were learning C: > > void foo (int i) > > { > > i = 10; > > printf ("%d\n", i); > > } int main () > > { > > int a = 5; printf ("%d\n", a); > > foo (a); > > printf ("%d\n", a); > > return 0; > > } [snip] > Yeah, but.. gboolean ParameterKernel::ReadPixmap(gchar **pixstring, > GdkPixmap *pix) is more like void foo(int* i), or not? Well, I suppose > not, since then my program would be working fine :))) Nope, it's like foo(int i) ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap*& pix) is like foo(int &i) you can use a GdkPixmap ** if you really want it to be like foo(int *i) :) > The program crahsed on the line I said, because it printed "The program > arrives this point\n" and then returned me the segmentation fault, not > printing "Segmentation fault is in the line above\n". Hmm... gdk_pixmap_colormap_create_from_xpm_d must be failing (as well!) Write a g_print that prints out the value of pixmap and see if it's NULL > > [...] > g_print("The program arrives this point\n"); > pix = *pixmap; > g_print("Segmentation fault is in the line above\n"); > [...] > > When I use Ronald's proposal it doesn't return me any segmentation fault > (both g_prints are shown) but then, when using gtk_pixmap_new() out from > the ReadPixmap() function I get the "assertion `val != NULL' failed" > error mentioned in my previous mail... The variable passed to ReadPixmap isn't getting set, though if I'm right about what I said above it'd be set to NULL anyway. :( > Is there anyway to use my GdkPixmap* _pixmap as a parameter for > gtk_pixmap_new(), outside from the function where I create it using > gdk_pixmap_colormap_create_from_xpm_d()??? really, anyway... With exactly one change, change the function declarations from ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap* pix) to ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) and it will automagically set the variable you pass in properly. C++ references are pretty cute. From hoshem@mel.comcen.com.au Thu Jun 7 12:09:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 08E5A2DC49 for ; Thu, 7 Jun 2001 12:09:39 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57GMsh00547; Fri, 8 Jun 2001 02:22:54 +1000 Date: Fri, 8 Jun 2001 02:22:54 +1000 From: Helmethead To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010608022254.C31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Raymond Wan , GTK-List 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 rwan@cs.mu.oz.au on Thu, Jun 07, 2001 at 11:43:07PM +1000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > > Hi all, > > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. > > The person who posted that message got a lot of helpful advice but > no one said that it was not possible to install GTK without root > permission, so can I presume it is possible? > > BTW, I'm talking about the current version of GTK v1.3 (v1.2.9 is > already installed) and I guess I would need to install it and any required > components such as GDK. Thanks! I have a nice collection of installed gtk/glib/pango/atk/pkg-config files in my /home/helmet/progs/gtk/newgtk directory. Works fine. Just make sure you set LD_LIBRARY_PATH to /lib and add /bin to your path BEFORE configuring, building and installing, and nothing should croak. And pass --prefix= to configure or autogen.sh. That's all there is to it. From inodal@teleline.es Thu Jun 7 12:23:18 2001 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 EC2E32DECD for ; Thu, 7 Jun 2001 12:23:17 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEKISD05.K0X; Thu, 7 Jun 2001 18:21:49 +0200 Message-ID: <3B1F9C00.C1D966B7@teleline.es> Date: Thu, 07 Jun 2001 17:21:37 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: Helmethead Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.localdomain> <3B1F6B18.3F9E4233@teleline.es> <20010608021433.B31663@BuffyRox.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Helmethead wrote: > With exactly one change, change the function declarations from > > ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap* pix) > to > ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) > > and it will automagically set the variable you pass in properly. C++ references are pretty cute. Ok, thanks a lot.. all seems to work fine now. I've learned a lot about pointers, hehehe It works fine using ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) //the C++ way and also using ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap** pix) //the C way with some little internal changes, of course ;) Thanks for being so patient, I know this was basic pointers UNknowledge :)) Ignacio Nodal From king@eiffel.com Thu Jun 7 15:00:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 63B3C2BB2D for ; Thu, 7 Jun 2001 15:00:16 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15850g-0005Jt-00; Thu, 07 Jun 2001 11:59:58 -0700 Message-ID: <0af601c0ef85$196d0d80$750a000a@naples> From: "Ian King" To: "Erik Mouw" , "Raymond Wan" Cc: "GTK-List" References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> Subject: Re: Installing gtk without root access Date: Thu, 7 Jun 2001 12:07:30 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root access. How would I get my application to dynamically use the 1.2.9 shared libraries (which would be in my home/gtk/lib directory) without editing ld.so.conf (root access needed), or breaking any other applications? Thanks for your time Ian King ----- Original Message ----- From: "Erik Mouw" To: "Raymond Wan" Cc: "GTK-List" Sent: Thursday, June 07, 2001 8:31 AM Subject: Re: Installing gtk without root access > On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > > A few weeks ago, someone posted a message about having problems > > installing GTK without root access. I'm having problems with it now, but > > before I go digging through the scripts, can someone confirm to me whether > > or not it is possible to install GTK without root access? Unfortunately, > > our system administrator is overloaded with work (as most sysadmins are :) > > ), so I would like to try to install it myself. > > Sure, no problem. > > > The person who posted that message got a lot of helpful advice but > > no one said that it was not possible to install GTK without root > > permission, so can I presume it is possible? > > Yes. > > export MY_GTK=/home/myhome/gtk > export PATH=$MY_GTK/bin:$PATH > export LD_LIBRARY_PATH=$MY_GTK/lib > > Now configure install GTK the usual way, but use the flag > --prefix=$MY_GTK for all configure scripts. > > > Erik > > -- > J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department > of Electrical Engineering, Faculty of Information Technology and Systems, > Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands > Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl > WWW: http://www-ict.its.tudelft.nl/~erik/ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From erik@arthur.ubicom.tudelft.nl Thu Jun 7 15:07:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhst2.its.tudelft.nl (mailhst2.its.tudelft.nl [130.161.34.250]) by mail.gnome.org (Postfix) with ESMTP id B4FB52DB5A for ; Thu, 7 Jun 2001 15:07:43 -0400 (EDT) Received: from arthur.ubicom.tudelft.nl (root@arthur.ubicom.tudelft.nl [130.161.43.222]) by mailhst2.its.tudelft.nl (8.9.3/8.9.3) with ESMTP id VAA09745; Thu, 7 Jun 2001 21:07:37 +0200 (METDST) Received: (from erik@localhost) by arthur.ubicom.tudelft.nl (8.9.3/8.9.3/Debian 8.9.3-21) id VAA18730; Thu, 7 Jun 2001 21:07:27 +0200 Date: Thu, 7 Jun 2001 21:07:27 +0200 From: Erik Mouw To: Ian King Cc: Raymond Wan , GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010607210727.D10688@arthur.ubicom.tudelft.nl> References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> <0af601c0ef85$196d0d80$750a000a@naples> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0af601c0ef85$196d0d80$750a000a@naples>; from king@eiffel.com on Thu, Jun 07, 2001 at 12:07:30PM -0700 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy! Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 12:07:30PM -0700, Ian King wrote: > Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older > version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root > access. How would I get my application to dynamically use the 1.2.9 shared > libraries (which would be in my home/gtk/lib directory) without editing > ld.so.conf (root access needed), or breaking any other applications? By using LD_LIBRARY_PATH. "export LD_LIBRARY_PATH=/my/home/gtk/lib" does the trick. See "man ld.so" for more information. Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ From hoshem@mel.comcen.com.au Thu Jun 7 22:23:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem015.ramoth.comcen.com.au [203.23.238.134]) by mail.gnome.org (Postfix) with ESMTP id BC0872C8BC for ; Thu, 7 Jun 2001 22:23:48 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f582aU401945; Fri, 8 Jun 2001 12:36:30 +1000 Date: Fri, 8 Jun 2001 12:36:29 +1000 From: Helmethead To: Ian King Cc: Erik Mouw , Raymond Wan , GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010608123629.A1906@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ian King , Erik Mouw , Raymond Wan , GTK-List References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> <0af601c0ef85$196d0d80$750a000a@naples> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0af601c0ef85$196d0d80$750a000a@naples>; from king@eiffel.com on Thu, Jun 07, 2001 at 12:07:30PM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 12:07:30PM -0700, Ian King wrote: > Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older > version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root > access. How would I get my application to dynamically use the 1.2.9 shared > libraries (which would be in my home/gtk/lib directory) without editing > ld.so.conf (root access needed), or breaking any other applications? > > Thanks for your time > > Ian King Yup, LD_LIBRARY_PATH is ready willing and able in GNU ld on linux. From David.Bourguignon@imag.fr Thu Jun 7 06:53:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ebene.inrialpes.fr (ebene.inrialpes.fr [194.199.18.70]) by mail.gnome.org (Postfix) with ESMTP id 29AD92CF6B for ; Thu, 7 Jun 2001 06:53:53 -0400 (EDT) Received: from safran.inrialpes.fr (safran.inrialpes.fr [194.199.26.1]) by ebene.inrialpes.fr (8.11.3/8.11.3) with ESMTP id f57AqFg28545; Thu, 7 Jun 2001 12:52:15 +0200 (MEST) Received: from imag.fr (estragon [194.199.26.93]) by safran.inrialpes.fr (980427.SGI.8.8.8/8.8.5) with ESMTP id MAA17863; Thu, 7 Jun 2001 12:53:49 +0200 (MDT) Message-ID: <3B1F5C68.A34E8B0@imag.fr> Date: Thu, 07 Jun 2001 12:50:16 +0200 From: David Bourguignon Organization: iMAGIS X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem with gxid_lib 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I apologize in advance if my question is not related to this list topic. I'm using an sgi workstation running irix (sgi unix), a wacom tablet with a wacom irix driver. I tried to use my tablet with gimp. Unfortunately, when configuring gimp to recognize my tablet, using the "File -> Dialogs -> Input Devices" window, I get the following error message : gxid_lib: can't connect to 127.0.0.1:6951 Gdk-WARNING **: Could not get device (is gxid running?) Do you know what does this mean ? Thank you very much for your help. David. -- iMAGIS project, GRAVIR lab INRIA Rhône-Alpes, 655 avenue de l'Europe 38330 Montbonnot Saint Martin, France http://www-imagis.imag.fr/~David.Bourguignon/index.gb.html From otaylor@redhat.com Thu Jun 7 23:25:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 03D9B2D2D6 for ; Thu, 7 Jun 2001 23:25:07 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 9D0A82422B3; Thu, 7 Jun 2001 23:25:01 -0400 (EDT) To: David Bourguignon Cc: gtk-list@gnome.org Subject: Re: problem with gxid_lib References: <3B1F5C68.A34E8B0@imag.fr> From: Owen Taylor Date: 07 Jun 2001 23:25:01 -0400 In-Reply-To: David Bourguignon's message of "Thu, 07 Jun 2001 12:50:16 +0200" Message-ID: Lines: 55 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David Bourguignon writes: > Hi all, > > I apologize in advance if my question is not related to this list topic. Certainly on topic for this list. > I'm using an sgi workstation running irix (sgi unix), a wacom tablet with a > wacom irix driver. I tried to use my tablet with gimp. Unfortunately, when > configuring gimp to recognize my tablet, using the "File -> Dialogs -> Input > Devices" window, I get the following error message : > > gxid_lib: can't connect to 127.0.0.1:6951 > > Gdk-WARNING **: Could not get device (is gxid running?) > > Do you know what does this mean ? > Thank you very much for your help. Well, note the warning in GTK+'s README: ==== The --with-xinput flag specifies whether to compile with support for the XInput extension (mainly used for graphics tablets), and which form of support to use: no : no support xfree : Use special features in the Wacom drivers in XFree86 3.3.1 and later. gxi : Use generic XInput support (not recommended) The XInput support is not known to work with any other XServer than XFree86. For more information about XInput, see: ==== The gxi support was added for and tested with versions of XFree86 older than 3.3.1, and hasn't been tested at all for several years. That being said, what the message means is that you need to start the 'gxid' programming that was built and installed with GTK+ when you compile --with-xinput=gxi. The gxid program is responsible for switching a graphics tablet between controlling the core pointer and sending extended input events that GTK+ and the GIMP can interpret for getting pressure/tilt information. Regards, Owen From Michael.Mitton@millersville.edu Fri Jun 8 08:56:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail1.millersville.edu (mail1.millersville.edu [166.66.56.75]) by mail.gnome.org (Postfix) with ESMTP id C862C2E120 for ; Fri, 8 Jun 2001 08:56:06 -0400 (EDT) Received: by mail1.millersville.edu with Internet Mail Service (5.5.2653.19) id ; Fri, 8 Jun 2001 08:52:00 -0400 Message-ID: From: Michael Mitton To: gtk-list@gnome.org Subject: Glade link off of www.gtk.org Date: Fri, 8 Jun 2001 08:52:00 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. On http://www.gtk.org, the link for glade is set to http://glade.pn.org, but the link is really http://glade.gnome.org. This change happened around 4-19-2001. Could somebody please update the website accordingly? There has been quite a few messages in the glade forum about "Where is the website", and this may help. Thank you. -Michael From howardzzh@yahoo.com Fri Jun 8 12:46:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13405.mail.yahoo.com (web13405.mail.yahoo.com [216.136.175.63]) by mail.gnome.org (Postfix) with SMTP id 84DE22BBFC for ; Fri, 8 Jun 2001 12:46:49 -0400 (EDT) Message-ID: <20010608164648.48317.qmail@web13405.mail.yahoo.com> Received: from [131.215.103.7] by web13405.mail.yahoo.com; Fri, 08 Jun 2001 09:46:48 PDT Date: Fri, 8 Jun 2001 09:46:48 -0700 (PDT) From: Howard Zhou Subject: Help: why Gtk::Bin.remove() deletes my object 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am back. Thanks for your advice last time. Now I have a new one. I tried to switch between text object in a scrolled window by calling remove() then add(*_) because the trial with just calling add(*_) does not work. But I found that remove() will actually delete the text object I put in first(this maybe my misunderstanding). Is this really true? If so, is there a function that I can call so that it will replace the text widget in that window without deleting the old one, or is there any other way going around. Thanks! Howard __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From topper@virginia.edu Fri Jun 8 16:42:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 36AE42DEBA for ; Fri, 8 Jun 2001 16:42:59 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab09715; 8 Jun 2001 16:42 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id QAA19988 for ; Fri, 8 Jun 2001 16:42:58 -0400 (EDT) Message-ID: <3B213847.BBB97D7B@virginia.edu> Date: Fri, 08 Jun 2001 16:40:39 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to keep (force) window focus? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, Is there a way for me to force a window to remain in focus? I've got some popup windows on a canvas, that of course drop to back when focus moves off them. I'm looking for an easy way to force them to remain on top. Thanks, Dave Topper -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From sven@gimp.org Fri Jun 8 19:09:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD90020A1.dip.t-dialin.net [217.0.32.161]) by mail.gnome.org (Postfix) with ESMTP id 92DE52DF1B for ; Fri, 8 Jun 2001 19:09:00 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 158VGo-00025H-00; Sat, 09 Jun 2001 01:02:22 +0200 To: Howard Zhou Cc: gtk-list@gnome.org Subject: Re: Help: why Gtk::Bin.remove() deletes my object References: <20010608164648.48317.qmail@web13405.mail.yahoo.com> From: Sven Neumann Date: 09 Jun 2001 01:02:21 +0200 In-Reply-To: <20010608164648.48317.qmail@web13405.mail.yahoo.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Howard Zhou writes: > I tried to switch between text object > in a scrolled window by calling remove() then add(*_) > because the trial with just calling add(*_) does not > work. But I found that remove() will actually delete > the text object I put in first. the container (scrolled window) takes ownership of the object you add to it and sinks it. All GTK+ containers behave like this. You need to change your code to: gtk_object_ref (object1); container_add (container, object1); ... container_remove (container, object1); container_add (container, object2); Then don't forget to unref your object as soon as you don't need it anymore. Salut, Sven From king@eiffel.com Fri Jun 8 19:36:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 71B5C2E234 for ; Fri, 8 Jun 2001 19:36:21 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 158Vnf-0004Yq-00 for gtk-list@gnome.org; Fri, 08 Jun 2001 16:36:19 -0700 Message-ID: <101f01c0f074$e2607a20$750a000a@naples> From: "Ian King" To: Subject: Hacks needed. Date: Fri, 8 Jun 2001 16:43:56 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a few questions that hopefully someone could help me with. 1) Does anyone know why the vertical scrollbar in a scrollable gtklist doesn't function when the list contains more than 2500 items? 2) Does anyone know why the pixmap in a gtkctreenode disappears when the node is expanded? 3) Does anyone know why the horizontal scrollbar for a ctree doesn't appear at all (with Automatic scroll Policy)? If anyone knows any hacks around these bugs then that would be great, especially number two as that is the most annoying. Thanks for your time Ian King From hp@redhat.com Fri Jun 8 19:55:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 69E7D2E266 for ; Fri, 8 Jun 2001 19:55:14 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f58NvYV12794; Fri, 8 Jun 2001 19:57:34 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> From: Havoc Pennington Date: 08 Jun 2001 19:57:34 -0400 In-Reply-To: "David J. Topper"'s message of "Fri, 08 Jun 2001 16:40:39 -0400" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > Is there a way for me to force a window to remain in focus? I've got > some popup windows on a canvas, that of course drop to back when focus > moves off them. I'm looking for an easy way to force them to remain on > top. > By "popup" do you mean a dialog or a menu or a tooltip type of thing? Are they toplevel GtkWindows? Are they GTK_WINDOW_POPUP? Do you actually want keyboard focus on these, or do you just mean you want them to remain on top? (You mean on top of another window, or on top of the other widgets in a canvas?) Havoc From skip@beluga.mojam.com Fri Jun 8 21:08:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 735612BCF9 for ; Fri, 8 Jun 2001 21:08:47 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 28D632818; Fri, 8 Jun 2001 20:08:44 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15137.30492.15858.792431@beluga.mojam.com> Date: Fri, 8 Jun 2001 20:08:44 -0500 To: gtk-list@gnome.org Subject: odd assertion in gtktextiter.c X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm getting an assertion error in forward_line_leaving_caches_unmodified in gtktextiter.c (this is from the vanilla 1.3.5 distribution). There is a test of new_line: if (new_line != NULL) { ... do some stuff ... } else { /* There is no way to move forward; we were already at the "end" index. (the end index is the last line pointer, segment_byte_offset of 0) */ g_assert (real->line_char_offset == 0 || real->line_byte_offset == 0); ... do some other stuff ... } I'm landing in the else clause. The assertion is failing because real_line_char_offset is -1 and real->line_byte_offset is 25. I looked at new_line and discovered its value to be 0xffffffff. So my confusion is two-fold. One, new_line's value looks mighty suspicious to me. (Looks like -1 instead of a valid pointer.) Two, how in the heck could new_line have compared equal to NULL? I don't believe I did anything unusual when compiling Gtk, so the gcc compilation flags where probably just "-g -O2". I'll try rebuilding without any optimization and see if that helps. Any other debugging suggestions would be appreciated. Thanks, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From 4dadio@telkom.net Fri Jun 8 21:24:53 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 23BA62CF20 for ; Fri, 8 Jun 2001 21:24:46 -0400 (EDT) Received: out-mta3.plasa.com; Sat, 09 Jun 2001 08:24:37 +0700 Received: out-mta2.plasa.com; Sat, 09 Jun 2001 08:24:37 +0700 Received: from [192.168.19.56] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 1810391 for ; Sat, 09 Jun 2001 08:24:37 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: examp. of simple graphic using Gdk To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Sat, 09 Jun 2001 08:24:37 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: There is a lack of how to draw graphic using gdk. so if you guys have an example to draw a simple x=y graphic, please tell me. thanks for your help dadio From hp@redhat.com Fri Jun 8 23:58:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4B0B42BACE for ; Fri, 8 Jun 2001 23:58:05 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f593w2T27857; Fri, 8 Jun 2001 23:58:02 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Hacks needed. References: <101f01c0f074$e2607a20$750a000a@naples> From: Havoc Pennington Date: 08 Jun 2001 23:58:02 -0400 In-Reply-To: "Ian King"'s message of "Fri, 8 Jun 2001 16:43:56 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > > 1) Does anyone know why the vertical scrollbar in a scrollable gtklist > doesn't function when the list contains more than 2500 items? The size of GtkList is limited by the size of an X window, which is 32K pixels or so. Using GtkCList is recommended for this reason among others. I don't know the other two, if you have test cases file a bug on bugzilla.gnome.org and someone can investigate. Havoc From hp@redhat.com Sat Jun 9 00:06:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2DF0C2DBA0 for ; Sat, 9 Jun 2001 00:06:24 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5946NQ28955; Sat, 9 Jun 2001 00:06:23 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: odd assertion in gtktextiter.c References: <15137.30492.15858.792431@beluga.mojam.com> From: Havoc Pennington Date: 09 Jun 2001 00:06:23 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 8 Jun 2001 20:08:44 -0500" Message-ID: Lines: 39 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I'm getting an assertion error in forward_line_leaving_caches_unmodified in > gtktextiter.c (this is from the vanilla 1.3.5 distribution). There is a > test of new_line: > > if (new_line != NULL) > { > ... do some stuff ... > } > else > { > /* There is no way to move forward; we were already > at the "end" index. (the end index is the last > line pointer, segment_byte_offset of 0) */ > > g_assert (real->line_char_offset == 0 || > real->line_byte_offset == 0); > ... do some other stuff ... > } > > I'm landing in the else clause. The assertion is failing because > real_line_char_offset is -1 and real->line_byte_offset is 25. I looked at > new_line and discovered its value to be 0xffffffff. So my confusion is > two-fold. One, new_line's value looks mighty suspicious to me. (Looks like > -1 instead of a valid pointer.) Two, how in the heck could new_line have > compared equal to NULL? I don't believe I did anything unusual when > compiling Gtk, so the gcc compilation flags where probably just "-g -O2". > I'll try rebuilding without any optimization and see if that helps. Any > other debugging suggestions would be appreciated. > The value of new_line is probably either the stack getting messed up or gdb getting confused. If you can make a test case for this so I can reproduce it, I'll try to sort it out. Havoc From inodal@teleline.es Sat Jun 9 08:33:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id 0787A2BA83 for ; Sat, 9 Jun 2001 08:33:13 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GENXFY06.JDB for ; Sat, 9 Jun 2001 14:31:10 +0200 Message-ID: <3B220909.205DA3BF@teleline.es> Date: Sat, 09 Jun 2001 13:31:21 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: hbox widgets with different heights 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, I'm packing a label, a scale and a button in a hbox. If I resize the widget the label and the button should remain of the same size and the scale should be expanded. So I used: [...] _box = gtk_hbox_new(FALSE, 0); _label = gtk_label_new("Integer:"); gtk_box_pack_start(GTK_BOX(_box), _label, FALSE, FALSE, 5); _adj = gtk_adjustment_new(val_default,val_min,val_max,0.1,1.0,1.0); _scale = gtk_hscale_new(GTK_ADJUSTMENT(_adj)); gtk_range_set_update_policy (GTK_RANGE(_scale),GTK_UPDATE_CONTINUOUS); gtk_scale_set_digits (GTK_SCALE(_scale),0); gtk_scale_set_value_pos (GTK_SCALE(_scale), GTK_POS_TOP); gtk_scale_set_draw_value (GTK_SCALE(_scale), TRUE); gtk_box_pack_start(GTK_BOX(_box),_scale, TRUE, TRUE, 0); _button = gtk_button_new_with_label("[-]"); gtk_box_pack_start(GTK_BOX(_box),_button, FALSE, FALSE, 5); [...] That works fine.. the problem is I don't like the height of the button, I would like it a little smaller, so I tried : gtk_widget_set_usize(GTK_WIDGET(_button),20,5); ..but the button widget didn't care at all.. Is there any way to make a widget in a hbox smaller in height than the other widgets?? Thanks in advance, Ignacio Nodal From lsetia78@yahoo.com Sat Jun 9 10:48:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnu.org (unknown [203.195.142.141]) by mail.gnome.org (Postfix) with ESMTP id E9CB62BACE for ; Sat, 9 Jun 2001 10:47:55 -0400 (EDT) Received: (from lsetia@localhost) by gnu.org (8.11.0/8.11.0) id f59F5HY02359; Sat, 9 Jun 2001 20:35:17 +0530 X-Authentication-Warning: milkyway.net.in: lsetia set sender to lsetia78@yahoo.com using -f To: gtk-list@gnome.org Subject: save as dialog... X-please-use: GNU software X-listening-to: Jim Morrison X-personal-homepage: (Still!) Under Construction From: Lokesh Setia Date: 09 Jun 2001 20:35:16 +0530 Message-ID: Lines: 18 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have a couple of questions... o When the file selection widget is used in the context of "Save as", the filename goes off as soon as the directory is changed. Is it a bug in gtk+ 1.2? Or a feature that can be changed? o Is it possible to somehow make the keyboard cursor blink in gtk+ ? Thanks for your time. Loki -- Cricket scoreboard for linux For more info, visit http://scoreboard.sourceforge.net From hp@redhat.com Sat Jun 9 12:27:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 9F6F52D9B8 for ; Sat, 9 Jun 2001 12:27:11 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f59GR7h15824; Sat, 9 Jun 2001 12:27:07 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ignacio Nodal Cc: GTK-List Subject: Re: hbox widgets with different heights References: <3B220909.205DA3BF@teleline.es> From: Havoc Pennington Date: 09 Jun 2001 12:27:07 -0400 In-Reply-To: Ignacio Nodal's message of "Sat, 09 Jun 2001 13:31:21 +0200" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > Is there any way to make a widget in a hbox smaller in height than the > other widgets?? > set_usize() isn't working because it only sets the widget size request, it doesn't force a size. What you want to do is put the button inside a GtkAlignment, then tune the GtkAlignment parameters. Havoc From michaelv@cox-internet.com Sat Jun 9 12:31:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from io.cox-internet.com (unknown [208.180.118.41]) by mail.gnome.org (Postfix) with ESMTP id 8C3102BB31 for ; Sat, 9 Jun 2001 12:31:45 -0400 (EDT) Received: from cdm-233-171-vict.cox-internet.com ([208.180.233.171]) by io.cox-internet.com (InterMail vK.4.02.00.10 201-232-116-110 license dd72657b95c070b1853187e4f5a0d6a7) with ESMTP id <20010609162917.IYJO29067.io@cdm-233-171-vict.cox-internet.com> for ; Sat, 9 Jun 2001 11:29:17 -0500 Subject: themes.org From: Michael Vanderford To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 09 Jun 2001 11:52:20 -0500 Message-Id: <992105540.1078.0.camel@cdm-233-171-vict.cox-internet.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone know what happened to themes.org It's been down for a while now. From alan@clueserver.org Sat Jun 9 12:47:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from clueserver.org (216-99-213-120.dsl.aracnet.com [216.99.213.120]) by mail.gnome.org (Postfix) with ESMTP id 0891A2CC78 for ; Sat, 9 Jun 2001 12:47:56 -0400 (EDT) Received: by clueserver.org (Postfix, from userid 500) id 51DC66E42; Sat, 9 Jun 2001 10:58:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by clueserver.org (Postfix) with ESMTP id 42F045E87; Sat, 9 Jun 2001 10:58:52 -0700 (PDT) Date: Sat, 9 Jun 2001 10:58:52 -0700 (PDT) From: Alan Olsen To: Michael Vanderford Cc: gtk-list@gnome.org Subject: Re: themes.org In-Reply-To: <992105540.1078.0.camel@cdm-233-171-vict.cox-internet.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 9 Jun 2001, Michael Vanderford wrote: > Does anyone know what happened to themes.org > It's been down for a while now. They got hacked when Sourceforge and a bunch of others got hit. I am not certain why it is taking them so long to come back up though. alan@ctrl-alt-del.com | Note to AOL users: for a quick shortcut to reply Alan Olsen | to my mail, just hit the ctrl, alt and del keys. "All power is derived from the barrel of a gnu." - Mao Tse Stallman From Darshan.wakchaure@Vashimail.ltitl.com Fri Jun 8 01:08:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ltitlrelay.ltitl.com (unknown [203.199.54.28]) by mail.gnome.org (Postfix) with ESMTP id 95FDE2D41B for ; Fri, 8 Jun 2001 01:08:14 -0400 (EDT) Received: from Vashimail.ltitl.com ([172.17.9.1]) by ltitlrelay.ltitl.com (Lotus Domino Release 5.0.5) with SMTP id 2001060810371403:29255 ; Fri, 8 Jun 2001 10:37:14 +0530 Received: by Vashimail.ltitl.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id 65256A65.001BE791 ; Fri, 8 Jun 2001 10:34:47 +0530 X-Lotus-FromDomain: VASHI From: Darshan.wakchaure@Vashimail.ltitl.com To: gnome-list@gnome.org Message-ID: <65256A65.001BE5F4.01@Vashimail.ltitl.com> Date: Fri, 8 Jun 2001 10:34:43 +0530 Subject: Help on menu .. Mime-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on ltitlrelay/Ltitl(Release 5.0.5 |September 22, 2000) at 06/08/2001 10:37:14 AM, Serialize by Router on ltitlrelay/Ltitl(Release 5.0.5 |September 22, 2000) at 06/08/2001 10:37:17 AM, Serialize complete at 06/08/2001 10:37:17 AM Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi , I want to have a menu in my application. I have tried to use the sample menu code from the net. Its ok when i am opening notebook kind of appplication, but i want to open multiple windows in from the menu, a mdi - with number of child windows within .. Has anyone used gnome/gtk for building similar kind of stuff??? Thanks, Darshan From reinhard.mueller@bytewise.at Fri Jun 8 10:26:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from email03.aon.at (WARSL401PIP5.highway.telekom.at [195.3.96.112]) by mail.gnome.org (Postfix) with SMTP id 911BA2BAB8 for ; Fri, 8 Jun 2001 10:26:36 -0400 (EDT) Received: (qmail 31834 invoked from network); 8 Jun 2001 14:26:34 -0000 Received: from n813p023.adsl.highway.telekom.at (HELO bytewise.at) ([62.47.45.151]) (envelope-sender ) by qmail3.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 8 Jun 2001 14:26:34 -0000 Message-ID: <3B20E15B.6000003@bytewise.at> Date: Fri, 08 Jun 2001 16:29:47 +0200 From: Reinhard Mueller Organization: GNU Enterprise User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: de, en MIME-Version: 1.0 To: gtk-list@gnome.org Cc: gnue-geas@lists.gnue.org Subject: g_assert vs. g_return[_val]_if_fail 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, We are using glib all over our project (GNU Enterprise) and want to make best use of it's debugging functions. Now the discussion has started on in which cases g_assert should be used and in which g_return... is better. We know the differences: * g_assert is turned off by a different define than g_return..., but both can be turned off. * g_assert terminates the application, where g_return... only terminates the function * therefore, g_assert lets me jump into gdb as soon as it is hit, while g_return... doesn not. This seems to be an advantage for g_assert. * for users, it seems that g_return... is nicer because it doesn't kill the process. So my questions are: Is there a golden rule when to use which? Does it make sense to use both and disable the g_assert for production use and let g_return... in? How do others handle this? Thanks a lot, -- Reinhard Mueller GNU Enterprise project http://www.gnue.org From inodal@teleline.es Sun Jun 10 16:34:31 2001 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 D9D272BEAB for ; Sun, 10 Jun 2001 16:34:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEQEEH05.F3Z for ; Sun, 10 Jun 2001 22:32:41 +0200 Message-ID: <3B23CB67.6CA5C0C2@teleline.es> Date: Sun, 10 Jun 2001 21:32:55 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: problems with gtk_toggle_button_set_active() and check buttons 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, I've create a check button but I've also added a callback which must be called if the right button has been pressed. The calldata is a pointer to my class. When I create it I set the state to TRUE or FALSE according to the value stored in *parameter. [...] _boolean_button = gtk_check_button_new(); _label_widget = gtk_label_new (_label); gtk_container_add(GTK_CONTAINER(_boolean_button), _label_widget); gtk_misc_set_alignment(GTK_MISC(_label_widget), 0.1f, 0.5f); gtk_widget_show(_label_widget); //"button_press_event" instead of "toggled" to know which button was pressed gtk_signal_connect (GTK_OBJECT(_boolean_button), "button_press_event", GTK_SIGNAL_FUNC(CB_ChangedValue), (gpointer) this); //set state as indicated in "*parameter" gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(_boolean_button), (*parameter)); [...] In my callback I look which button has been pressed so I can use differents callbacks for the left and the right button. I know the button only toggles using the left button, that's ok for me. The problem is when I ask in my CB_ChangedValue for "button->active" it returns me FALSE when it's "pressed-in" and TRUE when it's "raised-out". If I don't use gtk_toggle_button_set_active() in the code above all works fine.. Here is the callback function (just testing)... void CB_ChangedValue(GtkWidget* widget, GdkEventButton* event, gpointer cd) { ParameterBoolean * pb = (ParameterBoolean *) cd; switch (event->button) { case 1: *(pb->parameter) = !(*(pb->parameter)); if(pb->_type == BooleanCharCase || pb->_type == BooleanPixmap) pb->Update(); if(pb->_callback != NULL) { void (*pf) (gpointer) = (void (*) (gpointer)) pb->_callback; pf(pb->_calldata); } if (GTK_TOGGLE_BUTTON(widget)->active) { g_print("button activated w:%d p:%d\n",GTK_TOGGLE_BUTTON(widget)->active,*(pb->parameter)); } else { g_print("button desactivated w:%d p:%d\n",GTK_TOGGLE_BUTTON(widget)->active,*(pb->parameter)); } break; case 3: if(pb->_btn3callback != NULL) { void (*pf) (gpointer) = (void (*) (gpointer)) pb->_btn3callback; pf(pb->_btn3data); } break; } What's going wrong? Thanks in advance, Ignacio Nodal From hp@redhat.com Sun Jun 10 17:07:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0AA162DC20 for ; Sun, 10 Jun 2001 17:07:51 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5AL7li07987; Sun, 10 Jun 2001 17:07:47 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Reinhard Mueller Cc: gtk-list@gnome.org, gnue-geas@lists.gnue.org Subject: Re: g_assert vs. g_return[_val]_if_fail References: <3B20E15B.6000003@bytewise.at> From: Havoc Pennington Date: 10 Jun 2001 17:07:47 -0400 In-Reply-To: Reinhard Mueller's message of "Fri, 08 Jun 2001 16:29:47 +0200" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Reinhard Mueller writes: > * g_assert terminates the application, where g_return... only terminates the function > * therefore, g_assert lets me jump into gdb as soon as it is hit, while > g_return... doesn not. This seems to be an advantage for g_assert. You can always run the app with --g-fatal-warnings to also make g_return fatal. > Is there a golden rule when to use which? > Does it make sense to use both and disable the g_assert for production use and let > g_return... in? For GTK, we normally use g_return if the app developer has made a mistake, and g_assert() if GTK itself is confused. Havoc From Simon.Budig@unix-ag.org Sun Jun 10 19:19:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from harley.unix-ag.uni-siegen.de (harley.unix-ag.uni-siegen.de [141.99.42.44]) by mail.gnome.org (Postfix) with ESMTP id 3D3CC2BABF for ; Sun, 10 Jun 2001 19:19:09 -0400 (EDT) Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id BAA17935 for ; Mon, 11 Jun 2001 01:19:07 +0200 Received: (from simon@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id BAA60150 for gtk-list@gnome.org; Mon, 11 Jun 2001 01:19:07 +0200 Date: Mon, 11 Jun 2001 01:19:07 +0200 From: Simon Budig To: gtk-list@gnome.org Subject: "Lightweight GTK+"? Message-ID: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all. I am currently evaluating different Toolkits for an embedded application. I'd like to ask if some people here have made some experiences with GTK+ (on Framebuffer or on X11) in an embedded device. Is it possible to reduce the size of the GTK Library (we don't have unlimited resources) e.g. by removing some unused widgets? Would you recommend to use GTK+ in it's current state? Thanks for opinions, Simon -- Simon.Budig@unix-ag.org http://www.home.unix-ag.org/simon/ From hp@redhat.com Sun Jun 10 23:18:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4192D2BB36 for ; Sun, 10 Jun 2001 23:18:14 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5B3I8U31970; Sun, 10 Jun 2001 23:18:08 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> From: Havoc Pennington Date: 10 Jun 2001 23:18:08 -0400 In-Reply-To: Simon Budig's message of "Mon, 11 Jun 2001 01:19:07 +0200" Message-ID: Lines: 35 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Simon Budig writes: > Is it possible to reduce the size of the GTK Library (we don't have > unlimited resources) e.g. by removing some unused widgets? You can do a custom GTK build and remove a substantial number of the widgets and some other features (e.g. unused image loaders and language modules). Static linking will already strip a lot of unused stuff of course. > Would you recommend to use GTK+ in it's current state? GTK for framebuffer is GTK 1.3.x, which is a development branch - the API is not fixed. Nonetheless it's reasonably stable at this point. If you're willing to tolerate a rough edge or two it should work OK, if you want a full-on shrink-wrapped frozen-solid-API then it's not quite there yet, but will be soon I hope. For embedded you should also consider simply using a small version of X such as the one used for the iPAQ; framebuffer is somewhat smaller but not hugely so, and its smaller size is achieved at the expense of multiprocess support. http://www.redhat.com/devnet/ has an article on GTK framebuffer, scroll down a bit from the top of the front page and you'll see it. The primary advantage of GTK for embedded devices is that you get the same GUI API as a full-fledged computer, and of course the higher-level full-featured nature of that API; GTK will be larger than something like FLTK, but will also be a good bit more powerful if you can afford the size and need the GTK features or the similarity to the non-embedded API. Tradeoffs, tradeoffs. ;-) Havoc From zhu_f@yahoo.com Mon Jun 11 00:09:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id CAF652BF1E for ; Mon, 11 Jun 2001 00:09:15 -0400 (EDT) Message-ID: <20010611040915.71408.qmail@web11502.mail.yahoo.com> Received: from [131.215.103.1] by web11502.mail.yahoo.com; Sun, 10 Jun 2001 21:09:15 PDT Date: Sun, 10 Jun 2001 21:09:15 -0700 (PDT) From: Feng Zhu Subject: get gtk menubar title 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I had some problems with using Gtk-- menu system. Your help will greatly appreciated. First, it looks there is no function to get the title of the menu/menuitem (there is a function to set_title though). If I have a function which takes a menu name and item name, how can I check whether the menu or the item has already exist on the menu bar. Second, why *(menubar->items().begin()) and *(menu->items().begin()) will both return menuitem*? Shouldn't the first return Menu*? How can I traverse the menus given a menubar pointer in that case? Thank you very much, Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From J.B.Huijsmans@chem.rug.nl Mon Jun 11 05:36:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dep.chem.rug.nl (dep.chem.rug.nl [129.125.7.81]) by mail.gnome.org (Postfix) with ESMTP id 1A5702BB4D for ; Mon, 11 Jun 2001 05:36:36 -0400 (EDT) Received: from 00e0291bc23d (chte92.chem.rug.nl [129.125.35.224]) by dep.chem.rug.nl (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id LAA06142 for ; Mon, 11 Jun 2001 11:36:35 +0200 X-Authentication-Warning: dep.chem.rug.nl: Host chte92.chem.rug.nl [129.125.35.224] claimed to be 00e0291bc23d From: "J.B. Huijsmans" To: gtk-list@gnome.org Date: Mon, 11 Jun 2001 11:36:19 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Feature suggestion/request: Display of dotfiles Message-ID: <3B24AD33.8520.D160E7@localhost> Priority: normal X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have just subscribed to this list, so this may have been discussed before. I was looking at a way to change the default behaviour of the fileselection widget to show all files, including 'dotfiles' and it seems to me there is no way to do this currently. I have patched my own version of GTK to include an extra function: gtk_file_selection_show_dotfiles(GtkFileSelection filesel, gboolean dotfiles) I implemented this by adding a global gboolean dot_or_not and addapting the FNMATCH_FLAGS definition, #define FNMATCH_FLAGS(dot_or_not) ( dot_or_not ? FNM_PATHNAME : (FNM_PATHNAME | FNM_PERIOD) ) adding the boolean gboolean dot_or_not=FALSE; and changing every occurance of FNMATCH_FLAGS to FNMATCH_FLAGS(dot_or_not). With this very simple change it was trivial to implement the show dotfiles function to just change the value of dot_or_not. Might this be a useful addition to the gtk fileselection API ? Regards, Jasper -- Ir. J.B. Huijsmans Nijenborgh 4 9747 AG Groningen tel. +31-50-3634503 e-mail: j.b.huijsmans@chem.rug.nl -- From inodal@teleline.es Mon Jun 11 07:43:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp2.teleline.es (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 0C99D2CDF9 for ; Mon, 11 Jun 2001 07:43:01 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp2.teleline.es (Netscape Messaging Server 4.1) with ESMTP id GERKGK04.U12 for ; Mon, 11 Jun 2001 13:41:08 +0200 Message-ID: <3B24A052.E0E184B9@teleline.es> Date: Mon, 11 Jun 2001 12:41:22 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: "button_press_event" signal instead of "toggled" 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, I'll ask it in another way: If I create a check button and want to differentiate between "toggled" event and a "button_press_event" emitted because the right button has been pressed, can I connect only the "button_press_event" signal and then ask in my callback which button has been pressed? Something like this.. gtk_signal_connect_after (GTK_OBJECT(_boolean_button), "button_press_event", GTK_SIGNAL_FUNC(CB_ChangedValue), (gpointer) this); voi CB_ChangedValue (GtkWidget* widget, GdkEventButton* event, gpointer cd) { if (event->button == 1) { /* "toggled" */ } else if (event->button == 3) { /* right button code */ } } The gtk_toggle_button_set_active() function causes the "clicked" and "toggled" signals to be emitted from the button if the state is actually changed. Can this be a problem for me? When I create the button and use gtk_toggle_button_set_active() to set it TRUE it works fine. But then, when I press the button to toggle the state my callback is called because of the "button_press_event". "_boolean_button->active" turns into FALSE but the button toggled twice, so it remains pressed-in. After this first callback, if I press again it toggled only once, but know FALSE is "pressed-in" and TRUE "raise-out". Is there any problem connecting the "button_press_event" signal instead of "toggled"? What's going wrong? Thanks in advance, Ignacio Nodal From john.cupitt@ng-london.org.uk Mon Jun 11 09:47:43 2001 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 77E652BAC0 for ; Mon, 11 Jun 2001 09:47:43 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K44MP; Mon, 11 Jun 2001 14:47:42 +0100 Message-ID: <3B24CAB7.D783B3EF@ng-london.org.uk> Date: Mon, 11 Jun 2001 14:42:15 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Lokesh Setia Cc: gtk-list@gnome.org Subject: Re: save as dialog... 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Lokesh Setia wrote: > o When the file selection widget is used in the context of "Save as", > the filename goes off as soon as the directory is changed. Is it a > bug in gtk+ 1.2? Or a feature that can be changed? It's a feature that can't be changed :-) Lots of people have done new fileselectors, and this is one of the features they almost always put in. Try: http://gtkfilesel.sourceforge.net/ There are lots of others around. > o Is it possible to somehow make the keyboard cursor blink in gtk+ ? I think the next version of GTK has this. It's not easy (as far as I know) in gtk1.2. John From zhu_f@yahoo.com Sun Jun 10 08:45:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id EED4E2DC52 for ; Sun, 10 Jun 2001 08:45:20 -0400 (EDT) Message-ID: <20010610124520.83375.qmail@web11502.mail.yahoo.com> Received: from [131.215.103.1] by web11502.mail.yahoo.com; Sun, 10 Jun 2001 05:45:20 PDT Date: Sun, 10 Jun 2001 05:45:20 -0700 (PDT) From: Feng Zhu Subject: questions about menubar 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I had some problems with using Gtk-- menu system. Your help will greatly appreciated. First, it looks there is no function to get the title of the menu/menuitem (there is a function to set_title though). If I have a function which takes a menu name and item name, how can I check whether the menu or the item has already exist on the menubar. Second, why *(menubar->items().begin()) and *(menu->items().begin()) will both return menuitem*? Shouldn't the first return Menu*? How can I traverse the menus given a menubar pointer in that case? Thank you very much, Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From sven@gimp.org Mon Jun 11 04:19:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id B84722C891 for ; Mon, 11 Jun 2001 04:19:47 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 159Mov-0000Zf-00; Mon, 11 Jun 2001 10:13:09 +0200 To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> From: Sven Neumann Organization: convergence integrated media GmbH Date: 11 Jun 2001 10:13:08 +0200 In-Reply-To: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> Message-ID: Lines: 36 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Simon, Simon Budig writes: > I am currently evaluating different Toolkits for an embedded application. > I'd like to ask if some people here have made some experiences with > GTK+ (on Framebuffer or on X11) in an embedded device. we (http://www.convergence.de/) use GTK+-1.3 ported to DirectFB (http://www.directfb.org/) to avoid the overhead of X and to make use of some advanced features of modern gfx cards like hardware accelerated alpha transparency. > Is it possible to reduce the size of the GTK Library (we don't have > unlimited resources) e.g. by removing some unused widgets? yes, but it's quite a lot of work. It would be nice if we could strip GTK+ down to its basics and provide an easy way to add only the widgets the application really needs. Static linking could be a solution but it does not help if you want to run more than one GTK+ app. Actually we need something like GTK+-Embedded but at the moment I don't see anyone pushing it and we are lacking the resources to do a general solution at the moment. > Would you recommend to use GTK+ in it's current state? it depends on what exactly you are up to. Unfortunately GTK+-1.3 and GLib-1.3 are considerably slower than GTK+-1.2. The major problem here seems to be the bad performance of signal emissions in GObject that has already been pointed out here. Hopefully this will become better before 2.0 is released. Salut, Sven From john.cupitt@ng-london.org.uk Mon Jun 11 09:53:44 2001 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 8EEAA2DCB6 for ; Mon, 11 Jun 2001 09:53:44 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K44NH; Mon, 11 Jun 2001 14:53:43 +0100 Message-ID: <3B24CC20.DBD887FA@ng-london.org.uk> Date: Mon, 11 Jun 2001 14:48:16 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: dodi-nug <4dadio@telkom.net> Cc: gtk-list@gnome.org Subject: Re: examp. of simple graphic using Gdk 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dodi-nug wrote: > There is a lack of how to draw graphic using gdk. > so if you guys have an example to draw a simple x=y graphic, > please tell me. There's the scribble example in the tutorial: http://www.gtk.org/tutorial/ch-scribble.html For fancier GDK stuff, any source covering Xlib graphics will be helpful ... the functions are (mostly) the same: eg. for gdk_gc_set_function(), look up XSetFunction(). HTH, John From lsetia78@yahoo.com Mon Jun 11 13:13:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnu.org (unknown [203.195.140.9]) by mail.gnome.org (Postfix) with ESMTP id 84D0F2CAEF for ; Mon, 11 Jun 2001 13:13:22 -0400 (EDT) Received: (from lsetia@localhost) by gnu.org (8.11.0/8.11.0) id f5BHNv701452; Mon, 11 Jun 2001 22:53:57 +0530 X-Authentication-Warning: milkyway.net.in: lsetia set sender to lsetia78@yahoo.com using -f To: John Cupitt Cc: gtk-list@gnome.org Subject: Re: save as dialog... References: <3B24CAB7.D783B3EF@ng-london.org.uk> X-please-use: GNU software X-listening-to: Jim Morrison X-personal-homepage: (Still!) Under Construction From: Lokesh Setia Date: 11 Jun 2001 22:53:57 +0530 In-Reply-To: <3B24CAB7.D783B3EF@ng-london.org.uk> Message-ID: Lines: 25 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "John" == John Cupitt writes: John> Lokesh Setia wrote: >> o When the file selection widget is used in the context of >> "Save as", the filename goes off as soon as the directory is >> changed. Is it a bug in gtk+ 1.2? Or a feature that can be >> changed? John> It's a feature that can't be changed :-) Lots of people have John> done new fileselectors, and this is one of the features they John> almost always put in. Try: John> http://gtkfilesel.sourceforge.net/ Thanks John for the link, It works with all my existing gtk+ applications with LD_PRELOAD (though I needed it most only for my new galeon :)). Regards, Lokesh. -- When we get back, I'll drop a line -- The Doors. From lestat.lioncourt@innocent.com Mon Jun 11 14:17:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-3-245.abo.wanadoo.fr [193.252.111.245]) by mail.gnome.org (Postfix) with ESMTP id 4E7D52BCA5 for ; Mon, 11 Jun 2001 14:17:10 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 48B3AC95E for ; Mon, 11 Jun 2001 20:17:11 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Mon, 11 Jun 2001 18:17:11 +0000 From: "David Goncalves" To: Subject: Setting fonts to a GtkText widget MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010611181711.48B3AC95E@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, anyone knows how can i force a GtkText widget to use specific fonts ? for example, a widget with fixed fonts. Thanks. From rbultje@ronald.bitfreak.net Mon Jun 11 14:46:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www-server.ucu.uu.nl (www-server.ucu.uu.nl [131.211.104.40]) by mail.gnome.org (Postfix) with ESMTP id 79E2F2D409 for ; Mon, 11 Jun 2001 14:46:47 -0400 (EDT) Received: from ucu-105-112.ucu.uu.nl ([131.211.105.112]) by www-server.ucu.uu.nl (Post.Office MTA v3.5.3 release 223 ID# 0-68709U800L100S0V35) with ESMTP id nl for ; Mon, 11 Jun 2001 20:46:45 +0200 Subject: is this a Gtk-problem? From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 11 Jun 2001 20:46:46 +0200 Message-Id: <992285206.1636.4.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Sometimes, I get really weird bug reports and I have no clue what they mean. I have a user who has severe problems getting the whole thing to start at all, he gets the following notice: [root@localhost temp]# studio Oops, error opening /root/.studio/studio_editlist.eli (open_eli_file) <-- my own error, nothing bad Uh oh, something went wrong when opening the edit list file... <-- my own error, nothing bad Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 1927 error_code 8 request_code 141 minor_code 5 [root@localhost temp]# What does this Gdk-error mean? The user has gtk-1.2.10-1 RPMs from gtk.org on a redhat-7.1 box. (with the initial 1.2.9-4 RPMs, the thing segfaulted, also during gtk_widget_show(window) - I can provide the backtrace if that's interesting). He uses gdk-pixbuf 0.8.0-7. gdb shows no backtrace for this error (because it's not a segfault). And the program starts up, the window appears for 0,1 second but he doesn't get the the notice that it got past gtk_widget_show(window) so something is going wrong in gtk_widget_show(window); - but what? Can anyone shed some light on this for me? It's a unique case. For all other users, it runs fine (but they again don't use redhat-7.1) Thanks in advance (and sorry for bothering you with my users' bug reports but I have no clue where else to ask), Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From andres_giraldo@yahoo.com Mon Jun 11 15:15:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11507.mail.yahoo.com (web11507.mail.yahoo.com [216.136.172.39]) by mail.gnome.org (Postfix) with SMTP id 1F13D2E112 for ; Mon, 11 Jun 2001 15:15:44 -0400 (EDT) Message-ID: <20010611191543.3592.qmail@web11507.mail.yahoo.com> Received: from [208.221.130.25] by web11507.mail.yahoo.com; Mon, 11 Jun 2001 12:15:43 PDT Date: Mon, 11 Jun 2001 12:15:43 -0700 (PDT) From: "Andrés" Giraldo Subject: Newbie questions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm newbie at gtk and I need a little help; I'm trying to create a new Widget its based on a drawingarea, but I have 2 problems: 1. If I declare another widget of the type I'm creating, gtk returns me the following error: Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion `bin->child == NULL' failed. I don't understand the parent class and those things... 2. I have a procedure that repaints the drawing area; I connect a signal to the drawingarea, on the expose event, but... How can I pass it the members of the structure I'm creating? I'm trying to pass a gpointer to the object but in the expose_event function the gpointer data->any_member doesn't work... Please give me any idea... I really apreciate this, Thanks a lot The little header code: /***************************************************/ #ifndef __GTK_NEWLABEL_H__ #define __GTK_NEWLABEL_H__ #include #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define GTK_NEWLABEL(obj) GTK_CHECK_CAST (obj, gtk_newlabel_get_type (), GtkNewLabel) #define GTK_NEWLABEL_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_newlabel_get_type (), GtkNewLabelClass) #define IS_GTK_NEWLABEL(obj) GTK_CHECK_TYPE (obj, gtk_newlabel_get_type ()) typedef struct _GtkNewLabel GtkNewLabel; typedef struct _GtkNewLabelClass GtkNewLabelClass; struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; gchar *str; glong backred; glong backgreen; glong backblue; glong forered; glong foregreen; glong foreblue; }; struct _GtkNewLabelClass { GtkVBoxClass parent_class; }; guint gtk_newlabel_get_type (); GtkWidget* gtk_newlabel_new (gchar *caption); void gtk_newlabel_set_caption (GtkNewLabel *newlabel, gchar *caption); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __GTK_NEWLABEL_H__ */ My Widget's code... /****************************************************/ #include "gtk/gtktable.h" #include "gtk/gtkdrawingarea.h" #include "gtknewlabel.h" #define arial "-ult1mo-arial-medium-r-normal-*-*-160-*-*-p-*-adobe-fontspecific" static void gtk_newlabel_class_init (GtkNewLabelClass *klass); static void gtk_newlabel_init (GtkNewLabel *newlabel); void gtk_newlabel_expose (gpointer data); GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable); GdkColor *NewColor (long red, long green, long blue); guint gtk_newlabel_get_type () { static guint newlabel_type = 0; if (!newlabel_type) { GtkTypeInfo newlabel_info = { "GtkNewLabel", sizeof (GtkNewLabel), sizeof (GtkNewLabelClass), (GtkClassInitFunc) gtk_newlabel_class_init, (GtkObjectInitFunc) gtk_newlabel_init, (GtkArgSetFunc) NULL, (GtkArgGetFunc) NULL }; newlabel_type = gtk_type_unique (gtk_vbox_get_type (), &newlabel_info); } return newlabel_type; } static void gtk_newlabel_class_init (GtkNewLabelClass *class) { } static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; long back_red = 0xb4b4; long back_green = 0xb2b2; long back_blue = 0xb0b0; long fore_red = 0x0000; long fore_green = 0x0000; long fore_blue = 0x0000; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_red", (void *)back_red); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_green", (void *)back_green); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_blue", (void *)back_blue); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_red", (void *)fore_red); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_green", (void *)fore_green); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_blue", (void *)fore_blue); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "caption", ""); gtk_widget_show (newlabel->drawing_area); gtk_signal_connect (GTK_OBJECT (newlabel->drawing_area), "expose_event", GTK_SIGNAL_FUNC (gtk_newlabel_expose), NULL); } GtkWidget* gtk_newlabel_new (gchar *caption) { GtkNewLabel *newlabel; newlabel = gtk_type_new (gtk_newlabel_get_type ()); gtk_newlabel_set_caption (newlabel, caption); return GTK_WIDGET (newlabel); } void gtk_newlabel_set_caption (GtkNewLabel *newlabel, gchar *caption) { gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "caption", (void *)caption); } void gtk_newlabel_expose (gpointer data) { GtkWidget *drawing_area = data; GdkDrawable *drawable = drawing_area->window; GdkGC *gc_back, *gc_fore; GdkFont *font; int x, y, height, width; long back_red = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_red"); long back_green = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_green"); long back_blue = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_blue"); long fore_red = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_red"); long fore_green = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_green"); long fore_blue = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_blue"); char *caption = (char *)gtk_object_get_data (GTK_OBJECT (drawing_area), "caption"); gc_back = GetPen (NewColor (back_red, back_green, back_blue), drawable); gc_fore = GetPen (NewColor (fore_red, fore_green, fore_blue), drawable); gdk_draw_rectangle (drawable, gc_back, TRUE, 0, 0, drawing_area->allocation.width, drawing_area->allocation.height); font = gdk_font_load (arial); height = gdk_text_height (font, caption, strlen(caption)); width = gdk_text_width (font, caption, strlen(caption)); x = ((drawing_area->allocation.width - width) / 2); y = ((drawing_area->allocation.height - height) / 2) + height; gdk_draw_string (drawable, font, gc_fore, x, y, caption); } GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From iweiny@acm.org Mon Jun 11 15:33:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.he.net (mail.he.net [216.218.130.57]) by mail.gnome.org (Postfix) with ESMTP id 60E632E196 for ; Mon, 11 Jun 2001 15:33:36 -0400 (EDT) Received: from acm.org ([216.218.229.236] (may be forged)) by mail.he.net (8.8.6/8.8.2) with ESMTP id MAA22458; Mon, 11 Jun 2001 12:33:32 -0700 Message-ID: <3B251ADF.E6B9ECF5@acm.org> Date: Mon, 11 Jun 2001 12:24:15 -0700 From: Ira Weiny X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.4.5-pre3 ppc) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org, linuxppc Subject: gtk font dependancies 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am running linuxppc-2000-Q4 on my Apple Titanium PowerBook. I am _not_ runnig gnome just straight enlightenment. I have rpm's for XFree86 installed (4.0.99) version. My question is: where does gtk get it's fonts from? (xfs?) I have a couple of programs, namely gscanbus and gaim which don't display certian text correctly. I have messed with xfs and I have _many_ font's installed but I still get "square" characters in certian dialogs. Here is a list of the font packages I have intsalled. $ rpm -qa | grep font ghostscript-fonts-5.50-1 chkfontpath-1.7-2 XFree86-ISO8859-2-100dpi-fonts-4.0.99.3-0b urw-fonts-2.0-4 XFree86-ISO8859-2-75dpi-fonts-4.0.99.3-0b tetex-fonts-1.0.6-11a XFree86-cyrillic-fonts-4.0.99.3-0b XFree86-100dpi-fonts-4.0.99.3-0b XFree86-75dpi-fonts-4.0.99.3-0b XFree86-ISO8859-7-100dpi-fonts-1.0-4 XFree86-ISO8859-7-75dpi-fonts-1.0-4 XFree86-ISO8859-7-Type1-fonts-1.0-4 XFree86-ISO8859-9-100dpi-fonts-2.1.2-10 XFree86-ISO8859-9-75dpi-fonts-2.1.2-10 Thanks in advance, Ira Weiny iweiny@acm.org From Esteban.Quijano@artinsoft.com Mon Jun 11 15:39:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from freedom-srv.intranet (unknown [196.40.21.166]) by mail.gnome.org (Postfix) with ESMTP id DE3402E239 for ; Mon, 11 Jun 2001 15:39:05 -0400 (EDT) Received: by FREEDOM-SRV with Internet Mail Service (5.5.2650.21) id ; Mon, 11 Jun 2001 13:31:10 -0600 Message-ID: From: Esteban Quijano Vincenzi To: gtk-list@gnome.org Subject: RE: Newbie questions Date: Mon, 11 Jun 2001 13:31:10 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0F2AD.117BDFAE" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_01C0F2AD.117BDFAE Content-Type: text/plain; charset="iso-8859-1" Ok, you can pass whatever you want to the callback using your gpointer data: gboolean on_expose_event(GtkWidget *widget, GtkEvent *event, gpointer data) { struct my_struct_t *ms = (my_struct_t *)data; ... /* Use ms as you wish */ ... return TRUE; } or even you can do: gboolean on_expose_event(GtkWidget *widget, GtkEvent *event, struct my_struct_t *ms) { ... /* Use ms as you wish */ ... return TRUE; } later in your code: ... struct my_struct_t ms; ms.something = something; ... gtk_signal_connect(GTK_OBJECT(drawing_area), "expose_event", GTK_SIGNAL_FUNC(on_expose_event), &ms); ... gtk_main(); ... just be carefull about the number of parameters your callback function has: gboolean on_expose_event(GtkWidget *widget, gpointer data); will give you an error when trying to access data as a (my_struct_t *) Esteban Q. ------_=_NextPart_001_01C0F2AD.117BDFAE Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Newbie questions

Ok, you can pass whatever you want to the callback = using your gpointer data:

gboolean on_expose_event(GtkWidget *widget, GtkEvent = *event, gpointer data)
{
   struct my_struct_t *ms =3D (my_struct_t = *)data;
   ...
   /* Use ms as you wish */
   ...
   return TRUE;
}

or even you can do:

gboolean on_expose_event(GtkWidget *widget, GtkEvent = *event, struct my_struct_t *ms)
{
   ...
   /* Use ms as you wish */
   ...
   return TRUE;
}

later in your code:

   ...
   struct my_struct_t ms;
   ms.something =3D something;
   ...
   = gtk_signal_connect(GTK_OBJECT(drawing_area), "expose_event", = GTK_SIGNAL_FUNC(on_expose_event), &ms);
   ...
   gtk_main();
   ...

just be carefull about the number of parameters your = callback function has:

   gboolean on_expose_event(GtkWidget = *widget, gpointer data);

will give you an error when trying to access data as = a (my_struct_t *)


Esteban Q.

------_=_NextPart_001_01C0F2AD.117BDFAE-- From rsteinke@w-link.net Mon Jun 11 17:18:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id B42BF2BD32 for ; Mon, 11 Jun 2001 17:18:33 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159Z8W-0005Sd-00 for ; Mon, 11 Jun 2001 14:22:12 -0700 Date: Mon, 11 Jun 2001 14:22:12 -0700 To: gtk-list@gnome.org Subject: GObject Message-ID: <3B253684.nailG6Z19P8Y1@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Could someone explain how the "properties-changed" signal in GObject is supposed to work? How do you write objects so they use it properly? Ron Steinke From hp@redhat.com Mon Jun 11 17:57:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8037B2BC2D for ; Mon, 11 Jun 2001 17:57:45 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5BLxq113758; Mon, 11 Jun 2001 17:59:52 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ira Weiny Cc: gtk-list@gnome.org, linuxppc Subject: Re: gtk font dependancies References: <3B251ADF.E6B9ECF5@acm.org> From: Havoc Pennington Date: 11 Jun 2001 17:59:51 -0400 In-Reply-To: Ira Weiny's message of "Mon, 11 Jun 2001 12:24:15 -0700" Message-ID: Lines: 8 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ira Weiny writes: > My question is: where does gtk get it's fonts from? (xfs?) They come from the X server, GTK isn't doing anything different from any other X app. Havoc From hp@redhat.com Mon Jun 11 18:01:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5179F2E267 for ; Mon, 11 Jun 2001 18:01:46 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5BM3va24733; Mon, 11 Jun 2001 18:03:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: GObject References: <3B253684.nailG6Z19P8Y1@yggdrasil> From: Havoc Pennington Date: 11 Jun 2001 18:03:57 -0400 In-Reply-To: Ron Steinke's message of "Mon, 11 Jun 2001 14:22:12 -0700" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Could someone explain how the "properties-changed" signal in > GObject is supposed to work? How do you write objects so they use > it properly? > You don't use it - we are campaigning to get it removed because it slows down GTK a lot and is not particularly useful. To get notification you connect to "notify::property_name", or just "notify" to get notification on all properties. To see how to send notifies in your own object implementations, look at most any GTK widget. Typically: void set_foo (Object *obj, Foo *foo) { obj->foo = foo; g_object_notify (obj, "foo"); } obj_set_property (blah blah) { case PROP_FOO: set_foo (obj, g_value_get_foo (value)); break; } Havoc From andrej.prsa@guest.arnes.si Mon Jun 11 18:51:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id A35FA2BF75 for ; Mon, 11 Jun 2001 18:51:11 -0400 (EDT) Received: from arnes.si (ar9-6i.dial-up.arnes.si [194.249.12.6]) by razor.arnes.si (Postfix) with SMTP id 77D35E663 for ; Tue, 12 Jun 2001 00:51:09 +0200 (MET DST) Date: Tue, 12 Jun 2001 00:52:59 +0200 From: Andrej Prsa To: gtk-list@gnome.org Subject: GDK-PixBuf Message-Id: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> X-Mailer: Sylpheed version 0.4.66 (GTK+ 1.2.9; i686-pc-linux-gnu) Organization: University of Astrophysics 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello! I'm going nuts with GDK-Pixbuf... I searched all over the net for a small example but failed to find it. The examples I did find utilize gnome.h, which I try to avoid. Here's my problem: I have to put simple jpg or gif graphics (with known dimensions, bits, ...) to screen. I tried to do it like this: #include #include #include #include "gtk/gtk.h" #include "gdk-pixbuf/gdk-pixbuf.h" int main (int argc, char *argv[]) { GtkWidget *window; GdkPixbuf *image; GdkPixmap *canvas; GdkGC *setup; gtk_init (&argc, &argv); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap()); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); gtk_widget_set_usize (window, 600, 600); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); image = gdk_pixbuf_new_from_file ("test.jpg"); canvas = gdk_pixmap_new (window->window, 262, 392, 8); setup = gdk_gc_new (canvas); gdk_pixbuf_render_to_drawable (image, canvas, setup, 0, 0, 0, 0, 262, 392, GDK_RGB_DITHER_NORMAL, 0, 0); gtk_widget_show_all (window); gtk_main(); return (0); } It compiles without problem, but, however, it crashes with: Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 59 error_code 8 request_code 147 minor_code 3 Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 60 error_code 8 request_code 147 minor_code 3 I'm really clueless... Any ideas? Andrej From rsteinke@w-link.net Mon Jun 11 19:10:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 1719D2DC80 for ; Mon, 11 Jun 2001 19:10:40 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159atF-0008Do-00 for ; Mon, 11 Jun 2001 16:14:33 -0700 Date: Mon, 11 Jun 2001 16:14:33 -0700 To: gtk-list@gnome.org Subject: Error running configure for CVS atk Message-ID: <3B2550D9.nailODH1UY76R@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I try to build atk from CVS, configure gives the following error: ./configure: line 5864: syntax error near unexpected token ``(a' ./configure: line 5864: ` case `(ac_space=' '; set | grep ac_space) 2>&1` in' The surrounding code is: # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache Similar code appears in the configure for pango (and probably glib, I haven't checked) and works fine. What's going on? Ron Steinke From topper@virginia.edu Mon Jun 11 19:26:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (unknown [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id 768BD2BD65 for ; Mon, 11 Jun 2001 19:26:44 -0400 (EDT) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by relay1-us.simplemente.net (Postfix) with SMTP id 5ED49D7829 for ; Mon, 11 Jun 2001 19:26:42 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa25751; 11 Jun 2001 19:26 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA26939 for ; Mon, 11 Jun 2001 19:26:32 -0400 (EDT) Message-ID: <3B252A56.A41BC06F@virginia.edu> Date: Mon, 11 Jun 2001 16:30:14 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Creating GdkEvents? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm having some trouble sending events around CanvasItems and GtkAdjustments. I'm thinking I need to create a new event type, something like "activate" or "trigger_my_event." But the functions listed to do that seem a bit heavy for my used (eg., # of bytes for function() pointer?). Where can I get a list of Gdk/Gtk Events for a given class? Or if anyone has some advice or sample code on creating my own event, I'd really appreciate it. Thanks, Dave Topper -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From topper@virginia.edu Mon Jun 11 19:28:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 5F9642E279 for ; Mon, 11 Jun 2001 19:28:19 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa26898; 11 Jun 2001 19:28 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA27296; Mon, 11 Jun 2001 19:28:15 -0400 (EDT) Message-ID: <3B252ABD.FFF37A9D@virginia.edu> Date: Mon, 11 Jun 2001 16:31:57 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "David J. Topper" writes: > > > > Is there a way for me to force a window to remain in focus? I've got > > some popup windows on a canvas, that of course drop to back when focus > > moves off them. I'm looking for an easy way to force them to remain on > > top. > > > > By "popup" do you mean a dialog or a menu or a tooltip type of thing? > Are they toplevel GtkWindows? Are they GTK_WINDOW_POPUP? > > Do you actually want keyboard focus on these, or do you just mean you > want them to remain on top? (You mean on top of another window, or on > top of the other widgets in a canvas?) I mean a window, they are GtkWindows, not popups. I'm using them to get parameters for items created on the fly (eg., length, width, height) and I don't want the "windows" to drop in back when I accidentally move the mouse off them. Thanks, DT -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From kens@ActiveState.com Mon Jun 11 19:38:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id CC5D92E2A0 for ; Mon, 11 Jun 2001 19:34:41 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5BMYEA13537; Mon, 11 Jun 2001 15:34:14 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5BKZIt20009; Mon, 11 Jun 2001 13:35:18 -0700 Date: Mon, 11 Jun 2001 13:35:18 -0700 (PDT) From: Ken Simpson To: Cc: , David Ascher , Mark Hammond Subject: Automatic focus handling? How do I turn it off? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was told that gtk has a mechanism for automatically setting or removing the focus on widgets in response to events such as keypresses. I think this mechanism has been enabled somewhere inside Mozilla and is causing all kinds of focus-related problems with Mozilla plugins. Can anyone tell me where I can look in gtk to find this automatic focus setting code? Thanks, Ken Simpson Komodo Developer ActiveState From jfbenck@home.nl Mon Jun 11 19:38:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from CP102461-A.home.nl (cp102461-a.landg1.lb.nl.home.com [213.51.21.239]) by mail.gnome.org (Postfix) with ESMTP id 6740A2E2AD for ; Mon, 11 Jun 2001 19:37:13 -0400 (EDT) Received: (from jeroen@localhost) by CP102461-A.home.nl (8.11.0/8.11.0) id f5BNcqP02597; Tue, 12 Jun 2001 01:38:52 +0200 X-Authentication-Warning: CP102461-A.home.nl: jeroen set sender to jfbenck@home.nl using -f Subject: Re: Creating GdkEvents? From: Jeroen Benckhuijsen To: David "J." Topper Cc: gtk-list@gnome.org In-Reply-To: <3B252A56.A41BC06F@virginia.edu> References: <3B252A56.A41BC06F@virginia.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 12 Jun 2001 01:38:52 +0200 Message-Id: <992302732.1367.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 11 Jun 2001 16:30:14 -0400, David J. Topper wrote: > Hi folks, > > I'm having some trouble sending events around CanvasItems and > GtkAdjustments. I'm thinking I need to create a new event type, > something like "activate" or "trigger_my_event." But the functions > listed to do that seem a bit heavy for my used (eg., # of bytes for > function() pointer?). > > Where can I get a list of Gdk/Gtk Events for a given class? > > Or if anyone has some advice or sample code on creating my own event, > I'd really appreciate it. > > Thanks, > > Dave Topper > -- > Technical Director, Virginia Center for Computer Music > http://www.people.virginia.edu/~djt7p > (804) 924-7355 > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list I don't think you want GdkEvents. Most (or all) of them are translations of X Window Events, like an event to redraw a window, resize it, move a mouse, etc, etc. I think what you want is a GtkSignal. The definition of the signals can be found in the .h files (most of the fuction pointers in the class structure) or in the API documentation on http://developer.gnome.org. Often however there isn't really a good description so you'll have to figure out yourselves when a signal is emitted. You can also define you're own signals i believe using a function of GtkObject (think it's called gtk_object_add_user_event or something like that). -- Jeroen Benckhuijsen Software Engineer Phoenix Software From topper@virginia.edu Mon Jun 11 19:45:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 746462E298 for ; Mon, 11 Jun 2001 19:45:13 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab05922; 11 Jun 2001 19:45 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA29639; Mon, 11 Jun 2001 19:42:00 -0400 (EDT) Message-ID: <3B252DF6.D4ED4B2B@virginia.edu> Date: Mon, 11 Jun 2001 16:45:42 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Jeroen Benckhuijsen Cc: gtk-list@gnome.org Subject: Re: Creating GdkEvents? References: <3B252A56.A41BC06F@virginia.edu> <992302732.1367.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jeroen Benckhuijsen wrote: > > I don't think you want GdkEvents. Most (or all) of them are translations > of X Window Events, like an event to redraw a window, resize it, move a > mouse, etc, etc. You're correct. Signals are what I really want. But I'm unable to find a list on the Gnome pages. Similarly, the .h files are a bit elusive too (eg., gtksignal.h doesn't have them). DT -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From king@eiffel.com Mon Jun 11 19:53:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id C157E2E2AD for ; Mon, 11 Jun 2001 19:53:24 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 159bUo-0005Qr-00 for gtk-list@gnome.org; Mon, 11 Jun 2001 16:53:22 -0700 Message-ID: <058e01c0f2d2$bd7c5570$750a000a@naples> From: "Ian King" To: Subject: Pixmaps and focus Date: Mon, 11 Jun 2001 17:00:50 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I were to write a gtktext replacement using gtkpixmap, what are the easiest ways for. 1) Letting the pixmap receive the focus when the user clicks on the editor. 2) Preventing the focus from leaving the widget on tab or arroy key press. Thanks for your time. Ian King. From skip@real-time.com Mon Jun 11 20:03:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id E288F2E2AF for ; Mon, 11 Jun 2001 20:03:58 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5C02R615454; Mon, 11 Jun 2001 19:02:27 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15141.23570.637244.705725@beluga.mojam.com> Date: Mon, 11 Jun 2001 19:02:26 -0500 To: "David J. Topper" Cc: Jeroen Benckhuijsen , gtk-list@gnome.org Subject: Re: Creating GdkEvents? In-Reply-To: <3B252DF6.D4ED4B2B@virginia.edu> References: <3B252A56.A41BC06F@virginia.edu> <992302732.1367.0.camel@CP102461-A.home.nl> <3B252DF6.D4ED4B2B@virginia.edu> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David> Signals are what I really want. But I'm unable to find a list on David> the Gnome pages. Similarly, the .h files are a bit elusive too David> (eg., gtksignal.h doesn't have them). Try the GtkWidget reference manual page: http://developer.gnome.org/doc/API/2.0/gtk/gtkwidget.html (Scroll down to the Signal Prototypes section.) Most signals are defined by GtkWidget. I believe any that end in "-event" are signals tied to X events. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hoshem@mel.comcen.com.au Mon Jun 11 20:47:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (unknown [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id E32A22BC15 for ; Mon, 11 Jun 2001 20:47:15 -0400 (EDT) Received: from BuffyRox.localdomain (ppp19.angel.comcen.com.au [203.23.238.19]) by relay1-us.simplemente.net (Postfix) with ESMTP id 58EB0D7829 for ; Mon, 11 Jun 2001 20:47:04 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5C0oN802922; Tue, 12 Jun 2001 10:50:23 +1000 Date: Tue, 12 Jun 2001 10:50:22 +1000 From: Helmethead To: Andrej Prsa Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf Message-ID: <20010612105022.A2877@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Andrej Prsa , gtk-list@gnome.org References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si>; from andrej.prsa@guest.arnes.si on Tue, Jun 12, 2001 at 12:52:59AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 12, 2001 at 12:52:59AM +0200, Andrej Prsa wrote: > Hello! > > I'm going nuts with GDK-Pixbuf... I searched all over the net for a small example but failed to find it. The examples I did find utilize gnome.h, which I try to avoid. > > Here's my problem: I have to put simple jpg or gif graphics (with known dimensions, bits, ...) to screen. I tried to do it like this: > > #include > #include > #include > #include "gtk/gtk.h" > #include "gdk-pixbuf/gdk-pixbuf.h" > > int main (int argc, char *argv[]) > { > GtkWidget *window; > GdkPixbuf *image; > GdkPixmap *canvas; > GdkGC *setup; > > gtk_init (&argc, &argv); > > gtk_widget_push_visual (gdk_rgb_get_visual ()); > gtk_widget_push_colormap (gdk_rgb_get_cmap()); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); > gtk_widget_set_usize (window, 600, 600); > gtk_widget_pop_visual (); > gtk_widget_pop_colormap (); > > image = gdk_pixbuf_new_from_file ("test.jpg"); > canvas = gdk_pixmap_new (window->window, 262, 392, 8); window->window doesn't exist yet, so that might be why this is failing. You can just pass NULL for the first argument anyway. From hoshem@mel.comcen.com.au Mon Jun 11 21:18:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp19.angel.comcen.com.au [203.23.238.19]) by mail.gnome.org (Postfix) with ESMTP id D01AA2BF58 for ; Mon, 11 Jun 2001 21:18:54 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5C1V3K03010; Tue, 12 Jun 2001 11:31:03 +1000 Date: Tue, 12 Jun 2001 11:31:03 +1000 From: Helmethead To: Ronald Bultje Cc: GTK Mailing List Subject: Re: is this a Gtk-problem? Message-ID: <20010612113103.B2877@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , GTK Mailing List References: <992285206.1636.4.camel@tux> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <992285206.1636.4.camel@tux>; from rbultje@ronald.bitfreak.net on Mon, Jun 11, 2001 at 08:46:46PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 11, 2001 at 08:46:46PM +0200, Ronald Bultje wrote: > gdb shows no backtrace for this error (because it's not a segfault). And > the program starts up, the window appears for 0,1 second but he doesn't > get the the notice that it got past gtk_widget_show(window) so something > is going wrong in gtk_widget_show(window); - but what? Don't know what the error means here, but you can make the error cause a core dump so you can get a useful backtrace by starting the program with the --g-fatal-warnings switch. From hp@redhat.com Mon Jun 11 22:47:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2B4412BE83 for ; Mon, 11 Jun 2001 22:47:20 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2lFM27582; Mon, 11 Jun 2001 22:47:15 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ken Simpson Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Havoc Pennington Date: 11 Jun 2001 22:47:15 -0400 In-Reply-To: Ken Simpson's message of "Mon, 11 Jun 2001 13:35:18 -0700 (PDT)" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson writes: > I was told that gtk has a mechanism for automatically setting or removing > the focus on widgets in response to events such as keypresses. I think > this mechanism has been enabled somewhere inside Mozilla and is causing > all kinds of focus-related problems with Mozilla plugins. > > Can anyone tell me where I can look in gtk to find this automatic focus > setting code? > I don't really understand the question - do you mean GTK widgets take focus when clicked? That code is per-widget, e.g. GtkEntry will call gtk_widget_grab_focus() if it gets a button click. Or do you mean GTK has support for moving focus via the Tab key, etc.? This is handled initially in the key_press_event default handler in gtkwindow.c and from there moves into the "focus" virtual function/signal on specific sub-containers. Havoc From hp@redhat.com Mon Jun 11 22:53:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 937892DC07 for ; Mon, 11 Jun 2001 22:53:36 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2rYW28329; Mon, 11 Jun 2001 22:53:34 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Andrej Prsa Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> From: Havoc Pennington Date: 11 Jun 2001 22:53:34 -0400 In-Reply-To: Andrej Prsa's message of "Tue, 12 Jun 2001 00:52:59 +0200" Message-ID: Lines: 33 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andrej Prsa writes: > image = gdk_pixbuf_new_from_file ("test.jpg"); > canvas = gdk_pixmap_new (window->window, 262, 392, 8); The "8" argument here is totally bogus, it will only work if your display is 8-bit. If window->window existed (and it doesn't here) you could then pass -1 for the depth to use the one from the window. However in this case you might do: gdk_pixmap_new (NULL, 262, 392, gtk_widget_get_visual (window)->depth); > gdk_pixbuf_render_to_drawable (image, canvas, setup, 0, 0, 0, 0, > 262, 392, GDK_RGB_DITHER_NORMAL, 0, 0); You need to look at the "scribble" example in the GTK tutorial for how to go about displaying the pixbuf. The tutorial is on www.gtk.org. > Gdk-ERROR **: BadMatch (invalid parameter attributes) > serial 59 error_code 8 request_code 147 minor_code 3 > Gdk-ERROR **: BadMatch (invalid parameter attributes) > serial 60 error_code 8 request_code 147 minor_code 3 These are from the depth of 8. In GTK 2, you could just do: image = gtk_image_new_from_file ("test.jpg"); gtk_container_add (GTK_CONTAINER (window), image); So look forward to that. ;-) Havoc From hp@redhat.com Mon Jun 11 22:55:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 762C22DC8C for ; Mon, 11 Jun 2001 22:54:35 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2sX828394; Mon, 11 Jun 2001 22:54:33 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Error running configure for CVS atk References: <3B2550D9.nailODH1UY76R@yggdrasil> From: Havoc Pennington Date: 11 Jun 2001 22:54:33 -0400 In-Reply-To: Ron Steinke's message of "Mon, 11 Jun 2001 16:14:33 -0700" Message-ID: Lines: 7 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Get latest pkg-config from http://www.freedesktop.org/software/, and be sure to re-run autogen.sh. Havoc From hp@redhat.com Mon Jun 11 22:56:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 25C192C9EE for ; Mon, 11 Jun 2001 22:56:32 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2uV928534; Mon, 11 Jun 2001 22:56:31 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> From: Havoc Pennington Date: 11 Jun 2001 22:56:31 -0400 In-Reply-To: "David J. Topper"'s message of "Mon, 11 Jun 2001 16:31:57 -0400" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > I mean a window, they are GtkWindows, not popups. I'm using them to get > parameters for items created on the fly (eg., length, width, height) and > I don't want the "windows" to drop in back when I accidentally move the > mouse off them. > I don't understand why they're moving to the back - is your window manager using focus-follows-mouse and raise-on-focus? Havoc From hp@redhat.com Mon Jun 11 23:01:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id E93252DBBA for ; Mon, 11 Jun 2001 23:01:08 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C316R28967; Mon, 11 Jun 2001 23:01:06 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Pixmaps and focus References: <058e01c0f2d2$bd7c5570$750a000a@naples> From: Havoc Pennington Date: 11 Jun 2001 23:01:06 -0400 In-Reply-To: "Ian King"'s message of "Mon, 11 Jun 2001 17:00:50 -0700" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > If I were to write a gtktext replacement using gtkpixmap, This is a totally weird thing to do, btw. > 1) Letting the pixmap receive the focus when the user clicks on the > editor. Set the GTK_CAN_FOCUS flag, handle focus_in_event and focus_out_event, and gtk_widget_grab_focus() on button click. > 2) Preventing the focus from leaving the widget on tab or arroy key press. Return TRUE from your key_press_event handler when receiving those events. Havoc From zhu_f@yahoo.com Mon Jun 11 23:41:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11504.mail.yahoo.com (web11504.mail.yahoo.com [216.136.172.36]) by mail.gnome.org (Postfix) with SMTP id B10222BD90 for ; Mon, 11 Jun 2001 23:41:10 -0400 (EDT) Message-ID: <20010612034106.42829.qmail@web11504.mail.yahoo.com> Received: from [131.215.103.1] by web11504.mail.yahoo.com; Mon, 11 Jun 2001 20:41:06 PDT Date: Mon, 11 Jun 2001 20:41:06 -0700 (PDT) From: Feng Zhu Subject: list select_child signal problem 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: What is wrong with the following code: (SPWorkSpaceView is the class name and FileSelectChild is a method. _file_list is a Gtk::List) _file_list->select_child.connect(bind(slot(this, &SPWorkSpaceView::FileSelectChild), _file_list, _main_window)); Compiler gives: no matching function for call to `Gtk::List::Proxy_select_child::connect (SigC::Slot0)' /usr/local/include/gtk--/list.h:281: candidates are: SigC::Connection Gtk::List::Proxy_select_child::connect (const SigC::Slot1 &) But for Gtk::tree works fine. Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From kens@ActiveState.com Tue Jun 12 01:07:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id E29CF2E236 for ; Tue, 12 Jun 2001 01:07:02 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C46oA09778; Mon, 11 Jun 2001 21:06:50 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C56oE02379; Mon, 11 Jun 2001 22:06:50 -0700 Date: Mon, 11 Jun 2001 22:06:50 -0700 (PDT) From: Ken Simpson To: Havoc Pennington Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Or do you mean GTK has support for moving focus via the Tab key, etc.? > This is handled initially in the key_press_event default handler in > gtkwindow.c and from there moves into the "focus" virtual > function/signal on specific sub-containers. I apologize if I wasn't clear in my email. The problem is that pressing keys such as the arrow keys, the backspace, and the tab cause my widget to lose focus and for its containing window to gain focus. The key press event first hits my widget and then, once I have returned 0 from the key_press handler, control returns to gtk, the focus is removed, and the event is propagated to the containing window where it is handled. So I suppose it could have something to do with gtk's support for moving the focus with tab, etc.. How does one turn this functionality off? Thanks very much for your help, Havoc. Regards, Ken From kens@ActiveState.com Tue Jun 12 01:13:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id 496752E2BD for ; Tue, 12 Jun 2001 01:13:19 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C4CuA10033; Mon, 11 Jun 2001 21:12:56 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C5Ct702613; Mon, 11 Jun 2001 22:12:55 -0700 Date: Mon, 11 Jun 2001 22:12:55 -0700 (PDT) From: Ken Simpson To: Havoc Pennington Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Or do you mean GTK has support for moving focus via the Tab key, etc.? > This is handled initially in the key_press_event default handler in > gtkwindow.c and from there moves into the "focus" virtual > function/signal on specific sub-containers. Let's try lines 1255+ of gtkwindow.c: case GDK_Up: case GDK_Down: case GDK_Left: case GDK_Right: case GDK_KP_Up: ... gtk_container_focus (GTK_CONTAINER (widget), direction); if (!GTK_CONTAINER (window)->focus_child) gtk_window_set_focus (GTK_WINDOW (widget), NULL); else handled = TRUE; break; } Is this the code which performs automatic focus changing in response to keypresses? It certainly seems to fit the symptoms :) Hmm.. But there doesn't appear any way of "turning it off". TTUL Ken From hp@redhat.com Tue Jun 12 01:44:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 877332C7E9 for ; Tue, 12 Jun 2001 01:44:37 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C5iXf12671; Tue, 12 Jun 2001 01:44:33 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ken Simpson Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Havoc Pennington Date: 12 Jun 2001 01:44:32 -0400 In-Reply-To: Ken Simpson's message of "Mon, 11 Jun 2001 22:12:55 -0700 (PDT)" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson writes: > Is this the code which performs automatic focus changing in response to > keypresses? It certainly seems to fit the symptoms :) > Hmm.. But there doesn't appear any way of "turning it off". > Yep, that's the code. Writing other widget sets is not what GTK is made for, so we don't have an easy way to change this. ;-) That's why Chris was working on Xlib Mozilla for a while I imagine. However you can do a hack to GtkWindow - connect to key_press_event, when you see one of these keys call gtk_signal_emit_stop_by_name to kill the event. Or subclass GtkWindow and override the default signal handler and do something a bit differently there. Should be able to get it working. You could possibly also override set_focus or grab_focus and do some sort of hack. You may well have weird interactions with GtkMozEmbed and apps like Galeon... Havoc From rsteinke@w-link.net Tue Jun 12 01:55:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 08CEC2D2FB for ; Tue, 12 Jun 2001 01:55:20 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159hCt-0001TR-00; Mon, 11 Jun 2001 22:59:15 -0700 Date: Mon, 11 Jun 2001 22:59:15 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Error running configure for CVS atk Cc: gtk-list@gnome.org Message-ID: <3B25AFB3.nail3J91WQY1M@yggdrasil> References: <3B2550D9.nailODH1UY76R@yggdrasil> In-Reply-To: User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks. It seems I was running the sourceforge CVS version of pkg-config, which is old. Ron Steinke From david.robin@st.com Tue Jun 12 02:18:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mail.gnome.org (Postfix) with ESMTP id E66622BCB1 for ; Tue, 12 Jun 2001 02:18:01 -0400 (EDT) Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id B1FE94A53 for ; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id EC8454A74; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: from eux100.sgp.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B19F5184F for ; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: from st.com (fenix.nvg.sgp.st.com [164.129.227.19]) by eux100.sgp.st.com (8.8.6 (PHNE_17190)/8.8.6) with ESMTP id IAA18896 for ; Tue, 12 Jun 2001 08:17:59 +0200 (METDST) Message-ID: <3B25B533.97696368@st.com> Date: Tue, 12 Jun 2001 08:22:43 +0200 From: David Robin X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: PanedBox Bug? References: <20010611233005.1B3A12E29B@mail.gnome.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I Created a H-Paned Box with a notebook in each of the panels with gtk_panel_add. When I hide the left notebook, the left panel goes hidden. But the right notebook doesnot takes the empty space, and the gutter stays visible. Is it the expected behaviour? The behaviour I expected was : when I 'kind of' close one of the panel, the other one fills all the space, and the gutter desappears because it is no more useful. Then, If I show both notebooks again, the gutter reappears, at the same position it used to be. Is this a bug, or do I need to add some code in my app and make it by myself? Thanks, David. From alex@vabank.kiev.ua Tue Jun 12 02:55:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.lucky.net (smtp.lucky.net [193.193.193.117]) by mail.gnome.org (Postfix) with ESMTP id 2105E2BC92 for ; Tue, 12 Jun 2001 02:55:29 -0400 (EDT) Received: from kozlik.carrier.kiev.ua (kozlik.carrier.kiev.ua [193.193.193.111]) by smtp.lucky.net (20001217) with ESMTP id 2D1902C712C for ; Tue, 12 Jun 2001 09:55:24 +0300 (EEST) Received: (from uucp@localhost) by kozlik.carrier.kiev.ua with UUCP id JVG97761 for gtk-list@gnome.org; Tue, 12 Jun 2001 09:55:16 +0300 (EEST) (envelope-from alex@vabank.kiev.ua) Received: from vabank.UUCP (uucp@localhost) by kozlik.carrier.kiev.ua (rmail mypid=97760 childpid=97761) with UUCP; Tue, 12 Jun 2001 06:55:16 +0000 GMT Received: (from alex@localhost) by vabank.kiev.ua (8.9.3/8.9.3) id JAA01298 for gtk-list@gnome.org; Tue, 12 Jun 2001 09:50:50 +0300 Date: Tue, 12 Jun 2001 09:50:50 +0300 From: Alex Biryukov To: gtk-list@gnome.org Subject: refresh window's labels Message-ID: <20010612095050.A1273@queen.vabank.kiev.ua> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Is anybody know how to refresh labels of the main window, after change language of GUI ? I use gettext, and change lang by setting environment variable: setenv("LANGUAGE", "es", 1); /* Make change known. */ { extern int _nl_msg_cat_cntr; ++_nl_msg_cat_cntr; } All of dialog boxes ok, because they created each time. But main window remain in old language. Any idea ? Thanks a lot. Alex From mseisdedos@cirsa.com Tue Jun 12 03:10:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id A7B802BE13 for ; Tue, 12 Jun 2001 03:10:27 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A69.00275AB8; Tue, 12 Jun 2001 09:09:51 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Tue, 12 Jun 2001 09:10:41 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4807@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: gtkclist Date: Tue, 12 Jun 2001 09:10:39 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello everybody: how can i know how many rows are there in a gtkclist???? Is there any conversion macro to get a glist from a gtkclist??? From matt.keenan@ireland.sun.com Tue Jun 12 03:52:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by mail.gnome.org (Postfix) with ESMTP id BDED92DB7E for ; Tue, 12 Jun 2001 03:52:03 -0400 (EDT) Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id AAA09708 for ; Tue, 12 Jun 2001 00:52:01 -0700 (PDT) Received: from ireland.Sun.COM (zaphod [129.156.238.30]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.1p1) with ESMTP id IAA24429 for ; Tue, 12 Jun 2001 08:52:01 +0100 (BST) Message-ID: <3B25C8BE.244572A5@ireland.Sun.COM> Date: Tue, 12 Jun 2001 08:46:06 +0100 From: Matt Keenan Organization: Sun Microsystems Inc X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.9 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: gtkclist References: <01294F3FC12BD41183BD00D0B7176A1D4D4807@srvexch> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Just access the GtkClist widget structure member "rows" and this will tell you how many items there are in the Clist. GtkWidget *CList_Widget; gint rows; row =3D GTK_CLIST(CList_Widget)->rows; You can then loop throught the clist based on the "rows" variable. for (i=3D0; i = > Hello everybody: > how can i know how many rows are there in a gtkclist???? > Is there any conversion macro to get a glist from a gtkclist??? > = > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- = __.--'\ \.__./ /'--.__ _.-' '.__.' '.__.' '-._ .' '. / Matt Keenan (MattMan) \ | CDE, Sun Microsystems Ireland | | GO JAGUARS !! | | E-Mail : Matt.Keenan@ireland.Sun.Com | | mattman@iol.ie | | URL : http://www.iol.ie/~mattman | | Phone : +353 1 8199251, Sun Ext : 19251 | \ .---. .---. / '._ .' '.''. .''.' '. _.' '-./ \ / \.-' '' From otaylor@redhat.com Tue Jun 12 07:42:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id CB88F2D2EC for ; Tue, 12 Jun 2001 07:42:50 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 38D042422D3; Tue, 12 Jun 2001 07:42:50 -0400 (EDT) To: Havoc Pennington Cc: Ken Simpson , , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Owen Taylor Date: 12 Jun 2001 07:42:50 -0400 In-Reply-To: Havoc Pennington's message of "12 Jun 2001 01:44:32 -0400" Message-ID: Lines: 35 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington writes: > Ken Simpson writes: > > Is this the code which performs automatic focus changing in response to > > keypresses? It certainly seems to fit the symptoms :) > > Hmm.. But there doesn't appear any way of "turning it off". > > > > Yep, that's the code. Writing other widget sets is not what GTK is > made for, so we don't have an easy way to change this. ;-) That's why > Chris was working on Xlib Mozilla for a while I imagine. > > However you can do a hack to GtkWindow - connect to key_press_event, > when you see one of these keys call gtk_signal_emit_stop_by_name to > kill the event. Or subclass GtkWindow and override the default signal > handler and do something a bit differently there. Should be able to > get it working. You could possibly also override set_focus or > grab_focus and do some sort of hack. > > You may well have weird interactions with GtkMozEmbed and apps like > Galeon... You shouldn't need anything this complicated, or this likely to break stuff. Widgets are sent key presses before GTK+ checks for focus keys. If the widget handles the key press in its event handler and returns TRUE, then GTK+ will not check for tab/arrows. For instance, this is how GtkText prevents a tab key from tabbing out of the GtkText widget. Regards, Owen From pbd@op.net Tue Jun 12 07:58:05 2001 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 1C10A2BAFB for ; Tue, 12 Jun 2001 07:58:05 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-09.ppp.op.net [209.152.194.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id HAA01694; Tue, 12 Jun 2001 07:57:58 -0400 (EDT) Message-Id: <200106121157.HAA01694@renoir.op.net> To: Ken Simpson Cc: Havoc Pennington , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Mon, 11 Jun 2001 22:06:50 PDT." Date: Tue, 12 Jun 2001 07:59:27 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I apologize if I wasn't clear in my email. The problem is that pressing >keys such as the arrow keys, the backspace, and the tab cause my widget to >lose focus and for its containing window to gain focus. The key press >event first hits my widget and then, once I have returned 0 from the >key_press handler, control returns to gtk, the focus is removed, and the >event is propagated to the containing window where it is handled. > >So I suppose it could have something to do with gtk's support for moving >the focus with tab, etc.. How does one turn this functionality off? you can't turn it off per se. you have two choices: 1) on a per-widget basis, catch key_press/key release events. if they are for one of the navigation keys, do nothing except: gtk_signal_emit_block_by_name (...); return TRUE; 2) install a global key snooper, inspect all key press events, and discard or translate the navigation keys. and yes, i don't like it any more than you do :) --p From pbd@op.net Tue Jun 12 08:00:19 2001 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 1BAFA2DCF5 for ; Tue, 12 Jun 2001 08:00:19 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-09.ppp.op.net [209.152.194.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA01853; Tue, 12 Jun 2001 08:00:12 -0400 (EDT) Message-Id: <200106121200.IAA01853@renoir.op.net> To: Owen Taylor Cc: Havoc Pennington , Ken Simpson , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "12 Jun 2001 07:42:50 EDT." Date: Tue, 12 Jun 2001 08:01:41 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Widgets are sent key presses before GTK+ checks for focus keys. If the >widget handles the key press in its event handler and returns TRUE, >then GTK+ will not check for tab/arrows. Owen, I'm suprised! You must be too used to Gtk 1.3 :) Returning TRUE by itself isn't enough to stop focus navigation under 1.2 ... From sjwillis@one.net Mon Jun 11 16:21:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from us.net (newmail1.one.net [216.23.22.181]) by mail.gnome.org (Postfix) with SMTP id C49DD2CEB7 for ; Mon, 11 Jun 2001 16:21:48 -0400 (EDT) Received: (qmail 29173 invoked by uid 0); 11 Jun 2001 20:21:42 -0000 Received: from unknown (HELO dhcp100) (216.23.55.74) by newmail1.one.net with SMTP; 11 Jun 2001 20:21:42 -0000 Date: Mon, 11 Jun 2001 16:21:40 -0400 (EDT) From: Jim Willis X-Sender: sjwillis@powerbook.jimshouse To: Ira Weiny Cc: gtk-list@gnome.org, linuxppc Subject: Re: gtk font dependancies In-Reply-To: <3B251ADF.E6B9ECF5@acm.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I had the same problem and partially solved it (though i still get the squares every so often, particuallarly when its looking for helvetica. Although, other apps which use helvetica display it just fine. anyway, here's the relevant config file from /etc/X11/fs catalogue = /usr/X11R6/lib/X11/fonts/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/100dpi:unscaled, /usr/X11R6/lib/X11/fonts/75dpi, /usr/X11R6/lib/X11/fonts/100dpi, /usr/share/fonts/default/Type1, /usr/X11R6/lib/X11/fonts/latin2/75dpi, /usr/X11R6/lib/X11/fonts/latin2/100dpi, /usr/X11R6/lib/X11/fonts/truetype, # /usr/X11R6/lib/X11/fonts/tt, /usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled, /usr/X11R6/lib/X11/fonts/local, /usr/X11R6/lib/X11/fonts/CID, /usr/X11R6/lib/X11/fonts/misc:unscaled, /usr/X11R6/lib/X11/fonts/misc, /usr/X11R6/lib/X11/fonts/Type1, /usr/X11R6/lib/X11/fonts/Speedo On Mon, 11 Jun 2001, Ira Weiny wrote: > > I am running linuxppc-2000-Q4 on my Apple Titanium PowerBook. I am > _not_ runnig gnome just straight enlightenment. I have rpm's for > XFree86 installed (4.0.99) version. > > My question is: where does gtk get it's fonts from? (xfs?) I have a > couple of > programs, namely gscanbus and gaim which don't display certian text > correctly. I have messed with xfs and I have _many_ font's installed > but I still get "square" characters in certian dialogs. > > Here is a list of the font packages I have intsalled. > > $ rpm -qa | grep font > ghostscript-fonts-5.50-1 > chkfontpath-1.7-2 > XFree86-ISO8859-2-100dpi-fonts-4.0.99.3-0b > urw-fonts-2.0-4 > XFree86-ISO8859-2-75dpi-fonts-4.0.99.3-0b > tetex-fonts-1.0.6-11a > XFree86-cyrillic-fonts-4.0.99.3-0b > XFree86-100dpi-fonts-4.0.99.3-0b > XFree86-75dpi-fonts-4.0.99.3-0b > XFree86-ISO8859-7-100dpi-fonts-1.0-4 > XFree86-ISO8859-7-75dpi-fonts-1.0-4 > XFree86-ISO8859-7-Type1-fonts-1.0-4 > XFree86-ISO8859-9-100dpi-fonts-2.1.2-10 > XFree86-ISO8859-9-75dpi-fonts-2.1.2-10 > > Thanks in advance, > Ira Weiny > iweiny@acm.org > > ** Sent via the linuxppc-user mail list. See http://lists.linuxppc.org/ > > From andrej.prsa@guest.arnes.si Tue Jun 12 08:21:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id 00E732BCDC for ; Tue, 12 Jun 2001 08:21:28 -0400 (EDT) Received: from arnes.si (ar8-184i.dial-up.arnes.si [194.249.0.184]) by razor.arnes.si (Postfix) with SMTP id B123DE619; Tue, 12 Jun 2001 14:21:03 +0200 (MET DST) Date: Tue, 12 Jun 2001 14:21:49 +0200 From: Andrej Prsa To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf Message-Id: <20010612142149.256b821e.andrej.prsa@guest.arnes.si> In-Reply-To: References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> X-Mailer: Sylpheed version 0.4.66 (GTK+ 1.2.9; i686-pc-linux-gnu) Organization: University of Astrophysics 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thank you very much, everybody! > In GTK 2, you could just do: > image = gtk_image_new_from_file ("test.jpg"); > gtk_container_add (GTK_CONTAINER (window), image); > > So look forward to that. ;-) > I am looking forward to that! In the meantime, since there's been a lot of questions on a working example for Gtk1.2, I'm posting my solution, hoping someone too will find it useful! #include #include #include #include "gtk/gtk.h" #include "gdk-pixbuf/gdk-pixbuf.h" GdkPixmap *picture; static gint expose_event (GtkWidget *widget, GdkEventExpose *event) { gdk_draw_pixmap (widget->window, widget->style->fg_gc[GTK_WIDGET_STATE (widget)], picture, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; } int main (int argc, char *argv[]) { GtkWidget *window; GtkWidget *vbox; GdkPixbuf *image; GdkGC *setup; GtkWidget *drawing_area; gtk_init (&argc, &argv); printf ("\n"); if (gdk_init_check (&argc, &argv) == 1) printf ("Connection to X Server Successful\n"); if (gdk_init_check (&argc, &argv) == 0) printf ("Connection to X Server Failed\n"); printf ("Display: %s\n", gdk_get_display () ); printf ("ScrWidth: %d\n", gdk_screen_width () ); printf ("ScrHeight: %d\n", gdk_screen_height () ); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap()); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); gtk_widget_set_usize (window, 512, 512); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); drawing_area = gtk_drawing_area_new (); gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_area), 512, 512); gtk_box_pack_start (GTK_BOX (vbox), drawing_area, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (drawing_area), "expose_event", (GtkSignalFunc) expose_event, NULL); image = gdk_pixbuf_new_from_file ("test.gif"); picture = gdk_pixmap_new (NULL, 512, 512, gtk_widget_get_visual (drawing_area)->depth); setup = gdk_gc_new (picture); printf ("Visual: %d\n", gtk_widget_get_visual (drawing_area)->depth); printf ("Channels: %d\n", gdk_pixbuf_get_n_channels (image)); printf ("Width: %d\n", gdk_pixbuf_get_width (image)); printf ("Height: %d\n", gdk_pixbuf_get_height (image)); printf ("Alpha: %d\n", gdk_pixbuf_get_has_alpha (image)); printf ("Bits: %d\n", gdk_pixbuf_get_bits_per_sample (image)); printf ("Rowstride: %d\n", gdk_pixbuf_get_rowstride (image)); printf ("\n"); gdk_pixbuf_render_to_drawable (image, picture, setup, 0, 0, 0, 0, 512, 512, GDK_RGB_DITHER_NONE, 0, 0); gdk_draw_pixmap ((GdkDrawable *)drawing_area, setup, picture, 0, 0, 0, 0, 512, 512); gtk_widget_show_all (window); gtk_main(); return (0); } Thanks again! Andrej From andres_giraldo@yahoo.com Tue Jun 12 14:34:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id A57E12DCD4 for ; Tue, 12 Jun 2001 14:34:50 -0400 (EDT) Message-ID: <20010612183449.15578.qmail@web11502.mail.yahoo.com> Received: from [208.221.130.25] by web11502.mail.yahoo.com; Tue, 12 Jun 2001 11:34:49 PDT Date: Tue, 12 Jun 2001 11:34:49 -0700 (PDT) From: "Andrés" Giraldo Subject: drawing_area->window!=NULL 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to create a new widget, this is my init object function: static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; GdkGC *gc; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (newlabel->drawing_area); gc = GetPen (NewColor (0x0000, 0x0000, 0x0000), newlabel->drawing_area->window); } /***************************************************** These functions, returns a GdkGC * color; *****************************************************/ GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } /***************************************************** The Widget structure *****************************************************/ struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; }; /*****************************************************/ Why Gdk returns: Gdk-CRITICAL **: file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed. Gdk-CRITICAL **: file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed. It doesn't work even if I show the newlabel->drawing_area widget or not... Why? Thanks! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From rsteinke@w-link.net Tue Jun 12 15:02:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 9C7752BDDC for ; Tue, 12 Jun 2001 15:02:25 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159tUc-0002c7-00 for ; Tue, 12 Jun 2001 12:06:22 -0700 Date: Tue, 12 Jun 2001 12:06:21 -0700 To: gtk-list@gnome.org Subject: _() macro? Message-ID: <3B26682D.nail7R111CG7S@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm seeing a lot of elements like: _("some string") in function calls. Is _() a macro? What does it do? Ron Steinke From wolfgang@contre.com Tue Jun 12 15:06:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cogito.cam.org (cogito.cam.org [198.168.100.2]) by mail.gnome.org (Postfix) with ESMTP id 8CA5D2E38A for ; Tue, 12 Jun 2001 15:06:45 -0400 (EDT) Received: from usrh-5-3.hip.cam.org (root@usrh-5-3.hip.cam.org [204.19.188.3]) by cogito.cam.org (8.11.0/8.11.0.Beta1) with ESMTP id f5CJ6hu26123 for ; Tue, 12 Jun 2001 15:06:43 -0400 Received: from debian.home (wolfgang@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5CJ6f0F006224 for ; Tue, 12 Jun 2001 15:06:42 -0400 Date: Tue, 12 Jun 2001 15:06:41 -0400 Message-ID: <8566e1o6v2.wl@debian.home> From: Wolfgang Sourdeau To: gtk-list@gnome.org Subject: Re: _() macro? Mail-Followup-To: Ron Steinke , gtk-list@gnome.org Mail-Reply-To: wolfgang@contre.com In-Reply-To: <3B26682D.nail7R111CG7S@yggdrasil> References: <3B26682D.nail7R111CG7S@yggdrasil> User-Agent: Wanderlust/2.5.8 (Smooth) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.0.103 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Ron" == Ron Steinke writes: > I'm seeing a lot of elements like: > _("some string") > in function calls. Is _() a macro? What does it do? It either calls gettext with the string as a parameter so that the program uses the translated strings. Otherwise (if i18n is not enabled during compilation) it just returns the same string. W. From kens@ActiveState.com Tue Jun 12 15:06:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id D28702BD01 for ; Tue, 12 Jun 2001 15:06:50 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5CI6ZA18096; Tue, 12 Jun 2001 11:06:35 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5CJ6YT13680; Tue, 12 Jun 2001 12:06:34 -0700 Date: Tue, 12 Jun 2001 12:06:34 -0700 (PDT) From: Ken Simpson To: Owen Taylor Cc: Havoc Pennington , , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Widgets are sent key presses before GTK+ checks for focus keys. If the > widget handles the key press in its event handler and returns TRUE, > then GTK+ will not check for tab/arrows. > > For instance, this is how GtkText prevents a tab key from tabbing out > of the GtkText widget. Hrm.. I guess the problem with Mozilla is that I need the keypress event to live on for a little while so that Mozilla can grab it. I can't just kill all the navigation keys -- Mozilla needs them so that it can farm them out to its command system. i.e., the order of operations should be: 1. Mozilla grabs ALL gdk events and processes them in its own handler (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) 2. Events are then farmed out to the widget from which they originated (an nsWindow pointer is stored in the user data of the event's any.window object). 3. The widget's key_press handler returns 0 for any keypress which is not something simple, like [A-Za-z0-9_-+] etc.. 4. (hopefully) The key_press event travels up the window hierarchy to the main Mozilla window, where it is ground through the Mozilla keybinding system and produces some result. The event then should _die_. The problem is that, between stages 3 and 4, gtk intercepts the key press and changes the focus. Yuck. I don't think the fix here is going to be easy... Ideas?? TTUL Ken -- New! ASPN - ActiveState Programmer Network Essential programming tools and information http://www.ActiveState.com/ASPN From andres_giraldo@yahoo.com Tue Jun 12 15:35:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11508.mail.yahoo.com (web11508.mail.yahoo.com [216.136.172.40]) by mail.gnome.org (Postfix) with SMTP id C3F962BB41 for ; Tue, 12 Jun 2001 15:35:45 -0400 (EDT) Message-ID: <20010612193544.53122.qmail@web11508.mail.yahoo.com> Received: from [208.221.130.25] by web11508.mail.yahoo.com; Tue, 12 Jun 2001 12:35:44 PDT Date: Tue, 12 Jun 2001 12:35:44 -0700 (PDT) From: "Andrés" Giraldo Subject: Re: drawing_area->window != NULL To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks for your help... Ok I've got it! The window is not realized yet, so I put the drawing code in the expose_event function, but... It only works if I connect the expose event signal to the drawing_area member, not if I connect it to the entire structure... why? This is using the entire structure (That's how I want it). It doesn't work... /*****************************************************/ typedef struct _GtkNewLabel GtkNewLabel; struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; }; static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (GTK_WIDGET (newlabel)); gtk_signal_connect(GTK_OBJECT (newlabel), "expose_event", GTK_SIGNAL_FUNC (on_gtk_newlabel_expose_event), &newlabel); } void on_gtk_newlabel_expose_event (GtkNewLabel *newlabel) { GdkGC *gc_back, *gc_fore; GdkDrawable *drawable; drawable = newlabel->drawing_area->window; gc_back = GetPen (NewColor (newlabel->back_red, newlabel->back_green, newlabel->back_blue), drawable); } GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } /*****************************************************/ And this is using the drawing_area member, It Works... static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (newlabel->drawing_area); gtk_signal_connect(GTK_OBJECT (newlabel->drawing_area), "expose_event", GTK_SIGNAL_FUNC (on_gtk_newlabel_expose_event), NULL); } void on_gtk_newlabel_expose_event (gpointer data) { GdkGC *gc_back, *gc_fore; GdkDrawable *drawable = GTK_WIDGET(data)->window; drawable = newlabel->drawing_area->window; gc_back = GetPen (NewColor (newlabel->back_red, newlabel->back_green, newlabel->back_blue), drawable); } So... what I'm doing wrong? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From pbd@op.net Tue Jun 12 15:36:56 2001 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 51FDF2DE46 for ; Tue, 12 Jun 2001 15:36:56 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-0e.ppp.op.net [209.152.206.14]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA17743; Tue, 12 Jun 2001 15:36:47 -0400 (EDT) Message-Id: <200106121936.PAA17743@renoir.op.net> To: Ken Simpson Cc: Owen Taylor , Havoc Pennington , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Tue, 12 Jun 2001 12:06:34 PDT." Date: Tue, 12 Jun 2001 15:38:21 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >i.e., the order of operations should be: > >1. Mozilla grabs ALL gdk events and processes them in its own handler > (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) > >2. Events are then farmed out to the widget from which they > originated (an nsWindow pointer is stored in the user data of the > event's any.window object). > >3. The widget's key_press handler returns 0 for any keypress which is not > something simple, like [A-Za-z0-9_-+] etc.. > >4. (hopefully) The key_press event travels up the window hierarchy to the > main Mozilla window, where it is ground through the Mozilla keybinding > system and produces some result. The event then should _die_. > >The problem is that, between stages 3 and 4, gtk intercepts the key press >and changes the focus. Yuck. I don't think the fix here is going to be >easy... use a key snooper instead of an event handler. --p From rwan@cs.mu.oz.au Tue Jun 12 23:02:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 4E2BD2E0CC for ; Tue, 12 Jun 2001 23:01:59 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id NAA10716 for ; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 0ADD275AA; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 0918AAC94 for ; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Date: Wed, 13 Jun 2001 13:01:54 +1000 (EST) From: Raymond Wan To: gtk-list@gnome.org Subject: Argument passing / 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, My GTK+ program is getting fairly large and until now, I've had one big global variable structure that has all the information I need. I was wondering if there is an alternative to this. The program I'm having seems to be in the call back functions, which I don't seem to entirely understand. For example, in a call back function such as this: void closeChildWindow (GtkWidget *widget, gpointer data) I've been passing ints from my program using GPOINTER_TO_INT and GINT_TO_POINTER. But, can I pass anything else, such as a C pointer to a structure or can I pass more than one argument? If so, how would I do this? Also, a separate question...does anyone know of a GTKTextView example (GTK 1.3) that is slightly more involved than the HTML GTK Reference under the section Text Widget Overview? Possibly using tags, marks, and iterators? Thank you! Ray From blizzard@redhat.com Tue Jun 12 15:37:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from face.0xdeadbeef.com (unknown [206.40.163.63]) by mail.gnome.org (Postfix) with ESMTP id 85B162D2C8 for ; Tue, 12 Jun 2001 15:37:57 -0400 (EDT) Received: from redhat.com (face.0xdeadbeef.com [127.0.0.1]) by face.0xdeadbeef.com (8.11.2/8.11.2) with ESMTP id f5CJbA628103; Tue, 12 Jun 2001 15:37:10 -0400 Message-ID: <3B266F66.3030500@redhat.com> Date: Tue, 12 Jun 2001 15:37:10 -0400 From: Christopher Blizzard User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2smp i686; en-US; rv:0.9.1+) Gecko/20010608 X-Accept-Language: en-us MIME-Version: 1.0 To: Ken Simpson Cc: Owen Taylor , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson wrote: >>Widgets are sent key presses before GTK+ checks for focus keys. If the >>widget handles the key press in its event handler and returns TRUE, >>then GTK+ will not check for tab/arrows. >> >>For instance, this is how GtkText prevents a tab key from tabbing out >>of the GtkText widget. >> > > Hrm.. I guess the problem with Mozilla is that I need the keypress event > to live on for a little while so that Mozilla can grab it. I can't just > kill all the navigation keys -- Mozilla needs them so that it can farm > them out to its command system. > > i.e., the order of operations should be: > > 1. Mozilla grabs ALL gdk events and processes them in its own handler > (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) > > 2. Events are then farmed out to the widget from which they > originated (an nsWindow pointer is stored in the user data of the > event's any.window object). > > 3. The widget's key_press handler returns 0 for any keypress which is not > something simple, like [A-Za-z0-9_-+] etc.. > > 4. (hopefully) The key_press event travels up the window hierarchy to the > main Mozilla window, where it is ground through the Mozilla keybinding > system and produces some result. The event then should _die_. > > The problem is that, between stages 3 and 4, gtk intercepts the key press > and changes the focus. Yuck. I don't think the fix here is going to be > easy... > > Ideas?? What is it that intercepts the key presses? Is it the gtkwindow class that is being used by the mozbox? Or is it being farmed all the way up to the toplevel? We might need to override the keypress handler for the mozbox class so that the default gtkwindow handler doesn't change focus on you like it sounds like is happening. --Chris From pbd@op.net Tue Jun 12 23:35:53 2001 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 7304F2E0B3 for ; Tue, 12 Jun 2001 23:35:53 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-29.ppp.op.net [209.152.206.41]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA23426; Tue, 12 Jun 2001 23:35:46 -0400 (EDT) Message-Id: <200106130335.XAA23426@renoir.op.net> To: Christopher Blizzard Cc: Ken Simpson , Owen Taylor , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Tue, 12 Jun 2001 15:37:10 EDT." <3B266F66.3030500@redhat.com> Date: Tue, 12 Jun 2001 23:37:25 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>Widgets are sent key presses before GTK+ checks for focus keys. If the >>>widget handles the key press in its event handler and returns TRUE, >>>then GTK+ will not check for tab/arrows. not true in GTK+ 1.2. you have to stop the signal emission as well. in GTK+ 1.2, the default handler is run regardless of the return status of other connected handlers. the docs for GTK+ 1.2 do not make this particularly clear. i believe that in GTK+ 1.3/2.0, this is no longer true, and things work the way the docs tend to suggest. its the default handler for key press events in a GtkWindow that controls the movement of focus between widgets in that window. the handler is executed unless you block the emission in the widget that currently has focus (i.e. the one that the window directs the events to). as i've mentioned, i find it easier to do all this stuff using a key snooper, which allows you to completely bypass all of GTK+'s builtin key handling. --p From otaylor@redhat.com Tue Jun 12 23:53:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 6DB6A2BEE0 for ; Tue, 12 Jun 2001 23:53:45 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 0D36C2422FE; Tue, 12 Jun 2001 23:53:44 -0400 (EDT) To: Paul Davis Cc: Christopher Blizzard , Ken Simpson , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: <200106130335.XAA23426@renoir.op.net> From: Owen Taylor Date: 12 Jun 2001 23:53:44 -0400 In-Reply-To: Paul Davis's message of "Tue, 12 Jun 2001 23:37:25 -0400" Message-ID: Lines: 80 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >>>Widgets are sent key presses before GTK+ checks for focus keys. If the > >>>widget handles the key press in its event handler and returns TRUE, > >>>then GTK+ will not check for tab/arrows. > > not true in GTK+ 1.2. you have to stop the signal emission as well. > > in GTK+ 1.2, the default handler is run regardless of the return > status of other connected handlers. the docs for GTK+ 1.2 do not make > this particularly clear. i believe that in GTK+ 1.3/2.0, this is no > longer true, and things work the way the docs tend to suggest. In this case, what was being discussed was the return value of the default handler, so stopping emission isn't necessary - if someone connects another signal handler using gtk_signal_connect_after() they mean to override the return value. > its the default handler for key press events in a GtkWindow that > controls the movement of focus between widgets in that window. the > handler is executed unless you block the emission in the widget that > currently has focus (i.e. the one that the window directs the events > to). This isn't quite right. In GTK+-1.2 - for every time a signal is run, up to three things may happen: 1) signal handlers run 2) the default handler runs 3) Signal handlers connected with gtk_signal_connect_after run. The return value from the signal is the return value from the last of these; so if 1) returns TRUE meaning "handled", 2) will still be run and override this unless gtk_signal_emit_stop_by_name() is called. In GTK+-2 a TRUE return immediately stops emission. However - this all only applies to a SINGLE signal emission - even in 1.2, if the result of sending the widget to the focus widget is TRUE, no further handling will be done. http://people.redhat.com/otaylor/tmp/key-handling.eps is a diagram of key handling in GTK+-1.2 which may help (or may further confuse) > as i've mentioned, i find it easier to do all this stuff using a key > snooper, which allows you to completely bypass all of GTK+'s builtin key handling is quite complicated enough without getting key snoopers involved! The idea of key snoopers was to handle hotkeys that would work in any window - like the hotkey to invoke the GLE widget tree debugger. If you have a particular GtkWindow, a connection to "key_press_event" on the toplevel already allows you to override all key handling behavior. Regards, Owen [ Actually the situation with Komodo is rather more complicated again - having GTK+ widgets inside mozilla is basically two inter-toolkit widget embeddings. GtkWindow Mozilla content area GtkMozBox holding GTK+ widgets (GtkMozBox derives from GtkWindow!) ] From ishamael@themes.org Wed Jun 13 01:33:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alpha.techcare.com (unknown [207.89.153.66]) by mail.gnome.org (Postfix) with SMTP id 233602CC93 for ; Wed, 13 Jun 2001 01:33:18 -0400 (EDT) Received: (qmail 19830 invoked from network); 13 Jun 2001 03:59:21 -0000 Received: from pm538-38.dialip.mich.net (HELO orodruin) (@198.108.161.96) by alpha.techcare.com with SMTP; 13 Jun 2001 03:59:21 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Charlie Schmidt" To: gtk-list@gnome.org Subject: Re: Argument passing / GTKTextView X-Mailer: Pronto v2.2.6 On linux/mysql Date: 13 Jun 2001 01:05:40 EDT Reply-To: "Charlie Schmidt" In-Reply-To: References: Message-Id: <20010613053318.233602CC93@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: - you can either use gtk_object_set_data() on the widget, to set associate a key string with a gpointer data element: gtk_object_set_data(GTK_OBJECT(widget),"struct",structure); then in the callback: structure = gtk_object_get_data(GTK_OBJECT(widget),"struct"); or pass a structure containing everything (gints,other structs, etc) From: Raymond Wan Subject: Argument passing / GTKTextView Date: Wed, 13 Jun 2001 13:01:54 +1000 (EST) > > Hi all, > > My GTK+ program is getting fairly large and until now, I've had > one big global variable structure that has all the information I need. I > was wondering if there is an alternative to this. > > The program I'm having seems to be in the call back functions, > which I don't seem to entirely understand. For example, in a call back > function such as this: > > void closeChildWindow (GtkWidget *widget, gpointer data) > > I've been passing ints from my program using GPOINTER_TO_INT and > GINT_TO_POINTER. But, can I pass anything else, such as a C pointer to a > structure or can I pass more than one argument? If so, how would I do > this? > > Also, a separate question...does anyone know of a GTKTextView > example (GTK 1.3) that is slightly more involved than the HTML GTK > Reference under the section Text Widget Overview? Possibly using tags, > marks, and iterators? > > Thank you! > > Ray > > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > -- Charlie Schmidt - From inodal@teleline.es Wed Jun 13 06:18:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id D0F302C9FE for ; Wed, 13 Jun 2001 06:18:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEV5VN03.V0O for ; Wed, 13 Jun 2001 12:16:35 +0200 Message-ID: <3B272F81.70EB1B7@teleline.es> Date: Wed, 13 Jun 2001 11:16:49 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: how to hide discrete toggle button not hidding the button completely (button->draw_indicator hide it completely) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to hide the discrete toggle button from a check button? I have add a pixmap to the button "gtk_container_add(GTK_CONTAINER(_boolean_button), _pixmap);" This pixmap changes its GdkPixmap according to the _boolean_button->active value (TRUE or FALSE), so I don't need the discrete toggle button's visual reference any more. Thanks, Ignacio Nodal From john.cupitt@ng-london.org.uk Wed Jun 13 07:49:43 2001 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 C05392DC63 for ; Wed, 13 Jun 2001 07:49:42 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNPC8; Wed, 13 Jun 2001 12:49:40 +0100 Message-ID: <3B27520B.B3902381@ng-london.org.uk> Date: Wed, 13 Jun 2001 12:44:11 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Raymond Wan Cc: gtk-list@gnome.org Subject: Re: Argument passing / GTKTextView 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Raymond Wan wrote: > My GTK+ program is getting fairly large and until now, I've had > one big global variable structure that has all the information I need. I > was wondering if there is an alternative to this. Hi Raymond, there are lots of ways to fix this. One of the easiest is to have a struct for every window you pop up. Allocate and fill the struct when you make one of the windows, pass the address of the struct to every callback from widgets in that window, and destroy the struct when the window is destroyed. Something like (untested, I just typed this in): struct Wombat { GtkWidget *window; GtkWidget *label; GtkWidget *button; int my_data; } static void wombat_clicked( GtkWidget *button, Wombat *wom ) { wom->my_data += 1; } static void wombat_destroy( GtkWidget *window, Wombat *wom ) { printf( "you've had %d wombats\n", wom->my_data ); g_free( wom ); } Wombat * wombat_new( void ) { Wombat *wom = g_new( Wombat, 1 ); wom->window = gtk_window_new( ... wom->button = gtk_button_new( ...etc. gtk_signal_connect( GTK_OBJECT( wom->button ), "clicked", GTK_SIGNAL_FUNC( wombat_click ), wom ); gtk_signal_connect( GTK_OBJECT( wom->window ), "destroy", GTK_SIGNAL_FUNC( wombat_destroy ), wom ); gtk_widget_show( wom->window ); } Next up, you could make your own widgets: there's a section in the tutorial about this: http://www.gtk.org/tutorial/sec-creatingacompositewidget.html This lets you group widgets together, and have them operate as one chunk. You can make your application as a big set of widgets which contain other widgets. It's easier then it sounds. Finally, you can go model/view, and split your app into things which model your data (but do no display), and widgets which hold no information themselves, but just give a view of the stuff in the model widgets. This is very nice and flexible, but harder work. HTH, John From charlet@ACT-Europe.FR Wed Jun 13 09:16:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dublin.ACT-Europe.FR (dublin.act-europe.fr [213.228.58.154]) by mail.gnome.org (Postfix) with ESMTP id EBD112DE86 for ; Wed, 13 Jun 2001 09:16:41 -0400 (EDT) Received: by dublin.ACT-Europe.FR (Postfix, from userid 525) id 419D65F640; Wed, 13 Jun 2001 14:45:56 +0200 (MET DST) Date: Wed, 13 Jun 2001 14:45:56 +0200 From: Arnaud Charlet To: gtk-list@gnome.org Subject: ANNOUNCE: GtkAda 1.2.12 Message-ID: <20010613144556.B20867@dublin.int.act-europe.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: GtkAda 1.2.12 release --------------------- We are happy to announce the availability of GtkAda 1.2.12. GtkAda is an Ada95 graphical toolkit based on Gtk+ version >= 1.2.2. It allows you to develop graphical applications in Ada95 using Gtk+. The primary download site is http://libre.act-europe.fr/GtkAda New features in 1.2.12 include - Version needed by GVD 1.2.0 - Update to GtkExtra 0.99.14, including a new 3D Plot widget. - The GtkAda.Canvas now provides zooming capabilities. It also draws curve links with Bezier splines instead of circles. For efficiency, the items in the canvas are no longer double-buffered. Use Buffered_Items if you want to keep the old behavior. Button_Press events are reported when an item is pressed and the event wasn't used to move the item around. - New function: Gtk.Widget.Set_Parent_Window. - Documentation updates Arnaud Charlet, for the GtkAda team From jedwards@inmet.gov.br Wed Jun 13 09:36:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from challenge.inmet.gov.br (unknown [200.252.242.89]) by mail.gnome.org (Postfix) with ESMTP id 892A22DEB4; Wed, 13 Jun 2001 09:36:48 -0400 (EDT) Received: from inmet.gov.br (localhost [127.0.0.1]) by challenge.inmet.gov.br (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id KAA06146; Wed, 13 Jun 2001 10:36:46 -0300 (EST) Message-ID: <3B276C6E.93918402@inmet.gov.br> Date: Wed, 13 Jun 2001 13:36:46 +0000 From: Jim Edwards X-Mailer: Mozilla 4.73C-SGI [en] (X11; U; IRIX64 6.5 IP25) X-Accept-Language: en MIME-Version: 1.0 To: gtk , gtk-perl Cc: glade Subject: human language support 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I´ve been lurking here and working with glade/gtk+ for a short while now and have a couple of questions: 1. Can someone point me to an example of, or document about, how to build a gtk+ gui with multi-language support. 2. I have an application in C with no gui and one in perl with a perl/Tk gui. I want to combine the two with a gtk+ gui - I have some experience with perl XS so I have an idea of what I´m getting into, but i wonder if anyone has tried to write callbacks in perl from a gtk+ mostly in C. It seems like that would be the right place to cross languages, but maybe some of what glade calls interface calls should also be done from perl? Thanks, Jim From flo.scandella@aon.at Wed Jun 13 03:31:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viemta06.chello.at (viemta06.chello.at [195.34.133.56]) by mail.gnome.org (Postfix) with ESMTP id 2243A2BDE2 for ; Wed, 13 Jun 2001 03:31:28 -0400 (EDT) Received: from spellcaster.tafelritter.org ([62.178.75.196]) by viemta06.chello.at (InterMail vK.4.03.02.00 201-232-124 license 6aea1bd1f01aef5a9a73363c16ebee43) with ESMTP id <20010613073126.LQMA6087.viemta06@spellcaster.tafelritter.org> for ; Wed, 13 Jun 2001 09:31:26 +0200 Subject: gtk-main From: Florian Scandella To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 13 Jun 2001 09:39:47 +0200 Message-Id: <992417987.1179.0.camel@Spellcaster> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi ! Is there a possibility to close the resources allocatet by gtk-main, without exiting the program ( gtk-exit ) ? It's not much ( 104 bytes ) but i hate it to have memory leaks in my programs :-) Another question : Can i call gtk_init twice ? thanx, flo From Roberto@libero.it Wed Jun 13 05:41:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mail.gnome.org (Postfix) with ESMTP id CA6CC2BA99 for ; Wed, 13 Jun 2001 05:41:12 -0400 (EDT) Received: from libero.it (151.25.51.251) by smtp1.libero.it (5.5.025) id 3AE980E700AA52D6 for gtk-list@gnome.org; Wed, 13 Jun 2001 11:41:11 +0200 Message-ID: <3B27356F.4070608@libero.it> Date: Wed, 13 Jun 2001 11:42:07 +0200 From: Roberto User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.18pre21 i686; en-US; rv:0.9; Debian/GNU) Gecko/20010520 X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: The size of a widget. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I know the size of a widget? Have you a little little example? Thank you Roberto From igurnebli@users.sourceforge.net Wed Jun 13 07:31:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dukas.upc.es (dukas.upc.es [147.83.2.62]) by mail.gnome.org (Postfix) with ESMTP id 2908F2E3A4 for ; Wed, 13 Jun 2001 07:31:16 -0400 (EDT) Received: from amadeus.upc.es (amadeus.upc.es [147.83.76.2]) by dukas.upc.es (8.10.1/8.10.1) with ESMTP id f5DBQ9201783 for ; Wed, 13 Jun 2001 13:26:10 +0200 (MET DST) Received: from morera.upc.es (morera.upc.es [147.83.76.38]) by amadeus.upc.es (8.9.1b+Sun/8.9.3) with ESMTP id NAA23657 for ; Wed, 13 Jun 2001 13:22:50 +0200 (MET DST) Subject: GL widget to ship with GTK From: Jordi Rovira i Bonet To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 13 Jun 2001 13:32:29 +0200 Message-Id: <992432041.3989.0.camel@morera> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I think it would be a good thing if the GtkGLArea widget shipped with the default GTK distribution, as in my oppinion, it has been tested a lot and is very used. I suppose that this is not the first time someone suggests this, but i haven't seen any discussion before about it. J From charlet@ACT-Europe.FR Wed Jun 13 10:05:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dublin.ACT-Europe.FR (dublin.act-europe.fr [213.228.58.154]) by mail.gnome.org (Postfix) with ESMTP id C6D812E3F0 for ; Wed, 13 Jun 2001 10:05:14 -0400 (EDT) Received: by dublin.ACT-Europe.FR (Postfix, from userid 525) id 58DC05F5F6; Wed, 13 Jun 2001 16:02:40 +0200 (MET DST) Date: Wed, 13 Jun 2001 16:02:40 +0200 From: Arnaud Charlet To: gtk-list@gnome.org Subject: [ANNOUNCE] Release 1.2.0 of the GNU Visual Debugger Message-ID: <20010613160240.B25371@dublin.int.act-europe.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: We are pleased to announce the availability of GVD, the GNU Visual Debugger, a general purpose graphical debugger front-end licensed under the GNU General Public License. Besides providing all the features of other debugger GUIs, GVD includes advanced data display and visualization capabilities. Furthermore, GVD allows the debugging of multi-process/multi-threaded applications in the same debugging session. GVD works with native as well as cross debuggers and can handle several languages in the same debugging session and the same application. Currently Ada, C and C++ are supported. GVD can run on a host different from the machine where the debugger is running and provides friendly support for cross-debuggers (VxWorks, Lynx, etc.). For instance, you can use Linux or Windows to debug an application running on a Power PC board with a debugger running on a Sun workstation. To build GVD we are using the GtkAda GUI technology. GVD comes with all the GtkAda benefits such as a pluggable look-and-feel, a set of very high-level widgets and the ability to have the same look-and-feel on all of your platforms. You can dowload GVD (sources and binaries for GNU/Linux x86, Solaris sparc and x86, Windows NT/2000, DEC Unix/Tru64, HP-UX, UnixWare, IRIX, AiX) and get more information at http://libre.act-europe.fr New features in GVD 1.2.0: - Under Windows, the special pathnames //cygdrive/x/ and //x/ are now recognized and converted into appropriate names. - The File->New Debugger dialog now provides the ability to replace the current debugger by default. - The "run" and "start" buttons now set automatically the name of the module under VxWorks. - The File->Attach Process menu now lists the tasks on the target when using Tornado VxWorks. - The --target option now allows multiple ':' characters so that you can specify machine:1234 as the machine (& port number). See the documentation for more details. - The file corresponding to the main procedure is now displayed when loading an Ada executable (rather than the procedure containing the elaboration calls). - The data window is now zoomable - The breakpoint editor has been enhanced, and can now set advanced properties like ignore_count, commands to execute when reaching the breakpoint, or conditions to activate the breakpoint - The handling of commands has been improved and is more reliable. Caching of commands has also been put in place giving better user feedback on slow machines. - New item in the source editor contextual menu: display dereferenced variable - New item in the source editor contextual menu: break on subprogram - The option "break on exceptions" has been implemented - It is possible to delete an exception by pressing the 'Delete' key in the Breakpoints Window. - The Tab key is now supported in the debugger window. If you are interested in participating in the GVD development, do not hesitate to contact us (mailto:gvd-devel@lists.act-europe.fr) Arnaud Charlet From hp@redhat.com Wed Jun 13 10:28:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 433232CA4E; Wed, 13 Jun 2001 10:28:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5DEUxK04825; Wed, 13 Jun 2001 10:30:59 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Jim Edwards Cc: gtk , gtk-perl , glade Subject: Re: human language support References: <3B276C6E.93918402@inmet.gov.br> From: Havoc Pennington Date: 13 Jun 2001 10:30:59 -0400 In-Reply-To: Jim Edwards's message of "Wed, 13 Jun 2001 13:36:46 +0000" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jim Edwards writes:=20 > 1. Can someone point me to an example of, or document about, how to > build a gtk+ gui with multi-language support. Just read the gettext info pages, GTK works the same as a non-GUI program basically. >=20 > 2. I have an application in C with no gui and one in perl with a perl/Tk > gui. I want to combine the two with a gtk+ gui - I have some experience > with perl XS so I have an idea of what I=B4m getting into, but i wonder if > anyone has tried to write callbacks in perl from a gtk+ mostly in C. > It seems like that would be the right place to cross languages, but > maybe some of what glade calls interface calls should also be done from > perl? I don't know about that one. ;-) Havoc From andres_giraldo@yahoo.com Wed Jun 13 13:39:23 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id 895972E102 for ; Wed, 13 Jun 2001 13:39:22 -0400 (EDT) Message-ID: <20010613173921.22186.qmail@web11502.mail.yahoo.com> Received: from [208.221.130.25] by web11502.mail.yahoo.com; Wed, 13 Jun 2001 10:39:21 PDT Date: Wed, 13 Jun 2001 10:39:21 -0700 (PDT) From: "Andrés" Giraldo Subject: Callbacks and Signals works with Classes? To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to create a class, this class defines a button, on it's clicked signal it calls a callback function that I want to put in the private part of the class, but it returns me... no matches converting function `on_button_clicked' to type `void (*) ()' clases.h:400: candidates are: void myclass::on_button_clicked () The problem is; GTK_SIGNAL_FUNC is type void (*), and my function is void... How can I call a funciton in the same class? class myclass { private: void on_button_clicked () { } public: ... gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), NULL); }; GTK Works with C++... am I right? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From pbd@op.net Wed Jun 13 14:12:43 2001 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 9BF112DD26 for ; Wed, 13 Jun 2001 14:12:42 -0400 (EDT) Received: from someip.ppp.op.net (d-bm5-01.ppp.op.net [209.152.194.193]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA28212; Wed, 13 Jun 2001 14:12:39 -0400 (EDT) Message-Id: <200106131812.OAA28212@renoir.op.net> To: "Andr s" Giraldo Cc: Gtk List Subject: Re: Callbacks and Signals works with Classes? In-reply-to: Your message of "Wed, 13 Jun 2001 10:39:21 PDT." <20010613173921.22186.qmail@web11502.mail.yahoo.com> Date: Wed, 13 Jun 2001 14:14:26 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >no matches converting function `on_button_clicked' >to type `void (*) ()' >clases.h:400: candidates are: void >myclass::on_button_clicked this is member function. C++ member functions are not, and never have been, interchangeable with regular C functions. this is a common confusion among relatively new C++ programmers (i suffered from it myself many years ago). to do what you want you need: class myclass { static void on_button_clicked (myclass *); }; gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this); the "static" keyword makes the member function into something equivalent to a regular C function. or better yet, use Gtk-- (though many people don't agree with me on that). --p From inodal@teleline.es Wed Jun 13 14:26:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id D69532D99E for ; Wed, 13 Jun 2001 14:26:18 -0400 (EDT) Received: from PIII500 ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with SMTP id GEVSGO02.OBP; Wed, 13 Jun 2001 20:24:24 +0200 Message-ID: <000701c0f436$1b58f540$0a01a8c0@PIII500> From: "Ignacio Nodal" To: =?iso-8859-1?Q?Andr=E9s_Giraldo?= Cc: "GTK-List" References: <20010613173921.22186.qmail@web11502.mail.yahoo.com> Subject: RE: Callbacks and Signals works with Classes? Date: Wed, 13 Jun 2001 19:24:23 +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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Andrés Giraldo To: Gtk List Sent: Wednesday, June 13, 2001 6:39 PM Subject: Callbacks and Signals works with Classes? > Hi! > > I'm trying to create a class, this class defines a > button, on it's clicked signal it calls a callback > function that I want to put in the private part of the > class, but it returns me... > > no matches converting function `on_button_clicked' > to type `void (*) ()' > clases.h:400: candidates are: void > myclass::on_button_clicked > () > GTK Works with C++... am I right? > Yeah, there is a wrapper called GTK-- written completely in C++, but GTK works fine by itself wit C++. I use to work with GTK & C++. The problem must have something to do with puting the function in the private part, because I use lots of callbacks in the classes I've created without problems. My callbacks are all in the public part, though. I cannot try now puting my functions in the private part and make them work. I'm not on linux at this moment, sorry. Regards, Ignacio Nodal From inodal@teleline.es Wed Jun 13 14:36:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp2.teleline.es (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id F0BB82E427 for ; Wed, 13 Jun 2001 14:36:34 -0400 (EDT) Received: from PIII500 ([213.97.141.171]) by tsmtppp2.teleline.es (Netscape Messaging Server 4.1) with SMTP id GEVSTT06.9J1 for ; Wed, 13 Jun 2001 20:32:17 +0200 Message-ID: <001101c0f437$356405a0$0a01a8c0@PIII500> From: "Ignacio Nodal" To: "GTK-List" References: <200106131812.OAA28212@renoir.op.net> Subject: RE: Callbacks and Signals works with Classes? Date: Wed, 13 Jun 2001 19:32:24 +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Paul Davis > this is member function. C++ member functions are not, and never have > been, interchangeable with regular C functions. this is a common > confusion among relatively new C++ programmers (i suffered from it > myself many years ago). Hey! Where was this email 2minutes ago when I sent mine?? ;))) So... I've been suffering this confusion also... > the "static" keyword makes the member function into something > equivalent to a regular C function. I've been using static callbacks all the time and thereby I haven't noticed the problem. Learning something new every day... ;) See you From andres_giraldo@yahoo.com Wed Jun 13 15:00:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11504.mail.yahoo.com (web11504.mail.yahoo.com [216.136.172.36]) by mail.gnome.org (Postfix) with SMTP id B5F6A2DE9A for ; Wed, 13 Jun 2001 15:00:49 -0400 (EDT) Message-ID: <20010613190048.47055.qmail@web11504.mail.yahoo.com> Received: from [208.221.130.25] by web11504.mail.yahoo.com; Wed, 13 Jun 2001 12:00:48 PDT Date: Wed, 13 Jun 2001 12:00:48 -0700 (PDT) From: "Andrés" Giraldo Subject: Re: Callbacks and Signals works with Classes? To: Gtk List In-Reply-To: <200106131812.OAA28212@renoir.op.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, thanks, but how I supposed to make request to the class members? I mean, I need the signal connect in the public part of the class, and the callback in the private class myclass { private: static void on_button_clicked (myclass *); public: gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this); }; So, if I declare a parameter for my callback function of type myclass *xxx; it returns that: xxx is of non-aggregate type `myclass *' and if I declare it as myclass xxx, its members values are different from reality I also tried putting this clausule in the connect signal function, but is the same if I put NULL in place, so what's still wrong? Thanks for your help! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From otaylor@redhat.com Wed Jun 13 15:06:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AE4802DB68 for ; Wed, 13 Jun 2001 15:06:24 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 507F6242312; Wed, 13 Jun 2001 15:06:24 -0400 (EDT) To: David Robin Cc: gtk-list@gnome.org Subject: Re: PanedBox Bug? References: <20010611233005.1B3A12E29B@mail.gnome.org> <3B25B533.97696368@st.com> From: Owen Taylor Date: 13 Jun 2001 15:06:24 -0400 In-Reply-To: David Robin's message of "Tue, 12 Jun 2001 08:22:43 +0200" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David Robin writes: > I Created a H-Paned Box with a notebook in each of the panels with gtk_panel_add. > When I hide the left notebook, the left panel goes hidden. But the right notebook doesnot takes the empty space, and the gutter stays visible. Is it the expected > behaviour? > The behaviour I expected was : when I 'kind of' close one of the panel, the other one fills all the space, and the gutter desappears because it is no more useful. > Then, If I show both notebooks again, the gutter reappears, at the same position it used to be. > > Is this a bug, or do I need to add some code in my app and make it by myself? Not really a bug, but a missing feature. (Present in the devel branch.) You'll need restructure your widgets instead of hiding one. (Keep an extra reference to the notebooks with gtk_object_ref() so the don't get destroyed when you remove them, remove them from the paned, add the notebook you want back.) Regards, Owen From donna@omartin.com Wed Jun 13 15:09:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from taka.swcp.com (taka.swcp.com [198.59.115.12]) by mail.gnome.org (Postfix) with ESMTP id 37DE42E450 for ; Wed, 13 Jun 2001 15:09:12 -0400 (EDT) Received: from diamond (1Cust34.tnt4.albuquerque.nm.da.uu.net [63.20.119.34]) by taka.swcp.com (8.10.0.Beta12/8.10.0.Beta12) with SMTP id f5DJBkg01014 for ; Wed, 13 Jun 2001 13:11:46 -0600 (MDT) Message-ID: <001e01c0f43c$424afe40$1400a8c0@diamond> Reply-To: "Donna Martin" From: "Donna Martin" To: References: <20010612193544.53122.qmail@web11508.mail.yahoo.com> Subject: Re: drawing_area->window != NULL Date: Wed, 13 Jun 2001 13:08:33 -0600 Organization: O'Martin Enterprises, Inc. 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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Your expose_event handler is of the wrong prototype. If you look at the RDP for GtkWidget you'll see the correct prototype: "expose-event" gboolean user_function (GtkWidget *widget, GdkEventExpose *event, gpointer user_data); The first field is supplied by GTK+ and is the widget causing the function to be invoked. Your data comes through the third field... In your second (working) piece of code, you attach the signal to the drawing area widget. When on_gtk_newlabel_expose_event is invoked, GTK+ Kindly supplies the widget that caused the function to be invoked as the first argument (i.e. your drawing area received an expose event). Your data would appear in the third parameter (which you don't have). So, by coincidence, it works when you send the same info that GTK+ is supplying :-) In looking back through the archives (because I'm behind and wanted to be sure no one else already answered this...) it looks as though Esteban Quijano Vincenzi addressed this quite well in his response to your newbie question on Monday.... It also looks like you're making great strides each day, so perhaps you already figured all this out! HTH, Donna ----- Original Message ----- From: "Andrés Giraldo" To: "Gtk List" Sent: Tuesday, June 12, 2001 1:35 PM Subject: Re: drawing_area->window != NULL > Thanks for your help... > > Ok I've got it! The window is not realized yet, so I > put the drawing code in the expose_event function, > but... > > It only works if I connect the expose event signal to > the drawing_area member, not if I connect it to the > entire structure... why? > > This is using the entire structure (That's how I want > it). It doesn't work... > > > /*****************************************************/ > > typedef struct _GtkNewLabel GtkNewLabel; > > struct _GtkNewLabel > { > GtkVBox vbox; > > GtkWidget *drawing_area; > }; > > static void gtk_newlabel_init (GtkNewLabel *newlabel) > { > GtkWidget *table; > > table = gtk_table_new (1, 1, TRUE); > gtk_container_add (GTK_CONTAINER (newlabel), > table); > gtk_widget_show (table); > > newlabel->drawing_area = gtk_drawing_area_new (); > gtk_table_attach_defaults (GTK_TABLE(table), > newlabel->drawing_area, 0, 1, 0, 1); > > gtk_widget_show (GTK_WIDGET (newlabel)); > > gtk_signal_connect(GTK_OBJECT (newlabel), > "expose_event", > GTK_SIGNAL_FUNC > (on_gtk_newlabel_expose_event), &newlabel); > } > > void on_gtk_newlabel_expose_event (GtkNewLabel > *newlabel) > { > GdkGC *gc_back, *gc_fore; > GdkDrawable *drawable; > > drawable = newlabel->drawing_area->window; > > gc_back = GetPen (NewColor (newlabel->back_red, > newlabel->back_green, > newlabel->back_blue), > drawable); > } > > > GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) > { > GdkGC *gc; > > gc = gdk_gc_new (drawable); > > gdk_gc_set_foreground (gc, c); > > return (gc); > } > > GdkColor *NewColor (long red, long green, long blue) > { > GdkColor *c = (GdkColor *) g_malloc (sizeof > (GdkColor)); > > c->red = red; > c->green = green; > c->blue = blue; > > gdk_color_alloc (gdk_colormap_get_system (), c); > > return (c); > } > > /*****************************************************/ > > And this is using the drawing_area member, It Works... > > > > static void gtk_newlabel_init (GtkNewLabel *newlabel) > { > GtkWidget *table; > > table = gtk_table_new (1, 1, TRUE); > gtk_container_add (GTK_CONTAINER (newlabel), > table); > gtk_widget_show (table); > > newlabel->drawing_area = gtk_drawing_area_new (); > gtk_table_attach_defaults (GTK_TABLE(table), > newlabel->drawing_area, 0, 1, 0, 1); > > gtk_widget_show (newlabel->drawing_area); > > gtk_signal_connect(GTK_OBJECT > (newlabel->drawing_area), "expose_event", > GTK_SIGNAL_FUNC > (on_gtk_newlabel_expose_event), NULL); > } > > void on_gtk_newlabel_expose_event (gpointer data) > { > GdkGC *gc_back, *gc_fore; > GdkDrawable *drawable = GTK_WIDGET(data)->window; > > drawable = newlabel->drawing_area->window; > > gc_back = GetPen (NewColor (newlabel->back_red, > newlabel->back_green, > newlabel->back_blue), > drawable); > } > > So... what I'm doing wrong? > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From rwalden@tripos.com Wed Jun 13 16:09:38 2001 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 400CB2BD8A for ; Wed, 13 Jun 2001 16:09:37 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA07204 for ; Wed, 13 Jun 2001 15:09:36 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma005689; Wed, 13 Jun 01 14:58:00 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id OAA50097; Wed, 13 Jun 2001 14:57:58 -0500 (CDT) Message-ID: <3B27C5C6.26891A9D@tripos.com> Date: Wed, 13 Jun 2001 14:57:58 -0500 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: pygtk , gtk-list@gnome.org Subject: Raising and lowering windows 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear List, It is possible to minimize (iconfiy) and restore windows programmatically in GTK? [for the pygtk list] Is this supported by pygtk? How? Thank you, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From kyi111@dreamwiz.com Wed Jun 13 22:54:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx-s0.dreamwiz.com (mx-s0.dreamwiz.com [211.174.54.135]) by mail.gnome.org (Postfix) with ESMTP id 761BE2BECF for ; Wed, 13 Jun 2001 22:54:17 -0400 (EDT) Received: from mail11.dreamwiz.com (mail11.dreamwiz.com [211.174.54.31]) by mx-s0.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5E2sFY86140 for ; Thu, 14 Jun 2001 11:54:15 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by mail11.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5E2s7c57363 for ; Thu, 14 Jun 2001 11:54:07 +0900 (KST) Message-Id: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> Date: Thu, 14 Jun 2001 11:54:07 +0900 (KST) From: =?EUC-KR?B?sei/68DPKHlvbmcgaWwua2ltKQ==?= Subject: glibconfig not find To: gtk-list@gnome.org Organization: X-Sender-IP: 211.219.11.9 X-Sender-ID: kyi111@dreamwiz.com X-Priority: 3 X-Mailer: DreamWiz Web-Mailer V1.31 X-DreamWiz-Data: receive_check=1;save=mail11.dreamwiz.com:kyi111:Sent:211; MIME-Version: 1.0 Content-Type: MULTIPART/ALTERNATIVE; BOUNDARY="0-1973929785-992487247=:57360" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --0-1973929785-992487247=:57360 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h please inform me ------------------------------------------------- DreamWiz Free Mail @ http://www.dreamwiz.com/ DreamSearch Click the world!!! http://search.dreamwiz.com/ --0-1973929785-992487247=:57360 Content-Type: TEXT/HTML; CHARSET=US-ASCII
please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message

usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h

please inform me




Your life on the net

DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!!  http://search.dreamwiz.com/


--0-1973929785-992487247=:57360-- From rodrigo@gnome-db.org Thu Jun 14 06:39:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from zubiri.gnome-db.org (100-MAD2-X33.libre.retevision.es [62.83.129.100]) by mail.gnome.org (Postfix) with ESMTP id 9300C2BDBB for ; Thu, 14 Jun 2001 06:39:38 -0400 (EDT) Received: from rodrigo by zubiri.gnome-db.org with local (Exim 3.22 #1 (Debian)) id 15AUWs-0000AR-00; Thu, 14 Jun 2001 12:39:10 +0200 Subject: Re: glibconfig not find From: Rodrigo Moya To: =?UTF-8?Q?=EA=B9=80=EC=9A=A9=EC=9D=BC=28yong?= "il.kim)" Cc: gtk-list@gnome.org In-Reply-To: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> References: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.10.99 (Preview Release) Date: 14 Jun 2001 12:39:09 +0200 Message-Id: <992515149.597.1.camel@zubiri> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 14 Jun 2001 11:54:07 +0900, =EA=B9=80=EC=9A=A9=EC=9D=BC(yong il.kim) wro= te: > please help me!! I am beginner GTK+ programming. when i compiled sample c= ode(hello.c), there are error message >=20 > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h >=20 when compiling, you must pass to gcc the output of: glib-config --cflags so: gcc -o my_program `glib-config --cflags` my_program.c cheers -- Rodrigo Moya http://www.gnome-db.org/ From john.cupitt@ng-london.org.uk Thu Jun 14 06:48:50 2001 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 14B5D2E58A for ; Thu, 14 Jun 2001 06:48:50 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNQQK; Thu, 14 Jun 2001 11:48:46 +0100 Message-ID: <3B289544.85433A20@ng-london.org.uk> Date: Thu, 14 Jun 2001 11:43:16 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?=B1=E8=BF=EB=C0=CF?= (yong il.kim) Cc: gtk-list@gnome.org Subject: Re: glibconfig not find References: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ąčżëŔĎ(yong il.kim) wrote: > please help me!! I am beginner GTK+ programming. when i compiled > sample code(hello.c), there are error message > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h Hello, is this the example from the tutorial? http://www.gtk.org/tutorial/ch-gettingstarted.html If that doesn't work, you probably have not installed gtk correctly. John From terop@fanta.modeemi.cs.tut.fi Wed Jun 13 16:45:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fanta.modeemi.cs.tut.fi (fanta.modeemi.cs.tut.fi [130.230.72.135]) by mail.gnome.org (Postfix) with ESMTP id 224052D45C for ; Wed, 13 Jun 2001 16:45:46 -0400 (EDT) Received: by fanta.modeemi.cs.tut.fi id XAA0000028796; Wed, 13 Jun 2001 23:45:30 +0300 (EET DST) To: "Andrés" Giraldo Cc: Gtk List Subject: Re: Callbacks and Signals works with Classes? References: <20010613190048.47055.qmail@web11504.mail.yahoo.com> From: Tero Pulkkinen Date: 13 Jun 2001 23:45:30 +0300 In-Reply-To: "Andrés" Giraldo's message of "Wed, 13 Jun 2001 12:00:48 -0700 (PDT)" Message-ID: Lines: 25 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Andrés" Giraldo writes: > Ok, thanks, but how I supposed to make request to the > class members? GtkObject has these methods called gtk_object_set_data() gtk_object_get_data() which lets you store additional pointers to the widget. This is how you can store a pointer of your C++ class to a widget and the connected callbacks can use the c++ methods. Like this: // init: GtkWidget *widget = gtk_button_new("test"); gtk_object_set_data(GTK_OBJECT(widget), "mycppobject", this); // callback: static void callback(GtkWidget *w) { MyCpp *obj = (MyCpp*)gtk_object_get_data(GTK_OBJECT(w), "mycppobject"); obj->DoIt(); } -- -- Tero Pulkkinen From skip@real-time.com Thu Jun 14 12:16:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 9270B2E54B for ; Thu, 14 Jun 2001 12:16:20 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5EGGDS00667; Thu, 14 Jun 2001 11:16:13 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15144.58187.954945.827693@beluga.mojam.com> Date: Thu, 14 Jun 2001 11:16:11 -0500 To: gtk-list@gnome.org Subject: version of libtool? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I notice that a couple gtk-related packages (gtk and pango) now require libtool 1.4. Others (atk 0.1 and glib) use their own versions. Will this create problems? How soon with those packages that install their own dump them in favor of libtool 1.4? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From otaylor@redhat.com Thu Jun 14 12:32:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0200D2DEB8 for ; Thu, 14 Jun 2001 12:32:18 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id A2144242313; Thu, 14 Jun 2001 12:32:17 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: version of libtool? References: <15144.58187.954945.827693@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 12:32:17 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 11:16:11 -0500" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I notice that a couple gtk-related packages (gtk and pango) now require > libtool 1.4. Others (atk 0.1 and glib) use their own versions. Will this > create problems? How soon with those packages that install their own dump > them in favor of libtool 1.4? Everything requires libtool 1.4 now. I'm not sure why you don't see this as being the case. Regards, Owen From skip@real-time.com Thu Jun 14 12:40:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 3E1AC2E645 for ; Thu, 14 Jun 2001 12:40:39 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5EGeVj23959; Thu, 14 Jun 2001 11:40:31 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15144.59647.117922.380294@beluga.mojam.com> Date: Thu, 14 Jun 2001 11:40:31 -0500 To: Owen Taylor Cc: gtk-list@gnome.org Subject: Re: version of libtool? In-Reply-To: References: <15144.58187.954945.827693@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen> Everything requires libtool 1.4 now. I'm not sure why you don't Owen> see this as being the case. glib's configure didn't seem to complain. No matter. I zapped the libtool rpm and installed libtool 1.4. FYI, it appears "make distclean" doesn't delete the various libtool-related symlinks the build process puts in the build directory or the various generated Makefile.in files. Is there some more brutal make target I should be using to get back to ground zero build-wise? Skip From otaylor@redhat.com Thu Jun 14 14:06:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EA63F2CEDC for ; Thu, 14 Jun 2001 14:06:44 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 9AF87242313; Thu, 14 Jun 2001 14:06:44 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: version of libtool? References: <15144.58187.954945.827693@beluga.mojam.com> <15144.59647.117922.380294@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 14:06:44 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 11:40:31 -0500" Message-ID: Lines: 29 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > Owen> Everything requires libtool 1.4 now. I'm not sure why you don't > Owen> see this as being the case. > > glib's configure didn't seem to complain. No matter. I zapped the libtool > rpm and installed libtool 1.4. If you are installing from CVS, you should always run autogen.sh every time you update. autogen.sh has the checks and complaints. If you are installing from tarballs, the version of libtool you have installed shouldn't matter. > FYI, it appears "make distclean" doesn't delete the various libtool-related > symlinks the build process puts in the build directory or the various > generated Makefile.in files. Is there some more brutal make target I should > be using to get back to ground zero build-wise? 'make maintainer-clear', though most of the time, the GTK+ developers would just blow away their checked out copy and get a fresh one from CVS if things got that screwed up. So it's not really tested, and problems may be revealed if you run it. Regards, Owen From dneary@eircom.net Thu Jun 14 14:07:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from brockman.tinet.ie (mail1.tinet.ie [159.134.237.20]) by mail.gnome.org (Postfix) with ESMTP id 702C92E6B3 for ; Thu, 14 Jun 2001 14:07:49 -0400 (EDT) Received: from p2.as2.prp.dublin.eircom.net ([159.134.170.2] helo=localhost.localdomain) by brockman.tinet.ie with esmtp (Exim 2.05 #23) id 15AbX2-0003A8-00; Thu, 14 Jun 2001 19:07:48 +0100 Received: (from dave@localhost) by localhost.localdomain (8.9.3/8.9.3) id WAA01143; Wed, 13 Jun 2001 22:53:50 +0100 Date: Wed, 13 Jun 2001 22:53:50 +0100 From: Dave Neary To: Roberto Cc: gtk-list@gnome.org Subject: Re: The size of a widget. Message-ID: <20010613225350.A944@eircom.net> References: <3B27356F.4070608@libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B27356F.4070608@libero.it>; from Roberto@libero.it on Wed, Jun 13, 2001 at 11:42:07AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Jun 13, 2001 at 11:42:07AM +0200, Roberto wrote: > How can I know the size of a widget? > Have you a little little example? There are two answers to this - he size, in memory, of a widget is given by sizeof(GtkWidget), and the dimensions of a widget are available in GtkWidget.allocation.(width|height). Cheers, Dave. -- .------------------------------. / David Neary, \ | E-Mail dneary@eircom.net | \ Phone +353-1-872-0654 / `------------------------------' From sarregui@cicese.mx Thu Jun 14 14:55:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 766392DF38 for ; Thu, 14 Jun 2001 14:55:13 -0400 (EDT) Received: from sismo.cicese.mx (sismo.cicese.mx [158.97.28.56]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f5EItBf21271 for ; Thu, 14 Jun 2001 11:55:11 -0700 (PDT) Received: from cicese.mx (pc-resnor.cicese.mx [158.97.30.133]) by sismo.cicese.mx (8.9.3+Sun/8.9.1) with ESMTP id LAA14256 for ; Thu, 14 Jun 2001 11:55:10 -0700 (PDT) Message-ID: <3B290901.53E9B9AE@cicese.mx> Date: Thu, 14 Jun 2001 11:57:05 -0700 From: Sergio Arregui Ojeda X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.18-rtl i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-List Subject: Realtime plot 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello. i'm new to this list and my question is this: i have to develop a system that has to plot data that is acquired trhough the serial port, i have done most of this part using the realtime plot demo that comes with extragtk, but i have a problem because it's a lot of data and my machine gets very busy while plotting, i think that this is 'cause the data does not get released, instead it keeps it in memory, and i want to know if theres is a way that this data can be freed (or deallocated) so this way it speed up things. I also have made another application that plots data in realtime that comes faster, and i have a problem when i try to plot more than one station (obviously the data comes from different station) because of the same problem. i'm new to programming in gtk, and this are the very first applications that i have made, so please anyone can help me? thank you -- Sergio Arregui Ojeda Departamento de Sismologia CICESE Tel (6) 174 50 50 ext 26524 From lestat.lioncourt@innocent.com Thu Jun 14 16:03:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-1-81.abo.wanadoo.fr [193.251.41.81]) by mail.gnome.org (Postfix) with ESMTP id DE3472CE82 for ; Thu, 14 Jun 2001 16:03:29 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 92BB1C0DE; Thu, 14 Jun 2001 22:03:31 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Thu, 14 Jun 2001 20:03:31 +0000 From: "David Goncalves" To: Cc: Subject: Re: glibconfig not find MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010614200331.92BB1C0DE@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h > > please inform me Just try to find the file 'glibconfig.h' in your disk and copy it to '/usr/include' From otaylor@redhat.com Thu Jun 14 16:16:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 412E82DF37 for ; Thu, 14 Jun 2001 16:16:44 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id DC3E5242313; Thu, 14 Jun 2001 16:16:43 -0400 (EDT) To: "David Goncalves" Cc: , Subject: Re: glibconfig not find References: <20010614200331.92BB1C0DE@transylvania> From: Owen Taylor Date: 14 Jun 2001 16:16:43 -0400 In-Reply-To: "David Goncalves"'s message of "Thu, 14 Jun 2001 20:03:31 +0000" Message-ID: Lines: 22 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David Goncalves" writes: > > please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message > > > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h > > > > please inform me > > Just try to find the file 'glibconfig.h' in your disk and copy it > to '/usr/include' Don't do this. *Please* What will happen, is that when you upgrade your GLib the old glibconfig will be left behind, and GLib will never work properly again. Use the glib-config script, as described in the FAQ. Regards, Owen From hp@redhat.com Thu Jun 14 16:17:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 511CB2E59F; Thu, 14 Jun 2001 16:17:23 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5EKHKc08634; Thu, 14 Jun 2001 16:17:20 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: gnome-announce-list@gnome.org, gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: New release of GTK+ libraries (1.3.6) From: Havoc Pennington Date: 14 Jun 2001 16:17:20 -0400 Message-ID: Lines: 171 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A new release of the development versions of GTK+ and associated libraries (GLib, Pango, Atk) is available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ The JPEG/PNG/TIFF libraries and pkg-config 0.7 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.7 version you need to build GTK 1.3.6) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://clisp.cons.org/~haible/packages-libiconv.html New all-in-one tarball ===== This release has an experimental all-in-one-tarball feature. The gtk+-all-1.3.6.tar.gz file contains all four GTK+ libraries (GLib, Pango, Atk, GTK+) and can be compiled with a single "configure; make; make install" sequence. Library Descriptions ===== GLib 1.3.6 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. http://www.gtk.org Pango 0.17 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. http://www.pango.org Atk 0.1 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. http://developer.gnome.org/projects/gap/ GTK+ 1.3.6 GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. http://www.gtk.org Notes ===== This release is meant for: * Those interested in the development of GTK+. * People planning to port to the upcoming GTK+-2.0 version of GTK+. Note: the API is mostly frozen at this point. Major API changes beyond the remaining open '2.0 API freeze' bugs in bugzilla are unlikely to occur before GTK+-2.0 is released. This is a an unstable preview release and should not be used in production. Only minimal testing has been done, and we expect that significant bugs and portability problems remain at this point. 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. 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 Source and binary packages of these libraries build against Red Hat 7.1 can be found at: ftp://ftp.gtk.org/pub/gtk/v1.3/binary/RedHat-7.1 The source RPMS can most likely be rebuilt and installed on other RPM-based Linux distributions. Overview of Changes in GLib 1.3.6 ================================= * Threads have a "return value" from g_thread_join * Removed ability to adjust thread stack size * Prefix warnings with progname/PID by default, change toggle for this to be an env variable G_MESSAGES_PREFIXED not a compile-time option * GMarkup speedups * GDate const, convenience fixups * Include test cases that headers are compilable by C++ compiler * Add ability to spawn processes with argv[0] != executable path. * g_strstr_len, g_strrstr, g_strrstr_len * Add length argument to g_utf8_strchr and g_utf8_strrchr. * Misc bug fixes Overview of Changes in Pango 0.17 ================================= * Build/bug fixes * Cursor motion is now by graphemes (logical editing units) rather than by characters * Optionally support jumping cursor instead of split cursor Overview of Changes in Atk 0.2 ================================= * Some API tweaks Overview of Changes in GTK+ 1.3.6 ================================= * Properly renders strikethrough text * win32 fixes * Added "scale" property to GtkTextTag and GtkCellRendererText to do relative font scaling * Added "format_value" signal to GtkScale to reformat value text * framebuffer fixes * Property support added to lots of widgets * Many GtkTreeView new features and API/implementation fixes * Lots of new_with_mnemonic() convenience functions * Change GtkImageMenuItem API to be more consistent/useful * Added lots of new stock items/icons * Rewrote GtkRange/GtkScale/GtkScrollbar, includes support for enabling/disabling extra scrollbar stepper arrows in gtkrc so NeXT themes won't need broken hacks * Convenience API for GtkRange similar to the one added to GtkSpinButton a while back * Make menubar/toolbar work properly with xthickness/ythickness of 1 or 0, and move some attributes from program settings to user settings. Allows nice 1-pixel-bevel themes. * Moved ::focus virtual function from GtkContainer to GtkWidget * Plenty of bug fixes From rsteinke@w-link.net Thu Jun 14 17:08:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 18B852DC1E for ; Thu, 14 Jun 2001 17:08:25 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15AePv-0001QX-00 for ; Thu, 14 Jun 2001 14:12:39 -0700 Date: Thu, 14 Jun 2001 14:12:39 -0700 To: gtk-list@gnome.org Subject: alpha channel in GdkPixbuf Message-ID: <3B2928C7.nail4891KSBC3@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to extract the alpha channel information from a GdkPixbuf (for example, writing it to an array or a grayscale pixmap)? Ron Steinke From rsteinke@w-link.net Thu Jun 14 17:10:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 4C7992E702 for ; Thu, 14 Jun 2001 17:10:22 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15AeRo-0001R1-00 for ; Thu, 14 Jun 2001 14:14:36 -0700 Date: Thu, 14 Jun 2001 14:14:36 -0700 To: gtk-list@gnome.org Subject: [set][get]_property Message-ID: <3B29293C.nail48P1VFB2V@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From examining the code, it looks like the [set,get]_property functions of GObject (and its descendents) only handle the properties of the object itself and not those of its ancestors. Is this true, and if so is there a reason for this? Ron Steinke From skip@real-time.com Thu Jun 14 17:21:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id B86CB2CC91 for ; Thu, 14 Jun 2001 17:21:06 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5ELKH629842; Thu, 14 Jun 2001 16:20:17 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15145.10895.215061.466398@beluga.mojam.com> Date: Thu, 14 Jun 2001 16:20:15 -0500 To: gtk-list@gnome.org Subject: trouble with pango build - incorrect -I flags X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib and atk built and installed okay, but after a successful autogen.sh in the pango directory "make CFLAGS=-g" says: make all-recursive make[1]: Entering directory `/home/skip/src/gtk/pango.cvs' Making all in pango make[2]: Entering directory `/home/skip/src/gtk/pango.cvs/pango' make all-recursive make[3]: Entering directory `/home/skip/src/gtk/pango.cvs/pango' Making all in mini-fribidi make[4]: Entering directory `/home/skip/src/gtk/pango.cvs/pango/mini-fribidi' source='fribidi_get_type.c' object='fribidi_get_type.lo' libtool=yes \ depfile='.deps/fribidi_get_type.Plo' tmpdepfile='.deps/fribidi_get_type.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I../.. -g -c -o fribidi_get_type.lo `test -f fribidi_get_type.c || echo './'`fribidi_get_type.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I../.. -g -c fribidi_get_type.c -MT fribidi_get_type.lo -MF .deps/fribidi_get_type.TPlo -MD -MP -fPIC -DPIC -o fribidi_get_type.o fribidi_get_type.c:26:18: glib.h: No such file or directory In file included from fribidi_get_type.c:27: ../../pango/pango-utils.h:23:18: glib.h: No such file or directory In file included from ../../pango/pango-font.h:29, from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-coverage.h:25:18: glib.h: No such file or directory In file included from ../../pango/pango-font.h:30, from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-types.h:25:18: glib.h: No such file or directory In file included from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-font.h:32:25: glib-object.h: No such file or directory In file included from fribidi_get_type.c:28: fribidi_types.h:27:18: glib.h: No such file or directory make[4]: *** [fribidi_get_type.lo] Error 1 make[4]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango/mini-fribidi' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/skip/src/gtk/pango.cvs' make: *** [all] Error 2 Is the pango build not using pkg-config? I just installed 0.7 and it seems to do the right things: beluga:skip% type -a pkg-config pkg-config is /usr/local/bin/pkg-config beluga:skip% pkg-config --version 0.7.0 beluga:skip% pkg-config --cflags glib-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include beluga:skip% pkg-config --cflags pango -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include The -I flags on the compile line don't look even remotely correct. There's no mention at all of /usr/local/include/glib-2.0. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From otaylor@redhat.com Thu Jun 14 17:31:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 447672BCB6 for ; Thu, 14 Jun 2001 17:31:29 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EC2A92422AD; Thu, 14 Jun 2001 17:31:28 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags References: <15145.10895.215061.466398@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 17:31:28 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 16:20:15 -0500" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib > and atk built and installed okay, but after a successful autogen.sh in the > pango directory "make CFLAGS=-g" says: ^^^^^^^^^^^^^^ > ../../pango/pango-utils.h:23:18: glib.h: No such file or directory This is your problem. 'CFLAGS="-g" ./autogen.sh' would be better, if you actually want to disable optimization... "-g" is in the default cflags, so the effect of this is to remove -O2. Setting CFLAGS while compiling will have undetermined effects, and it happens to include the glib include flags. It's not completely intentional to have things set up this way - it could probably be improved. But I don't necessarily expect setting CFLAGS at 'make' time to work. Regards, Owen From otaylor@redhat.com Thu Jun 14 17:33:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0BF992E705 for ; Thu, 14 Jun 2001 17:33:11 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id BE52B2422AD; Thu, 14 Jun 2001 17:33:10 -0400 (EDT) To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: [set][get]_property References: <3B29293C.nail48P1VFB2V@yggdrasil> From: Owen Taylor Date: 14 Jun 2001 17:33:10 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:14:36 -0700" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > >From examining the code, it looks like the [set,get]_property > functions of GObject (and its descendents) only handle the > properties of the object itself and not those of its > ancestors. Is this true, and if so is there a reason for this? Well, it would be a real pain if the code for gtkcheckbutton.c had to duplicate all the property setting/getting code for ToggleButton, Button, Widget, GtkObject, GObject.... In fact, many of those property setting calls probably are using private parts of the widget implementation which are not available to external code. I'm not sure if I'm quite answering your question, however... Regards, Owen From otaylor@redhat.com Thu Jun 14 17:35:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 417302E705 for ; Thu, 14 Jun 2001 17:35:22 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EE0152422AD; Thu, 14 Jun 2001 17:35:21 -0400 (EDT) To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: alpha channel in GdkPixbuf References: <3B2928C7.nail4891KSBC3@yggdrasil> From: Owen Taylor Date: 14 Jun 2001 17:35:21 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:12:39 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Is there any way to extract the alpha channel information from > a GdkPixbuf (for example, writing it to an array or a grayscale > pixmap)? The bytes of a GdkPixbuf are available as: guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf); The alpha value at x,y is: pixels[rowstride * y + x * 4 + 3]; Regards, Owen From hp@redhat.com Thu Jun 14 17:43:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5EC182E711 for ; Thu, 14 Jun 2001 17:43:54 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELhnF19819; Thu, 14 Jun 2001 17:43:49 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: alpha channel in GdkPixbuf References: <3B2928C7.nail4891KSBC3@yggdrasil> From: Havoc Pennington Date: 14 Jun 2001 17:43:49 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:12:39 -0700" Message-ID: Lines: 37 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Is there any way to extract the alpha channel information from > a GdkPixbuf (for example, writing it to an array or a grayscale > pixmap)? > You just iterate over the pixels in the pixbuf. They are arranged like so for a pixbuf with alpha: RGBA RGBA RGBA RGBA RGBA RGBA RGBA PPP | rowstride | | width | like so for one without: RGB RGB RGB RGB RGB RGB RGB RGB RGB PP | rowstride | | width | Each letter is a byte, R = red G = green B = blue A = alpha channel P = padding (rowstride - width bytes of padding at the end of each line, it's possible that rowstride == width if so then no pad bytes are present) So the red channel at row, column is something like: pixels[(row * rowstride) + column * bytes_per_pixel] Where a pixel is an RGB or RGBA group. Havoc From hp@redhat.com Thu Jun 14 17:45:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 43CBB2E71C for ; Thu, 14 Jun 2001 17:45:30 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELjPs19822; Thu, 14 Jun 2001 17:45:25 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: [set][get]_property References: <3B29293C.nail48P1VFB2V@yggdrasil> From: Havoc Pennington Date: 14 Jun 2001 17:45:25 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:14:36 -0700" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > >From examining the code, it looks like the [set,get]_property > functions of GObject (and its descendents) only handle the > properties of the object itself and not those of its > ancestors. Is this true, and if so is there a reason for this? > Sure, to avoid cut-and-paste - every widget subclass shouldn't have to handle the properties of GtkWidget, and chaining up would be kind of expensive since all the subclass set_property would do nothing. So set/get property aren't virtual functions in the normal sense. Havoc From hp@redhat.com Thu Jun 14 17:47:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 01B6C2E673 for ; Thu, 14 Jun 2001 17:47:34 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELlVc20905; Thu, 14 Jun 2001 17:47:31 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags References: <15145.10895.215061.466398@beluga.mojam.com> From: Havoc Pennington Date: 14 Jun 2001 17:47:31 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 16:20:15 -0500" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib > and atk built and installed okay, but after a successful autogen.sh in the > pango directory "make CFLAGS=-g" says: The default CFLAGS are: CFLAGS = -g -O2 -Wall -I/unst/include/glib-2.0 -I/unst/lib/glib-2.0/include You changed them to "-g" So don't do that then ;-) Havoc From king@eiffel.com Thu Jun 14 20:29:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 094682BBBA for ; Thu, 14 Jun 2001 20:29:51 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15AhUi-0001a5-00 for gtk-list@gnome.org; Thu, 14 Jun 2001 17:29:49 -0700 Message-ID: <18e601c0f533$5cacce60$750a000a@naples> From: "Ian King" To: Subject: Finding gtkwidget from GdkWindow Date: Thu, 14 Jun 2001 17:37:31 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I retrieve the gdkwindow that the mouse pointer is currently over (gdk_window_at_pointer), what is the easiest way to find the relative gtkWidget for which this gdkwindow is associated with. Thanks for your time Ian King From hp@redhat.com Thu Jun 14 21:20:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2DB772BD19 for ; Thu, 14 Jun 2001 21:20:56 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5F1Kod12711; Thu, 14 Jun 2001 21:20:50 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Finding gtkwidget from GdkWindow References: <18e601c0f533$5cacce60$750a000a@naples> From: Havoc Pennington Date: 14 Jun 2001 21:20:50 -0400 In-Reply-To: "Ian King"'s message of "Thu, 14 Jun 2001 17:37:31 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > If I retrieve the gdkwindow that the mouse pointer is currently over > (gdk_window_at_pointer), what is the easiest way to find the relative > gtkWidget for which this gdkwindow is associated with. > It's gdk_window_get_user_data (window). The user data on a window is always the widget it's associated with. If you're trying to get the widget someone clicked, remember that not all widgets have windows. Havoc From pavon@gallup.net Thu Jun 14 21:47:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ns.gallup.net (ns.gallup.net [207.188.139.6]) by mail.gnome.org (Postfix) with ESMTP id A7C372E212 for ; Thu, 14 Jun 2001 21:47:35 -0400 (EDT) Received: from localhost (pavon@localhost) by ns.gallup.net (8.8.7/8.8.7) with ESMTP id TAA13434 for ; Thu, 14 Jun 2001 19:47:34 -0600 Date: Thu, 14 Jun 2001 19:46:26 -0600 (MDT) From: "D. Jackson Peacock" To: gtk-list@gnome.org Subject: New Container Widget RFC 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am writing a new container widget that arranges it's widgets into columns, starting a new column when the last one fills up, simular to the small icon view in windows explorer. So far I have a working prototype and am ready to take what I've learned from it to make a more mature widget. Before I invest my time into this, though I have a few questions. First, does anyone know of an existing widget that does what I want? There's no point duplicating work here. I remember seeing a package of additional gtk widgets once but can't seem to find it now. Second, what interface do you feel would be best suited for this widget. I was originally thinking to have it extend off of the GtkBox class, but am also thinking that CList (or the new TreeModel interface in GTK+ 2.0) might also be a good interface to work off of. I haven't really looked into the TreeModel much yet, just discovered it today. Any opinions on this from people that know better than me? Also if you have any other comments concerning this, or want more infomation please let know. Thank you, jackson Daniel Jackson Peacock [pavon@jabber.org] Socorro, NM From skip@real-time.com Thu Jun 14 23:20:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id DA7BE2D61F for ; Thu, 14 Jun 2001 23:20:38 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5F3JB931656; Thu, 14 Jun 2001 22:19:11 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15145.32430.419036.281587@beluga.mojam.com> Date: Thu, 14 Jun 2001 22:19:10 -0500 To: Owen Taylor Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags In-Reply-To: References: <15145.10895.215061.466398@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen> Setting CFLAGS while compiling will have undetermined effects, and Owen> it happens to include the glib include flags. It's not completely Owen> intentional to have things set up this way - it could probably be Owen> improved. But I don't necessarily expect setting CFLAGS at 'make' Owen> time to work. Ah, okay. I always thought -I flags were supposed to go in CPPFLAGS. Skip From needles@industrialmusic.com Thu Jun 14 23:31:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from industrialmusic.com (unknown [216.101.163.50]) by mail.gnome.org (Postfix) with ESMTP id 5376F2D2E5 for ; Thu, 14 Jun 2001 23:31:27 -0400 (EDT) Received: (from needles@localhost) by industrialmusic.com (8.9.3/8.9.3) id UAA00498 for gtk-list@gnome.org; Thu, 14 Jun 2001 20:59:02 -0700 From: Kerry Message-Id: <200106150359.UAA00498@industrialmusic.com> Subject: Gtk 1.3.x text widget question To: gtk-list@gnome.org Date: Thu, 14 Jun 2001 20:59:02 -0700 (PDT) X-Mailer: ELM [version 2.5 PL3] 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've created a text view widget then filled it with text. I'm trying to figure out on what line the user clicked. I connected the widget to the "button-press-event" signal which gave the callback like I wanted. I just can't figure out what line the user clicked on. If I could get an iterator, it looks like I could call gtk_text_iter_get_line() function. I tried to call gtk_text_buffer_get_insert(), but that always gave me the same pointer no matter where I clicked. Can anyone help? Regards, Kerry From hp@redhat.com Fri Jun 15 00:16:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8708D2BE1F for ; Fri, 15 Jun 2001 00:16:51 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5F4G7s12803; Fri, 15 Jun 2001 00:16:07 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Kerry Cc: gtk-list@gnome.org Subject: Re: Gtk 1.3.x text widget question References: <200106150359.UAA00498@industrialmusic.com> From: Havoc Pennington Date: 15 Jun 2001 00:16:07 -0400 In-Reply-To: Kerry's message of "Thu, 14 Jun 2001 20:59:02 -0700 (PDT)" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Kerry writes: > > I've created a text view widget then filled it with text. I'm trying to > figure out on what line the user clicked. I connected the widget to the > "button-press-event" signal which gave the callback like I wanted. > I just can't figure out what line the user clicked on. If I could get > an iterator, it looks like I could call gtk_text_iter_get_line() function. > I tried to call gtk_text_buffer_get_insert(), but that always gave me > the same pointer no matter where I clicked. Can anyone help? > get_insert() gets the cursor (insertion point) which won't have moved when your button_press_event handler is called. If you want to track where the cursor is, use the mark_set signal on GtkTextBuffer and check whether the mark which was set is equal to gtk_text_buffer_get_insert(). (There are marks other than the insertion point.) If you don't care about the cursor, you want gtk_text_view_get_iter_at_location() to find out what text position the user clicked. Havoc From neil@fnxweb.com Fri Jun 15 04:02:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntsc0019.int.rdel.co.uk (banana.rdel.co.uk [194.128.85.8]) by mail.gnome.org (Postfix) with ESMTP id 7B47F2BAAA for ; Fri, 15 Jun 2001 04:02:53 -0400 (EDT) Received: from mail.uk.thalesgroup.com (lisc0021.int.rdel.co.uk) by ntsc0019.int.rdel.co.uk (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Fri, 15 Jun 2001 09:04:14 +0100 Received: from mail.uk.thalesgroup.com (localhost.localdomain [127.0.0.1]) by mail.uk.thalesgroup.com (8.11.0/8.11.0) with ESMTP id f5F82n004520 for ; Fri, 15 Jun 2001 09:02:49 +0100 Received: from ntscxch1.int.rdel.co.uk (ntscxch1.int.rdel.co.uk [172.21.100.149]) by mail.uk.thalesgroup.com (8.11.0/8.11.0) with ESMTP id f5F82m104509; Fri, 15 Jun 2001 09:02:48 +0100 Received: from fnxweb.com (sswc046.int.rdel.co.uk [130.141.44.135]) by ntscxch1.int.rdel.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id MC5L8LWZ; Fri, 15 Jun 2001 09:02:47 +0100 Message-ID: <3B29C125.EF386FA0@fnxweb.com> Date: Fri, 15 Jun 2001 09:02:45 +0100 From: Neil Bird Reply-To: GTK Mailing List Organization: Thales Sensors (but only on behalf of myself) X-Mailer: Mozilla 4.73 [en] (X11; U; SunOS 5.6 sun4m) X-Accept-Language: en MIME-Version: 1.0 To: "D. Jackson Peacock" Cc: GTK Mailing List Subject: Re: New Container Widget RFC 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "D. Jackson Peacock" wrote: > First, does anyone know of an existing widget that does what I want? > There's no point duplicating work here. I remember seeing a package of > additional gtk widgets once but can't seem to find it now. Seems like gtkextra is what you're half-remembering - http://gtkextra.sourceforge.net/. At first glance, it looks like it supplies a Gnome-free GtkIconList replacement for the gnome-icon-list (which is being deprecated?). Probably similar to what you want. Doesn't look like you can change the gravity, but I've not looked very hard. -- =====================- http://www.thalesgroup.com/ -===================== Neil Bird Principal Engineer | work - mailto:neil.bird@uk.thalesgroup.com | $> cd /pub personal - mailto:neil@fnxweb.com | $> more beer From skip@beluga.mojam.com Fri Jun 15 12:18:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 8406C2D31E for ; Fri, 15 Jun 2001 12:18:33 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5FGHWD30711; Fri, 15 Jun 2001 11:17:32 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15146.13593.375326.315166@beluga.mojam.com> Date: Fri, 15 Jun 2001 11:17:29 -0500 To: gtk-list@gnome.org Subject: Problems building cvs version of gtk X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm getting farther. I finally got cvs versions of glib, atk and pango all installed. Now I'm stuck trying to build gtk itself. After first encountering problems, I decided to start from scratch, so I zapped all text files except the CVS stuff and reloaded: find . -type f | egrep -v CVS | xargs rm cvs up . Then, following Owen Taylor's advice, I figured I'd skip the CFLAGS stuff for now: ./autogen.sh make Autogen.sh emitted some peculiar messages: I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. autoheader: error: shell error while sourcing /tmp/ahb0t8pA/traces.sh demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_BEGIN@' demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_END@' tests/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/faq/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/tutorial/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gdk-pixbuf/Makefile.am:94: libpixbufloader_xbm_la_LDFLAGS multiply defined in condition TRUE libpixbufloader_xbm_la_LDFLAGS (User, where = 94) = { TRUE => -version-info 1:0:0 -module } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_FALSE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { TRUE => $(builtin_objs) } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_TRUE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { BUILD_DYNAMIC_MODULES_FALSE TRUE => pixops/libpixops.la TRUE => $(builtin_objs) } automake: gdk-pixbuf/pixops/Makefile.am: Assembler source seen but `ASFLAGS' not defined in `configure.in' gdk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gdk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gtk/Makefile.am: CLEANFILES must be set with `=' before using `+=' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/stock-icons/Makefile.am: CLEANFILES must be set with `=' before using `+=' configure.in:25: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:97: warning: AC_CANONICAL_HOST invoked multiple times configure.in:101: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:158: warning: AC_COMPILE_IFELSE was called before AC_ISC_POSIX Forging ahead, I tried make: which started off fine, but eventually stumbled on some unsubstituted variables: ... make[3]: Entering directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' Making all in pixops make[4]: Entering directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf/pixops' source='pixops.c' object='pixops.lo' libtool=yes \ depfile='.deps/pixops.Plo' tmpdepfile='.deps/pixops.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c -o pixops.lo `test -f pixops.c || echo './'`pixops.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c pixops.c -MT pixops.lo -MF .deps/pixops.TPlo -MD -MP -fPIC -DPIC -o pixops.o pixops.c:827: warning: `scale_line_22_33' defined but not used mv -f pixops.o .libs/pixops.lo gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c pixops.c -MT pixops.lo -MF .deps/pixops.TPlo -MD -MP -o pixops.o >/dev/null 2>&1 mv -f .libs/pixops.lo pixops.lo /bin/sh ../../libtool --mode=compile @AS@ @ASFLAGS@ -c -o have_mmx.lo `test -f have_mmx.S || echo './'`have_mmx.S rm -f .libs/have_mmx.lo @AS@ @ASFLAGS@ -c have_mmx.S -fPIC -DPIC -o have_mmx.o ../../libtool: @AS@: command not found make[4]: *** [have_mmx.lo] Error 1 make[4]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf/pixops' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/skip/src/gtk/gtk+.cvs' make: *** [all] Error 2 My environment is: Linux Mandrake 8.0 gcc 2.96 libtool 1.4 automake 1.4g autoconf 2.50a aclocal 1.4g Any thoughts about the cause of the problem? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From king@eiffel.com Fri Jun 15 13:07:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id B33FF2CF1B for ; Fri, 15 Jun 2001 13:07:45 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15Ax4K-0007nG-00; Fri, 15 Jun 2001 10:07:36 -0700 Message-ID: <19c801c0f5be$c273e360$750a000a@naples> From: "Ian King" To: "Havoc Pennington" Cc: References: <18e601c0f533$5cacce60$750a000a@naples> Subject: Re: Finding gtkwidget from GdkWindow Date: Fri, 15 Jun 2001 10:15:21 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > "Ian King" writes: > > If I retrieve the gdkwindow that the mouse pointer is currently over > > (gdk_window_at_pointer), what is the easiest way to find the relative > > gtkWidget for which this gdkwindow is associated with. > > > > It's gdk_window_get_user_data (window). The user data on a window is > always the widget it's associated with. > In response to this, is there anyway to query the GdkWindow at position (X, Y)? Thanks for your time Ian King From lapenta_jm@yahoo.com Fri Jun 15 13:40:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web4703.mail.yahoo.com (web4703.mail.yahoo.com [216.115.105.203]) by mail.gnome.org (Postfix) with SMTP id AC8D62D554 for ; Fri, 15 Jun 2001 13:40:10 -0400 (EDT) Message-ID: <20010615174010.9772.qmail@web4703.mail.yahoo.com> Received: from [129.55.200.20] by web4703.mail.yahoo.com; Fri, 15 Jun 2001 10:40:10 PDT Date: Fri, 15 Jun 2001 10:40:10 -0700 (PDT) From: Jason LaPenta Subject: timer or idle function ? HOWTO ? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like to use the gtk_idle_add() function, but I'm not sure how to have widgets updated w/in the function. Does anybody have an example I could look at? Also, why does the "clicked" signal get sent when I call gtk_toggle_button_set_active()? Is there some widget or something that will send out signals periodically so I can update the screen ever 1second or so with new data? Thanks jason lapenta_jm@yahoo.com __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From pbd@op.net Fri Jun 15 13:56:49 2001 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 3FECD2BBB2 for ; Fri, 15 Jun 2001 13:56:49 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-08.ppp.op.net [209.152.194.104]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA15559; Fri, 15 Jun 2001 13:56:45 -0400 (EDT) Message-Id: <200106151756.NAA15559@renoir.op.net> To: Jason LaPenta Cc: gtk-list@gnome.org Subject: Re: timer or idle function ? HOWTO ? In-reply-to: Your message of "Fri, 15 Jun 2001 10:40:10 PDT." <20010615174010.9772.qmail@web4703.mail.yahoo.com> Date: Fri, 15 Jun 2001 13:59:01 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I would like to use the gtk_idle_add() function, >but I'm not sure how to have widgets updated w/in >the function. Does anybody have an example I >could look at? you need to pass pointers to widgets, then use them: gint my_idle_function (gpointer arg) { GtkWidget *w = (GtkWidget *) arg; gtk_widget_do_something (w, ...); return (should_be_called_again ? TRUE : FALSE); } >Also, why does the "clicked" signal get sent when >I call gtk_toggle_button_set_active()? because GTK+ is broken like that :) >Is there some widget or something that will send >out signals periodically so I can update the >screen ever 1second or so with new data? gint my_timeout (gpointer arg) { ... do something, perhaps with `arg' ... return (should_be_called_again ? TRUE : FALSE); } gtk_timeout_add (1000, my_timeout, some_argument_pointer); See the GTK+ tutorial for more details, then read the docs at gtk.org. --p From sarregui@cicese.mx Fri Jun 15 14:16:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 8AF472BC8D for ; Fri, 15 Jun 2001 14:16:07 -0400 (EDT) Received: from sismo.cicese.mx (sismo.cicese.mx [158.97.28.56]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f5FIG3f16398 for ; Fri, 15 Jun 2001 11:16:03 -0700 (PDT) Received: from cicese.mx (pc-resnor.cicese.mx [158.97.30.133]) by sismo.cicese.mx (8.9.3+Sun/8.9.1) with ESMTP id LAA17369 for ; Fri, 15 Jun 2001 11:16:02 -0700 (PDT) Message-ID: <3B2A5155.9DAB2A@cicese.mx> Date: Fri, 15 Jun 2001 11:17:57 -0700 From: Sergio Arregui Ojeda X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.18-rtl i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-List Subject: Help! 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: yesterday i posted this, and i still have trouble with this so i'm asking you guys for help i have to develop a system that has to plot data that is acquired trhough the serial port, i have done most of this part using the realtime plot demo that comes with extragtk, but i have a problem because it's a lot of data and my machine gets very busy while plotting, i think that this is 'cause the data does not get released, instead it keeps it in memory, and i want to know if theres is a way that this data can be freed (or deallocated) so this way it speed up things. I also have made another application that plots data in realtime that comes faster, and i have a problem when i try to plot more than one station (obviously the data comes from different station) because of the same problem. i'm new to programming in gtk, and this are the very first applications that i have made, so please anyone can help me?, what i want is a way to speed up the plotting without slowing my machine, and i'm asking for some techinques or ways to accomplish this thank you -- Sergio Arregui Ojeda Departamento de Sismologia CICESE Tel (6) 174 50 50 ext 26524 From Simon.Budig@unix-ag.org Thu Jun 14 13:23:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from harley.unix-ag.uni-siegen.de (harley.unix-ag.uni-siegen.de [141.99.42.44]) by mail.gnome.org (Postfix) with ESMTP id 85ACB2DED7 for ; Thu, 14 Jun 2001 13:23:28 -0400 (EDT) Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id TAA06366 for ; Thu, 14 Jun 2001 19:23:26 +0200 Received: (from simon@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id TAA163158 for gtk-list@gnome.org; Thu, 14 Jun 2001 19:23:26 +0200 Date: Thu, 14 Jun 2001 19:23:26 +0200 From: Simon Budig To: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? Message-ID: <20010614192325.A182508@vmax.unix-ag.uni-siegen.de> References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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 Sun, Jun 10, 2001 at 11:18:08PM -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington (hp@redhat.com) wrote: > Simon Budig writes: > > Is it possible to reduce the size of the GTK Library (we don't have > > unlimited resources) e.g. by removing some unused widgets? > > You can do a custom GTK build and remove a substantial number of the > widgets and some other features (e.g. unused image loaders and > language modules). Static linking will already strip a lot of unused > stuff of course. Static linking currently is not a solution, since we have multiple applications. So - how would I remove widgets from the Build? Simply deleting the files from the Makefile? > > Would you recommend to use GTK+ in it's current state? > > For embedded you should also consider simply using a small version of > X such as the one used for the iPAQ; framebuffer is somewhat smaller > but not hugely so, and its smaller size is achieved at the expense of > multiprocess support. Yeah - we consider this definitely. X11 is not too big and has a lot of advantages (for example generating synthetic events for a virtual keyboard). X11 would even enable to use GTK+ 1.2 so that we would have a rock solid api and the (as Sven mentioned) better GObject performance. > The primary advantage of GTK for embedded devices is that you get the > same GUI API as a full-fledged computer, and of course the > higher-level full-featured nature of that API; GTK will be larger than > something like FLTK, but will also be a good bit more powerful if you > can afford the size and need the GTK features or the similarity to the > non-embedded API. Tradeoffs, tradeoffs. ;-) Yeah - I tried some coding in FLTK yesterday and it is nice and straight- forward. But having only one callback and no signals available is - at least for me - a little bit strange... Bye, Simon -- Simon.Budig@unix-ag.org http://www.home.unix-ag.org/simon/ From frank@tone.jpl.nasa.gov Thu Jun 14 13:44:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from eis-msg-021.jpl.nasa.gov (eis-msg-021.jpl.nasa.gov [137.78.160.201]) by mail.gnome.org (Postfix) with ESMTP id BA0792CEDC for ; Thu, 14 Jun 2001 13:44:56 -0400 (EDT) Received: from tone.jpl.nasa.gov by eis-msg-021.jpl.nasa.gov with ESMTP for gtk-list@gnome.org; Thu, 14 Jun 2001 10:44:37 -0700 Received: from tone.jpl.nasa.gov (zorn [137.79.125.209]) by tone.jpl.nasa.gov (8.9.3+Sun/8.9.1) with ESMTP id KAA13912 for ; Thu, 14 Jun 2001 10:41:34 -0700 (PDT) Message-Id: <3B28F5E9.8F762326@tone.jpl.nasa.gov> Date: Thu, 14 Jun 2001 10:35:37 -0700 From: Frank Hartman X-Mailer: Mozilla 4.76C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: OpenGL and Gtk References: <20010614160208.668A82E648@mail.gnome.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am new to this list and gtk+. So far I haven't been able to find any info about OpenGL and Gtk+. I have a sample source code that includes gtkgl/gtkglarea.h and links with -lgtkgl but I don't have this and I'm not sure where to get it. Could someone give some info about opengl w/gtk? Thanks, Frank Hartman JPL/MER From hp@redhat.com Fri Jun 15 15:16:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id ECACD2C8B5 for ; Fri, 15 Jun 2001 15:16:48 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5FJGf028437; Fri, 15 Jun 2001 15:16:41 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> <20010614192325.A182508@vmax.unix-ag.uni-siegen.de> From: Havoc Pennington Date: 15 Jun 2001 15:16:41 -0400 In-Reply-To: Simon Budig's message of "Thu, 14 Jun 2001 19:23:26 +0200" Message-ID: Lines: 11 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Simon Budig writes: > Static linking currently is not a solution, since we have multiple > applications. So - how would I remove widgets from the Build? > Simply deleting the files from the Makefile? For many widgets that should work, yes. We'd kind of like to have a nicer way (such as a config file with a list of widgets to build) but haven't implemented it. Havoc From lapenta_jm@yahoo.com Fri Jun 15 15:19:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web4705.mail.yahoo.com (web4705.mail.yahoo.com [216.115.105.205]) by mail.gnome.org (Postfix) with SMTP id 1C6042E7B7 for ; Fri, 15 Jun 2001 15:19:00 -0400 (EDT) Message-ID: <20010615191859.4012.qmail@web4705.mail.yahoo.com> Received: from [129.55.200.20] by web4705.mail.yahoo.com; Fri, 15 Jun 2001 12:18:59 PDT Date: Fri, 15 Jun 2001 12:18:59 -0700 (PDT) From: Jason LaPenta Subject: dev widgets location : and scope widget To: gtk-list@gnome.org In-Reply-To: <200106151756.NAA15559@renoir.op.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like a scope widget, a graph that takes in an arbitrary stream of data and displays it over time. Is anybody working on one that I could add to? I looked at GtkCurve.. and what I want is too diferent I think to subclass from. Is there a place where people freely distribute widgets they are working on? Jason __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From jlof@mail.student.oulu.fi Fri Jun 15 17:05:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from oulu.fi (ousrvr.oulu.fi [130.231.240.1]) by mail.gnome.org (Postfix) with ESMTP id 6201B2BAE1 for ; Fri, 15 Jun 2001 17:05:01 -0400 (EDT) Received: from paju.oulu.fi (root@paju.oulu.fi [130.231.240.20]) by oulu.fi (8.8.5/8.8.5) with ESMTP id AAA28960; Sat, 16 Jun 2001 00:04:59 +0300 (EET DST) Received: from paju.oulu.fi (jlof@paju.oulu.fi [130.231.240.20]) by paju.oulu.fi (8.8.5/8.8.5) with ESMTP id AAA34415683; Sat, 16 Jun 2001 00:04:59 +0300 (EDT) Date: Sat, 16 Jun 2001 00:04:59 +0300 From: Janne Lof X-Sender: jlof@paju.oulu.fi To: Frank Hartman Cc: gtk-list@gnome.org Subject: Re: OpenGL and Gtk In-Reply-To: <3B28F5E9.8F762326@tone.jpl.nasa.gov> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On Thu, 14 Jun 2001, Frank Hartman wrote: > Hi, > > I am new to this list and gtk+. So far I haven't been able to find any > info about OpenGL and Gtk+. I have a sample source code that includes > gtkgl/gtkglarea.h and links with -lgtkgl but I don't have this and I'm > not sure where to get it. Could someone give some info about opengl > w/gtk? > Try http://www.student.oulu.fi/~jlof/gtkglarea/ > Thanks, > Frank Hartman > JPL/MER > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Janne Löf mail : jlof@mail.student.oulu.fi www : http://www.student.oulu.fi/~jlof/ From rwalden@tripos.com Fri Jun 15 17:09:04 2001 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 4C31B2D305 for ; Fri, 15 Jun 2001 17:09:03 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA23200 for ; Fri, 15 Jun 2001 16:09:03 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma021474; Fri, 15 Jun 01 15:56:22 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA71846 for ; Fri, 15 Jun 2001 15:56:20 -0500 (CDT) Message-ID: <3B2A7673.8E7BCE65@tripos.com> Date: Fri, 15 Jun 2001 15:56:19 -0500 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@gnome.org Subject: Minimize and Restore Windows References: <20010615191859.4012.qmail@web4705.mail.yahoo.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List, [Sorry, but I'm asking this again...] Does anyone know if GTK 1.2 has functionality to raise and lower (minimize) windows on the desktop programmatically? Thanks -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Jun 15 18:23:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1407F2CED9 for ; Fri, 15 Jun 2001 18:23:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5FMN2L12120; Fri, 15 Jun 2001 18:23:02 -0400 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: Minimize and Restore Windows References: <20010615191859.4012.qmail@web4705.mail.yahoo.com> <3B2A7673.8E7BCE65@tripos.com> From: Havoc Pennington Date: 15 Jun 2001 18:23:02 -0400 In-Reply-To: Ralph Walden's message of "Fri, 15 Jun 2001 15:56:19 -0500" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > > [Sorry, but I'm asking this again...] > > Does anyone know if GTK 1.2 has functionality to > raise and lower (minimize) windows on the desktop > programmatically? > To deiconify, call gdk_window_show (window_widget->window), to iconify you basically call XIconifyWindow(GDK_WINDOW_XID(window_widget->window)) I put the exact code in a mail to this list a few weeks or months ago, to raise above other windows gdk_window_raise (window_widget->window). Havoc From kyi111@dreamwiz.com Sat Jun 16 02:28:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx-s0.dreamwiz.com (mx-s0.dreamwiz.com [211.174.54.135]) by mail.gnome.org (Postfix) with ESMTP id 2DDE22CDD0 for ; Sat, 16 Jun 2001 02:28:07 -0400 (EDT) Received: from mail11.dreamwiz.com (mail11.dreamwiz.com [211.174.54.31]) by mx-s0.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5G6S0Y55136 for ; Sat, 16 Jun 2001 15:28:01 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by mail11.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5G6Rqc14899 for ; Sat, 16 Jun 2001 15:27:52 +0900 (KST) Message-Id: <200106160627.f5G6Rqc14899@mail11.dreamwiz.com> Date: Sat, 16 Jun 2001 15:27:52 +0900 (KST) From: =?EUC-KR?B?sei/68DPKHlvbmcgaWwua2ltKQ==?= Subject: I would like to change email address To: gtk-list@gnome.org Organization: X-Sender-IP: 211.219.11.9 X-Sender-ID: kyi111@dreamwiz.com X-Priority: 3 X-Mailer: DreamWiz Web-Mailer V1.31 X-DreamWiz-Data: receive_check=1;save=mail11.dreamwiz.com:kyi111:Sent:216; MIME-Version: 1.0 Content-Type: MULTIPART/ALTERNATIVE; BOUNDARY="0-708280116-992672872=:14879" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --0-708280116-992672872=:14879 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII I want to change e-mail address kyi111@dreamwiz.com --> kyi111@alphatelecom.co.kr Please help me ------------------------------------------------- DreamWiz Free Mail @ http://www.dreamwiz.com/ DreamSearch Click the world!!! http://search.dreamwiz.com/ --0-708280116-992672872=:14879 Content-Type: TEXT/HTML; CHARSET=US-ASCII
I want to change e-mail address

kyi111@dreamwiz.com --> kyi111@alphatelecom.co.kr

Please help me




Your life on the net

DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!!  http://search.dreamwiz.com/


--0-708280116-992672872=:14879-- From mitch@dhcpassigned.uk.sun.com Sat Jun 16 07:02:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prserv.net (out1.prserv.net [32.97.166.31]) by mail.gnome.org (Postfix) with ESMTP id 630F92D92A for ; Sat, 16 Jun 2001 07:02:55 -0400 (EDT) Received: from dhcpassigned.uk.sun.com (slip139-92-214-110.por.uk.prserv.net[139.92.214.110]) by prserv.net (out1) with ESMTP id <2001061611025320105l5i48e>; Sat, 16 Jun 2001 11:02:53 +0000 Received: (from mitch@localhost) by dhcpassigned.uk.sun.com (8.11.1/8.11.1) id f5GB4Fm03855; Sat, 16 Jun 2001 12:04:15 +0100 Date: Sat, 16 Jun 2001 12:04:15 +0100 (BST) From: X-X-Sender: Reply-To: To: Subject: Help with popup/popdown with pointer grab. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm writing a small app that should automatically deiconify a window and warp the pointer to its location for text input. However everytime i try and grab the pointer it fails ! If i manually deiconify thru my window manager then the grab succeeds. This leads me to believe that the deiconifying functions in gtk/gdk are not ICCM compliant and don't set the WM_STATE properly, or am i doing something wrong in my code ? I have appended my short example with all superfuolous code taken out. The window should popup and popdown every 2 seconds in this test example and grab the pointer when it is deiconized. Can anyone help please ? Thanx Dave % gcc `gtk-config --cflags` main.c -o main `gtk-config --libs` #include #include GtkWidget *window; GtkWidget *button; static void gdk_window_iconify (GdkWindow * win) { g_return_if_fail (win != NULL); XIconifyWindow (GDK_WINDOW_XDISPLAY (win), GDK_WINDOW_XWINDOW (win), 0); } static gint toggle_popup () { static gint iconized = 1; if (iconized) { /* Popup window and grab pointer */ gdk_window_show(window->window); gdk_window_raise(window->window); if (gdk_pointer_grab (window->window, FALSE, GDK_POINTER_MOTION_MASK, window->window, NULL, GDK_CURRENT_TIME)==0) printf("grab succeeded\n"); else printf("grab failed\n"); } else { /* Iconize window, release grab */ gdk_pointer_ungrab (GDK_CURRENT_TIME); gdk_window_iconify (window->window); } iconized=!iconized; return TRUE; } int main (int argc, char *argv[]) { 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 ("Hello World"); gtk_container_add (GTK_CONTAINER (window), button); gtk_timeout_add (2 * 1000, toggle_popup, NULL); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (gtk_exit), NULL); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return (0); } From hp@redhat.com Sat Jun 16 11:12:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id E89672BC09 for ; Sat, 16 Jun 2001 11:12:20 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5GFCC825728; Sat, 16 Jun 2001 11:12:12 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: Subject: Re: Help with popup/popdown with pointer grab. References: From: Havoc Pennington Date: 16 Jun 2001 11:12:11 -0400 In-Reply-To: 's message of "Sat, 16 Jun 2001 12:04:15 +0100 (BST)" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > /* Popup window and grab pointer */ > gdk_window_show(window->window); > gdk_window_raise(window->window); > if (gdk_pointer_grab (window->window, > FALSE, GDK_POINTER_MOTION_MASK, > window->window, NULL, GDK_CURRENT_TIME)==0) > printf("grab succeeded\n"); > else This is a race condition. The window manager gets a request to deiconify, and then will map your window. However, the window is probably still unmapped when you do the grab. Remember that X is asynchronous. If gdk_pointer_grab() is returning GrabNotViewable then this is almost certainly the problem. Havoc From mitch@dhcpassigned.uk.sun.com Sat Jun 16 11:30:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prserv.net (out4.prserv.net [32.97.166.34]) by mail.gnome.org (Postfix) with ESMTP id 4D4392DFA8 for ; Sat, 16 Jun 2001 11:25:59 -0400 (EDT) Received: from dhcpassigned.uk.sun.com (slip139-92-214-176.por.uk.prserv.net[139.92.214.176]) by prserv.net (out4) with ESMTP id <2001061615255720402ikmu9e>; Sat, 16 Jun 2001 15:25:57 +0000 Received: (from mitch@localhost) by dhcpassigned.uk.sun.com (8.11.1/8.11.1) id f5GFS5i04640; Sat, 16 Jun 2001 16:28:05 +0100 Date: Sat, 16 Jun 2001 16:28:04 +0100 (BST) From: X-X-Sender: Reply-To: To: Cc: Havoc Pennington Subject: Re: Help with popup/popdown with pointer grab. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Havoc, However even putting gdk_flush()'es before the grab doesn't solve the problem. What is the solution then ? How can i wait till window is mapped ? Thanx Mitch -------- Original Message -------- Subject: Re: Help with popup/popdown with pointer grab. Date: 16 Jun 2001 11:12:11 -0400 From: Havoc Pennington To: CC: References: writes: > /* Popup window and grab pointer */ > gdk_window_show(window->window); > gdk_window_raise(window->window); > if (gdk_pointer_grab (window->window, > FALSE, GDK_POINTER_MOTION_MASK, > window->window, NULL, GDK_CURRENT_TIME)==0) > printf("grab succeeded\n"); > else This is a race condition. The window manager gets a request to deiconify, and then will map your window. However, the window is probably still unmapped when you do the grab. Remember that X is asynchronous. If gdk_pointer_grab() is returning GrabNotViewable then this is almost certainly the problem. Havoc _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From jmullen3@nc.rr.com Fri Jun 15 16:56:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail2.nc.rr.com (fe2.southeast.rr.com [24.93.67.49]) by mail.gnome.org (Postfix) with ESMTP id 7971D2DDE9 for ; Fri, 15 Jun 2001 16:56:26 -0400 (EDT) Received: from nc.rr.com ([66.57.30.183]) by mail2.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 15 Jun 2001 16:56:26 -0400 From: Jeff Mullen Reply-To: jmullen3@nc.rr.com Date: Fri, 15 Jun 2001 16:59:01 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: gtk-list@gnome.org Subject: GTK- tutorial MIME-Version: 1.0 Message-Id: <01061516590100.01266@nc.rr.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Greetings, DISCLAIMER: I hope this is the right mailing list... I am trying to learn gtk-- and downloaded a tutorial from the gtkmm.sourceforge.net website. I have typed in the second example in which you press a button to print "Hello World" in the terminal window. However, the code does not compile. Here is the code from the tutorial // button.cc #include #include void hello() { cout << "Hello World" << endl; } main() { Gtk::Button button("Hello World"); button.clicked.connect(slot(&hello)); } The first error I got was "libsigc++ : no such file or directory". So I went to the website and downloaded libsigc++-1.0.1. I ran the configure, make, make check and make install with no problems. I then made a symbolic link ln -s /usr/include/sigc++-config.h /usr/include/sig++/libsigc++ (because this is what I think a FAQ was trying to tell me, I am not sure). Well, now the error (at compile time) is button.cc: In function `int main()': button.cc:18: implicit declaration of function `int slot(...)' button.cc:18: no matching function for call to `Gtk::EmitProxySignal0::connect (int)' /usr/include/gtk--/proxy.h:96: candidates are: class SigC::Connection Gtk::ProxySignal0::connect(const SigC::Slot0 &) The compile command I am issuing is: g++ button.cc -o button `gtkmm-config --cflags --libs` I am at a loss for why this example is not compiling correctly. Can anyone point me in the right direction? --jeff From raphi2@caramail.com Fri Jun 15 23:39:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.caramail.com (mail.caramail.com [195.68.99.70]) by mail.gnome.org (Postfix) with ESMTP id 9F24F2CD27 for ; Fri, 15 Jun 2001 23:39:30 -0400 (EDT) Received: from caramail.com (www34.caramail.com [195.68.99.119]) by mail.caramail.com (8.8.8/8.8.8) with SMTP id FAA14076 for gtk-list@gnome.org; Sat, 16 Jun 2001 05:39:29 +0200 (DST) Posted-Date: Sat, 16 Jun 2001 05:39:29 +0200 (DST) From: raphy7002@caramail.com To: gtk-list@gnome.org Message-ID: <992662769008580@caramail.com> X-Mailer: Caramail - www.caramail.com X-Originating-IP: [163.5.255.8] Mime-Version: 1.0 Subject: GTK + SDL Date: Sat, 16 Jun 2001 05:39:29 GMT+1 Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_008580992662769_ID" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_Caramail_008580992662769_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I'm currently developping a GTK application and I need using SDL to improve my application. I saw an example of GTK + SDL program on www.libsdl.org but this example doesn't help me a lot. In fact I would like to "include" a little SDL window in a big GTK window. (by example to be able to play movies in my GTK application) There are a lot of newsgroups about this problem, but nobody seems to have a real answer to this question. Thanks for your help, Raph ______________________________________________________ Bo=EEte aux lettres - Caramail - http://www.caramail.com --=_NextPart_Caramail_008580992662769_ID-- From pbd@op.net Sat Jun 16 12:41:49 2001 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 B24F92E027 for ; Sat, 16 Jun 2001 12:41:49 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-1e.ppp.op.net [209.152.206.30]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA24914; Sat, 16 Jun 2001 12:41:47 -0400 (EDT) Message-Id: <200106161641.MAA24914@renoir.op.net> To: jmullen3@nc.rr.com Cc: gtk-list@gnome.org Subject: Re: GTK- tutorial In-reply-to: Your message of "Fri, 15 Jun 2001 16:59:01 EDT." <01061516590100.01266@nc.rr.com> Date: Sat, 16 Jun 2001 12:41:31 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >DISCLAIMER: I hope this is the right mailing list... wrong list. try gtkmm-main@lists.sourceforge.net >The first error I got was "libsigc++ : no such file or directory". So I went i've been using libsgic++ for a long time, and i've never used such a header file. try >button.cc:18: implicit declaration of function `int slot(...)' either use SigC::slot or "using namespace SigC" at some appropriate scope. --p From jfbenck@home.nl Sat Jun 16 12:44:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from CP102461-A.home.nl (cp102461-a.landg1.lb.nl.home.com [213.51.21.239]) by mail.gnome.org (Postfix) with ESMTP id EA5B32D21F for ; Sat, 16 Jun 2001 12:44:14 -0400 (EDT) Received: (from jeroen@localhost) by CP102461-A.home.nl (8.11.0/8.11.0) id f5GGjpe02226; Sat, 16 Jun 2001 18:45:51 +0200 X-Authentication-Warning: CP102461-A.home.nl: jeroen set sender to jfbenck@home.nl using -f Subject: Re: GTK + SDL From: Jeroen Benckhuijsen To: raphy7002@caramail.com Cc: gtk-list@gnome.org In-Reply-To: <992662769008580@caramail.com> References: <992662769008580@caramail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.10.99 (Preview Release) Date: 16 Jun 2001 18:45:51 +0200 Message-Id: <992709951.1341.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 16 Jun 2001 05:39:29 +0000, raphy7002@caramail.com wrote: > Hello, >=20 > I'm currently developping a GTK application > and I need using SDL to improve my application. >=20 > I saw an example of GTK + SDL program on www.libsdl.org > but this example doesn't help me a lot. >=20 > In fact I would like to "include" a little SDL window in a=20 > big GTK window. (by example to be able to play movies in my=20 > GTK application) >=20 > There are a lot of newsgroups about this problem, but=20 > nobody seems to have a real answer to this question. >=20 > Thanks for your help, >=20 > Raph > =20 > ______________________________________________________ > Bo=EEte aux lettres - Caramail - http://www.caramail.com >=20 AFAIK, there is a Gtk widget which includes a SDL Window. Thought it was simly called GtkSDL. Haven't used it however, so i don't know anything about it.....=20 -- Jeroen Benckhuijsen Software Engineer Phoenix Software From hp@redhat.com Sat Jun 16 17:57:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 60C1B2E9B5 for ; Sat, 16 Jun 2001 17:57:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5GLuuE25996; Sat, 16 Jun 2001 17:56:56 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: Subject: Re: Help with popup/popdown with pointer grab. References: From: Havoc Pennington Date: 16 Jun 2001 17:56:56 -0400 In-Reply-To: 's message of "Sat, 16 Jun 2001 16:28:04 +0100 (BST)" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > > However even putting gdk_flush()'es before the grab > doesn't solve the problem. What is the solution then ? > How can i wait till window is mapped ? > A flush doesn't help - that ensures your show request has gone to the server, but not that the window manager has processed it and actually mapped the window. If it's a toplevel window, I believe you may get a map_event signal on it when it's actually mapped. Note that then you have a race condition if you depend on the grab existing, because it won't exist for a brief moment after you map... but I don't think you can do anything about that. One possibility is to have a GtkInvisible offscreen which you use for grabs that's never unmapped. Depending on what you're doing that may or may not work. Havoc From smurf@CSUA.Berkeley.EDU Sat Jun 16 20:23:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by mail.gnome.org (Postfix) with ESMTP id 521802BAE9 for ; Sat, 16 Jun 2001 20:23:26 -0400 (EDT) Received: (from smurf@localhost) by soda.csua.berkeley.edu (8.11.1/8.11.1) id f5H0NJe40539; Sat, 16 Jun 2001 17:23:19 -0700 (PDT) (envelope-from smurf) Date: Sat, 16 Jun 2001 17:23:19 -0700 From: Scott MacFiggen To: raphy7002@caramail.com Cc: gtk-list@gnome.org Subject: Re: GTK + SDL Message-ID: <20010616172319.A39429@CSUA.Berkeley.EDU> References: <992662769008580@caramail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <992662769008580@caramail.com>; from raphy7002@caramail.com on Sat, Jun 16, 2001 at 05:39:29AM +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, Jun 16, 2001 at 05:39:29AM +0000, raphy7002@caramail.com wrote: > Hello, > > I'm currently developping a GTK application > and I need using SDL to improve my application. > > I saw an example of GTK + SDL program on www.libsdl.org > but this example doesn't help me a lot. > > In fact I would like to "include" a little SDL window in a > big GTK window. (by example to be able to play movies in my > GTK application) The only real solution to this that I can see is to draw another GTK window in the bigger window and pass that windowid to SDL. You need a GtkWidget that has an Xwindow associated with to to pass to SDL (not all Widgets have x-windows, like frames don't). I use a drawing area inside of a frame for my SDL/GTK application. -Scott From omega@temple-baptist.com Sat Jun 16 21:33:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id B17D02E168 for ; Sat, 16 Jun 2001 21:33:01 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id VAA27415 for ; Sat, 16 Jun 2001 21:33:01 -0400 Received: from mail3.aracnet.com (mail3.aracnet.com [216.99.193.38]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5H1Vfb17694 for ; Sat, 16 Jun 2001 21:31:41 -0400 Received: from alpha.temple-baptist.com (temple-baptist.com [216.99.217.68]) by mail3.aracnet.com (8.11.4/8.11.0) with ESMTP id f5H1WuU28005; Sat, 16 Jun 2001 18:32:56 -0700 Received: from localhost (localhost [127.0.0.1]) by alpha.temple-baptist.com (8.11.0/8.8.7) with ESMTP id f5H1X5l29119; Sat, 16 Jun 2001 18:33:05 -0700 Date: Sat, 16 Jun 2001 18:33:05 -0700 (PDT) From: Erik Walthinsen To: Cc: Subject: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Parapraxis (author, paranormal.sourceforge.net) has converted his visualization plugin over to GObject, and has been hanging out in #gstreamer, since I'm just now wrapping up a conversion of GStreamer itself to GObject (more on that in another mail), and he's porting his plugin to GStreamer. He did some profiling of his code, and found that 26% of the CPU time was in g_type_instance_is_a(). Since that's a pretty complex function, I had no idea how to optimize it. But then I looked at the code that calls it, the _G_TYPE_CIT macro, which is the core of G_TYPE_CHECK_INSTANCE_TYPE. I turns out that a really obvious optimization was ignored: #define _G_TYPE_CIT(ip, gt) (g_type_instance_is_a ((GTypeInstance*) ip, gt)) The goal is to determine if the object instance *ip is of type gt. g_type_instance_is_a() goes through a really long list of things to determine if the object is really an interface, or a derived object, or any of the other myriad of possibilities that make the type system actually *useful*. The optimization that was missed is that in many/most cases, the code will be checking a object against its own type. That means that the GType gt will be equal to the 'immediate' type of the object, not a parent type, or any of that. The 'immediate' type of the object is accessible via the g_class pointer that is the first 4 bytes of *every* instance of any type (GTypeInstance). The g_class pointer goes to a structure that has the GType of that object. Therefore we can simply compare the 'immediate' type of the object directly against the type in question: #define _G_TYPE_CIT(ip, gt) \ ( (((GTypeInstance*)ip)->g_class->g_type == (gt)) ? TRUE : \ g_type_instance_is_a ((GTypeInstance*)ip, gt)) That way the only time g_type_instance_is_a() is called is when the comparison is between an object and its parent class, or some similar case. All other cases are two indirections and a compare. Parapraxis found that this reduced the number of calls in his code from 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by g_type_instance_is_a went from 26% to *not measurable*. This won't be quite as dramatic in something like a Gtk+ application, where more checks will be done between an object and one of its parent classes, but I would still expect *at least* a 50% reduction. I'm convinced that similar optimizations could be made to several of the other macros in this file, potentially reducing object type checking time to almost nothing. Parapraxis wondered if multithreading has any impact on this, and I believe it does not. The object is not capable of changing its type, ever, afaik. The GType being compared will almost always come from a _get_type() function that also cannot ever change the GType value. The only reason for the READER_LOCK in g_type_instance_is_a() is to avoid someone else mangling the GLists that are walked through to find the TypeNode in question, afaict. Anyway, if no one can find any other problems with this code, I would like to see it make its way into glib CVS. I have GNOME CVS write access, so if whoever wants me to, I can commit it myself, after posting a full unidiff on the list for confirmation that I'm doing it right. Erik Walthinsen - System Administrator __ / \ GStreamer - The only way to stream! | | M E G A ***** http://gstreamer.net/ ***** _\ /_ From rbultje@ronald.bitfreak.net Sun Jun 17 06:42:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 02DEE2DE88 for ; Sun, 17 Jun 2001 06:42:21 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f5HBPKF01761; Sun, 17 Jun 2001 13:25:21 +0200 (CEST) From: "Ronald Bultje" To: "Scott MacFiggen" Cc: Subject: RE: GTK + SDL Date: Sun, 17 Jun 2001 12:48:32 +0200 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 V5.00.2919.6700 In-Reply-To: <20010616172319.A39429@CSUA.Berkeley.EDU> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Scott, >I use a drawing area inside of a frame for my SDL/GTK application. I personally use an eventbox because the only goal of an eventbox is to have a X-window associated with it - which is all you'd need. The eventbox is the "most simple" widget for this - isn't a drawing box far too complicated for this goal? Might make a difference of 0,00000001% in performance ;-). Regards, Ronald From timj@gtk.org Sun Jun 17 07:34:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 2AB212BEDC for ; Sun, 17 Jun 2001 07:34:17 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id HAA05792 for ; Sun, 17 Jun 2001 07:34:16 -0400 Received: from hmbg-3e36c350.pool.mediaWays.net (hmbg-3e36c350.pool.mediaWays.net [62.54.195.80]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HBWub04484 for ; Sun, 17 Jun 2001 07:32:56 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HBZFQ2018719; Sun, 17 Jun 2001 13:35:15 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HBZ5S32536; Sun, 17 Jun 2001 13:35:05 +0200 Date: Sun, 17 Jun 2001 13:35:05 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Erik Walthinsen Cc: gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 16 Jun 2001, Erik Walthinsen wrote: > Parapraxis (author, paranormal.sourceforge.net) has converted his > visualization plugin over to GObject, and has been hanging out in > #gstreamer, since I'm just now wrapping up a conversion of GStreamer > itself to GObject (more on that in another mail), and he's porting his > plugin to GStreamer. > > He did some profiling of his code, and found that 26% of the CPU time was > in g_type_instance_is_a(). Since that's a pretty complex function, I had > no idea how to optimize it. But then I looked at the code that calls it, > the _G_TYPE_CIT macro, which is the core of G_TYPE_CHECK_INSTANCE_TYPE. > I turns out that a really obvious optimization was ignored: > > #define _G_TYPE_CIT(ip, gt) (g_type_instance_is_a ((GTypeInstance*) ip, gt)) > > The goal is to determine if the object instance *ip is of type gt. > g_type_instance_is_a() goes through a really long list of things to > determine if the object is really an interface, or a derived object, or > any of the other myriad of possibilities that make the type system > actually *useful*. > > The optimization that was missed is that in many/most cases, the code will > be checking a object against its own type. That means that the GType gt > will be equal to the 'immediate' type of the object, not a parent type, or > any of that. > > The 'immediate' type of the object is accessible via the g_class pointer > that is the first 4 bytes of *every* instance of any type (GTypeInstance). > The g_class pointer goes to a structure that has the GType of that object. > Therefore we can simply compare the 'immediate' type of the object > directly against the type in question: > > #define _G_TYPE_CIT(ip, gt) \ > ( (((GTypeInstance*)ip)->g_class->g_type == (gt)) ? TRUE : \ > g_type_instance_is_a ((GTypeInstance*)ip, gt)) > > That way the only time g_type_instance_is_a() is called is when the > comparison is between an object and its parent class, or some similar > case. All other cases are two indirections and a compare. there's one problem with the above macro, that is, (ip) is evaluated twice, if its anything else than a constant (say a function call, returning an object), this macro implementation is potentially harmfull. > Parapraxis found that this reduced the number of calls in his code from > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > g_type_instance_is_a went from 26% to *not measurable*. ok, that is quite alarming indeed. > This won't be > quite as dramatic in something like a Gtk+ application, where more checks > will be done between an object and one of its parent classes, but I would > still expect *at least* a 50% reduction. i'd second that. > I'm convinced that similar optimizations could be made to several of the > other macros in this file, potentially reducing object type checking time > to almost nothing. feel free to post more suggestions liek this to gtk-devel-list@gnome.org. > Parapraxis wondered if multithreading has any impact on this, and I > believe it does not. The object is not capable of changing its type, > ever, afaik. The GType being compared will almost always come from a > _get_type() function that also cannot ever change the GType value. The > only reason for the READER_LOCK in g_type_instance_is_a() is to avoid > someone else mangling the GLists that are walked through to find the > TypeNode in question, afaict. mostly right. though, using g_type_instance_is_a() has another advantage, e.g. consider: #define ID_NOT_IN_TYPE_SYSTEM (255) static guint id = ID_NOT_IN_TYPE_SYSTEM; static guint *id_p = &id; { /*your version*/_G_TYPE_CIT (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* succeeds */ g_type_instance_is_a (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* fails, ID_NOT_IN_TYPE_SYSTEM is not registered */ } however, considering the speed advatage you report, it might be worth lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, for the supposedly pathological case that the instance is broken in that its class contains a non-registered type-id, _and_ this non-registered type id is being checked for, it returns a false TRUE. we still need to get around the double evaluation of the (ip) arg of _G_TYPE_CIT() though, so we'd have to implement it via an auxillary static inline function. the same kind of optimization can be implemented for the class type-checking macro btw. > Anyway, if no one can find any other problems with this code, I would > like to see it make its way into glib CVS. I have GNOME CVS write access, > so if whoever wants me to, I can commit it myself, after posting a full > unidiff on the list for confirmation that I'm doing it right. > > Erik Walthinsen - System Administrator --- ciaoTJ From otaylor@redhat.com Sun Jun 17 08:32:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id E423E2BCB1 for ; Sun, 17 Jun 2001 08:32:44 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id IAA08423 for ; Sun, 17 Jun 2001 08:32:44 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id F0E39242315; Sun, 17 Jun 2001 08:32:43 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 08:32:43 -0400 In-Reply-To: Tim Janik's message of "Sun, 17 Jun 2001 13:35:05 +0200 (CEST)" Message-ID: Lines: 77 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Tim Janik writes: > On Sat, 16 Jun 2001, Erik Walthinsen wrote: > > > Parapraxis found that this reduced the number of calls in his code from > > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > > g_type_instance_is_a went from 26% to *not measurable*. > > ok, that is quite alarming indeed. > > > This won't be > > quite as dramatic in something like a Gtk+ application, where more checks > > will be done between an object and one of its parent classes, but I would > > still expect *at least* a 50% reduction. > > i'd second that. I'm not sure I would. When I did profiling for GtkObject, a huge number of checks were from gtk_object_ref(), gtk_signal_emit() and such, so the really big win was: #define GTK_IS_OBJECT_CLASS(klass) ( \ (klass) != NULL && \ GTK_FUNDAMENTAL_TYPE (((GtkObjectClass*) (klass))->type) == GTK_TYPE_OBJECT \ ) Of course, GDK and Pango have flatter inheritance trees than GTK+, so, checking against the object type is probably a lot more common than it used to be. But trying to second guess this is completely pointless. Someone needs to add a few lines of instrumentation, run testgtk and report the results. > > Parapraxis wondered if multithreading has any impact on this, and I > > believe it does not. The object is not capable of changing its type, > > ever, afaik. The GType being compared will almost always come from a > > _get_type() function that also cannot ever change the GType value. The > > only reason for the READER_LOCK in g_type_instance_is_a() is to avoid > > someone else mangling the GLists that are walked through to find the > > TypeNode in question, afaict. > > mostly right. though, using g_type_instance_is_a() has another advantage, > e.g. consider: > > #define ID_NOT_IN_TYPE_SYSTEM (255) > static guint id = ID_NOT_IN_TYPE_SYSTEM; > static guint *id_p = &id; > { > /*your version*/_G_TYPE_CIT (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* succeeds */ > g_type_instance_is_a (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* fails, > ID_NOT_IN_TYPE_SYSTEM is not > registered */ > } This (to me) completely doesn't matter. g_type_instance_is_a() is virtually always called through BLAH_IS_FOO(), and in that case, the ID is going to be in the type system. > however, considering the speed advatage you report, it might be worth > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > for the supposedly pathological case that the instance is broken in that > its class contains a non-registered type-id, _and_ this non-registered > type id is being checked for, it returns a false TRUE. > > we still need to get around the double evaluation of the (ip) arg of > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > static inline function. > the same kind of optimization can be implemented for the class > type-checking macro btw. It's interesting to note that macros such as GTK_OBJECT() have double evaluated for a long time, and nobody has ever noticed/complained. Regards, Owen From timj@gtk.org Sun Jun 17 08:38:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id E8E052DC7F for ; Sun, 17 Jun 2001 08:38:40 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id IAA08824; Sun, 17 Jun 2001 08:38:40 -0400 Received: from hmbg-3e36c52a.pool.mediaWays.net (hmbg-3e36c52a.pool.mediaWays.net [62.54.197.42]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HCbKb06521; Sun, 17 Jun 2001 08:37:20 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HCdfQ2020460; Sun, 17 Jun 2001 14:39:41 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HCdfK10035; Sun, 17 Jun 2001 14:39:41 +0200 Date: Sun, 17 Jun 2001 14:39:41 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Owen Taylor Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 17 Jun 2001, Owen Taylor wrote: > Tim Janik writes: > > however, considering the speed advatage you report, it might be worth > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > for the supposedly pathological case that the instance is broken in that > > its class contains a non-registered type-id, _and_ this non-registered > > type id is being checked for, it returns a false TRUE. > > > > we still need to get around the double evaluation of the (ip) arg of > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > static inline function. > > the same kind of optimization can be implemented for the class > > type-checking macro btw. > > It's interesting to note that macros such as GTK_OBJECT() have double > evaluated for a long time, and nobody has ever noticed/complained. that's why i said "potentially" harmfull ;) i'm sure you agree that we still need to avoid doubleeval, right? > > Regards, > Owen > > --- ciaoTJ From otaylor@redhat.com Sun Jun 17 08:42:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A6B472E2EB for ; Sun, 17 Jun 2001 08:42:29 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 10628242315; Sun, 17 Jun 2001 08:42:29 -0400 (EDT) To: "Ronald Bultje" Cc: "Scott MacFiggen" , Subject: Re: GTK + SDL References: From: Owen Taylor Date: 17 Jun 2001 08:42:28 -0400 In-Reply-To: "Ronald Bultje"'s message of "Sun, 17 Jun 2001 12:48:32 +0200" Message-ID: Lines: 22 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ronald Bultje" writes: > Hi Scott, > > >I use a drawing area inside of a frame for my SDL/GTK application. > > I personally use an eventbox because the only goal of an eventbox is > to have a X-window associated with it - which is all you'd need. The > eventbox is the "most simple" widget for this - isn't a drawing box > far too complicated for this goal? > Might make a difference of 0,00000001% in performance ;-). Not that it matters at all, but actually, GtkDrawingArea is a simpler widget than GtkEventBox. GtkEventBox is a _container_ with a window, so has code for handling a child widget. GtkDrawingArea, on the other hand, is just a widget with a window that the app can draw on. Regards, Owen From otaylor@redhat.com Sun Jun 17 08:53:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id BC2A52DC70 for ; Sun, 17 Jun 2001 08:53:28 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id IAA09469 for ; Sun, 17 Jun 2001 08:53:28 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 23812242315; Sun, 17 Jun 2001 08:53:28 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 08:53:28 -0400 In-Reply-To: Tim Janik's message of "Sun, 17 Jun 2001 14:39:41 +0200 (CEST)" Message-ID: Lines: 52 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Tim Janik writes: > On 17 Jun 2001, Owen Taylor wrote: > > > Tim Janik writes: > > > > however, considering the speed advatage you report, it might be worth > > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > > for the supposedly pathological case that the instance is broken in that > > > its class contains a non-registered type-id, _and_ this non-registered > > > type id is being checked for, it returns a false TRUE. > > > > > > we still need to get around the double evaluation of the (ip) arg of > > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > > static inline function. > > > the same kind of optimization can be implemented for the class > > > type-checking macro btw. > > > > It's interesting to note that macros such as GTK_OBJECT() have double > > evaluated for a long time, and nobody has ever noticed/complained. > > that's why i said "potentially" harmfull ;) > i'm sure you agree that we still need to avoid doubleeval, right? I'm not sure. Considering that inline functions in C or statement expressions aren't portable, and I think GObject should probably perform portably, it's conceivable that the danger is worth it. I think it was worth it for the GTK_OBJECT() macro. It would certainly be good to avoid double evals for cast macros if at all possible. I've certainly written: GTK_ADJUSTMENT (gtk_adjustment_new (...)); Once or twice. Double evals are less harmful for BLAH_IS_FOO() as compared to BLAH_FOO(), because the worst that can happen with a double eval in BLAH_IS_FOO() is a bit of inefficiency - a memory leak can't happen because the instance pointer isn't returned. And aren't very likely to write something along the lines: if (PANGO_IS_LAYOUT (gtk_label_get_layout (label)) layout = gtk_label_get_layout (label); But any time a double eval of a macro can be avoided, the better, of course. Regards, Owen From timj@gtk.org Sun Jun 17 09:04:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id C2FE62E196 for ; Sun, 17 Jun 2001 09:04:56 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id JAA09879; Sun, 17 Jun 2001 09:04:56 -0400 Received: from hmbg-3e36c52a.pool.mediaWays.net (hmbg-3e36c52a.pool.mediaWays.net [62.54.197.42]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HD3ab07066; Sun, 17 Jun 2001 09:03:36 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HD5xQ2020973; Sun, 17 Jun 2001 15:05:59 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HD5w218222; Sun, 17 Jun 2001 15:05:58 +0200 Date: Sun, 17 Jun 2001 15:05:58 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Owen Taylor Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 17 Jun 2001, Owen Taylor wrote: > Tim Janik writes: > > > On 17 Jun 2001, Owen Taylor wrote: > > > > > Tim Janik writes: > > > > > > however, considering the speed advatage you report, it might be worth > > > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > > > for the supposedly pathological case that the instance is broken in that > > > > its class contains a non-registered type-id, _and_ this non-registered > > > > type id is being checked for, it returns a false TRUE. > > > > > > > > we still need to get around the double evaluation of the (ip) arg of > > > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > > > static inline function. > > > > the same kind of optimization can be implemented for the class > > > > type-checking macro btw. > > > > > > It's interesting to note that macros such as GTK_OBJECT() have double > > > evaluated for a long time, and nobody has ever noticed/complained. > > > > that's why i said "potentially" harmfull ;) > > i'm sure you agree that we still need to avoid doubleeval, right? > > I'm not sure. Considering that inline functions in C or statement > expressions aren't portable, and I think GObject should probably > perform portably, it's conceivable that the danger is worth it. > I think it was worth it for the GTK_OBJECT() macro. i don't think there's much to worry about compilers that can't inline nowadays. glib ensures that static inline at least works on such systems by providing a non-static linkable version, if static inline isn't supported. so worst-case scenario is that for inline-incapable compilers an extra function call is performed. > > Regards, > Owen > --- ciaoTJ From denisoider@mail.ru Sun Jun 17 13:26:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx7.port.ru (mx7.port.ru [194.67.23.44]) by mail.gnome.org (Postfix) with ESMTP id 7577B2DE4F for ; Sun, 17 Jun 2001 13:26:35 -0400 (EDT) Received: from f8.int ([10.0.0.76] helo=f8.mail.ru) by mx7.port.ru with esmtp (Exim 3.14 #1) id 15BgJm-0002X6-00 for gtk-list@gnome.org; Sun, 17 Jun 2001 21:26:34 +0400 Received: from mail by f8.mail.ru with local (Exim 3.14 #2) id 15BgJm-000OQ3-00 for gtk-list@gnome.org; Sun, 17 Jun 2001 21:26:34 +0400 Received: from [212.45.15.120] by win.mail.port.ru with HTTP; Sun, 17 Jun 2001 17:26:34 +0000 (GMT) From: "Bar Den" To: gtk-list@gnome.org Subject: Widget blinking? Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: unknown via proxy [212.45.15.120] Reply-To: "Bar Den" Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Date: Sun, 17 Jun 2001 21:26:34 +0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I use gtk-1.2.8, the problem is when you move mouse cursor over different widgets, sometimes they blink. What is wrong with it, is it a bug? From otaylor@redhat.com Sun Jun 17 13:40:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 41F9C2CAD7 for ; Sun, 17 Jun 2001 13:40:26 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id NAA26978 for ; Sun, 17 Jun 2001 13:40:25 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id AA0EE242315; Sun, 17 Jun 2001 13:40:25 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 13:40:25 -0400 In-Reply-To: Owen Taylor's message of "17 Jun 2001 08:32:43 -0400" Message-ID: Lines: 100 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen Taylor writes: > Tim Janik writes: > > > On Sat, 16 Jun 2001, Erik Walthinsen wrote: > > > > > Parapraxis found that this reduced the number of calls in his code from > > > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > > > g_type_instance_is_a went from 26% to *not measurable*. > > > > ok, that is quite alarming indeed. > > > > > This won't be > > > quite as dramatic in something like a Gtk+ application, where more checks > > > will be done between an object and one of its parent classes, but I would > > > still expect *at least* a 50% reduction. > > > > i'd second that. > > I'm not sure I would. When I did profiling for GtkObject, a huge > number of checks were from gtk_object_ref(), gtk_signal_emit() > and such, so the really big win was: > > #define GTK_IS_OBJECT_CLASS(klass) ( \ > (klass) != NULL && \ > GTK_FUNDAMENTAL_TYPE (((GtkObjectClass*) (klass))->type) == GTK_TYPE_OBJECT \ > ) > > Of course, GDK and Pango have flatter inheritance trees than GTK+, > so, checking against the object type is probably a lot more > common than it used to be. > > But trying to second guess this is completely pointless. Someone > needs to add a few lines of instrumentation, run testgtk and > report the results. Did some checking - patch follows for anybody who wants to try for themselves. For the various tests in testgtk for the type of the object were between 7 and 33% of the total number of BLAH_IS_FOO checks. (Around 15% was typical) G_IS_OBJECT() checks were between 16% and 80% of the total number of checks. (Around 40% was typical) Obviously, it varies a _lot_ depending on what is going on. Regards, Owen Index: gtype.c =================================================================== RCS file: /cvs/gnome/glib/gobject/gtype.c,v retrieving revision 1.27 diff -u -r1.27 gtype.c --- gtype.c 2001/05/10 13:58:40 1.27 +++ gtype.c 2001/06/17 17:35:05 @@ -2479,15 +2479,40 @@ return type; } +static int total = 0; +static int same = 0; +static int gobject = 0; + +void print_perc (void) +{ + g_print ("Percentage of checks 'a is a': %.2f (%d/%d)\n", + 100 * (double)same / total, same, total); + g_print ("Percentage of checks 'a is gobject': %.2f (%d/%d)\n", + 100 * (double)gobject / total, gobject, total); +} + gboolean g_type_instance_is_a (GTypeInstance *type_instance, GType iface_type) { TypeNode *node, *iface; gboolean check; + static gboolean init = FALSE; if (!type_instance || !type_instance->g_class) return FALSE; + + if (!init) + { + init = TRUE; + g_atexit (print_perc); + } + + total++; + if (type_instance->g_class->g_type == iface_type) + same++; + if (G_TYPE_OBJECT == iface_type) + gobject++; G_READ_LOCK (&type_rw_lock); node = lookup_type_node_L (type_instance->g_class->g_type); From ishamael@themes.org Sun Jun 17 15:14:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alpha.techcare.com (unknown [207.89.153.66]) by mail.gnome.org (Postfix) with SMTP id 453B62BEEB for ; Sun, 17 Jun 2001 15:14:12 -0400 (EDT) Received: (qmail 4373 invoked from network); 17 Jun 2001 17:52:47 -0000 Received: from pm538-22.dialip.mich.net (HELO orodruin) (@198.108.161.80) by alpha.techcare.com with SMTP; 17 Jun 2001 17:52:47 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Charlie Schmidt" To: gtk-list@gnome.org Subject: GtkCList & GtkScrolledWindow X-Mailer: Pronto v2.2.6 On linux/mysql Date: 17 Jun 2001 14:57:24 EDT Reply-To: "Charlie Schmidt" Message-Id: <20010617191412.453B62BEEB@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: - im not a big fan of GtkCList, it takes a long long time to insert a lot of rows, but i suppose its all we have, right? so. i was wondering, is there a way to get the CList to request space for X rows, so the ScrolledWindow its in adjusts the scroll bar correctly, or a way to manually set the values in a ScrollBar so it adjusts? this way (at least, in my mind) i could insert the first 20 or so rows that would be required for display, and set the scroll bar so it looks like there are however many inserted, and then thread an insert function to append the rest of the rows. or, alternatively, can anyone tell me that the new GtkTreeView widget is significantly better for inserting, say, 10000-50000 rows all at once? ive tested it a bit in Gtk+-1.3.6, and wasnt very impressed (in fact, it seemed much much slower than GtkCList even). thanks. -- Charlie Schmidt - From hp@redhat.com Sun Jun 17 15:48:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 25FC82DC3A for ; Sun, 17 Jun 2001 15:48:15 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5HJm1432688; Sun, 17 Jun 2001 15:48:01 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Charlie Schmidt" Cc: gtk-list@gnome.org Subject: Re: GtkCList & GtkScrolledWindow References: <20010617191412.453B62BEEB@mail.gnome.org> From: Havoc Pennington Date: 17 Jun 2001 15:48:01 -0400 In-Reply-To: "Charlie Schmidt"'s message of "17 Jun 2001 14:57:24 EDT" Message-ID: Lines: 37 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Charlie Schmidt" writes: > im not a big fan of GtkCList, it takes a long long time to insert a lot > of rows, but i suppose its all we have, right? It's actually pretty fast, i.e. it's not doing a lot of work per-row. It's just that this operation is inherently O(n). You aren't going to get it to scale beyond that. > this way (at least, in my mind) i could insert the first 20 or so rows > that would be required for display, and set the scroll bar so it looks > like there are however many inserted, and then thread an insert function > to append the rest of the rows. > > or, alternatively, can anyone tell me that the new GtkTreeView widget is > significantly better for inserting, say, 10000-50000 rows all at once? > ive tested it a bit in Gtk+-1.3.6, and wasnt very impressed (in fact, it > seemed much much slower than GtkCList even). > It is much slower than the CList. However, there are two things we can do. a) You can write a custom model. So if you already have your row data, you don't actually need to "insert" it. The only issue is how long it takes GtkTreeView to compute the display. b) For computing the display, we can do it incrementally as for GtkTextView. Try putting a lot of text in the text view to see how it works. Basically you compute the onscreen display first and go ahead and show it, and do the rest in the background. Web browsers do this same thing as data streams in. Those two things should remove the O(n) issue, getting stuff onscreen becomes constant-time-ish. Havoc From bloodso@yahoo.com Sun Jun 17 17:09:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bigred.192.168.1.2 (24129136hfc79.tampabay.rr.com [24.129.136.79]) by mail.gnome.org (Postfix) with ESMTP id D28F12BB2D for ; Sun, 17 Jun 2001 17:09:39 -0400 (EDT) Received: from bigred (localhost.localdomain [127.0.0.1]) by bigred.192.168.1.2 (Postfix) with SMTP id 6D56C2A938 for ; Sun, 17 Jun 2001 17:15:09 -0400 (EDT) From: Chris Date: Sun, 17 Jun 2001 17:15:09 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: gtk-list@gnome.org Subject: drawing area in scrolled window MIME-Version: 1.0 Message-Id: <01061717150900.32534@bigred> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I am having trouble using a drawing area in a scrolled window. I am unable to scroll the drawing area. I have tried using a callback for the viewport in the scrolled window to set the vertical and horizontal adjustments for the size of the drawing area but that does not seem to work. Is it possible to scroll a drawing area with a scrolled window or will I have to use vertical and horizontal scrollbars? TIA, Chris From hp@redhat.com Sun Jun 17 20:03:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B45D42E298 for ; Sun, 17 Jun 2001 20:03:14 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5I02xT00323; Sun, 17 Jun 2001 20:02:59 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Chris Cc: gtk-list@gnome.org Subject: Re: drawing area in scrolled window References: <01061717150900.32534@bigred> From: Havoc Pennington Date: 17 Jun 2001 20:02:59 -0400 In-Reply-To: Chris's message of "Sun, 17 Jun 2001 17:15:09 -0400" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris writes: > Hello. I am having trouble using a drawing area in a scrolled window. I am > unable to scroll the drawing area. I have tried using a callback for the > viewport in the scrolled window to set the vertical and horizontal > adjustments for the size of the drawing area but that does not seem to work. > Is it possible to scroll a drawing area with a scrolled window or will I have > to use vertical and horizontal scrollbars? > It should work, you have to be sure to use gtk_scrolled_window_add_with_viewport(). Havoc From mseisdedos@cirsa.com Mon Jun 18 03:17:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id 774582BB09 for ; Mon, 18 Jun 2001 03:17:18 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A6F.0027F745; Mon, 18 Jun 2001 09:16:32 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Mon, 18 Jun 2001 09:16:43 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4821@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: icon visible Date: Mon, 18 Jun 2001 09:16:42 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a toolbar with both icons, and label in each button, if i press no sensitive button i get two different situations: a) gtk stock icons, like clear, cut, paste....., works ok: both icon an label get insensitive, b) buttons with my own icons, the lagel gets insensitive but icons remains sensitive. Any body knows why???? From thierry.herbreteau@trium-rd.com Mon Jun 18 04:17:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relais-int8.globalintranet.net (mailgate.globalintranet.net [194.206.181.244]) by mail.gnome.org (Postfix) with ESMTP id 7EFA92CC93 for ; Mon, 18 Jun 2001 04:17:15 -0400 (EDT) Received: from mitsu5.mef-rd.com ([10.255.7.37]) by relais-int8.globalintranet.net (Netscape Messaging Server 4.15) with SMTP id GF49NI00.C2B; Mon, 18 Jun 2001 10:16:30 +0200 Received: from trium-rd.com by mitsu5.mef-rd.com (SMI-8.6/SMI-SVR4) id KAA12961; Mon, 18 Jun 2001 10:15:46 +0200 Message-ID: <3B2DB930.F3A49A0E@trium-rd.com> Date: Mon, 18 Jun 2001 10:17:52 +0200 From: Thierry Herbreteau Reply-To: thierry.herbreteau@trium-rd.com Organization: Mitsubishi Electric Telecom Europe X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en,fr MIME-Version: 1.0 To: Sven Neumann Cc: Simon Budig , gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sven Neumann wrote: > Actually we need something like GTK+-Embedded but at the moment I don't > see anyone pushing it and we are lacking the resources to do a general > solution at the moment. Hi Sven, I've heard about something developped on the Ipaq called Familiar. I don't know it very much but it seems to be based on GTK+. Do you have any information on it ? What kind of solution is it ? Bye, Thierry. From john.cupitt@ng-london.org.uk Mon Jun 18 07:43:52 2001 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 1925D2E192 for ; Mon, 18 Jun 2001 07:40:44 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN4RN; Mon, 18 Jun 2001 12:40:43 +0100 Message-ID: <3B2DE76D.9C9E6B4D@ng-london.org.uk> Date: Mon, 18 Jun 2001 12:35:09 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Sergio Arregui Ojeda Cc: GTK-List Subject: Re: Help! References: <3B2A5155.9DAB2A@cicese.mx> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sergio Arregui Ojeda wrote: > i have to develop a system that has to plot data that is acquired > trhough the serial port, i have done most of this part using > the realtime plot demo that comes with extragtk, but i have a problem > because it's a lot of data and my machine gets very busy > while plotting, i think that this is 'cause the data does not > get released, instead it keeps it in memory, and i want to know > if theres is a way that this data can be freed (or deallocated) > so this way it speed up things. Hi Sergio, memory should be freed up; if it's not getting freed, you have a bug somewhere. Maybe you're not _unref()ing stuff you should be unrefing? You could try a leak checker to try to track the problem down. memprof is nice and very easy to use: http://people.redhat.com/otaylor/memprof/ Run your program with no input first, and nail the easy leaks. Then start adding more data and see where new leaks appear. If you want something more sophisticated, you could download a trial version of purify: http://www.rational.com (100MB download, solaris/irix/hp-ux only, 15 days only). HTH, John From hp@redhat.com Mon Jun 18 10:24:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B18372BAB6 for ; Mon, 18 Jun 2001 10:24:21 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IENcr01382; Mon, 18 Jun 2001 10:23:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Monserrat Seisdedos =?iso-8859-1?q?Nu=F1ez?= Cc: "gtk (E-mail)" Subject: Re: icon visible References: <01294F3FC12BD41183BD00D0B7176A1D4D4821@srvexch> From: Havoc Pennington Date: 18 Jun 2001 10:23:38 -0400 In-Reply-To: Monserrat Seisdedos =?iso-8859-1?q?Nu=F1ez's?= message of "Mon, 18 Jun 2001 09:16:42 +0200" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Monserrat Seisdedos Nu=F1ez writes: > I have a toolbar with both icons, and label in each button, if i press no > sensitive button i get two different situations: > a) gtk stock icons, like clear, cut, paste....., works ok: both icon > an label get insensitive,=20 > b) buttons with my own icons, the lagel gets insensitive but icons > remains sensitive. > Any body knows why???? >=20 (Assuming GTK 1.3.6) You have to use GtkIconSet if you want the insensitive effect.=20 Register your icons with the stock system, the "Main application window" demo in gtk-demo has an example. Havoc From rwalden@tripos.com Mon Jun 18 10:57:00 2001 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 CC6FF2D41B for ; Mon, 18 Jun 2001 10:56:58 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id JAA26940 for ; Mon, 18 Jun 2001 09:56:52 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma023635; Mon, 18 Jun 01 09:42:28 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id JAA91630 for ; Mon, 18 Jun 2001 09:42:01 -0500 (CDT) Message-ID: <3B2E1338.3C18A969@tripos.com> Date: Mon, 18 Jun 2001 09:42:00 -0500 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@gnome.org Subject: MDI Interface 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to create a Multiple Document Interface (MDI) (a-la MSWord ) with GTK+? I haven't seen any examples like this, so I am wondering.... -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From andres_giraldo@yahoo.com Mon Jun 18 11:34:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11507.mail.yahoo.com (web11507.mail.yahoo.com [216.136.172.39]) by mail.gnome.org (Postfix) with SMTP id C59672BA98 for ; Mon, 18 Jun 2001 11:34:33 -0400 (EDT) Message-ID: <20010618153433.39415.qmail@web11507.mail.yahoo.com> Received: from [209.205.77.166] by web11507.mail.yahoo.com; Mon, 18 Jun 2001 08:34:33 PDT Date: Mon, 18 Jun 2001 08:34:33 -0700 (PDT) From: "Andrés" Giraldo Subject: gtk_widget_destroy To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm creating a window from a nother window, something like a message box, but when I want to unload this window; should I use gtk_widget_destroy? Because I'm connecting this signal to a button clicked event: gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", GTK_SIGNAL_FUNC (on_btnClose_clicked), NULL) // callback function void on_btnClose_clicked (GtkButton *button, gpointer data) { GtkWidget *window = (GtkWidget *)data; gtk_widget_destory (window); } /*********** It doesn't work, Gtk tells me that window is not an Gtk Widget... There's another way to unload a window or what I'm doing wrong... Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From alexl@redhat.com Mon Jun 18 12:18:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 8DB522BB23 for ; Mon, 18 Jun 2001 12:18:25 -0400 (EDT) Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [207.175.42.156]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id MAA26707; Mon, 18 Jun 2001 12:18:25 -0400 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id f5IGINP23616; Mon, 18 Jun 2001 12:18:23 -0400 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 18 Jun 2001 12:18:23 -0400 (EDT) From: Alex Larsson X-X-Sender: To: Tim Janik Cc: Owen Taylor , Erik Walthinsen , , Gtk+ Developers , Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sun, 17 Jun 2001, Tim Janik wrote: > > I'm not sure. Considering that inline functions in C or statement > > expressions aren't portable, and I think GObject should probably > > perform portably, it's conceivable that the danger is worth it. > > I think it was worth it for the GTK_OBJECT() macro. > > i don't think there's much to worry about compilers that can't inline > nowadays. glib ensures that static inline at least works on such systems > by providing a non-static linkable version, if static inline isn't supported. > so worst-case scenario is that for inline-incapable compilers an extra > function call is performed. I'd like to point out here that GCC produces better code for macros than inline functions. This will continue to be true in GCC 3.0, and in the future until the tree inliner is ported from the c++ compiler to the c compiler. / Alex From sven@gimp.org Mon Jun 18 12:35:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 905A82E3DF for ; Mon, 18 Jun 2001 12:35:19 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15C1t1-00010y-00; Mon, 18 Jun 2001 18:28:23 +0200 To: "AndrXs" Giraldo Cc: Gtk List Subject: Re: gtk_widget_destroy References: <20010618153433.39415.qmail@web11507.mail.yahoo.com> From: Sven Neumann Date: 18 Jun 2001 18:28:23 +0200 In-Reply-To: <20010618153433.39415.qmail@web11507.mail.yahoo.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "AndrXs" Giraldo writes: > I'm creating a window from a nother window, something > like a message box, but when I want to unload this > window; > > should I use gtk_widget_destroy? > > Because I'm connecting this signal to a button clicked > event: > > gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", > GTK_SIGNAL_FUNC > (on_btnClose_clicked), NULL) > > > // callback function > > void on_btnClose_clicked (GtkButton *button, gpointer > data) > { > GtkWidget *window = (GtkWidget *)data; > > gtk_widget_destory (window); > } > you did not pass the window pointer when connecting your signal. How is this supposed to work ?? Salut, Sven From king@eiffel.com Mon Jun 18 13:42:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 0911C2BB19 for ; Mon, 18 Jun 2001 13:42:27 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C32f-0001oj-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 10:42:25 -0700 Message-ID: <1fe701c0f81f$2752db30$750a000a@naples> From: "Ian King" To: Subject: Scrolled window in ctree Date: Mon, 18 Jun 2001 10:50:25 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone know why the horizontal scrollbar for ctree (scrolled_window_add_with_viewport) is not viewable at all. I also get size allocation warnings everytime I use the ctree? I need to fix this as ctrees are used for our visual debugger. Thanks for your time IEK From rsteinke@w-link.net Mon Jun 18 14:26:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 86F882E00E for ; Mon, 18 Jun 2001 14:26:11 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15C3nZ-0002s8-00 for ; Mon, 18 Jun 2001 11:30:53 -0700 Date: Mon, 18 Jun 2001 11:30:53 -0700 To: gtk-list@gnome.org Subject: Trouble setting GdkEventMask Message-ID: <3B2E48DD.nail8HY11LXHW@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm trying to connect to the key-press-event of a wigdet derived from GtkDrawingArea. It has a window, and I'm using gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to the GdkEventMask for the widget. Nonetheless, the signal isn't being emitted (it's not even showing up in the default function for the event signal in the derived widget). What am I forgetting? I'm using gtk 1.3, if that matters. Ron Steinke From hp@redhat.com Mon Jun 18 14:34:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5413B2DEE8 for ; Mon, 18 Jun 2001 14:30:36 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IIULW01615; Mon, 18 Jun 2001 14:30:21 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Scrolled window in ctree References: <1fe701c0f81f$2752db30$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 14:30:21 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 10:50:25 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > Does anyone know why the horizontal scrollbar for ctree > (scrolled_window_add_with_viewport) is not viewable at all. I also get size > allocation warnings everytime I use the ctree? I need to fix this as ctrees > are used for our visual debugger. > > Thanks for your time > Don't use add_with_viewport(), that's only for widgets without "native" scroll support. Just use gtk_container_add(). Havoc From skip@beluga.mojam.com Mon Jun 18 14:36:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 927752E011 for ; Mon, 18 Jun 2001 14:36:28 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5IIYuV09781; Mon, 18 Jun 2001 13:34:56 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15150.18895.379738.456168@beluga.mojam.com> Date: Mon, 18 Jun 2001 13:34:55 -0500 To: gtk-list@gnome.org, pygtk@daa.com.au Subject: can I watch all signals being emitted? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: For debugging and tutorial purposes, is it possible to easily see all signal emissions (or all signal emissions by a particular object)? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From george@clipper.ens.fr Mon Jun 18 11:48:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 25C7F2BDE9 for ; Mon, 18 Jun 2001 11:48:28 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA17639 for ; Mon, 18 Jun 2001 11:48:27 -0400 Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5IFlAb00790 for ; Mon, 18 Jun 2001 11:47:10 -0400 Received: from chaland.ens.fr (chaland.ens.fr [129.199.129.3]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f5IFmK663604 for ; Mon, 18 Jun 2001 17:48:20 +0200 (CEST) Date: Mon, 18 Jun 2001 17:48:20 +0200 (CEST) Received: from (george@localhost) by chaland.ens.fr (8.9.2/jb-1.1) Message-Id: <200106181548.RAA08305@chaland.ens.fr> From: george@clipper.ens.fr (Nicolas George) References: <3B2E1338.3C18A969@tripos.com> Subject: Re: MDI Interface Newsgroups: ens.mailing-lists.gtk.general X-Newsreader: Flrn (0.4.0 - 07/99) To: gtk-list@redhat.com In-Reply-To: <3B2E1338.3C18A969@tripos.com> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden, dans le message <3B2E1338.3C18A969@tripos.com> a écrit : > Is it possible to create a Multiple Document Interface (MDI) > (a-la MSWord ) with GTK+? No, this is not possible. These interfaces are Evil. How do you make them work with multiple virtual desktops? You should use several toplevel windows instead. From king@eiffel.com Mon Jun 18 16:29:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 8CE2C2BB38 for ; Mon, 18 Jun 2001 16:29:12 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C5e0-0004Jj-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 13:29:08 -0700 Message-ID: <211901c0f836$71f778a0$750a000a@naples> From: "Ian King" To: Subject: Visual types Date: Mon, 18 Jun 2001 13:37:08 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: What are the main disadvantages for using a pseudo color visual for all applications written in gtk. Is it that high color images will look all messed up or are their other disadvantages? Thanks for your time. Ian King From pbd@op.net Mon Jun 18 16:32:07 2001 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 72C122DB68 for ; Mon, 18 Jun 2001 16:32:07 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-15.ppp.op.net [209.152.194.117]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA27022; Mon, 18 Jun 2001 16:32:00 -0400 (EDT) Message-Id: <200106182032.QAA27022@renoir.op.net> To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask In-reply-to: Your message of "Mon, 18 Jun 2001 11:30:53 PDT." <3B2E48DD.nail8HY11LXHW@yggdrasil> Date: Mon, 18 Jun 2001 16:31:57 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > I'm trying to connect to the key-press-event of a wigdet >derived from GtkDrawingArea. It has a window, and I'm using >gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to >the GdkEventMask for the widget. Nonetheless, the signal >isn't being emitted (it's not even showing up in the >default function for the event signal in the derived >widget). What am I forgetting? I'm using gtk 1.3, if >that matters. did you set the CAN_FOCUS flag? otherwise, the widget will never receive keyboard focus (i think) ... From hp@redhat.com Mon Jun 18 16:32:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2E3042DB68 for ; Mon, 18 Jun 2001 16:32:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IKVrk01651; Mon, 18 Jun 2001 16:31:53 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <3B2E48DD.nail8HY11LXHW@yggdrasil> From: Havoc Pennington Date: 18 Jun 2001 16:31:53 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 11:30:53 -0700" Message-ID: Lines: 16 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > I'm trying to connect to the key-press-event of a wigdet > derived from GtkDrawingArea. It has a window, and I'm using > gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to > the GdkEventMask for the widget. Nonetheless, the signal > isn't being emitted (it's not even showing up in the > default function for the event signal in the derived > widget). What am I forgetting? I'm using gtk 1.3, if > that matters. > You need the drawing area to have key focus. Set GTK_CAN_FOCUS flag, gtk_widget_grab_focus() on button press, etc. Havoc From king@eiffel.com Mon Jun 18 17:15:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 9917C2D2E6 for ; Mon, 18 Jun 2001 17:15:11 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C6MY-0003Wk-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 14:15:10 -0700 Message-ID: <215f01c0f83c$e0394630$750a000a@naples> From: "Ian King" To: Subject: Default buttons Date: Mon, 18 Jun 2001 14:23:10 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I change the border size of a button that has been set with the flag GTK_CAN_DEFAULT. Thanks Ian King From hp@redhat.com Mon Jun 18 17:50:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 685872DC09 for ; Mon, 18 Jun 2001 17:50:12 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ILnpG01675; Mon, 18 Jun 2001 17:49:51 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Visual types References: <211901c0f836$71f778a0$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 17:49:51 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 13:37:08 -0700" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > What are the main disadvantages for using a pseudo color visual for all > applications written in gtk. Is it that high color images will look all > messed up or are their other disadvantages? > There's just no real point using a visual other than the default, ever. Unless your app is written specifically for certain hardware such as an SGI. (The only exception is to use the GdkRGB visual for drawables where you'll draw RGB data, but in GTK 2 this isn't even necessary.) Havoc From raphi2@caramail.com Mon Jun 18 17:54:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail2.caramail.com (mail2.caramail.com [195.68.99.69]) by mail.gnome.org (Postfix) with ESMTP id 2A7C52E1B4 for ; Mon, 18 Jun 2001 17:54:43 -0400 (EDT) Received: from caramail.com (www35.caramail.com [195.68.99.214]) by mail2.caramail.com (8.8.8/8.8.8) with SMTP id XAA28311; Mon, 18 Jun 2001 23:54:42 +0200 (DST) Posted-Date: Mon, 18 Jun 2001 23:54:42 +0200 (DST) From: raphi2 raph To: gtk-list@gnome.org Cc: otaylor@redhat.com Message-ID: <992901282019158@caramail.com> X-Mailer: Caramail - www.caramail.com X-Originating-IP: [163.5.255.8] Mime-Version: 1.0 Subject: GTK / SDL bis Date: Mon, 18 Jun 2001 23:54:42 GMT+1 Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_019158992901282_ID" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_Caramail_019158992901282_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Here is my problem again: I'm currently developping a GTK application and I need using SDL to improve my application. I saw an example of GTK + SDL program on www.libsdl.org but this example doesn't help me a lot. In fact I would like to "include" a little SDL window in a big GTK window. (by example to be able to play movies in my GTK application) I tried to resolve my problem with your advices :) but I have still problems. here is the part of my program with problems: SDL_Thread *thread; GtkWidget *drawing_area; Window xwin; gtk_sess *sess =3D (gtk_sess *)data; sess->new =3D gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize(sess->new, 460, 500); // gtk_widget_show (sess->new); sess->fixed =3D gtk_fixed_new(); gtk_widget_ref (sess->fixed); gtk_widget_show (sess->fixed); gtk_container_add(GTK_CONTAINER(sess->new), sess->fixed); drawing_area =3D gtk_drawing_area_new(); gtk_widget_set_usize(drawing_area, 100, 100); gtk_fixed_put(GTK_FIXED(sess->fixed), drawing_area, 400, 400); gtk_widget_realize(drawing_area); gtk_widget_show(drawing_area); { char SDL_windowhack[32]; sprintf(SDL_windowhack,"SDL_WINDOWID=3D-543170384", GDK_WINDOW_XWINDOW(drawing_area->window)); putenv(SDL_windowhack); } screen =3D SDL_SetVideoMode(100, 100, 0, 0); thread =3D SDL_CreateThread(play_film, sess); if (thread =3D=3D NULL) printf("Probleme avec la thread\n"); // gtk_timeout_add(5, animation, sess); I do the SDL_Init before this in an init function. Do you see something wrong in this code ? Thanks a lot for help Raph _________________________________________________________ Le journal des abonn=E9s Caramail - http://www.carazine.com --=_NextPart_Caramail_019158992901282_ID-- From king@eiffel.com Mon Jun 18 19:47:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 306EF2BCA3 for ; Mon, 18 Jun 2001 19:47:17 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C8jj-0003dD-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 16:47:15 -0700 Message-ID: <220801c0f852$1ffee8a0$750a000a@naples> From: "Ian King" To: Subject: Popup windows Date: Mon, 18 Jun 2001 16:55:17 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I have a widget within a popup window, such as a text field, the text field doesn't seem to get the focus. If I then change the window to be a top level window, then the text field works perfectly. Does anyone know why this is? Thanks for your time Ian King From king@eiffel.com Mon Jun 18 20:08:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id EACB12BCBB for ; Mon, 18 Jun 2001 20:08:40 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C94Q-00079D-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 17:08:38 -0700 Message-ID: <221a01c0f855$1c8aa210$750a000a@naples> From: "Ian King" To: References: <220801c0f852$1ffee8a0$750a000a@naples> Subject: Re: Popup windows Date: Mon, 18 Jun 2001 17:16:39 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: In follow up to the previous message, it seems that the key events are not passed through for a popup window, but are for a top level window. Is there a reason for this? Thanks Ian King ----- Original Message ----- From: "Ian King" To: Sent: Monday, June 18, 2001 4:55 PM Subject: Popup windows > When I have a widget within a popup window, such as a text field, the text > field doesn't seem to get the focus. If I then change the window to be a > top level window, then the text field works perfectly. Does anyone know why > this is? > > Thanks for your time > > Ian King > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From hp@redhat.com Mon Jun 18 20:27:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1592D2DD26 for ; Mon, 18 Jun 2001 20:27:56 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J0RfZ01824; Mon, 18 Jun 2001 20:27:41 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Popup windows References: <220801c0f852$1ffee8a0$750a000a@naples> <221a01c0f855$1c8aa210$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 20:27:41 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 17:16:39 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > In follow up to the previous message, it seems that the key events are not > passed through for a popup window, but are for a top level window. Is there > a reason for this? > Yes, GTK_WINDOW_POPUP windows are not known to the window manager. So the window manager won't ever give them focus. You shouldn't use GTK_WINDOW_POPUP for windows that require focus, only for things like tooltips and menus. Havoc From king@eiffel.com Mon Jun 18 20:40:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id DF1F12DBE0 for ; Mon, 18 Jun 2001 20:40:40 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C9ZO-0003dt-00; Mon, 18 Jun 2001 17:40:38 -0700 Message-ID: <224b01c0f859$94870bb0$750a000a@naples> From: "Ian King" To: "Havoc Pennington" Cc: References: <220801c0f852$1ffee8a0$750a000a@naples><221a01c0f855$1c8aa210$750a000a@naples> Subject: Re: Popup windows Date: Mon, 18 Jun 2001 17:48:39 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to create a window with no decorations, that allows widgets inside it to behave as they do with a normal top level window. Can I create a top level window that 1) Has no decorations and only shows the client area. 2) Cannot be moved or resized by the user (I guess this is done by changing the window policy). I need this for things such as a code autocomplete window that pops up when you enter a keyboard accelerator and this brings up a list of possibilities for you to choose from. Thanks for your time. Ian King ----- Original Message ----- From: "Havoc Pennington" To: "Ian King" Cc: Sent: Monday, June 18, 2001 5:27 PM Subject: Re: Popup windows > > "Ian King" writes: > > In follow up to the previous message, it seems that the key events are not > > passed through for a popup window, but are for a top level window. Is there > > a reason for this? > > > > Yes, GTK_WINDOW_POPUP windows are not known to the window manager. So > the window manager won't ever give them focus. > > You shouldn't use GTK_WINDOW_POPUP for windows that require focus, > only for things like tooltips and menus. > > Havoc > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From rsteinke@w-link.net Mon Jun 18 21:13:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id DC3E52BCA3 for ; Mon, 18 Jun 2001 21:13:21 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CA9d-0003vj-00; Mon, 18 Jun 2001 18:18:05 -0700 Date: Mon, 18 Jun 2001 18:18:05 -0700 To: pbd@Op.Net, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2EA84D.nailBN41M8KO5@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> In-Reply-To: <200106182032.QAA27022@renoir.op.net> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: Paul Davis > > > I'm trying to connect to the key-press-event of a wigdet > >derived from GtkDrawingArea. It has a window, and I'm using > >gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to > >the GdkEventMask for the widget. Nonetheless, the signal > >isn't being emitted (it's not even showing up in the > >default function for the event signal in the derived > >widget). What am I forgetting? I'm using gtk 1.3, if > >that matters. > > did you set the CAN_FOCUS flag? otherwise, the widget will never > receive keyboard focus (i think) ... > I was missing that, so thanks. However, I changed that, and it still doesn't work. What else is missing? Ron Steinke From james@daa.com.au Mon Jun 18 21:18:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from quoll.daa.com.au (quoll.daa.com.au [203.17.251.129]) by mail.gnome.org (Postfix) with ESMTP id 871FC2E1F0 for ; Mon, 18 Jun 2001 21:18:32 -0400 (EDT) Received: from james.daa.com.au (james.daa.com.au [203.17.251.193]) by quoll.daa.com.au (Postfix) with ESMTP id E2ACDC0A4; Tue, 19 Jun 2001 09:18:27 +0800 (WST) Date: Tue, 19 Jun 2001 09:18:26 +0800 (WST) From: James Henstridge To: Skip Montanaro Cc: , Subject: Re: [pygtk] can I watch all signals being emitted? In-Reply-To: <15150.18895.379738.456168@beluga.mojam.com> Message-ID: X-message-flag: ALL YOUR BASE ARE BELONG TO US Reply-By: Sat 01 Jan 2000 00:00:00 +800 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, 18 Jun 2001, Skip Montanaro wrote: > > For debugging and tutorial purposes, is it possible to easily see all signal > emissions (or all signal emissions by a particular object)? There are some debug flags for the GType system, but at the moment the gobject module hard codes this to 0 (no flags). For now, you could change the line in gobjectmodule.c: g_type_init(0); to: g_type_init(G_TYPE_DEBUG_SIGNALS); I haven't really looked at making this configurable, as they were talking about changing this interface a little on gtk-devel-list James. -- Email: james@daa.com.au WWW: http://www.daa.com.au/~james/ From hp@redhat.com Mon Jun 18 22:26:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 3365A2C81E for ; Mon, 18 Jun 2001 22:26:10 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J2PtQ01909; Mon, 18 Jun 2001 22:25:55 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: pbd@Op.Net, gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> From: Havoc Pennington Date: 18 Jun 2001 22:25:55 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 18:18:05 -0700" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > > I was missing that, so thanks. However, I changed that, > and it still doesn't work. What else is missing? > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus indication if any. GTK 2.0 has default implementations that do this in GtkWidget. Havoc From hp@redhat.com Mon Jun 18 22:29:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 61DDA2DB51 for ; Mon, 18 Jun 2001 22:29:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J2Sht01912; Mon, 18 Jun 2001 22:28:43 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Popup windows References: <220801c0f852$1ffee8a0$750a000a@naples> <221a01c0f855$1c8aa210$750a000a@naples> <224b01c0f859$94870bb0$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 22:28:43 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 17:48:39 -0700" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > I want to create a window with no decorations, that allows widgets inside it > to behave as they do with a normal top level window. > > Can I create a top level window that > > 1) Has no decorations and only shows the client area. > 2) Cannot be moved or resized by the user (I guess this is done by changing > the window policy). > gdk_window_set_decorations (window->window, 0) to disable decorations, gtk_window_set_policy() to turn off resizing, disabling movement is impossible due to the way window management and X work. gdk_window_set_functions() in principle lets you disable movement but AFAIK most window managers ignore that hint. Havoc From cschadl@satan.org.uk Tue Jun 19 00:20:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ryoko.2y.net (235dul123.chartermi.net [206.11.235.123]) by mail.gnome.org (Postfix) with ESMTP id 5912F2BBAE for ; Tue, 19 Jun 2001 00:20:07 -0400 (EDT) Received: from ryoko.leet.org (lain [192.168.0.2]) by ryoko.2y.net (8.11.1/8.11.1) with SMTP id f5JHisi22533 for ; Tue, 19 Jun 2001 12:44:55 -0500 (CDT) (envelope-from cschadl@satan.org.uk) Date: Mon, 18 Jun 2001 23:21:11 -0500 From: Chris Schadl To: gtk-list@gnome.org Subject: Widgets not showing up Message-ID: <20010618232111.A24006@lain.leet.org> Reply-To: cschadl@satan.org.uk Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="AWniW0JNca5xppdA" Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.1.1 Lines: 159 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --AWniW0JNca5xppdA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit I've written a simple UI with a menubar, a hpaned window with a ctree and a clist packed into either side, and a status bar at the bottom of the window. Unfortunatley, only the hpaned container and its child widgets are displayed; the menubar and the status bar are not. Is there something wrong with my code that would cause this? I've writen simmilar interfaces that have worked just fine in the past, but this one has me stumped. --AWniW0JNca5xppdA Content-Type: text/x-c; charset=us-ascii Content-Disposition: attachment; filename="paned-test.c" #include #include void cb_delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { g_print("A delete_event occured.\n"); gtk_main_quit(); } void cb_clist_selection_made(GtkWidget *clist, gint row, gint column, GdkEventButton *event, gpointer data) { gchar *text; gtk_clist_get_text(GTK_CLIST(clist), row, column, &text); printf("%s was selected", text); } GtkWidget *create_main_window(void) { GtkWidget *window; GtkWidget *mainbox; GtkWidget *paned; GtkWidget *vbox; GtkWidget *scrolled_window; GtkWidget *scrolled2; GtkWidget *clist; GtkWidget *ctree; GtkWidget *entry; GtkWidget *status_bar; /* Menubar stuff */ GtkAccelGroup *group; GtkItemFactory *itemfactory; gint nmenu_items; GtkWidget *app_menubar; static GtkItemFactoryEntry menu_items[] = { { "/_File", "F", NULL, 0, "" }, { "/File/File", NULL, NULL, 0, "" }, { "/File/sep1", NULL, NULL, 0, "<Separator>" }, { "/File/_Quit", "<control>Q", gtk_main_quit, 0, "<Item>" } }; static gchar *clist_titles[] = { "Name", "Size" }; /* Containers */ window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize(GTK_WIDGET(window), 640, 480); gtk_window_set_title(GTK_WINDOW(window), "Paned window test"); gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(cb_delete_event), NULL); mainbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); paned = gtk_hpaned_new(); gtk_paned_set_position(GTK_PANED(paned), 200); gtk_container_add(GTK_CONTAINER(window), paned); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); scrolled_window = gtk_scrolled_window_new(NULL, NULL); gtk_container_add(GTK_CONTAINER(window), scrolled_window); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); scrolled2 = gtk_scrolled_window_new(NULL, NULL); gtk_container_add(GTK_CONTAINER(window), scrolled2); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled2), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); /* Widgets */ group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), group); nmenu_items = (sizeof (menu_items) / sizeof (menu_items[0])); itemfactory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "<main>", group); gtk_item_factory_create_items(itemfactory, nmenu_items, menu_items, NULL); app_menubar = gtk_item_factory_get_widget(itemfactory, "<main>"); clist = gtk_clist_new_with_titles(2, clist_titles); gtk_clist_set_shadow_type(GTK_CLIST(clist), GTK_SHADOW_ETCHED_IN); gtk_signal_connect(GTK_OBJECT(clist), "select_row", GTK_SIGNAL_FUNC(cb_clist_selection_made), GTK_CLIST(clist)); ctree = gtk_ctree_new(1,1); entry = gtk_entry_new(); status_bar = gtk_statusbar_new(); /* Pack widgets */ gtk_box_pack_start(GTK_BOX(mainbox), app_menubar, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(mainbox), paned, TRUE, TRUE, 0); gtk_box_pack_end(GTK_BOX(mainbox), status_bar, TRUE, FALSE, 0); gtk_paned_add1(GTK_PANED(paned), vbox); gtk_paned_add2(GTK_PANED(paned), scrolled_window); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), scrolled2, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(scrolled2), ctree); gtk_container_add(GTK_CONTAINER(scrolled_window), clist); /* Okay, all done. */ return(window); } int main(int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = create_main_window(); gtk_widget_show_all(window); gtk_main(); return 0; } --AWniW0JNca5xppdA-- From damon@ximian.com Tue Jun 19 00:42:08 2001 Return-Path: <damon@ximian.com> Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id 380F92CC57 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 00:42:08 -0400 (EDT) Received: from ximian.com (IDENT:damon@karuna.ximian.com [141.154.95.114]) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id AAA25961; Tue, 19 Jun 2001 00:42:06 -0400 Message-ID: <3B2ED7B9.63248AE6@ximian.com> Date: Tue, 19 Jun 2001 00:40:25 -0400 From: Damon Chaplin <damon@ximian.com> X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: cschadl@satan.org.uk Cc: gtk-list@gnome.org Subject: Re: Widgets not showing up References: <20010618232111.A24006@lain.leet.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Chris Schadl wrote: > > I've written a simple UI with a menubar, a hpaned window with a ctree and a > clist packed into either side, and a status bar at the bottom of the > window. Unfortunatley, only the hpaned container and its child widgets are > displayed; the menubar and the status bar are not. Is there something > wrong with my code that would cause this? I've writen simmilar interfaces > that have worked just fine in the past, but this one has me stumped. mainbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); ^^^^^^^^ Did you mean mainbox there? vbox hasn't been created yet! paned = gtk_hpaned_new(); gtk_paned_set_position(GTK_PANED(paned), 200); gtk_container_add(GTK_CONTAINER(window), paned); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); Why are you adding all these to window? A window can only have one child. (Didn't GTK+ complain about this?) Damon From rsteinke@w-link.net Tue Jun 19 00:57:45 2001 Return-Path: <rsteinke@w-link.net> Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 61E002E4F3 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 00:57:44 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CDen-0004T2-00; Mon, 18 Jun 2001 22:02:29 -0700 Date: Mon, 18 Jun 2001 22:02:29 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2EDCE5.nailD7J11VO0N@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> In-Reply-To: <y5wvglt434c.fsf@icon.labs.redhat.com> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke <rsteinke@w-link.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > From: Havoc Pennington <hp@redhat.com> > > Ron Steinke <rsteinke@w-link.net> writes: > > > > I was missing that, so thanks. However, I changed that, > > and it still doesn't work. What else is missing? > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > indication if any. GTK 2.0 has default implementations that do this in > GtkWidget. > But I am using 2.0 (really, 1.3, CVS within the last month or so), so this can't be it either. Ron Steinke From hp@redhat.com Tue Jun 19 02:10:44 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 39FCE2E4F7 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 02:10:44 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J6ATH01993; Tue, 19 Jun 2001 02:10:29 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke <rsteinke@w-link.net> Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 02:10:29 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 22:02:29 -0700" Message-ID: <y5w1yoh3sq2.fsf@icon.labs.redhat.com> Lines: 25 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ron Steinke <rsteinke@w-link.net> writes: > > From: Havoc Pennington <hp@redhat.com> > > > > Ron Steinke <rsteinke@w-link.net> writes: > > > > > > I was missing that, so thanks. However, I changed that, > > > and it still doesn't work. What else is missing? > > > > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > > indication if any. GTK 2.0 has default implementations that do this in > > GtkWidget. > > > > But I am using 2.0 (really, 1.3, CVS within the last month > or so), so this can't be it either. > I'm assuming you actually focus the drawing area (via tab key, or gtk_widget_grab_focus() on button press, or something?) Havoc From rbultje@ronald.bitfreak.net Tue Jun 19 03:24:21 2001 Return-Path: <rbultje@ronald.bitfreak.net> Delivered-To: gtk-list@gnome.org Received: from smtp8.xs4all.nl (smtp8.xs4all.nl [194.109.127.134]) by mail.gnome.org (Postfix) with ESMTP id 3F5D42E413 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 03:24:21 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp8.xs4all.nl (8.9.3/8.9.3) with ESMTP id JAA27822; Tue, 19 Jun 2001 09:24:18 +0200 (CEST) Message-ID: <3B2EFADF.2020404@ronald.bitfreak.net> Date: Tue, 19 Jun 2001 09:10:23 +0200 From: Ronald Bultje <rbultje@ronald.bitfreak.net> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us MIME-Version: 1.0 To: raphi2 raph <raphi2@caramail.com> Cc: gtk-list@gnome.org, otaylor@redhat.com Subject: Re: GTK / SDL bis References: <992901282019158@caramail.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> raphi2 raph wrote: >sprintf(SDL_windowhack,"SDL_WINDOWID=-543170384", > GDK_WINDOW_XWINDOW(drawing_area->window)); > ?????? How about: sprintf(SDL_windowhack,"SDL_WINDOWID=%d", GDK_WINDOW_XWINDOW(drawing_area->window)); Regards, Ronald From smanikandan_76@yahoo.com Tue Jun 19 05:18:38 2001 Return-Path: <smanikandan_76@yahoo.com> 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 1FB352DC01 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:17:58 -0400 (EDT) Received: from unknown (HELO vrpc) (192.122.174.191) by smtp.mail.vip.sc5.yahoo.com with SMTP; 19 Jun 2001 09:17:56 -0000 X-Apparently-From: <smanikandan?76@yahoo.com> Message-ID: <03ad01c0f8a0$c6d3f7d0$bfae7ac0@cisco.com> From: "S.Manikandan" <smanikandan_76@yahoo.com> To: <gtk-list@gnome.org> Subject: Configuration problems Date: Tue, 19 Jun 2001 14:48:15 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_03AA_01C0F8CE.DF4534E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> This is a multi-part message in MIME format. ------=_NextPart_000_03AA_01C0F8CE.DF4534E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , Iam newbie to gtk+ (gnome),i basically wanted to compile gnome,i = used CVS to download the latest sources.i was able to compile glib, but = gtk+ is giving problems,the environment is Solaris 2.6(SUN Sparc u-60) cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh = --prefix=3D/home/sw/gnu/gnome aclocal: /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated = macro `AM_PATH_AUDIOFILE' aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: 10: duplicated macro = `AM_PATH_ESD' gdk-pixbuf/pixops/Makefile.am:8: variable `GLIB_LIBS' not defined loading cache ./config.cache ./configure: syntax error at line 637: `AM_INIT_AUTOMAKE' unexpected Now type 'make' to compile Gtk+. cdsl2:/home/sw/gnu/gnome/src/gtk+>exit Thanks for ur help, Mani. ------=_NextPart_000_03AA_01C0F8CE.DF4534E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>    Iam newbie to gtk+ = (gnome),i=20 basically wanted to compile gnome,i used CVS to download the latest = sources.i=20 was able to compile glib, but gtk+ is giving problems,the environment is = Solaris=20 2.6(SUN Sparc u-60)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = size=3D2>cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh=20 --prefix=3D/home/sw/gnu/gnome<BR>aclocal:=20 /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated macro=20 `AM_PATH_AUDIOFILE'<BR>aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: = 10:=20 duplicated macro `AM_PATH_ESD'<BR>gdk-pixbuf/pixops/Makefile.am:8: = variable=20 `GLIB_LIBS' not defined<BR>loading cache ./config.cache<BR>./configure: = syntax=20 error at line 637: `AM_INIT_AUTOMAKE' unexpected</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Now type 'make' to compile=20 Gtk+.<BR>cdsl2:/home/sw/gnu/gnome/src/gtk+>exit</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for ur help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Mani.</FONT></DIV> <DIV><FONT face=3DArial = size=3D2></FONT> </DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_03AA_01C0F8CE.DF4534E0-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From rwan@cs.mu.oz.au Tue Jun 19 05:52:46 2001 Return-Path: <rwan@cs.mu.oz.au> Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 00AF32CF1C for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:52:41 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id TAA04369 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:52:38 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id B351075AA; Tue, 19 Jun 2001 19:52:37 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 7EFA3AC94 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:52:37 +1000 (EST) Date: Tue, 19 Jun 2001 19:52:37 +1000 (EST) From: Raymond Wan <rwan@cs.mu.oz.au> Reply-To: Raymond Wan <rwan@cs.mu.oz.au> To: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: <y5wsnh2aka7.fsf@icon.labs.redhat.com> Message-ID: <Pine.LNX.3.96.1010619194207.24080A-100000@vike.cs.mu.OZ.AU> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Havoc (or anyone else who knows the answer :) ), About the 1.3.6 release, On 14 Jun 2001, Havoc Pennington wrote: > The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this > release. These are available at: Do I need all three JPEG/PNG/TIFF installed or just one? In either case, does anyone know if I have to have root access to install them? I guess this is related to a question I asked a week ago; I followed the posted instructions and 1.3.5 installed fine, but 1.3.6 doesn't seem as easy. Without them, I only get part way through the GTK installation (GLib, Pango, Atk installed fine). Before I try again, I just want to do a quick check that I can install the above without root access... Thank you! Ray From okuno@blackbird.msr.mei.co.jp Tue Jun 19 07:25:56 2001 Return-Path: <okuno@blackbird.msr.mei.co.jp> Delivered-To: gtk-list@gnome.org Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.25]) by mail.gnome.org (Postfix) with ESMTP id 730EA2BB41 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 07:25:55 -0400 (EDT) Received: by bulls.mei.co.jp (8.11.3/3.7W) with ESMTP id f5JBPrX02247 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 20:25:53 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id UAA29394 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 20:25:51 +0900 (JST) Received: from blackbird.msr.mei.co.jp by msr.mei.co.jp (SMI-8.6/SMI-4.1) id UAA09067; Tue, 19 Jun 2001 20:24:24 +0900 Received: by blackbird.msr.mei.co.jp (Postfix, from userid 2235) id CBBADFB9; Tue, 19 Jun 2001 20:25:52 +0900 (JST) To: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: Your message of "14 Jun 2001 16:17:20 -0400". <y5wsnh2aka7.fsf@icon.labs.redhat.com> From: okuno@msr.mei.co.jp (Katsuhiro Okuno) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22PL4] 2000-05/28(Sun) Message-Id: <20010619112552.CBBADFB9@blackbird.msr.mei.co.jp> Date: Tue, 19 Jun 2001 20:25:52 +0900 (JST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm under Red Hat Linux 7.1 because of the libtool error. --------------------------------------------------------------------- /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' Fatal configuration error. See the libtool docs for more information. --------------------------------------------------------------------- But, I can compile it from pkgconfig-0.7.0.tar.gz without using RPM packaging system. (./configure, make, make install) Why? | A new release of the development versions of GTK+ and associated | libraries (GLib, Pango, Atk) is available at: | | ftp://ftp.gtk.org/pub/gtk/v1.3/ | | The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this | release. These are available at: From bruces@petech.ac.za Tue Jun 19 08:01:38 2001 Return-Path: <bruces@petech.ac.za> Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.37.151.38]) by mail.gnome.org (Postfix) with ESMTP id 979EA2E2A0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:01:35 -0400 (EDT) Received: from what (what.petech.ac.za [10.11.2.62]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id OAA07712 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:01:31 +0200 Message-ID: <01c301c0f8b7$e222a9c0$3e020b0a@petech.ac.za> From: "Bruce A. Smith" <bruces@petech.ac.za> To: <gtk-list@gnome.org> Subject: GTK+ Binding for Visual Basic Date: Tue, 19 Jun 2001 14:03:41 +0200 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.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Does anyone know if there is a VB or VB.Net binding for GTK+, either existing or in the works? Bruce Smith BI Developer/Internet Service Administrator Computer Services Port Elizabeth Technikon Tel: (041) 504-3649 Fax: (041) 504-3189 From bruces@mail.petech.ac.za Tue Jun 19 08:18:53 2001 Return-Path: <bruces@mail.petech.ac.za> Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.37.151.38]) by mail.gnome.org (Postfix) with ESMTP id 2D9AE2E54F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:18:03 -0400 (EDT) Received: from what (what.petech.ac.za [10.11.2.62]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id OAA08240 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:17:58 +0200 Message-ID: <01d901c0f8ba$2ee5ee00$3e020b0a@petech.ac.za> From: "Bruce A. Smith" <bruces@mail.petech.ac.za> To: <gtk-list@gnome.org> Subject: GTK+ Binding for Visual Basic Date: Tue, 19 Jun 2001 14:20:09 +0200 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.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Does anyone know if there is a VB or VB.Net binding for GTK+, either existing or in the works? Bruce Smith BI Developer/Internet Service Administrator Computer Services Port Elizabeth Technikon Tel: (041) 504-3649 Fax: (041) 504-3189 From mshanmug@cisco.com Tue Jun 19 05:07:53 2001 Return-Path: <mshanmug@cisco.com> Delivered-To: gtk-list@gnome.org Received: from cisco.com (desh.cisco.com [192.122.173.43]) by mail.gnome.org (Postfix) with ESMTP id 195E12BB45 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:07:52 -0400 (EDT) Received: from vrpc ([192.122.174.191]) by cisco.com (8.8.8-Cisco List Logging/8.8.8) with SMTP id OAA29164 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:37:23 +0530 (IST) Message-ID: <039001c0f89f$5ce20a20$bfae7ac0@cisco.com> From: "S.Manikandan" <mshanmug@cisco.com> To: <gtk-list@gnome.org> Subject: Configuration problems Date: Tue, 19 Jun 2001 14:38:09 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_038D_01C0F8CD.761E8670" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> This is a multi-part message in MIME format. ------=_NextPart_000_038D_01C0F8CD.761E8670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , Iam newbie to gtk+ (gnome),i basically wanted to compile gnome,i = used CVS to download the latest sources.i was able to compile glib, but = gtk+ is giving problems,the environment is Solaris 2.6(SUN Sparc u-60) cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh = --prefix=3D/home/sw/gnu/gnome aclocal: /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated = macro `AM_PATH_AUDIOFILE' aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: 10: duplicated macro = `AM_PATH_ESD' gdk-pixbuf/pixops/Makefile.am:8: variable `GLIB_LIBS' not defined loading cache ./config.cache ./configure: syntax error at line 637: `AM_INIT_AUTOMAKE' unexpected Now type 'make' to compile Gtk+. cdsl2:/home/sw/gnu/gnome/src/gtk+>exit Thanks for ur help, Mani. ------=_NextPart_000_038D_01C0F8CD.761E8670 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>    Iam newbie to gtk+ = (gnome),i=20 basically wanted to compile gnome,i used CVS to download the latest = sources.i=20 was able to compile glib, but gtk+ is giving problems,the environment is = Solaris=20 2.6(SUN Sparc u-60)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = size=3D2>cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh=20 --prefix=3D/home/sw/gnu/gnome<BR>aclocal:=20 /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated macro=20 `AM_PATH_AUDIOFILE'<BR>aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: = 10:=20 duplicated macro `AM_PATH_ESD'<BR>gdk-pixbuf/pixops/Makefile.am:8: = variable=20 `GLIB_LIBS' not defined<BR>loading cache ./config.cache<BR>./configure: = syntax=20 error at line 637: `AM_INIT_AUTOMAKE' unexpected</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Now type 'make' to compile=20 Gtk+.<BR>cdsl2:/home/sw/gnu/gnome/src/gtk+>exit</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for ur help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Mani.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_038D_01C0F8CD.761E8670-- From otaylor@redhat.com Tue Jun 19 08:28:07 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B6D892E827 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:26:18 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 3372D242315; Tue, 19 Jun 2001 08:26:18 -0400 (EDT) To: okuno@msr.mei.co.jp (Katsuhiro Okuno) Cc: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) References: <20010619112552.CBBADFB9@blackbird.msr.mei.co.jp> From: Owen Taylor <otaylor@redhat.com> Date: 19 Jun 2001 08:26:18 -0400 In-Reply-To: okuno@msr.mei.co.jp's message of "Tue, 19 Jun 2001 20:25:52 +0900 (JST)" Message-ID: <ybeelsg4pw5.fsf@fresnel.labs.redhat.com> Lines: 27 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> okuno@msr.mei.co.jp (Katsuhiro Okuno) writes: > I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm > under Red Hat Linux 7.1 because of the libtool error. > > --------------------------------------------------------------------- > /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la > libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' > Fatal configuration error. See the libtool docs for more information. > --------------------------------------------------------------------- The spec file uses %configure which in turn calls libtoolize. But the libtool on your system is older than that in the package, and this causes problems. You can: - change the specfile not to use %configure - Edit the definition of %configure in /usr/lib/rpm/macros not to run libtoolize - Install newer libtool packages http://people.redhat.com/otaylor/libtool-rpms/ Regards, Owen From timj@gtk.org Tue Jun 19 08:37:46 2001 Return-Path: <timj@gtk.org> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id CA7C92D14D for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:37:45 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id IAA20844; Tue, 19 Jun 2001 08:37:45 -0400 Received: from hmbg-3e36c6d9.pool.mediaWays.net (hmbg-3e36c6d9.pool.mediaWays.net [62.54.198.217]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JCaSb30676; Tue, 19 Jun 2001 08:36:28 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JCd7Q2022431; Tue, 19 Jun 2001 14:39:07 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5JCcu516606; Tue, 19 Jun 2001 14:38:56 +0200 Date: Tue, 19 Jun 2001 14:38:56 +0200 (CEST) From: Tim Janik <timj@gtk.org> X-Sender: timj@birgrave.birnet.private To: Alex Larsson <alexl@redhat.com> Cc: Owen Taylor <otaylor@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <Pine.LNX.4.33.0106181216290.6187-100000@devserv.devel.redhat.com> Message-ID: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On Mon, 18 Jun 2001, Alex Larsson wrote: > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > I'm not sure. Considering that inline functions in C or statement > > > expressions aren't portable, and I think GObject should probably > > > perform portably, it's conceivable that the danger is worth it. > > > I think it was worth it for the GTK_OBJECT() macro. > > > > i don't think there's much to worry about compilers that can't inline > > nowadays. glib ensures that static inline at least works on such systems > > by providing a non-static linkable version, if static inline isn't supported. > > so worst-case scenario is that for inline-incapable compilers an extra > > function call is performed. > > I'd like to point out here that GCC produces better code for macros than > inline functions. This will continue to be true in GCC 3.0, and in the > future until the tree inliner is ported from the c++ compiler to the c > compiler. well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, if that produces better code than using static inline instead, feel free to provide a gcc-special cased patch, once we have the static inlines ;) > > / Alex > --- ciaoTJ From okuno@blackbird.msr.mei.co.jp Tue Jun 19 08:43:38 2001 Return-Path: <okuno@blackbird.msr.mei.co.jp> Delivered-To: gtk-list@gnome.org Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.25]) by mail.gnome.org (Postfix) with ESMTP id 30D1F2E551 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:43:37 -0400 (EDT) Received: by bulls.mei.co.jp (8.11.3/3.7W) with ESMTP id f5JChYX03666; Tue, 19 Jun 2001 21:43:35 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id VAA02345; Tue, 19 Jun 2001 21:43:33 +0900 (JST) Received: from blackbird.msr.mei.co.jp by msr.mei.co.jp (SMI-8.6/SMI-4.1) id VAA10212; Tue, 19 Jun 2001 21:42:07 +0900 Received: by blackbird.msr.mei.co.jp (Postfix, from userid 2235) id 7A2DDFB9; Tue, 19 Jun 2001 21:43:34 +0900 (JST) To: otaylor@redhat.com Cc: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: Your message of "19 Jun 2001 08:26:18 -0400". <ybeelsg4pw5.fsf@fresnel.labs.redhat.com> From: okuno@msr.mei.co.jp (Katsuhiro Okuno) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22PL4] 2000-05/28(Sun) Message-Id: <20010619124334.7A2DDFB9@blackbird.msr.mei.co.jp> Date: Tue, 19 Jun 2001 21:43:34 +0900 (JST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I updated automake & libtool, so I could solve the problem. Thank you for your advice. | > I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm | > under Red Hat Linux 7.1 because of the libtool error. | > | > --------------------------------------------------------------------- | > /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la | > libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' | > Fatal configuration error. See the libtool docs for more information. | > --------------------------------------------------------------------- | | The spec file uses %configure which in turn calls libtoolize. But | the libtool on your system is older than that in the package, | and this causes problems. | | You can: | | - change the specfile not to use %configure | - Edit the definition of %configure in /usr/lib/rpm/macros not | to run libtoolize | - Install newer libtool packages | http://people.redhat.com/otaylor/libtool-rpms/ | | Regards, | Owen From markus.kuehni@trilab.ch Tue Jun 19 08:43:38 2001 Return-Path: <markus.kuehni@trilab.ch> Delivered-To: gtk-list@gnome.org Received: from mta1n.bluewin.ch (mta1n.bluewin.ch [195.186.1.210]) by mail.gnome.org (Postfix) with ESMTP id 6F4152E554 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:43:38 -0400 (EDT) Received: from vpower (195.186.130.224) by mta1n.bluewin.ch (Bluewin AG MX engine 5.5.031) id 3B2F46B000000373 for gtk-list@gnome.org; Tue, 19 Jun 2001 14:43:37 +0200 From: =?iso-8859-1?Q?Markus_K=FChni?= <markus.kuehni@trilab.ch> To: <gtk-list@gnome.org> Subject: Delta between GTK+ and Gnome Date: Tue, 19 Jun 2001 14:45:05 +0200 Message-ID: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> 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 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? What I already know (tested on Gnome 1.4): - a GTK+/wxGTK app will adapt to themes/styles - a GTK+/wxGTK app will support copy paste (I plan to use wxWindows/wxGTK) Thanks for all help, Mark From otaylor@redhat.com Tue Jun 19 09:05:15 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 8C2AC2E5A5 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:05:15 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id JAA25078; Tue, 19 Jun 2001 09:05:15 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EF2FD242315; Tue, 19 Jun 2001 09:05:14 -0400 (EDT) To: Tim Janik <timj@gtk.org> Cc: Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> From: Owen Taylor <otaylor@redhat.com> Date: 19 Jun 2001 09:05:14 -0400 In-Reply-To: Tim Janik's message of "Tue, 19 Jun 2001 14:38:56 +0200 (CEST)" Message-ID: <ybe66ds4o39.fsf@fresnel.labs.redhat.com> Lines: 30 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Tim Janik <timj@gtk.org> writes: > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > expressions aren't portable, and I think GObject should probably > > > > perform portably, it's conceivable that the danger is worth it. > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > i don't think there's much to worry about compilers that can't inline > > > nowadays. glib ensures that static inline at least works on such systems > > > by providing a non-static linkable version, if static inline isn't supported. > > > so worst-case scenario is that for inline-incapable compilers an extra > > > function call is performed. > > > > I'd like to point out here that GCC produces better code for macros than > > inline functions. This will continue to be true in GCC 3.0, and in the > > future until the tree inliner is ported from the c++ compiler to the c > > compiler. > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > if that produces better code than using static inline instead, feel > free to provide a gcc-special cased patch, once we have the static inlines ;) 'static inline' is, of course, very much a GCC extension. Owen From andres_giraldo@yahoo.com Tue Jun 19 09:38:47 2001 Return-Path: <andres_giraldo@yahoo.com> Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id 119832CA0E for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:38:33 -0400 (EDT) Message-ID: <20010619133832.32971.qmail@web11502.mail.yahoo.com> Received: from [209.205.77.166] by web11502.mail.yahoo.com; Tue, 19 Jun 2001 06:38:32 PDT Date: Tue, 19 Jun 2001 06:38:32 -0700 (PDT) From: "Andrés" Giraldo <andres_giraldo@yahoo.com> Subject: A Modal Window To: Gtk List <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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi! I need to call a window that shows 2 options in buttons, yes or no, and I need to wait for that answer, something like a vbModal in MS-Visual Basic... A window that waits until it's unloaded How can I do this? Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From timj@gtk.org Tue Jun 19 09:47:49 2001 Return-Path: <timj@gtk.org> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 6E1DA2E11D for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:47:39 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id JAA00601; Tue, 19 Jun 2001 09:47:39 -0400 Received: from hmbg-3e36c6d9.pool.mediaWays.net (hmbg-3e36c6d9.pool.mediaWays.net [62.54.198.217]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JDkMb04418; Tue, 19 Jun 2001 09:46:22 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JDn3Q2024345; Tue, 19 Jun 2001 15:49:03 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5JDn3312003; Tue, 19 Jun 2001 15:49:03 +0200 Date: Tue, 19 Jun 2001 15:49:02 +0200 (CEST) From: Tim Janik <timj@gtk.org> X-Sender: timj@birgrave.birnet.private To: Owen Taylor <otaylor@redhat.com> Cc: Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <ybe66ds4o39.fsf@fresnel.labs.redhat.com> Message-ID: <Pine.LNX.4.21.0106191547090.11924-100000@birgrave.birnet.private> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On 19 Jun 2001, Owen Taylor wrote: > > Tim Janik <timj@gtk.org> writes: > > > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > > expressions aren't portable, and I think GObject should probably > > > > > perform portably, it's conceivable that the danger is worth it. > > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > > > i don't think there's much to worry about compilers that can't inline > > > > nowadays. glib ensures that static inline at least works on such systems > > > > by providing a non-static linkable version, if static inline isn't supported. > > > > so worst-case scenario is that for inline-incapable compilers an extra > > > > function call is performed. > > > > > > I'd like to point out here that GCC produces better code for macros than > > > inline functions. This will continue to be true in GCC 3.0, and in the > > > future until the tree inliner is ported from the c++ compiler to the c > > > compiler. > > > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > > if that produces better code than using static inline instead, feel > > free to provide a gcc-special cased patch, once we have the static inlines ;) > > 'static inline' is, of course, very much a GCC extension. huh? that'd be new to me, "extern inline" is, but "static inline" should be handled by any compiler that's capable of handling inline functions. > > Owen > --- ciaoTJ From Sander.Vesik@Sun.COM Tue Jun 19 10:05:51 2001 Return-Path: <Sander.Vesik@Sun.COM> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 5F6C42DE95 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:05:51 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id KAA06296; Tue, 19 Jun 2001 10:05:50 -0400 Received: from patan.sun.com (patan.Sun.COM [192.18.98.43]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JE4Yb06603; Tue, 19 Jun 2001 10:04:35 -0400 Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA11805; Tue, 19 Jun 2001 08:05:42 -0600 (MDT) Received: from blossom (blossom [129.156.238.67]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.1p1) with ESMTP id PAA04783; Tue, 19 Jun 2001 15:05:43 +0100 (BST) Date: Tue, 19 Jun 2001 15:05:43 +0100 (BST) From: Sander Vesik <Sander.Vesik@Sun.COM> X-Sender: sv117949@blossom To: Tim Janik <timj@gtk.org> Cc: Owen Taylor <otaylor@redhat.com>, Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <Pine.LNX.4.21.0106191547090.11924-100000@birgrave.birnet.private> Message-ID: <Pine.GSO.4.10.10106191458140.4596-100000@blossom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On Tue, 19 Jun 2001, Tim Janik wrote: > On 19 Jun 2001, Owen Taylor wrote: > > huh? that'd be new to me, "extern inline" is, but "static inline" should > be handled by any compiler that's capable of handling inline functions. > One would hope. It's unfortunately not the case though. On the other side of the coin: * compilers are allowed to totally inline any static function * it doesn't really make any sense to use anything but static scope for inline functions (making 'static inline' redundant) * I fail to see what an 'extern inline' would be, esp. in a world where the only toolchain doing link time optimisations died out long ago > > > > Owen > > > > --- > ciaoTJ > Sander One day a tortoise will learn to fly -- Terry Pratchett, 'Small Gods' From rsteinke@w-link.net Tue Jun 19 10:26:39 2001 Return-Path: <rsteinke@w-link.net> Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 3226B2D2C3 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:26:39 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CMXP-0005oz-00; Tue, 19 Jun 2001 07:31:27 -0700 Date: Tue, 19 Jun 2001 07:31:27 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2F623F.nailH6K1ZB6VV@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> <y5w1yoh3sq2.fsf@icon.labs.redhat.com> In-Reply-To: <y5w1yoh3sq2.fsf@icon.labs.redhat.com> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke <rsteinke@w-link.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > From: Havoc Pennington <hp@redhat.com> > Ron Steinke <rsteinke@w-link.net> writes: > > > From: Havoc Pennington <hp@redhat.com> > > > Ron Steinke <rsteinke@w-link.net> writes: > > > > > > > > I was missing that, so thanks. However, I changed that, > > > > and it still doesn't work. What else is missing? > > > > > > > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > > > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > > > indication if any. GTK 2.0 has default implementations that do this in > > > GtkWidget. > > > > > > > But I am using 2.0 (really, 1.3, CVS within the last month > > or so), so this can't be it either. > > > > I'm assuming you actually focus the drawing area (via tab key, or > gtk_widget_grab_focus() on button press, or something?) That was it. Thanks. Perhaps a short lecture on the way focus works in GTK is in order? Ron Steinke From skip@beluga.mojam.com Tue Jun 19 10:39:49 2001 Return-Path: <skip@beluga.mojam.com> Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id EE2B52E58F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:39:48 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5JEddb03921; Tue, 19 Jun 2001 09:39:39 -0500 From: Skip Montanaro <skip@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15151.25642.289448.283702@beluga.mojam.com> Date: Tue, 19 Jun 2001 09:39:38 -0500 To: James Henstridge <james@daa.com.au> Cc: <gtk-list@gnome.org>, <pygtk@daa.com.au> Subject: Re: [pygtk] can I watch all signals being emitted? In-Reply-To: <Pine.LNX.4.33.0106190906310.21072-100000@james.daa.com.au> References: <15150.18895.379738.456168@beluga.mojam.com> <Pine.LNX.4.33.0106190906310.21072-100000@james.daa.com.au> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> James> g_type_init(G_TYPE_DEBUG_SIGNALS); Thanks, this is just what I need. I'll whip up some configurability for my own needs. Skip From corsepiu@faw.uni-ulm.de Tue Jun 19 11:16:46 2001 Return-Path: <corsepiu@faw.uni-ulm.de> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id CAEF32DB78 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:16:46 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA27297 for <gtk-list@lacrosse.redhat.com>; Tue, 19 Jun 2001 11:16:46 -0400 Received: from www.faw.uni-ulm.de (www.faw.uni-ulm.de [134.60.100.4]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f5JFFSb17064 for <gtk-list@redhat.com>; Tue, 19 Jun 2001 11:15:29 -0400 Received: (qmail 17758 invoked from network); 19 Jun 2001 15:16:41 -0000 Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (134.60.101.174) by www-intern.faw.uni-ulm.de with SMTP; 19 Jun 2001 15:16:41 -0000 Received: (qmail 4006 invoked by uid 0); 19 Jun 2001 15:16:38 -0000 Received: from dialin13.faw.uni-ulm.de (HELO faw.uni-ulm.de) (corsepiu@172.18.1.13) by mailserv.faw.uni-ulm.de with SMTP; 19 Jun 2001 15:16:38 -0000 Message-ID: <3B2F6CCC.68CE885E@faw.uni-ulm.de> Date: Tue, 19 Jun 2001 17:16:28 +0200 From: Ralf Corsepius <corsepiu@faw.uni-ulm.de> Reply-To: corsepiu@faw.uni-ulm.de Organization: Ralf Corsepius X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.4-4GB-SMP i686) X-Accept-Language: de-DE, en MIME-Version: 1.0 To: Owen Taylor <otaylor@redhat.com> Cc: Tim Janik <timj@gtk.org>, Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> <ybe66ds4o39.fsf@fresnel.labs.redhat.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Owen Taylor wrote: > > Tim Janik <timj@gtk.org> writes: > > > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > > expressions aren't portable, and I think GObject should probably > > > > > perform portably, it's conceivable that the danger is worth it. > > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > > > i don't think there's much to worry about compilers that can't inline > > > > nowadays. glib ensures that static inline at least works on such systems > > > > by providing a non-static linkable version, if static inline isn't supported. > > > > so worst-case scenario is that for inline-incapable compilers an extra > > > > function call is performed. > > > > > > I'd like to point out here that GCC produces better code for macros than > > > inline functions. This will continue to be true in GCC 3.0, and in the > > > future until the tree inliner is ported from the c++ compiler to the c > > > compiler. > > > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > > if that produces better code than using static inline instead, feel > > free to provide a gcc-special cased patch, once we have the static inlines ;) > > 'static inline' is, of course, very much a GCC extension. No, but you're right, it is non-portable. However, you know how to write portability macros, don't you? Ralf From hp@redhat.com Tue Jun 19 11:57:22 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A16F32D2D1 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:57:22 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JFv6H02331; Tue, 19 Jun 2001 11:57:06 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke <rsteinke@w-link.net> Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> <y5w1yoh3sq2.fsf@icon.labs.redhat.com> <3B2F623F.nailH6K1ZB6VV@yggdrasil> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 11:57:06 -0400 In-Reply-To: Ron Steinke's message of "Tue, 19 Jun 2001 07:31:27 -0700" Message-ID: <y5wbsnkh38t.fsf@icon.labs.redhat.com> Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ron Steinke <rsteinke@w-link.net> writes: > That was it. Thanks. Perhaps a short lecture on the way focus works > in GTK is in order? > Well, it isn't really that complicated from this standpoint - if you want your widget to get focus you set GTK_CAN_FOCUS, then whenever you get the focus (normally from tab key or a mnemonic, or widgets can implement button_press handlers), then you will get key events. The more complicated issues are: - how GTK decides on the tab order (GtkWidget::focus method) - the overall key event handling (Owen has a diagram somewhere) Basically, key events go first to the focus widget, if not used there they go to the toplevel window. If you want "global" hotkeys, then you want to connect to key_press_event on the toplevel, rather than on a child widget. Havoc From hp@redhat.com Tue Jun 19 12:04:01 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 381A82DBF0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 12:04:01 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JG3i602338; Tue, 19 Jun 2001 12:03:44 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Markus =?iso-8859-1?q?K=FChni?= <markus.kuehni@trilab.ch> Cc: <gtk-list@gnome.org> Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 12:03:44 -0400 In-Reply-To: Markus =?iso-8859-1?q?K=FChni's?= message of "Tue, 19 Jun 2001 14:45:05 +0200" Message-ID: <y5w7ky8h2xr.fsf@icon.labs.redhat.com> Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Markus K=FChni <markus.kuehni@trilab.ch> writes: >=20 > If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? >=20 For GTK 1.2, you are missing GnomeCanvas, GnomeDialog, stock icons.=20 Also unless you use gdk-pixbuf you're missing image loading. For GTK 2.0, you are missing GnomeCanvas but there's a libgnomecanvas separate from other gnome libs. For both GTK's you are missing session management. Those are the things I would personally consider interesting, other people will post more opinions no doubt. ;-) Havoc From Valdis.Kletnieks@vt.edu Tue Jun 19 13:51:36 2001 Return-Path: <Valdis.Kletnieks@vt.edu> 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 DA2342E621 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 13:51:35 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5JHpSg07250; Tue, 19 Jun 2001 13:51:28 -0400 Message-Id: <200106191751.f5JHpSg07250@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: Havoc Pennington <hp@redhat.com> Cc: Ian King <king@eiffel.com>, gtk-list@gnome.org Subject: Re: Visual types In-Reply-To: Your message of "Mon, 18 Jun 2001 17:49:51 EDT." <y5wzob5jw5c.fsf@icon.labs.redhat.com> 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[<!v4-0bVIpaxF#-) %9#a9h6JXI|T|8o6t\V?kGl]Q!1V]GtNliUtz:3},0"hkPeBuu%E,j(:\iOX-P,t7lRR# References: <211901c0f836$71f778a0$750a000a@naples> <y5wzob5jw5c.fsf@icon.labs.redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-989886808P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 19 Jun 2001 13:51:28 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> --==_Exmh_-989886808P Content-Type: text/plain; charset=us-ascii On Mon, 18 Jun 2001 17:49:51 EDT, Havoc Pennington said: > There's just no real point using a visual other than the default, > ever. Unless your app is written specifically for certain hardware > such as an SGI. > > (The only exception is to use the GdkRGB visual for drawables where > you'll draw RGB data, but in GTK 2 this isn't even necessary.) The other exception is where your default visual is 24 bit, but you are trying to optimize for speed, and thus want to use a 8 or 16 bit visual. There was a review of XFree86 4.1.0, which showed this effect: http://www.thedukeofurl.org/reviews/misc/xfree86410/4.shtml Look at the XBench results for 16 and 32 bit. And of course, if you're trying to use X-over-ssh or lbxproxy or just remote display of an X window, and are pumping all the pixmaps over an actual wire, cutting 60% of your network traffic by ysing an 8-bit visual rather than 24-bit may be *really* crucial... -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-989886808P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOy+RIHAt5Vm009ewEQK1bQCg8NDjHPiy4+MWNaHIzFzPgfL5ht4AoK7a Wb5okkD3TF7t2xdV5OF9IFkG =hN3+ -----END PGP SIGNATURE----- --==_Exmh_-989886808P-- From rbultje@ronald.bitfreak.net Tue Jun 19 14:11:37 2001 Return-Path: <rbultje@ronald.bitfreak.net> Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 5C9BD2BB95 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:11:37 -0400 (EDT) Received: from [192.168.0.45] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5JIsIF21849; Tue, 19 Jun 2001 20:54:18 +0200 (CEST) Subject: Re: Delta between GTK+ and Gnome From: Ronald Bultje <rbultje@ronald.bitfreak.net> To: Havoc Pennington <hp@redhat.com> Cc: Markus =?ISO-8859-1?Q?K=FChni?= <markus.kuehni@trilab.ch>, gtk-list@gnome.org In-Reply-To: <y5w7ky8h2xr.fsf@icon.labs.redhat.com> References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 19 Jun 2001 20:11:28 +0200 Message-Id: <992974289.755.2.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On 19 Jun 2001 12:03:44 -0400, Havoc Pennington wrote: > Markus Kühni <markus.kuehni@trilab.ch> writes: > > > > If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? > > > > For GTK 1.2, you are missing GnomeCanvas, GnomeDialog, stock icons. > Also unless you use gdk-pixbuf you're missing image loading. Side-note: I thought gdk-pixbuf depends on Gnome so you're missing it anyway? > Those are the things I would personally consider interesting, other > people will post more opinions no doubt. ;-) Uniform style. The fact that every "New document" button in a toolbar looks the same in each and every app, and the same for "save", "load", "cut", "copy" and so on. That's what makes Gnome so attractive imho, most users (if not all) really appreciate having a uniform style throughout the whole graphical interface they use. Regards, Ronald -- - .-. - /V\ | Ronald Bultje <rbultje@ronald.bitfreak.net> - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From sven@gimp.org Tue Jun 19 14:35:46 2001 Return-Path: <sven@gimp.org> Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id A69872BD9F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:35:46 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15CQEs-00087s-00; Tue, 19 Jun 2001 20:28:34 +0200 To: Ronald Bultje <rbultje@ronald.bitfreak.net> Cc: gtk-list@gnome.org Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> <992974289.755.2.camel@tux> From: Sven Neumann <sven@gimp.org> Date: 19 Jun 2001 20:28:34 +0200 In-Reply-To: <992974289.755.2.camel@tux> Message-ID: <yfxwv68uxwt.fsf@gimp.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, Ronald Bultje <rbultje@ronald.bitfreak.net> writes: > Side-note: I thought gdk-pixbuf depends on Gnome so you're missing it > anyway? who told you that? It's plain wrong. Salut, Sven From deekshit.mantampady@wipro.com Tue Jun 19 15:03:32 2001 Return-Path: <deekshit.mantampady@wipro.com> 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 E1ED42CF0A for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:03:30 -0400 (EDT) Received: from m2hub.mail.wipro.com (m2hub.wipro.com [164.164.27.50]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with ESMTP id f5K0gBZ19556 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 00:42:11 GMT Received: from m2vwall2.wipro.com ([164.164.27.52]) by m2hub.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GF6Y0M00.SNG for <gtk-list@gnome.org>; Wed, 20 Jun 2001 00:27:58 +0530 Received: from wipro.com ([192.168.22.180]) by sarovar.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GF69PQ00.8R6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:43:02 +0530 Message-ID: <3B2F2499.2803AA34@wipro.com> Date: Tue, 19 Jun 2001 03:08:25 -0700 From: Deekshit Mantampady <deekshit.mantampady@wipro.com> X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: GTK List <gtk-list@gnome.org> Subject: Run time errors..... 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, I installed the development version of gtk(1.3.5), with the corresponding development version of glib. After that I tried to compile the frame.c file, which is available with the gtk1.3.5 pakage (Path : gtk+-1.3.5\exapmles\frame\frame.c), using the Make file, which I have pased at the end. The compiltaion was success. But while executing, it gave me the following run-time errors. I don't know how to solve the problem. I tested the same before installing the gtk 1.3.5. using the Makefile, whic was there in the same folder of frame.c. It was working fine. I installed this version of gtk only to use the GdkGC, which was not properly implemented in the stable version(The only member of the GdkGC class is glong dummy_var, which I think doesn't do anything. Can anybody help me to solve the problem. I am using Redhat 6.2 version of Linux. -------------------- Makefile ----------------------------- PKG_CONFIG_PATH=/root CC = gcc frame: frame.c $(CC) `pkg-config --cflags gtk+-2.0` frame.c -o frame \ `pkg-config --libs gtk+-2.0` clean: rm -f *.o frame -------------------------------------------------------- -------------------------- Error--------------------------- Gtk-Message: YOU ARE USING THE DEVEL BRANCH 1.3.x OF GTK+ WHICH IS CURRENTLY UNDER HEAVY DEVELOPMENT AND FREQUENTLY INTRODUCES INSTABILITIES. if you don't know why you are getting this, you probably want to use the stable branch which can be retrived from ftp://ftp.gtk.org/pub/gtk/v1.2/ or via CVS with cvs checkout -r glib-1-2 glib; cvs checkout -r gtk-1-2 gtk+ ** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" ** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed ** CRITICAL **: file pango-context.c: line 666 (fallback_engine_shape): assertion `font != NUL L' failed ** ERROR **: file shape.c: line 57 (pango_shape): assertion failed: (glyphs->num_glyphs > 0)ab orting... Trace/breakpoint trap (core dumped) From hp@redhat.com Tue Jun 19 15:39:05 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 74FEE2D3B5 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:39:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JJchn02420; Tue, 19 Jun 2001 15:38:43 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje <rbultje@ronald.bitfreak.net> Cc: Markus =?iso-8859-1?q?K=FChni?= <markus.kuehni@trilab.ch>, gtk-list@gnome.org Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> <992974289.755.2.camel@tux> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 15:38:43 -0400 In-Reply-To: Ronald Bultje's message of "19 Jun 2001 20:11:28 +0200" Message-ID: <y5wg0cwfef0.fsf@icon.labs.redhat.com> Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ronald Bultje <rbultje@ronald.bitfreak.net> writes: > Uniform style. The fact that every "New document" button in a toolbar > looks the same in each and every app, and the same for "save", "load", > "cut", "copy" and so on. > That's what makes Gnome so attractive imho, most users (if not all) > really appreciate having a uniform style throughout the whole graphical > interface they use. > This is what I meant by "stock icons," for GTK 2 it's in GTK. Havoc From jan_teubel@gmx.net Tue Jun 19 16:36:29 2001 Return-Path: <jan_teubel@gmx.net> Delivered-To: gtk-list@gnome.org Received: from einhorn.in-berlin.de (einhorn.colt.in-berlin.de [213.61.118.8]) by mail.gnome.org (Postfix) with ESMTP id 7FD032DF87 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:36:28 -0400 (EDT) Received: from gmx.net (DialIN077.colt.vr.in-berlin.de [213.61.119.205]) (authenticated (0 bits)) by einhorn.in-berlin.de (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id f5JKaRP27383 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 22:36:27 +0200 X-Envelope-From: jan_teubel@gmx.net X-Envelope-To: <gtk-list@gnome.org> X-Authentication-Warning: einhorn.in-berlin.de: Host DialIN077.colt.vr.in-berlin.de [213.61.119.205] claimed to be gmx.net Message-ID: <3B2FB7BA.6060304@gmx.net> Date: Tue, 19 Jun 2001 22:36:10 +0200 From: "J. Teubel" <jan_teubel@gmx.net> User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Compiling Gtk+ 1.3.6 on Debian 2.2r3 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hello, I try to compile Gtk+ 1.3.6 on Debian 2.2r3. I downloaded the all-in-one package. gdkdrawable-x11.c complains that Xft.h is not found on my system. I searched trough my entire harddisk, this file is nowhere. xlib dev is installed and all the other libs needed for compiling. I also searched through debian.org and google but nothing helps me. What's wrong? Thanks for your help, Jan From wolfgang@contre.com Tue Jun 19 16:46:42 2001 Return-Path: <wolfgang@contre.com> Delivered-To: gtk-list@gnome.org Received: from cogito.cam.org (cogito.cam.org [198.168.100.2]) by mail.gnome.org (Postfix) with ESMTP id 422E02BEB0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:42 -0400 (EDT) Received: from dialup-98-44-84-199.hip.cam.org (root@dialup-98-44-84-199.hip.cam.org [199.84.44.98]) by cogito.cam.org (8.11.0/8.11.0.Beta1) with ESMTP id f5JKkeE08275 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:40 -0400 Received: from debian.home (wolfgang@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JKkbCA000800 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:39 -0400 Date: Tue, 19 Jun 2001 16:46:37 -0400 Message-ID: <85ithskxjm.wl@debian.home> From: Wolfgang Sourdeau <wolfgang@contre.com> To: gtk-list@gnome.org Subject: Re: Compiling Gtk+ 1.3.6 on Debian 2.2r3 Mail-Followup-To: "J. Teubel" <jan_teubel@gmx.net>, gtk-list@gnome.org Mail-Reply-To: wolfgang@contre.com In-Reply-To: <3B2FB7BA.6060304@gmx.net> References: <3B2FB7BA.6060304@gmx.net> User-Agent: Wanderlust/2.5.8 (Smooth) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.0.103 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > gdkdrawable-x11.c complains that Xft.h is not found on my system. I > searched trough my entire harddisk, this file is nowhere. xlib dev is > installed and all the other libs needed for compiling. I also searched > through debian.org and google but nothing helps me. Xft.h is part of XFree 4 which is currently only available in Debian unstable (or maybe testing as well). W. From king@eiffel.com Tue Jun 19 17:35:49 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id E2C2B2BC88 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 17:35:47 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CT9k-0000QW-00 for gtk-list@gnome.org; Tue, 19 Jun 2001 14:35:28 -0700 Message-ID: <245f01c0f907$e760ec30$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Changing focus from one window to another Date: Tue, 19 Jun 2001 14:36:30 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, I have a program that has two top level windows, one with a button, one with a text entry in it. It is set up so that when I click the button, the focus is set to the text entry in the other window using gtk_widget_set_focus(entry_widget). However, the window containing the entry widget doesn't receive the focus. Am I doing something wrong? Thanks for your time. Ian King From bachn@LESTERELECTRICAL.com Tue Jun 19 17:49:50 2001 Return-Path: <bachn@LESTERELECTRICAL.com> Delivered-To: gtk-list@gnome.org Received: from nt_le.Lesterelectrical.com (h216-170-003-037.adsl.navix.net [216.170.3.37]) by mail.gnome.org (Postfix) with ESMTP id 8D1B62CFED for <gtk-list@gnome.org>; Tue, 19 Jun 2001 17:49:49 -0400 (EDT) Received: by NT_LE with Internet Mail Service (5.5.2448.0) id <JHS81VR1>; Tue, 19 Jun 2001 16:49:50 -0500 Message-ID: <A1393E9B8AE3D111AA970008C724A20B945953@NT_LE> From: Bach Ngo <bachn@LESTERELECTRICAL.com> To: "'gtk-list@gnome.org'" <gtk-list@gnome.org> Subject: How can I make a gtk window become active at starting up? Date: Tue, 19 Jun 2001 16:49:48 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, When I run a gtk application from an xterm, that gtk application window is not active but the xterm window. I have to click on the title bar of the gtk applicatio window to make it become active. Please help me to solve that. Bach Ngo From hp@redhat.com Tue Jun 19 18:25:24 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4458C2BCB6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:25:24 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JMP0M02692; Tue, 19 Jun 2001 18:25:00 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Changing focus from one window to another References: <245f01c0f907$e760ec30$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 18:25:00 -0400 In-Reply-To: "Ian King"'s message of "Tue, 19 Jun 2001 14:36:30 -0700" Message-ID: <y5wwv68ds5f.fsf@icon.labs.redhat.com> Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > > I have a program that has two top level windows, one with a button, one with > a text entry in it. It is set up so that when I click the button, the focus > is set to the text entry in the other window using > gtk_widget_set_focus(entry_widget). However, the window containing the > entry widget doesn't receive the focus. Am I doing something wrong? > GTK can't change the focus between toplevel windows, only the window manager can do that. (You can try calling XSetInputFocus() as a low-level hack, but if the user is using focus-follows-mouse or something it won't work out very well.) Havoc From hp@redhat.com Tue Jun 19 18:26:04 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 30B1C2BCB6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:26:04 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JMPld02695; Tue, 19 Jun 2001 18:25:47 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Bach Ngo <bachn@LESTERELECTRICAL.com> Cc: "'gtk-list@gnome.org'" <gtk-list@gnome.org> Subject: Re: How can I make a gtk window become active at starting up? References: <A1393E9B8AE3D111AA970008C724A20B945953@NT_LE> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 18:25:47 -0400 In-Reply-To: Bach Ngo's message of "Tue, 19 Jun 2001 16:49:48 -0500" Message-ID: <y5wsngwds44.fsf@icon.labs.redhat.com> Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Bach Ngo <bachn@LESTERELECTRICAL.com> writes: > > When I run a gtk application from an xterm, that gtk application window is > not active but the xterm window. I have to click on the title bar of the > gtk applicatio window to make it become active. > > Please help me to solve that. > Get a window manager that focuses windows when they're created. Or configure your existing WM to do that if possible. Havoc From king@eiffel.com Tue Jun 19 18:33:29 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id A437F2D2B8 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:33:28 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CU3m-00024S-00; Tue, 19 Jun 2001 15:33:22 -0700 Message-ID: <25bb01c0f90f$fd965f50$750a000a@naples> From: "Ian King" <king@eiffel.com> To: "Havoc Pennington" <hp@redhat.com> Cc: <gtk-list@gnome.org> References: <245f01c0f907$e760ec30$750a000a@naples> <y5wwv68ds5f.fsf@icon.labs.redhat.com> Subject: Re: Changing focus from one window to another Date: Tue, 19 Jun 2001 15:34:22 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > > "Ian King" <king@eiffel.com> writes: > > > > I have a program that has two top level windows, one with a button, one with > > a text entry in it. It is set up so that when I click the button, the focus > > is set to the text entry in the other window using > > gtk_widget_set_focus(entry_widget). However, the window containing the > > entry widget doesn't receive the focus. Am I doing something wrong? > > > > GTK can't change the focus between toplevel windows, only the window > manager can do that. > > (You can try calling XSetInputFocus() as a low-level hack, but > if the user is using focus-follows-mouse or something it won't work > out very well.) > > Havoc Does that mean the gtk_widget_set_focus (window) will never work? If so, then an autocomplete window that comes up when you are typing code would then surely be impossible to implement, or is there another way? Thanks Ian King From hp@redhat.com Tue Jun 19 19:36:26 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7FFA52CE82 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:36:19 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JNa2c02835; Tue, 19 Jun 2001 19:36:02 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Changing focus from one window to another References: <245f01c0f907$e760ec30$750a000a@naples> <y5wwv68ds5f.fsf@icon.labs.redhat.com> <25bb01c0f90f$fd965f50$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 19:36:01 -0400 In-Reply-To: "Ian King"'s message of "Tue, 19 Jun 2001 15:34:22 -0700" Message-ID: <y5wbsnkdov2.fsf@icon.labs.redhat.com> Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > Does that mean the gtk_widget_set_focus (window) will never work? If so, > then an autocomplete window that comes up when you are typing code would > then surely be impossible to implement, or is there another way? > gtk_widget_set_focus() does something else, not what you are hoping for here. It's a semi-internal function. gdk_keyboard_grab(), or just getting the keypresses on your editor widget and updating the complete widget appropriately, would be two ways to do this. Havoc From vicki@dialupnet.com Wed Jun 20 12:31:47 2001 Return-Path: <vicki@dialupnet.com> Delivered-To: gtk-list@gnome.org Received: from opus (user-24-214-88-99.knology.net [24.214.88.99]) by mail.gnome.org (Postfix) with ESMTP id A54182DF69 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 12:31:46 -0400 (EDT) Received: from localhost (IDENT:vicki@localhost [127.0.0.1]) by opus (8.11.0/8.11.0) with ESMTP id f5KGV6610324 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 11:31:06 -0500 Date: Wed, 20 Jun 2001 11:31:03 -0500 (CDT) From: Vicki Stanfield <vicki@dialupnet.com> To: GTK-List <gtk-list@gnome.org> Subject: Getting widgets children Message-ID: <Pine.LNX.4.33.0106201129430.10314-100000@opus> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I know that I can get the parent of a widget, but if I have only the parent widget, can I get the children? I need to unrealize most of the widgets to change the window. Have a good day! - -Vicki +-----------------------------------------------------------------+ | E-mail: vicki@thepenguin.org | | My public key - http://www.thepenguin.org/vicki/key.txt | | My Linux page - http://www.thepenguin.org | +-----------------------------------------------------------------+ **The best things in life aren't things. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7MM/KvFwCsl/kaSARApmCAJ9tZkTki6f24cQEUk+BOiblFPaGfwCeNXJu eD4hRaosxJ9aZxTmRXBYKgo= =ivw0 -----END PGP SIGNATURE----- From john.cupitt@ng-london.org.uk Wed Jun 20 12:43:20 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 3B9762D1BA for <gtk-list@gnome.org>; Wed, 20 Jun 2001 12:43:20 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNYWF; Wed, 20 Jun 2001 17:43:19 +0100 Message-ID: <3B30D159.66D593F4@ng-london.org.uk> Date: Wed, 20 Jun 2001 17:37:45 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Vicki Stanfield <vicki@dialupnet.com> Cc: GTK-List <gtk-list@gnome.org> Subject: Re: Getting widgets children References: <Pine.LNX.4.33.0106201129430.10314-100000@opus> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Vicki Stanfield wrote: > I know that I can get the parent of a widget, but if I have only the > parent widget, can I get the children? I need to unrealize most of the > widgets to change the window. Hi, if it's a subclass of container, you can loop over widget->children. Something like: /* Set a name for a widget and all its children. */ void set_name( GtkWidget *widget, const char *name ) { gtk_widget_set_name( widget, name ); if( GTK_IS_CONTAINER( widget ) ) gtk_container_foreach( GTK_CONTAINER( widget ), (GtkCallback) set_name, (char *) name ); } You can do a for(;;) loop as well (slightly less clean): if( GTK_IS_CONTAINER( widget ) ) { GSList *p; for( p = GTK_CONTAINER( widget )->children; p; p = p->next ) { GtkWidget *child = GTK_WIDGET( p->data ); ... } } That's what I do anyway. John From netlu@visto.com Wed Jun 20 13:59:54 2001 Return-Path: <netlu@visto.com> Delivered-To: gtk-list@gnome.org Received: from qmail5.visto.com (unknown [209.185.20.135]) by mail.gnome.org (Postfix) with SMTP id D16CD2BACE for <gtk-list@gnome.org>; Wed, 20 Jun 2001 13:59:53 -0400 (EDT) Received: (qmail 27577 invoked by alias); Received: from unknown (HELO mps2) (206.79.140.175) by 0 with SMTP; 20 Jun 2001 10:59:43 -0700 Reply-To: netlu@visto.com From: "Louis Lu" <netlu@visto.com> Subject: memory map io function Date: Wed, 20 Jun 2001 10:59:43 -0700 X-Mailer: Visto To: gtk-list@gnome.org MIME-Version: 1.0 X-Mailer: Visto Server Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <20010620175953.D16CD2BACE@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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi: I just wondering whether or not anyone who has the experiences on memo= ry map io function before?=20 My code is as following: int *base; unsigned int fd; fd =3D open("dev/mem", O_RDWR); base =3D mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800= 000); =20 (and I tried to write a value to a certian register of vga) *(int *)(base+0x60000/4) =3D 0x30f027f; munmap(base, 0x800000); close(fd); The compile is ok, but when I runt it, I got segmentation fault (core dum= p). I bassically need to write around 13 of them and I have even tried to cha= nge the size from 0x800000 to 0x8fffffff. I still got core dump though. So, I appreciate it if there is anyone who can teach me how to correct my= problem here. =20 Louis _________________________________________________________________________= __ Visit http://www.visto.com/info, your free web-based communications cente= r. Visto.com. Life on the Dot. From king@eiffel.com Wed Jun 20 15:41:01 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id B8E8D2DF72 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 15:41:00 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CnqV-0006Sr-00 for gtk-list@gnome.org; Wed, 20 Jun 2001 12:40:59 -0700 Message-ID: <01b101c0f9c1$13f3c100$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Widget size Date: Wed, 20 Jun 2001 12:42:02 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I have a small example of a button within a hbox. The hbox has, say a height of 100 pixels, the button has a minimum height of 25 pixels. When the button is in the hbox, it also has an allocated height of 100 pixels. When I take it out of the hbox, its allocated height is 25 pixels, however when I put the button back in the hbox (this is all done on-screen), the allocated height is still 25. Why is this and how do I get the allocation to update immediately. Thanks for your time Ian King From david.robin@st.com Wed Jun 20 16:08:10 2001 Return-Path: <david.robin@st.com> Delivered-To: gtk-list@gnome.org Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mail.gnome.org (Postfix) with ESMTP id 2A3B82E776 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:07:02 -0400 (EDT) Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id 7686348D0 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 20:07:01 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id A07BC4B09; Wed, 20 Jun 2001 20:07:04 +0000 (GMT) Received: from eux100.sgp.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 65AC8184E for <gtk-list@gnome.org>; Wed, 20 Jun 2001 20:07:04 +0000 (GMT) Received: from st.com (fenix.nvg.sgp.st.com [164.129.227.19]) by eux100.sgp.st.com (8.8.6 (PHNE_17190)/8.8.6) with ESMTP id WAA01635 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:07:00 +0200 (METDST) Message-ID: <3B310384.5FFF5E0F@st.com> Date: Wed, 20 Jun 2001 22:11:48 +0200 From: David Robin <david.robin@st.com> X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: to score threads? 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> As I was looking for bug-killing technics through the mailing-list archives, I found this: http://mail.gnome.org/archives/gtk-list/2001-June/msg00173.html This thread resolved all the problems I had for long weeks. It has info I found in no other ressources. So it made me think that maybe it would be a good idea to allow the M.L. archive users to vote for threads (slashdot style). With this feature, If a thread has a very high score, it will certainly mean that its contents give informations that were not in the other gtk online ressources. Therefore, this scoring system would give to gtk documentation maintainers indications on how to improve their effort. David. From brandon@ovnet.com Wed Jun 20 16:25:29 2001 Return-Path: <brandon@ovnet.com> Delivered-To: gtk-list@gnome.org Received: from riker.mountain.net (smtp.mountain.net [66.118.64.15]) by mail.gnome.org (Postfix) with ESMTP id 222972CEEA for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:25:29 -0400 (EDT) Received: from ovnet.com ([198.77.41.138]) by riker.mountain.net (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id net; Wed, 20 Jun 2001 16:22:45 -0400 Message-ID: <3B3107CD.6010606@ovnet.com> Date: Wed, 20 Jun 2001 16:30:05 -0400 From: Brandon McCombs <brandon@ovnet.com> User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5 i686; en-US; m18) Gecko/20001107 Netscape6/6.0 X-Accept-Language: en MIME-Version: 1.0 To: Sven Neumann <sven@gimp.org> Cc: AndrXs Giraldo <andres_giraldo@yahoo.com>, Gtk List <gtk-list@gnome.org> Subject: Re: gtk_widget_destroy References: <20010618153433.39415.qmail@web11507.mail.yahoo.com> <yfxsngxbvmg.fsf@gimp.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Sven Neumann wrote: > Hi, > > "AndrXs" Giraldo <andres_giraldo@yahoo.com> writes: > > >> I'm creating a window from a nother window, something >> like a message box, but when I want to unload this >> window; >> >> should I use gtk_widget_destroy? >> >> Because I'm connecting this signal to a button clicked >> event: >> >> gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", >> GTK_SIGNAL_FUNC >> (on_btnClose_clicked), NULL) >> >> >> // callback function >> >> void on_btnClose_clicked (GtkButton *button, gpointer >> data) >> { >> GtkWidget *window = (GtkWidget *)data; >> >> gtk_widget_destory (window); >> } >> > > > you did not pass the window pointer when connecting > your signal. How is this supposed to work ?? true however he also didn't spell gtk_widget_destroy correctly....he needs to fix that typo as well. From otaylor@redhat.com Wed Jun 20 16:42:27 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id D7E332E665 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:42:27 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 5E110242319; Wed, 20 Jun 2001 16:42:27 -0400 (EDT) To: David Robin <david.robin@st.com> Cc: gtk-list@gnome.org Subject: Re: to score threads? References: <3B310384.5FFF5E0F@st.com> From: Owen Taylor <otaylor@redhat.com> Date: 20 Jun 2001 16:42:27 -0400 In-Reply-To: David Robin's message of "Wed, 20 Jun 2001 22:11:48 +0200" Message-ID: <ybe8zimkhn0.fsf@fresnel.labs.redhat.com> Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> David Robin <david.robin@st.com> writes: > As I was looking for bug-killing technics through the mailing-list > archives, I found this: > > http://mail.gnome.org/archives/gtk-list/2001-June/msg00173.html > > This thread resolved all the problems I had for long weeks. It has info > I found in no other ressources. > So it made me think that maybe it would be a good idea to allow the M.L. > archive users to vote for threads (slashdot style). > With this feature, If a thread has a very high score, it will certainly > mean that its contents give informations that were not in the other gtk > online ressources. > Therefore, this scoring system would give to gtk documentation > maintainers indications on how to improve their effort. If you find something interesting in the archives, why don't you submit an entry to the FAQ (send it to trog@gtk.org) that summarizes it. You can include a link to the mailing list thread in the entry. Regards, Owen From king@eiffel.com Wed Jun 20 18:21:00 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 8905A2E0DB for <gtk-list@gnome.org>; Wed, 20 Jun 2001 18:20:59 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CqLG-0000ub-00 for gtk-list@gnome.org; Wed, 20 Jun 2001 15:20:54 -0700 Message-ID: <025901c0f9d7$6b9e5f80$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Fw: Widget size Date: Wed, 20 Jun 2001 15:21:58 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> In response to my previous message, how do I tell gtk to automatically recompute all of the widget allocations immediately, will gtk_widget_draw (hbox) do this, or is there some other function I can use? The allocation of the button does update but not immediately, it is usually updated within 100 ms. Thanks for your time, I would love to fix this `bug'. Ian King ----- Original Message ----- From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Sent: Wednesday, June 20, 2001 12:42 PM Subject: Widget size > I have a small example of a button within a hbox. The hbox has, say a > height of 100 pixels, the button has a minimum height of 25 pixels. When > the button is in the hbox, it also has an allocated height of 100 pixels. > When I take it out of the hbox, its allocated height is 25 pixels, however > when I put the button back in the hbox (this is all done on-screen), the > allocated height is still 25. Why is this and how do I get the allocation > to update immediately. > > Thanks for your time > > Ian King > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From uckelman@scylla.ellipsis.cx Wed Jun 20 22:14:35 2001 Return-Path: <uckelman@scylla.ellipsis.cx> Delivered-To: gtk-list@gnome.org Received: from scylla.ellipsis.cx (unknown [64.109.29.58]) by mail.gnome.org (Postfix) with SMTP id 6AB792BAB4 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:14:34 -0400 (EDT) Received: (qmail 22596 invoked by uid 500); 21 Jun 2001 02:14:34 -0000 Message-ID: <20010621021434.22594.qmail@scylla.ellipsis.cx> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: viewports, anchored icons From: Joel Uckelman <uckelman@nomic.net> Reply-To: uckelman@nomic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 20 Jun 2001 21:14:34 -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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I've been working on a graphical system for playing wargames by email, and I've run up against a problem that has me stumped. What I want to do is anchor certain small windows (the playing pieces) to a pixmap (the game board) in a large scrolling window such that the pieces follow the map when it's scrolled---even out of the viewport, if need be. The effect I want is something similar to the way it looks when selected areas are scrolled in and out of the viewport in Gimp. I know this can be done somehow; I'd be grateful for suggestions as to how I should go about it. Thanks! -- J. From hp@redhat.com Wed Jun 20 22:33:09 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 70D232BAB1 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:33:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5L2X5j00851; Wed, 20 Jun 2001 22:33:05 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Fw: Widget size References: <025901c0f9d7$6b9e5f80$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 20 Jun 2001 22:33:05 -0400 In-Reply-To: "Ian King"'s message of "Wed, 20 Jun 2001 15:21:58 -0700" Message-ID: <y5wofripnoe.fsf@icon.labs.redhat.com> Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > In response to my previous message, how do I tell gtk to automatically > recompute all of the widget allocations immediately, will gtk_widget_draw > (hbox) do this, or is there some other function I can use? The allocation > of the button does update but not immediately, it is usually updated within > 100 ms. > It would probably break GTK to try and do this, and be really slow. Sizes are recomputed in an idle handler. There's probably an easier way to do whatever you are trying to do. Havoc From lsetia78@yahoo.com Thu Jun 21 02:56:12 2001 Return-Path: <lsetia78@yahoo.com> 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 4514B2BB13 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 02:56:12 -0400 (EDT) Received: from unknown (HELO yahoo.com) (203.200.123.129) by smtp.mail.vip.sc5.yahoo.com with SMTP; 21 Jun 2001 06:56:10 -0000 X-Apparently-From: <lsetia78@yahoo.com> Message-ID: <3B3199C5.2010601@yahoo.com> Date: Thu, 21 Jun 2001 12:22:53 +0530 From: Lokesh Setia <lsetia78@yahoo.com> User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; rv:0.9.1) Gecko/20010607 Netscape6/6.1b1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Allocating a lot of colors 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hello, I'm writing a Image processing application, in which I need to show intermediate results of my calculations as an image in a window, nothing more. First of all, I will like to ask whether drawing_area widget with a backing pixmap is the best choice for this? I will have to call gdk_draw_point{s}( ) in this case I guess Second, when the image changes (it does after every 50 msec), colors may need to be allocated/deallocated. Doing gdk_colormap_alloc_color() in a loop seems to be a grossly inefficient way of doing this. Is there any other option? BTW, since the application is only meant for internal use, I do not have to make it work for 8-bit displays if it helps in any way :) Regards, Lokesh _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From mtnweb@mac.com Thu Jun 21 02:56:46 2001 Return-Path: <mtnweb@mac.com> Delivered-To: gtk-list@gnome.org Received: from smtp.commspeed.net (unknown [216.19.50.6]) by mail.gnome.org (Postfix) with SMTP id 433992BB13 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 02:56:45 -0400 (EDT) Received: (qmail 86640 invoked from network); 21 Jun 2001 06:56:18 -0000 Received: from unknown (HELO ?63.169.80.58?) (63.169.80.58) by 0 with SMTP; 21 Jun 2001 06:56:18 -0000 User-Agent: Microsoft-Entourage/9.0.1.3108 Date: Wed, 20 Jun 2001 23:56:43 -0700 Subject: Error compiling Glib 1.2.10 From: Terry Lynch <mtnweb@mac.com> To: gtk list <gtk-list@gnome.org> Message-ID: <B756E8BA.20DC%mtnweb@mac.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I got the following error compiling Glib. I need to install Glib, then GTK+, so I can use BasiliskII (Macintosh Emulator), but I got stuck here. Configure worked okay--no warnings. Then I typed 'make' and got this error after a few minutes of making. /bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c giounix.c cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c giounix.c -o giounix.o giounix.c:1317: bad macro argument list cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make[2]: *** [giounix.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 Thanks, Terry From john.cupitt@ng-london.org.uk Thu Jun 21 07:39:57 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 3FD6A2BD56 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 07:39:57 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNZ6L; Thu, 21 Jun 2001 12:39:56 +0100 Message-ID: <3B31DBBD.E9DE880F@ng-london.org.uk> Date: Thu, 21 Jun 2001 12:34:21 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Lokesh Setia <lsetia78@yahoo.com> Cc: gtk-list@gnome.org Subject: Re: Allocating a lot of colors References: <3B3199C5.2010601@yahoo.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Lokesh Setia wrote: > First of all, I will like to ask whether drawing_area widget with a > backing pixmap is the best choice for this? Hi Lokesh, the way to do this by hand is to use gdk_rgb_*(). Take a look at testrgb.c in the gtk source area. gdk_rgb_*() does all the horrible X stuff for you: it finds an appropriate visual, opens a shared memory area (if possible), and takes care of all the dithering that might be necessary to get nice looking colour. You just make a big RGB array, and call gdk_draw_rgb_image(). It's pretty quick too: I get 10 Mpixels/sec on my (modest) system, so you should be OK for your 50ms timeslot. If you want something higher level, then gdk-pixbuf is your baby. It adds things like rescale and image load and save. > I will have to call > gdk_draw_point{s}( ) in this case I guess. > Second, when the image changes (it does after every 50 msec), colors may > need to be allocated/deallocated. Doing gdk_colormap_alloc_color() in a > loop seems to be a grossly inefficient way of doing this. Is there any > other option? /me falls over This will be rather slow :-) John From john.cupitt@ng-london.org.uk Thu Jun 21 07:55:35 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 1A8772BB31 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 07:55:35 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNZ7P; Thu, 21 Jun 2001 12:55:33 +0100 Message-ID: <3B31DF66.5A49E31D@ng-london.org.uk> Date: Thu, 21 Jun 2001 12:49:58 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: netlu@visto.com Cc: gtk-list@gnome.org Subject: Re: memory map io function References: <20010620175953.D16CD2BACE@mail.gnome.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Louis Lu wrote: > I just wondering whether or not anyone who has the experiences on memory map io function before? > > My code is as following: > int *base; > unsigned int fd; > fd = open("dev/mem", O_RDWR); > base = mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800000); > > (and I tried to write a value to a certian register of vga) > > *(int *)(base+0x60000/4) = 0x30f027f; > munmap(base, 0x800000); > close(fd); > > The compile is ok, but when I runt it, I got segmentation fault (core dump). Hi Louis, I guess it's a permission thing. Are you running this as root? Add some checks to the results of open() and mmap(), and see where its failing, and what error you get from the system. if( (fd = open( "/dev/mem", O_RDWR )) == -1 ) { fprintf( stderr, "open /dev/mem failed: %s\n", strerror( errno ) ); exit( -1 ); } if( (base = mmap( ... )) == (void *) -1 ) { fprintf( stderr, "mmap failed: %s\n", strerror( errno ) ); exit( -1 ); } etc. This sounds incredibly dangerous :-) You are in extreme danger of toasting your system. Good luck, John From Esteban.Quijano@artinsoft.com Tue Jun 19 11:08:14 2001 Return-Path: <Esteban.Quijano@artinsoft.com> Delivered-To: gtk-list@gnome.org Received: from freedom-srv.intranet (unknown [196.40.21.166]) by mail.gnome.org (Postfix) with ESMTP id 5AC092D412 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:07:52 -0400 (EDT) Received: by FREEDOM-SRV with Internet Mail Service (5.5.2653.19) id <M8F7QHF3>; Tue, 19 Jun 2001 08:59:39 -0600 Message-ID: <C3AF23EBD276D411B0D500B0D020E68074A42B@FREEDOM-SRV> From: Esteban Quijano Vincenzi <Esteban.Quijano@artinsoft.com> To: gtk-list@gnome.org Subject: RE: A Modal Window Date: Tue, 19 Jun 2001 08:59:38 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0F8D0.7623AF30" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> 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_01C0F8D0.7623AF30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, there are two ways for doing this: 1) Call gtk_main() again so you enter in a second event loop. When you = press an "ok" or "cancel" button just call gtk_main_quit(). You will return = to the main event loop. 2) Do something like this: =20 while (exit_modal !=3D TRUE) gtk_main_iteration(); and in your callback function do exit_modal =3D TRUE somewhere Esteban Quijano Vincenzi. Quality Assurance - Intel project Artinsoft corp. -----Original Message----- From: Andr=E9s" Giraldo [mailto:andres_giraldo@yahoo.com] Sent: Tuesday, June 19, 2001 7:39 AM To: Gtk List Subject: A Modal Window Hi! I need to call a window that shows 2 options in buttons, yes or no, and I need to wait for that answer, something like a vbModal in MS-Visual Basic... A window that waits until it's unloaded How can I do this? Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C0F8D0.7623AF30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2653.12"> <TITLE>RE: A Modal Window

Hi, there are two ways for doing this:
1) Call gtk_main() again so you enter in a second = event loop. When you press an "ok" or "cancel" = button just call gtk_main_quit(). You will return to the main event = loop.

2) Do something like this:
  
   while (exit_modal !=3D TRUE) = gtk_main_iteration();

and in your callback function do exit_modal =3D TRUE = somewhere

Esteban Quijano Vincenzi.
Quality Assurance - Intel project
Artinsoft corp.


-----Original Message-----
From: Andr=E9s" Giraldo [mailto:andres_giraldo@yahoo.com= ]
Sent: Tuesday, June 19, 2001 7:39 AM
To: Gtk List
Subject: A Modal Window


Hi!

I need to call a window that shows 2 options = in
buttons, yes or no, and I need to wait for = that
answer, something like a vbModal in MS-Visual = Basic...

A window that waits until it's unloaded

How can I do this?

Thanks!

__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and = more.
http://buzz.yahoo.com/

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

------_=_NextPart_001_01C0F8D0.7623AF30-- From dermot@glade.perl.connectfree.co.uk Wed Jun 20 02:21:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 422982D394; Wed, 20 Jun 2001 02:21:55 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id CAA08055; Wed, 20 Jun 2001 02:21:54 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5K6Keb29913; Wed, 20 Jun 2001 02:20:40 -0400 Received: from higrade.botwrights.farm (ppp-121.ispgas04.minx.net.uk [212.85.246.121]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id HAA12947; Wed, 20 Jun 2001 07:54:47 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id HAA01154; Wed, 20 Jun 2001 07:21:44 +0100 Message-ID: <3B3040F8.6FDF5F86@glade.perl.connectfree.co.uk> Date: Wed, 20 Jun 2001 07:21:44 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: [Glade-devel] ANNOUNCE: Glade-Perl 0.58 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I am terribly sorry about this but I quoted an out-of date URL for my module on CPAN. The correct directory URL is: ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but it is better to go to your local mirror. Apologies aganin, Dermot From dermot@glade.perl.connectfree.co.uk Wed Jun 20 02:06:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 02D4F2BB47; Wed, 20 Jun 2001 02:06:51 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id CAA06701; Wed, 20 Jun 2001 02:06:51 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5K65ab29002; Wed, 20 Jun 2001 02:05:37 -0400 Received: from higrade.botwrights.farm (ppp-121.ispgas04.minx.net.uk [212.85.246.121]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id HAA12426; Wed, 20 Jun 2001 07:39:26 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id HAA01096; Wed, 20 Jun 2001 07:06:20 +0100 Message-ID: <3B303D5C.BF231640@glade.perl.connectfree.co.uk> Date: Wed, 20 Jun 2001 07:06:20 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: ANNOUNCE: Glade-Perl 0.58 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I have just uploaded perl module Glade-Perl-0.58.tar.gz to CPAN ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/Glade/ Until it is mirrored around the world it is available on my websites. http://www.glade.perl.connectfree.co.uk/index.html http://freespace.virgin.net/dermot.musgrove/computers/perl/index.html Glade-Perl generates perl source code from a Glade file - Glade is Damon Chaplin's beautiful Gtk+/Gnome UI builder. Glade-Perl can display the UI as it is built and/or generate source code and it can be called directly from Glade's 'Build' button. It can also generate code to use libglade if you prefer. Regards, Dermot snipped from the Changelog: ------------------------------------------------------------ Fri Apr 13 01:01:22 BST 2001 - Dermot Musgrove - Version 0.58 - Mimimum requirements increased to Gtk-Perl-0.7000 and gnome-libs-1.2.0 These have been around for a year or more now and fix many problems. - All packages - Extensive tidying of options handling with a new data structure. Old format options files will be read as before but project options will be saved in the new hierarchically nested structure. - The options handling and diagnostics utilities have been moved to Glade::PerlRun so that you can use them in your own apps. - PerlUI - some variables updated for Gtk-Perl-0.7004 and later. - Some changes to generated comments and source code. - glade2perl - removed redundant 'use English' call New, more meaningful 'set_by' value and New (2nd) arg to specify verbosity in glade2perl call eg. 'glade2perl Project.glade 2' Simplified usage so that a separate Glade::PerlGenerate->options() call is not needed and the options can be specified to Form_from_File() Also, undefined glade_filename causes most recently used file stored in your user options file to run. - PerlRun->reload_any_altered_modules() is a new sub for app testing to reload any modules that have been edited. This idea is from Stas Bekman and gives you the ability to edit and reload any signal handlers and support modules without closing down the app and restarting it. This is not possible if you regenerate the UI module and reload it. Your app will crash in flames if you try this. Simply call '__PACKAGE__->reload_any_altered_modules;' in a handler for any widget/signal you like (I usually use a Refresh button). - PerlGenerate->Form_from_Glade_File() amended to call two new subs parse_form() and build_form() to allow use in future Glade::Helper app. - PerlGenerate->about_Form() fixed to use proper pixmap option - PerlGenerate->Form_from_Proto() now only generates subclass for simple AUTOLOAD style runs. - PerlRun->load_translations() amended to look for .mo files in several possible places if a catalog path is not specified. - An extra form element is now returned from generated UI constructor so that you can call $form->{'TOPLEVEL'} in any signal handler to get a toplevel form widget - ie. use $form->{'TOPLEVEL'}->get_filename() to get the file name entered in a fileselection dialog from the 'on_ok_button_clicked' signal handler. - PerlUI->my_gtk_perl_can_do() now also checks for particular versions that are known to be flawed in certain ways. - FAQ split into 3 files - all old FAQs are available on the website. FAQ - Frequently asked questions (general) FAQ.i18n - FAQs relating to internationalisation (I18N) issues. FAQ.old - FAQs relating to old/flawed software versions - PerlSource->perl_about() generates `gnome-config --version` call in Gnome about_Form() sub in App/SubApp. If the gnome-libs-devel RPM is not installed the gnome-libs version number will not be reported. - PerlSource now generates lines in app_run to load translations. - Glade-Perl.spec file based on one from George, the mp3 organiser. This one works I think and allows RPM builds from the tarball by calling eg. 'rpm -ta Glade-Perl-0.58.tar.gz'. - PerlUI->new_accelerator() - accelerator key now defaults to ''. PerlUIExtra->new_GtkPixmapMenuItem() also defaults key to '' PerlProject->use_Glade_Project() now escapes double quotes in author. Thanks for bug reports for the above reports to Joe "Markus" Clark. ------------------------------------------------------------ From Valdis.Kletnieks@vt.edu Thu Jun 21 10:13:32 2001 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 B0AD62C89A for ; Thu, 21 Jun 2001 10:13:32 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5LEDVg15478; Thu, 21 Jun 2001 10:13:31 -0400 Message-Id: <200106211413.f5LEDVg15478@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: netlu@visto.com Cc: gtk-list@gnome.org Subject: Re: memory map io function In-Reply-To: Your message of "Wed, 20 Jun 2001 10:59:43 PDT." <20010620175953.D16CD2BACE@mail.gnome.org> 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_1738061022P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 21 Jun 2001 10:13:30 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1738061022P Content-Type: text/plain; charset=us-ascii On Wed, 20 Jun 2001 10:59:43 PDT, Louis Lu said: > Hi: > > I just wondering whether or not anyone who has the experiences on memory map io function before? > > My code is as following: > int *base; > unsigned int fd; > fd = open("dev/mem", O_RDWR); > base = mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800000); Note that 0x80000 and 0xd8000000 are *VIRTUAL* addresses. This *WILL* screw you to the wall. Also, you're missing a MAP_FIXED - Very Bad Juju will result. Also, you're confusing two meanings of "memory mapped". The 'mmap()' system call creates a mapping between *virtual addresses* that possibly belong to different processes. Memory Mapped I/O means "instead of using an IN or OUT opcode to write data to/from an I/O port, the device is set up to look like memory. So storing to a specific memory location becomes an OUTput, and reading it becomes an INput, and so on". This is an Incredibly Bad Thing to do from user-land - in particular, you're quite likely to get hosed by virtual/physical address mapping (hint - what happens if the virtual page gets paged out? You didn't lock it anyplace ;), and a whole host of other things that can go wrong. The Better Way to implement this would be with a device driver - you would open /dev/yourdev, and issue read() and write() and ioctl() as needed. Inside the kernel, the (for example) write() call would go into the device driver, which would then check the buffer location/size, sanity-check all the other paramaters to write(), lock the pages in memory so the VM manager doesn't move them around, set an internal lock so other read()/write() to that device block until this operation finishes, and then finally move data from the user buffer to the I/O address(es). Depending on the hardware design, you may be able to get away with an strcpy() (if the card provides address space for an entire buffer) or you may need a loop like this: char *dest = (char *) 0x800ffff; /* or whatever address */ for (i=buflen;i;i--) *dest = *userbuf++; /* *NO* ++ on dest */ Many such cards have restrictions that you have to write only bytes, or only 4/8/16 bytes at a time, or that writes have to be aligned, etc. Your device driver will also have to deal with error conditions, the existence of read-only and write-only status/control bits, and so on. I won't get into issues like cache coherency (what happens when the data that's in the memory-mapped I/O card doesn't match what your CPU has in its L1/L2 cache), how to make it work right on a SMP system, and so on. You may wish to ask the card vendor if they have a device driver for your system already.... -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_1738061022P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzIBCnAt5Vm009ewEQLAtgCePd0O3JYjwRTalZ2Z61V79PH9iuwAoNTV CkDJVZPgDtzFhrESQKx/o0UD =NTzH -----END PGP SIGNATURE----- --==_Exmh_1738061022P-- From topper@virginia.edu Thu Jun 21 18:34:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id D60442BEF2 for ; Thu, 21 Jun 2001 18:34:33 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab00554; 21 Jun 2001 18:34 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id SAA22362; Thu, 21 Jun 2001 18:34:32 -0400 (EDT) Message-ID: <3B32755F.4D700ACA@virginia.edu> Date: Thu, 21 Jun 2001 18:29:51 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > "David J. Topper" writes: > > > > I mean a window, they are GtkWindows, not popups. I'm using them to get > > parameters for items created on the fly (eg., length, width, height) and > > I don't want the "windows" to drop in back when I accidentally move the > > mouse off them. > > > > I don't understand why they're moving to the back - is your window > manager using focus-follows-mouse and raise-on-focus? Exactly right. This is a problem in other applications too. But I've seen some get around it (eg., KDEs desktop background color selector). It at least won't drop behind the calling application. Something like that would be fine ... but I'm not sure how to do it. Maybe a callback for the window in question ... to check if it's raised or lowered ... or of that status has changed? Then just always raise it? I'm guessing here. DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From topper@virginia.edu Thu Jun 21 19:39:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id ADA482CC04 for ; Thu, 21 Jun 2001 19:39:47 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa15818; 21 Jun 2001 19:39 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA04840 for ; Thu, 21 Jun 2001 19:39:46 -0400 (EDT) Message-ID: <3B3284A8.1133DCE3@virginia.edu> Date: Thu, 21 Jun 2001 19:35:05 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Signal help needed (gtk_signal_new?) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I've gotten some feedback on this, but still need help. From what I gather, signals are specific to types. So a gtk adjustment, for example, has two signals associated with it: "changed" and "value changed". Fine. I've been looking for another kind of signal, perhaps rarely used, or something I surely won't use in my program. The best name I can think of for it is "activate." I bascially want to trigger signals from one adjustment, to a tree of connected adjustments. But I can find no such signal. So I thought I'd hack up a new one, just getting all the relevant info as follows: for (i=1;i<128;i++) { sig_info = gtk_signal_query(i); if (strcmp(sig_info->signal_name, "changed") == 0) { /* I'd insert mine here */ continue; } } since I was unable to find a GtkType for an adjustment, and hence unable to use gtk_signal_lookup(). But even if I capture the relevant info for "changed" I can't use it to create a new signal. The arguments for gtk_signal_new() are elusive to me. I'd basically like to create something very similar to the "value_changed" and "changed" signals, named "activate." It would be the equivalent of a pulse that gets sent whenever the value changes from 0-1 or 1-0. Thanks, DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From hp@redhat.com Thu Jun 21 21:51:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 345402BA85 for ; Thu, 21 Jun 2001 21:51:11 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5M1pFB28323; Thu, 21 Jun 2001 21:51:15 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> <3B32755F.4D700ACA@virginia.edu> From: Havoc Pennington Date: 21 Jun 2001 21:51:15 -0400 In-Reply-To: "David J. Topper"'s message of "Thu, 21 Jun 2001 18:29:51 -0400" Message-ID: Lines: 29 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > I don't understand why they're moving to the back - is your window > > manager using focus-follows-mouse and raise-on-focus? > > Exactly right. This is a problem in other applications too. But I've seen > some get around it (eg., KDEs desktop background color selector). It at > least won't drop behind the calling application. Something like that would > be fine ... but I'm not sure how to do it. Perhaps they set the TRANSIENT_FOR hint (gtk_window_set_transient_for()), many WM's will keep transients on top of their parents. > Maybe a callback for the window in question ... to check if it's raised or > lowered ... or of that status has changed? Then just always raise > it? That would produce a nice flicker effect, and maybe even an infinite loop as you fought with the window manager. ;-) You generally don't want to get into "try to undo what the WM is doing" mode, better to just rethink the GUI or live with the problem or something. My opinion is that the focus-follows-mouse/raise-on-focus combination is a somewhat broken window management policy, but I'm sure reasonable people will disagree. Havoc From jean-michel.rouet@philips.com Fri Jun 22 08:03:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gw-nl4.philips.com (gw-nl4.philips.com [212.153.190.6]) by mail.gnome.org (Postfix) with ESMTP id 0A57D2D61F for ; Fri, 22 Jun 2001 08:03:27 -0400 (EDT) Received: from smtpscan-nl3.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl4.philips.com with ESMTP id OAA12092 for ; Fri, 22 Jun 2001 14:03:20 +0200 (MEST) (envelope-from jean-michel.rouet@philips.com) From: jean-michel.rouet@philips.com Received: from smtpscan-nl3.philips.com(130.139.36.23) by gw-nl4.philips.com via mwrap (4.0a) id xma012086; Fri, 22 Jun 01 14:03:20 +0200 Received: from smtprelay-nl1.philips.com (localhost [127.0.0.1]) by smtpscan-nl3.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA10990 for ; Fri, 22 Jun 2001 14:03:17 +0200 (MET DST) Received: from notessmtp-nl1.philips.com (notessmtp-nl1.philips.com [130.139.36.10]) by smtprelay-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA12296 for ; Fri, 22 Jun 2001 14:03:15 +0200 (MET DST) Received: from EMLMS01.DIAMOND.PHILIPS.COM (emlms01sv1.diamond.philips.com [130.143.165.213]) by notessmtp-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA26383 for ; Fri, 22 Jun 2001 14:02:44 +0200 (MET DST) Received: by EMLMS01.DIAMOND.PHILIPS.COM (Soft-Switch LMS 4.0) with snapi via EMEA1 id 0056900018720401; Fri, 22 Jun 2001 14:16:38 +0200 To: Subject: Graph data structures Message-ID: <0056900018720401000002L012*@MHS> Date: Fri, 22 Jun 2001 14:16:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="MEMO 06/22/01 13:35:58" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear gtk-list :-) Although I've been looking through google and also over this mailing list archive, I've not found what I was looking for. My question is: is there anywhere a free and efficient graph data structure handling library that I can use in plain C. I thought that glib was the answer, but unfortunately it seems to only provide a support for trees (binary and n-way) but not for graphs. Is there an ongoing project in glib to add this kind of data type ? Does any body know an other free library that might provide such a data= type ? JM --=20 Jean-Michel Rouet (PhD) | Tel : +33 147 28 36 13 Philips Research LEP | Fax : +33 147 28 36 05 51, rue Carnot | email : Jean-Michel.Rouet@philips= .com BP 301 - 92156 Suresnes Cedex = From skip@beluga.mojam.com Fri Jun 22 13:38:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 376F92E318 for ; Fri, 22 Jun 2001 13:38:01 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MHato25605; Fri, 22 Jun 2001 12:36:55 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.33329.825838.235400@beluga.mojam.com> Date: Fri, 22 Jun 2001 12:36:49 -0500 To: gtk-list@gnome.org Subject: The g_object_{set,get} class of functions seem strange X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: In trying to figure out how I can get a list of property names for an object, I came across the g_object_set and g_object_get functions and their _valist versions. Their signatures seem rather bizarre to me. The get functions are declared to return void while the set functions are declared to return a gpointer. How does g_object_get return values to its caller (g_object_get_valist does something weird with its var_args argument)? Why doesn't it just allocate an array of gpointers and return them? Why does g_object_set need to return its first argument to its caller? -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Fri Jun 22 14:08:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 867B22BBA9 for ; Fri, 22 Jun 2001 14:08:43 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MI8cD30052; Fri, 22 Jun 2001 14:08:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: The g_object_{set,get} class of functions seem strange References: <15155.33329.825838.235400@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 14:08:38 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 12:36:49 -0500" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > In trying to figure out how I can get a list of property names for an > object, I came across the g_object_set and g_object_get functions and their > _valist versions. Their signatures seem rather bizarre to me. The get > functions are declared to return void while the set functions are declared > to return a gpointer. How does g_object_get return values to its caller > (g_object_get_valist does something weird with its var_args argument)? Why > doesn't it just allocate an array of gpointers and return them? Why does > g_object_set need to return its first argument to its caller? > The return value is a conspiracy by Tim to confuse people. ;-) Well, it is to support some kind of bizarre coding style: g_object_set (object, "child_object", g_object_set (object2, "foo", 10, NULL), NULL); Basically my recommendation is to pretend it returns void. g_object_get() works like this, say "foo" is an integer property: int val; g_object_get (object, "foo", &val, NULL); To get a list of properties that exist for an object you'd use something like g_object_class_list_properties(). Havoc From skip@beluga.mojam.com Fri Jun 22 14:28:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id BDA7F2BC8C for ; Fri, 22 Jun 2001 14:28:33 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MIR6C01085; Fri, 22 Jun 2001 13:27:06 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.36344.42598.420023@beluga.mojam.com> Date: Fri, 22 Jun 2001 13:27:04 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: The g_object_{set,get} class of functions seem strange In-Reply-To: References: <15155.33329.825838.235400@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc, Thanks for the explanation of the get/set oddities. You also wrote: Havoc> To get a list of properties that exist for an object you'd use Havoc> something like g_object_class_list_properties(). Thanks for the pointer. I imagine that will do the trick. It must be a brand new function. I had to "cvs up" to find it. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From weigelt@metux.de Fri Jun 22 15:03:44 2001 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 0F4312E2CE for ; Fri, 22 Jun 2001 15:03:42 -0400 (EDT) Received: from nibiru.oberonhq.net (nibiru.oberonhq.net [194.122.210.42]) by annwfn.erfurt.thur.de (8.11.4/8.10.1) with ESMTP id f5MJ39V27424 for ; Fri, 22 Jun 2001 21:03:10 +0200 Received: from metux.de (oberonhq@localhost [127.0.0.1]) by nibiru.oberonhq.net (8.9.3/8.9.3) with ESMTP id VAA08533 for ; Fri, 22 Jun 2001 21:03:08 +0200 Message-ID: <3B33966B.56E8E790@metux.de> Date: Fri, 22 Jun 2001 21:03:07 +0200 From: Enrico Weigelt Reply-To: weigelt@nibiru.thur.de Organization: meTUX IT services X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.4.0 i686) X-Accept-Language: en, de-DE MIME-Version: 1.0 To: GTK Mailing List Subject: garbage collection 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: has anyone thought about integrating an garbage collector in glib/gtk ? this would reduce the chance of broken pointers and wasted memory dramatically. ~-n _____________________________________ meTUX IT + Communication Services Enrico Weigelt www: www.metux.de email: weigelt@metux.de phone: +49 36207 51833 cellphone: +49 174 7066481 _____________________________________ From Valdis.Kletnieks@vt.edu Fri Jun 22 15:14:02 2001 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 C75302BD90 for ; Fri, 22 Jun 2001 15:14:01 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5MJDrg29837; Fri, 22 Jun 2001 15:13:53 -0400 Message-Id: <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: weigelt@nibiru.thur.de Cc: GTK Mailing List Subject: Re: garbage collection In-Reply-To: Your message of "Fri, 22 Jun 2001 21:03:07 +0200." <3B33966B.56E8E790@metux.de> 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_-1931908673P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 22 Jun 2001 15:13:53 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1931908673P Content-Type: text/plain; charset=us-ascii On Fri, 22 Jun 2001 21:03:07 +0200, Enrico Weigelt said: > has anyone thought about integrating an garbage collector > in glib/gtk ? Has anybody thought about the difficulties of implementing a garbage collector for C, when the user is free to do malloc()/free() and alias pointers to each other when the GC code isn't in control? > this would reduce the chance of broken pointers and wasted > memory dramatically. Not really. Remember that memory would *STILL* get wasted even with a garbage collector, if there isn't something imposing rules. If the programmer doesn't call free(), the memory won't get freed with a garbage collector, because there will still be a reference (the pointer that wasn't free()ed). Garbage collectors, in general, really blow major chunks unless you're coding in a Lisp or Java type language where it's *ENFORCED*. But that wouldn't be C/C++. -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-1931908673P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzOY8XAt5Vm009ewEQKsfgCgjo5QxPhCEtAxe+JYUmxV4bi9trkAn1rL IkVScosrNV5LJdZctXk/VFxp =/tID -----END PGP SIGNATURE----- --==_Exmh_-1931908673P-- From king@eiffel.com Fri Jun 22 15:18:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 15B0E2DFCA for ; Fri, 22 Jun 2001 15:18:56 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15DWSE-0002k8-00 for gtk-list@gnome.org; Fri, 22 Jun 2001 12:18:54 -0700 Message-ID: <085001c0fb50$58c3b430$750a000a@naples> From: "Ian King" To: Subject: Prelight problems Date: Fri, 22 Jun 2001 12:20:06 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone else have prelight problems on buttons with no relief set? It seems that in some circumstances they do not function correctly an d buttons are lit when the mouse is nowhere near the widget itself. Does anyone know of a fix for this? Thanks for your time Ian King From otaylor@redhat.com Fri Jun 22 15:23:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id F2A0B2E29C for ; Fri, 22 Jun 2001 15:23:20 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id D367124231A; Fri, 22 Jun 2001 15:23:19 -0400 (EDT) To: weigelt@nibiru.thur.de Cc: GTK Mailing List Subject: Re: garbage collection References: <3B33966B.56E8E790@metux.de> From: Owen Taylor Date: 22 Jun 2001 15:23:19 -0400 In-Reply-To: Enrico Weigelt's message of "Fri, 22 Jun 2001 21:03:07 +0200" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Enrico Weigelt writes: > has anyone thought about integrating an garbage collector > in glib/gtk ? > > this would reduce the chance of broken pointers and wasted > memory dramatically. Yes, its been discussed. If you hunt through the gtk-devel-list archives, you'll find a post from Havoc Pennington where he discusses some experiments he made using the Boehm GC. The trouble with depending on a garbage collector is one of integrating with other software which doesn't use a garbage collector, or uses an incompatible garbage collector. For that reason, it's not practical at the present time to depend on one for GTK+. Regards, Owen From skip@beluga.mojam.com Fri Jun 22 15:54:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id DA2372BAE9 for ; Fri, 22 Jun 2001 15:54:20 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MJqoD17173; Fri, 22 Jun 2001 14:52:50 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.41490.155957.939096@beluga.mojam.com> Date: Fri, 22 Jun 2001 14:52:50 -0500 To: Valdis.Kletnieks@vt.edu Cc: weigelt@nibiru.thur.de, GTK Mailing List Subject: Re: garbage collection In-Reply-To: <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> References: <3B33966B.56E8E790@metux.de> <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Valdis> Not really. Remember that memory would *STILL* get wasted even Valdis> with a garbage collector, if there isn't something imposing Valdis> rules. If the programmer doesn't call free(), the memory won't Valdis> get freed with a garbage collector, because there will still be Valdis> a reference (the pointer that wasn't free()ed). On the other hand, coupling garbage collection of containers with the current reference counting scheme might make sense if it can be pulled off. Python is reference counted. In 2.0 a garbage collector was added to reclaim circular garbage. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From iain@trna.ximian.com Fri Jun 22 16:18:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id 738B72BAFB for ; Fri, 22 Jun 2001 16:18:50 -0400 (EDT) Received: from localhost (iain@localhost) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id QAA17248; Fri, 22 Jun 2001 16:18:01 -0400 Date: Fri, 22 Jun 2001 16:18:00 -0400 (EDT) From: Iain Holmes To: raphi2 raph Cc: gtk-list@gnome.org, otaylor@redhat.com Subject: Re: GTK / SDL bis In-Reply-To: <992901282019158@caramail.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > In fact I would like to "include" a little SDL window in a > big GTK window. (by example to be able to play movies in my > GTK application) Okay, you can do it with the hack below, but you have to do the putenv hack *before* you call SDL_Init. Also from what I understood about SDL you can only have one window per process, at least only one window embedded in a GTK window as the putenv hack is global.=20 I dunno if it's possible with threads to get more than one SDL window into a GTK one, but it's possibly the ugliest hack I've seen yet. Plus when you start trying to do this stuff with bonobo controls, then you have fun about waiting for windows to be realised before calling sdlinit. iain >=20 >=20 >=20 > I tried to resolve my problem with your advices :) but I > have still problems. here is the part of my program with > problems: >=20 >=20 > SDL_Thread *thread; > GtkWidget=09*drawing_area; > Window=09xwin; >=20 > gtk_sess *sess =3D (gtk_sess *)data; >=20 > sess->new =3D gtk_window_new(GTK_WINDOW_TOPLEVEL); > gtk_widget_set_usize(sess->new, 460, 500); > // gtk_widget_show (sess->new); >=20 > sess->fixed =3D gtk_fixed_new(); > gtk_widget_ref (sess->fixed); > gtk_widget_show (sess->fixed); > gtk_container_add(GTK_CONTAINER(sess->new), sess->fixed); >=20 > drawing_area =3D gtk_drawing_area_new(); > gtk_widget_set_usize(drawing_area, 100, 100); > gtk_fixed_put(GTK_FIXED(sess->fixed), drawing_area, 400, > 400); > gtk_widget_realize(drawing_area); > gtk_widget_show(drawing_area); >=20 >=20 > { char SDL_windowhack[32]; > sprintf(SDL_windowhack,"SDL_WINDOWID=3D-543170384", > =09 GDK_WINDOW_XWINDOW(drawing_area->window)); > putenv(SDL_windowhack); > } >=20 > screen =3D SDL_SetVideoMode(100, 100, 0, 0); > thread =3D SDL_CreateThread(play_film, sess); > if (thread =3D=3D NULL) > printf("Probleme avec la thread\n"); > // gtk_timeout_add(5, animation, sess); >=20 >=20 > I do the SDL_Init before this in an init function. >=20 > Do you see something wrong in this code ? >=20 > Thanks a lot for help >=20 > Raph > _________________________________________________________ > Le journal des abonn=E9s Caramail - http://www.carazine.com >=20 >=20 From jurkech@shadow.sk Fri Jun 22 16:26:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from main.alternet.sk (gts-gw.alternet.sk [62.168.107.43]) by mail.gnome.org (Postfix) with ESMTP id 77A622CA07 for ; Fri, 22 Jun 2001 16:26:05 -0400 (EDT) Received: from shadow.sk (roman@jurkech.alternet.sk [194.145.136.133]) by main.alternet.sk (8.9.3/8.9.3) with ESMTP id WAA03658 for ; Fri, 22 Jun 2001 22:26:02 +0200 Message-ID: <3B33A9F6.998293EC@shadow.sk> Date: Fri, 22 Jun 2001 22:26:30 +0200 From: jurkech@shadow.sk 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: Custom font when locale is not iso-8859-1 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i found a strange behavior of gtk when using locale settings for a non iso-8859-1 language. In my case I specify LC_CTYPE=sk_SK so I'm able to use Slovak keyboard. But when I do this, gtk will read /etc/gtk/gtkrc.sk which is linked to /etc/gtk/gtkrc.iso-8859-2. This contains specifications for fonts to use. But whatever font is set in $HOME/.gtkrc it will not be used at all. I'm not sure if this is meant to be this way but I hope not. I think the system should be working like this: First of all gtk should be concerned with LC_MESSAGES only! Any other LC_XXX settings are not important because they have no connection with fonts that gtk uses. In my case I have only LC_CTYPE secified cuz I just need to use Slovak keyboard but everything else I expect in English. Still, gtk will go for /etc/gtkrc.sk for no real reason. If LC_MESSAGES is set to a non iso-8859-1 setting then gtk will verify that custom font specified by user is of the same charset. If it's not then gtk would try to get the same font with the required charset. And only if this fails it would use the font specified in /etc/gtkrc.xy Roman From skip@beluga.mojam.com Fri Jun 22 16:43:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 35FEC2BDF1 for ; Fri, 22 Jun 2001 16:43:52 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MKh5721603; Fri, 22 Jun 2001 15:43:06 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.44504.705944.498691@beluga.mojam.com> Date: Fri, 22 Jun 2001 15:43:04 -0500 To: gtk-list@gnome.org Subject: autogen.sh not expanding some variables X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After running autogen.sh on the gtk+ cvs source, I am left with a top-level Makefile containing the following unexpanded variables: host_alias = @host_alias@ AS = @AS@ DLLTOOL = @DLLTOOL@ GENCAT = @GENCAT@ GT_NO = @GT_NO@ GT_YES = @GT_YES@ INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@ OBJDUMP = @OBJDUMP@ l = @l@ When I try to make, I get an error message about not being able to find @AS@. I zapped all my files and updated from CVS again, but encounter the same problem. Autogen.sh's output is not perfectly clean, but I have no clue what the problem might be. Its output is: I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. autoheader: error: shell error while sourcing /tmp/ahR6lLVI/traces.sh configure.in: 89: required file `./config.h.in' not found demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_BEGIN@' demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_END@' tests/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/faq/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/tutorial/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gdk-pixbuf/Makefile.am:94: libpixbufloader_xbm_la_LDFLAGS multiply defined in condition TRUE libpixbufloader_xbm_la_LDFLAGS (User, where = 94) = { TRUE => -version-info 1:0:0 -module } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_FALSE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { TRUE => $(builtin_objs) } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_TRUE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { BUILD_DYNAMIC_MODULES_FALSE TRUE => pixops/libpixops.la TRUE => $(builtin_objs) } automake: gdk-pixbuf/pixops/Makefile.am: Assembler source seen but `ASFLAGS' not defined in `configure.in' gdk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gdk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gtk/Makefile.am: CLEANFILES must be set with `=' before using `+=' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/stock-icons/Makefile.am: CLEANFILES must be set with `=' before using `+=' configure.in:25: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:97: warning: AC_CANONICAL_HOST invoked multiple times configure.in:101: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:158: warning: AC_COMPILE_IFELSE was called before AC_ISC_POSIX ... bunch of configure messages elided ... configure: creating ./config.status ... bunch of config.status messages elided ... config.status: error: cannot find input file: config.h.in Now type 'make' to compile Gtk+. I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. Any ideas what my problem is? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From celston@corky.sapien.net Fri Jun 22 16:59:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from corky.sapien.net (corky.sapien.net [208.224.15.95]) by mail.gnome.org (Postfix) with ESMTP id 8A7662BCB2 for ; Fri, 22 Jun 2001 16:59:02 -0400 (EDT) Received: from localhost (celston@localhost) by corky.sapien.net (8.11.2/8.11.2) with ESMTP id f5MKx1W32666 for ; Fri, 22 Jun 2001 16:59:01 -0400 Date: Fri, 22 Jun 2001 16:59:01 -0400 (EDT) From: Chris Elston To: Subject: First post with a Question... 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, my name is Chris. This is my first post to this list so be gentle. :) I'm working with Gtk-Perl but I'm pretty sure this idea applies to all versions of Gtk. I'm trying to design a GTree stucture so that if I right click a tree item, a menu comes up. I'm able to get the menu to come up easy, but the problem is that Gtk (at least in perl) has mapped the middle mouse button to expanding subtrees and the right to collapsing them. I want to be able to turn off this added "feature" so that when a subtree is right clicked, only my menu comes up. Any suggestions? -- Chris Elston celston@corky.sapien.net --------------------------------- Nucleus Communications Web Script Programmer From hp@redhat.com Fri Jun 22 17:31:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1FA5E2BB2D for ; Fri, 22 Jun 2001 17:31:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MLV7N14107; Fri, 22 Jun 2001 17:31:07 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables References: <15155.44504.705944.498691@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 17:31:07 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 15:43:04 -0500" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > After running autogen.sh on the gtk+ cvs source, I am left with a top-level > Makefile containing the following unexpanded variables: > Are you using some weird CVS automake/autoconf? Havoc From skip@beluga.mojam.com Fri Jun 22 17:56:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id D238B2BB2D for ; Fri, 22 Jun 2001 17:56:11 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MLtr822007; Fri, 22 Jun 2001 16:55:53 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.48873.299898.869595@beluga.mojam.com> Date: Fri, 22 Jun 2001 16:55:53 -0500 To: Havoc Pennington Cc: skip@pobox.com (Skip Montanaro), gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables In-Reply-To: References: <15155.44504.705944.498691@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> After running autogen.sh on the gtk+ cvs source, I am left with a >> top-level Makefile containing the following unexpanded variables: Havoc> Are you using some weird CVS automake/autoconf? Not that I'm aware of. As I mentioned: I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. Looking at the names in "cvs log README" for automake, I don't see anything "Release-1-4g", however, so maybe I am. I'll try using "Release-1-4-p1", which I've seen mentioned places. *sigh* Skip From hp@redhat.com Fri Jun 22 18:06:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 476DF2DB54 for ; Fri, 22 Jun 2001 18:06:36 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MM6c714122; Fri, 22 Jun 2001 18:06:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables References: <15155.44504.705944.498691@beluga.mojam.com> <15155.48873.299898.869595@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 18:06:37 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 16:55:53 -0500" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > >> After running autogen.sh on the gtk+ cvs source, I am left with a > >> top-level Makefile containing the following unexpanded variables: > > Havoc> Are you using some weird CVS automake/autoconf? > > Not that I'm aware of. As I mentioned: > > I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. > > Looking at the names in "cvs log README" for automake, I don't see anything > "Release-1-4g", however, so maybe I am. I'll try using "Release-1-4-p1", > which I've seen mentioned places. > Yep, you're using weird CVS stuff. Not expected to work. ;-) Havoc From skip@beluga.mojam.com Fri Jun 22 18:20:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 9D3F82DB8B for ; Fri, 22 Jun 2001 18:20:53 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MMKYG03936; Fri, 22 Jun 2001 17:20:34 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.50350.415823.279988@beluga.mojam.com> Date: Fri, 22 Jun 2001 17:20:30 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables In-Reply-To: References: <15155.44504.705944.498691@beluga.mojam.com> <15155.48873.299898.869595@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc> Yep, you're using weird CVS stuff. Not expected to work. ;-) I have the damndest time trying to keep all these build tools straight. Would someone please send me (off-list) the version numbers of automake, autoconf and libtool they are using to build the current CVS gtk/glib stuff? Thx, Skip From netlu@visto.com Fri Jun 22 22:30:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from qmail1.visto.com (unknown [209.185.20.131]) by mail.gnome.org (Postfix) with SMTP id 834892BBC0 for ; Fri, 22 Jun 2001 22:30:57 -0400 (EDT) Received: (qmail 4340 invoked by alias); Received: from unknown (HELO mps3) (206.79.140.175) by 0 with SMTP; 22 Jun 2001 19:30:44 -0700 Reply-To: netlu@visto.com From: "Louis Lu" Subject: font size change on buttons Date: Fri, 22 Jun 2001 19:27:42 -0700 X-Mailer: Visto To: gtk-list@gnome.org MIME-Version: 1.0 X-Mailer: Visto Server Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <20010623023057.834892BBC0@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi: I created a dialog box with 4 push buttons on it and I would like the label (on the button)to have a bigger font=20 size. Could any one tell me how to do this in my program? Thanks for your help and time. Louis _________________________________________________________________________= __ Visit http://www.visto.com/info, your free web-based communications cente= r. Visto.com. Life on the Dot. From reinhard.mueller@bytewise.at Thu Jun 21 18:37:30 2001 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 DC0C02E213 for ; Thu, 21 Jun 2001 18:37:29 -0400 (EDT) Received: (qmail 12570 invoked from network); 21 Jun 2001 22:37:28 -0000 Received: from n802p023.adsl.highway.telekom.at (HELO bytewise.at) ([62.47.44.55]) (envelope-sender ) by qmail2.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 21 Jun 2001 22:37:28 -0000 Message-ID: <3B32797C.4080207@bytewise.at> Date: Fri, 22 Jun 2001 00:47:24 +0200 From: Reinhard Mueller Organization: GNU Enterprise User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: de, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Logging functions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, is there a reason why there are the functions g_error g_critical g_warning g_message but not g_info g_debug ? Something like #define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) #ifdef G_DEBUG #define g_debug(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) #else #define g_debug(...) #endif could be helpful. Just an idea. :) -- Reinhard Mueller GNU Enterprise project http://www.gnue.org From S.Geerken@ping.de Sat Jun 23 10:38:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lilly.ping.de (lilly.ping.de [62.72.90.2]) by mail.gnome.org (Postfix) with SMTP id 635BA2D00B for ; Sat, 23 Jun 2001 10:38:56 -0400 (EDT) Received: (qmail 30863 invoked from network); 23 Jun 2001 14:38:53 -0000 Received: (ofmipd 62.72.92.20); 23 Jun 2001 14:38:31 -0000 Received: by sg.local via sendmail from stdin id (Debian Smail3.2.0.102) for gtk-list@gnome.org; Sat, 23 Jun 2001 16:43:38 +0200 (CEST) Date: 23 Jun 2001 16:43:38 +0200 Message-ID: <20010623164338.A2551@sg.local> From: "Sebastian Geerken" Mail-Followup-To: "Sebastian Geerken" , gtk-list@gnome.org To: gtk-list@gnome.org Subject: long menus 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, are there plans, or already implementations (I haven't looked yet at 1.3) on how to let the user control large menus which don't fit on the screen, e.g. by scrolling? Or does this depend on themes? I'm currently using a workaround, connecting the "select" signal of all menu items to this (unfinished) function: void justify_menu_item (GtkWidget *widget) { int y, h, mx, my, sh; y = widget->allocation.y; h = widget->allocation.height; gdk_window_get_geometry (widget->parent->parent->window, &mx, &my, NULL, NULL, NULL); sh = gdk_screen_height (); if (y + my < 0) gdk_window_move (widget->parent->parent->window, mx, - y + 1); else if (y + my > sh - h) gdk_window_move (widget->parent->parent->window, mx, sh - h - y - 1); } It works for me, but is really a bit hackish. Are there pitfalls why it may not work under certain circumstances? Sebastian From otaylor@redhat.com Sat Jun 23 10:59:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 3796D2BB3D for ; Sat, 23 Jun 2001 10:59:30 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 61F54242319; Sat, 23 Jun 2001 10:59:26 -0400 (EDT) To: "Sebastian Geerken" Cc: gtk-list@gnome.org Subject: Re: long menus References: <20010623164338.A2551@sg.local> From: Owen Taylor Date: 23 Jun 2001 10:59:26 -0400 In-Reply-To: "Sebastian Geerken"'s message of "23 Jun 2001 16:43:38 +0200" Message-ID: Lines: 40 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Sebastian Geerken" writes: > Hi, > > are there plans, or already implementations (I haven't looked yet at > 1.3) on how to let the user control large menus which don't fit on the > screen, e.g. by scrolling? Yes, scrolling menus hav been added in GTK+-1.3 Or does this depend on themes? I'm > currently using a workaround, connecting the "select" signal of all > menu items to this (unfinished) function: > > void justify_menu_item (GtkWidget *widget) > { > int y, h, mx, my, sh; > > y = widget->allocation.y; > h = widget->allocation.height; > gdk_window_get_geometry (widget->parent->parent->window, > &mx, &my, NULL, NULL, NULL); > sh = gdk_screen_height (); > > if (y + my < 0) > gdk_window_move (widget->parent->parent->window, mx, - y + 1); > else if (y + my > sh - h) > gdk_window_move (widget->parent->parent->window, mx, sh - h - y - 1); > } > > It works for me, but is really a bit hackish. Are there pitfalls why > it may not work under certain circumstances? You can find a workaround hack in the GNOME panel - I don't know how general it is. Other people have used netscape-bookmarks style continuation submenus. Regards, Owen From daniel.elstner@gmx.net Sat Jun 23 13:14:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by mail.gnome.org (Postfix) with SMTP id 0B62E2BA98 for ; Sat, 23 Jun 2001 13:14:45 -0400 (EDT) Received: (qmail 14006 invoked by uid 0); 23 Jun 2001 17:14:39 -0000 Received: from 217-9-43-124.lsd.berlikomm.net (HELO server.daniel.homenet) (217.9.43.124) by mail.gmx.net (mail06) with SMTP; 23 Jun 2001 17:14:39 -0000 Received: from master.daniel.homenet (master.daniel.homenet [192.168.1.1]) by server.daniel.homenet (8.9.3/8.9.3) with ESMTP id TAA13619 for ; Sat, 23 Jun 2001 19:11:17 +0200 Received: from master (localhost [127.0.0.1]) by master.daniel.homenet (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with SMTP id f5NHFo029704 for ; Sat, 23 Jun 2001 19:15:51 +0200 X-Authentication-Warning: master.daniel.homenet: Host localhost [127.0.0.1] claimed to be master Date: Sat, 23 Jun 2001 19:15:50 +0200 From: Daniel Elstner To: gtk-list@gnome.org Subject: [PATCH] glib.h + gcc-3.0 + -pedantic Message-Id: <20010623191550.67f9183e.daniel@master.daniel.homenet> X-Mailer: Sylpheed version 0.5.0pre1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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. --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, gcc 3.0 gives me a bunch of annoying warnings when compiling with the -pedantic option, because there are several macros (e.g. g_error) which are either too new (c99) or GNU extensions. I cannot compile with -std=c99 since that doesn't work with C++. With the attached patch (for glib-1.2.10) things are fine (at least for me). The changes are a check for __STRICT_ANSI__ triggering fallback to the function implementations, and an extra check for __GNUC__ detecting wether inlining va_arg functions is possible. It compiles fine with `g++ -ansi -pedantic -O2 -W -Wall -Winline'. Is the patch ok for you to apply? Regards, --Daniel --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88 Content-Type: application/octet-stream; name="glib.h.patch" Content-Disposition: attachment; filename="glib.h.patch" Content-Transfer-Encoding: base64 LS0tIGdsaWIuaC5vcmlnCVN1biBKdW4gMTcgMTg6Mzg6MjAgMjAwMQorKysgZ2xpYi5oCVNhdCBK dW4gMjMgMTg6MDU6MjMgMjAwMQpAQCAtMTMwNCw3ICsxMzA0LDcgQEAKICNkZWZpbmUJZ193YXJu aW5nKC4uLikJZ19sb2cgKEdfTE9HX0RPTUFJTiwgICAgICAgICBcCiAJCQkgICAgICAgR19MT0df TEVWRUxfV0FSTklORywgIFwKIAkJCSAgICAgICBfX1ZBX0FSR1NfXykKLSNlbGlmIGRlZmluZWQg KF9fR05VQ19fKQorI2VsaWYgZGVmaW5lZCAoX19HTlVDX18pICYmICFkZWZpbmVkIChfX1NUUklD VF9BTlNJX18pCiAjZGVmaW5lCWdfZXJyb3IoZm9ybWF0Li4uKQlnX2xvZyAoR19MT0dfRE9NQUlO LCAgICAgICAgIFwKIAkJCQkgICAgICAgR19MT0dfTEVWRUxfRVJST1IsICAgIFwKIAkJCQkgICAg ICAgZm9ybWF0KQpAQCAtMTMxNyw4ICsxMzE3LDEzIEBACiAjZGVmaW5lCWdfd2FybmluZyhmb3Jt YXQuLi4pCWdfbG9nIChHX0xPR19ET01BSU4sICAgICAgICAgXAogCQkJCSAgICAgICBHX0xPR19M RVZFTF9XQVJOSU5HLCAgXAogCQkJCSAgICAgICBmb3JtYXQpCi0jZWxzZQkvKiAhX19HTlVDX18g Ki8KLXN0YXRpYyB2b2lkCisjZWxzZQkvKiAhX19HTlVDX18gfHwgX19TVFJJQ1RfQU5TSV9fICov CisjICBpZiAoX19HTlVDX18pCisjICAgIGRlZmluZSBHX1ZBX0lOTElORSBpbmxpbmUKKyMgIGVs c2UKKyMgICAgZGVmaW5lIEdfVkFfSU5MSU5FCisjICBlbmRpZgorc3RhdGljIEdfVkFfSU5MSU5F IHZvaWQKIGdfZXJyb3IgKGNvbnN0IGdjaGFyICpmb3JtYXQsCiAJIC4uLikKIHsKQEAgLTEzMjcs NyArMTMzMiw3IEBACiAgIGdfbG9ndiAoR19MT0dfRE9NQUlOLCBHX0xPR19MRVZFTF9FUlJPUiwg Zm9ybWF0LCBhcmdzKTsKICAgdmFfZW5kIChhcmdzKTsKIH0KLXN0YXRpYyB2b2lkCitzdGF0aWMg R19WQV9JTkxJTkUgdm9pZAogZ19tZXNzYWdlIChjb25zdCBnY2hhciAqZm9ybWF0LAogCSAgIC4u LikKIHsKQEAgLTEzMzYsNyArMTM0MSw3IEBACiAgIGdfbG9ndiAoR19MT0dfRE9NQUlOLCBHX0xP R19MRVZFTF9NRVNTQUdFLCBmb3JtYXQsIGFyZ3MpOwogICB2YV9lbmQgKGFyZ3MpOwogfQotc3Rh dGljIHZvaWQKK3N0YXRpYyBHX1ZBX0lOTElORSB2b2lkCiBnX3dhcm5pbmcgKGNvbnN0IGdjaGFy ICpmb3JtYXQsCiAJICAgLi4uKQogewo= --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88-- From otaylor@redhat.com Sat Jun 23 13:47:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EC03C2BF9C for ; Sat, 23 Jun 2001 13:47:25 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 982B0242319; Sat, 23 Jun 2001 13:47:25 -0400 (EDT) To: Daniel Elstner Cc: gtk-list@gnome.org, gtk-devel-list@gtk.org Subject: Re: [PATCH] glib.h + gcc-3.0 + -pedantic References: <20010623191550.67f9183e.daniel@master.daniel.homenet> From: Owen Taylor Date: 23 Jun 2001 13:47:25 -0400 In-Reply-To: Daniel Elstner's message of "Sat, 23 Jun 2001 19:15:50 +0200" Message-ID: Lines: 43 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Daniel Elstner writes: > Hi, > > gcc 3.0 gives me a bunch of annoying warnings when compiling > with the -pedantic option, because there are several macros > (e.g. g_error) which are either too new (c99) or GNU extensions. > > I cannot compile with -std=c99 since that doesn't work with C++. > With the attached patch (for glib-1.2.10) things are fine (at > least for me). > > The changes are a check for __STRICT_ANSI__ triggering fallback > to the function implementations, and an extra check for __GNUC__ > detecting wether inlining va_arg functions is possible. It > compiles fine with `g++ -ansi -pedantic -O2 -W -Wall -Winline'. > > Is the patch ok for you to apply? [ see the README in GTK+ for information about submitting patches, in general patches should go to bugzilla.gnome.org, and/or gtk-devel-list ] Considering that the function implementations are much inferior to the macro implementations, I don't consider this patch appropriate. A possibly better way of going about this that was suggested is to use: #pragma GCC system_header For the glib header files - this turns off a lot of warnings. After all, GLib _does_ turn off the GCC extensions when compiling on something other than GCC, so there's no point in being told about them when compiling some project that uses GLib. You might want to experiment with this. Regards, Owen From daniel.elstner@gmx.net Sat Jun 23 15:22:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by mail.gnome.org (Postfix) with SMTP id 536C72C865 for ; Sat, 23 Jun 2001 15:22:38 -0400 (EDT) Received: (qmail 19763 invoked by uid 0); 23 Jun 2001 19:22:36 -0000 Received: from 217-9-43-124.lsd.berlikomm.net (HELO server.daniel.homenet) (217.9.43.124) by mail.gmx.net (mp005-rz3) with SMTP; 23 Jun 2001 19:22:36 -0000 Received: from master.daniel.homenet (master.daniel.homenet [192.168.1.1]) by server.daniel.homenet (8.9.3/8.9.3) with ESMTP id VAA14001; Sat, 23 Jun 2001 21:18:47 +0200 Received: from master (localhost [127.0.0.1]) by master.daniel.homenet (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with SMTP id f5NJNu018040; Sat, 23 Jun 2001 21:23:56 +0200 X-Authentication-Warning: master.daniel.homenet: Host localhost [127.0.0.1] claimed to be master Date: Sat, 23 Jun 2001 21:23:55 +0200 From: Daniel Elstner To: Owen Taylor Cc: gtk-list@gnome.org, gtk-devel-list@gtk.org Subject: Re: [PATCH] glib.h + gcc-3.0 + -pedantic Message-Id: <20010623212355.0a90bb46.daniel@master.daniel.homenet> In-Reply-To: References: <20010623191550.67f9183e.daniel@master.daniel.homenet> X-Mailer: Sylpheed version 0.5.0pre1 (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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 23 Jun 2001 13:47:25 -0400 Owen Taylor wrote: > A possibly better way of going about this that was suggested > is to use: > > #pragma GCC system_header > > For the glib header files - this turns off a lot of warnings. > After all, GLib _does_ turn off the GCC extensions when > compiling on something other than GCC, so there's no > point in being told about them when compiling some project > that uses GLib. > > You might want to experiment with this. That was also suggested by a gcc team member. I just thought you wouldn't like entirely disabling any warnings. But you're right - glib is mature enough to use this approach. Regards, --Daniel From popeofpop@softhome.net Sun Jun 24 09:30:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by mail.gnome.org (Postfix) with SMTP id B2C762CF0B for ; Sun, 24 Jun 2001 09:30:34 -0400 (EDT) Received: (qmail 27751 invoked by uid 417); 24 Jun 2001 13:33:51 -0000 Received: from port101.ds1-vbr.adsl.cybercity.dk (HELO livingroom) (212.242.58.40) by i-softhome-tango with SMTP; 24 Jun 2001 13:33:51 -0000 From: "Chris Hansen" To: Subject: Icons Date: Sun, 24 Jun 2001 15:31:18 +0200 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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to put an icon in the titlebar of the window with GTk? I'm working on a Windows machine and I know there aren't icons in some window managers on XFree, but Windows uses icons so I thought it could be done with GTk rather than Windows API. Best regards Chris Hansen From george@clipper.ens.fr Sun Jun 24 14:57:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id D9EBF2BEB8 for ; Sun, 24 Jun 2001 14:57:19 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id OAA12330 for ; Sun, 24 Jun 2001 14:57:19 -0400 Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5OIuCb08259 for ; Sun, 24 Jun 2001 14:56:12 -0400 Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f5OIvHp53635 for ; Sun, 24 Jun 2001 20:57:17 +0200 (CEST) Received: from (george@localhost) by clipper.ens.fr (8.9.2/jb-1.1) Date: Sun, 24 Jun 2001 20:57:17 +0200 From: Nicolas George To: gtk-list@redhat.com Subject: gdk-pixbuf: partial image loading Message-ID: <20010624205717.A9739@clipper.ens.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible, with gdk pixbuf, tu partially load an image? By that, I mean to get a pixbuf with only a sub-image or a shrinked image, without loading all in memory. This would be really useful in order to load parts of huges high resolution images, or scaled to fit on the screen, without filling the memory. From rbultje@ronald.bitfreak.net Sun Jun 24 16:19:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id E3EC62E07C for ; Sun, 24 Jun 2001 16:14:43 -0400 (EDT) Received: from [192.168.0.126] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5OKuuF05538 for ; Sun, 24 Jun 2001 22:56:56 +0200 (CEST) Subject: render texts to a buffer/drawable From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 24 Jun 2001 22:14:32 +0200 Message-Id: <993413682.26475.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi people, does Gtk or any other lib offer the option to render texts to a drawable or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it would work something like some_function(char *font, char *text) (font being the font as provided by the gtk-font-selection-dialog (-courier-new-bla--bla-*-*-*-*-) and text being the string to be rendered) and render the text to a gdk-pixbuf :-) I tried gimp until now but I didn't get any further than #include and add `gimp-config --cflags` to my LDFLAGS, after which the application complained about a missing reference to PLUG_IN_INFO (although I did have a GimpPlugInInfo PLUG_IN_INFO = { NULL, NULL, NULL, NULL}; in my application) so I'm probably doing something wrong there... Anyway, any help on going from GtkFontSelectionDialog to a text rendered in a GdkPixbuf would be appreciated. Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From dermot@glade.perl.connectfree.co.uk Sat Jun 23 11:52:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 5DD862BAB6; Sat, 23 Jun 2001 11:52:18 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA06514; Sat, 23 Jun 2001 11:52:18 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5NFp9b02505; Sat, 23 Jun 2001 11:51:09 -0400 Received: from higrade.botwrights.farm (ppp-1-157.cvx1.telinco.net [212.1.136.157]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id RAA04102; Sat, 23 Jun 2001 17:25:31 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id QAA01200; Sat, 23 Jun 2001 16:51:58 +0100 Message-ID: <3B34B95E.9FDB558B@glade.perl.connectfree.co.uk> Date: Sat, 23 Jun 2001 16:44:30 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: ANNOUNCE: Glade-Perl 0.59 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, This is especially for all perl 5.6 users - I am sorry if you had problems with a missing DESTROY() sub. I have just uploaded perl module Glade-Perl-0.59.tar.gz to CPAN ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but please your local mirror (see ftp://ftp.cpan.org/pub/perl/CPAN/MIRRORED.BY) Until it is mirrored around the world it is available on my website. http://www.glade.perl.connectfree.co.uk/index.html Glade-Perl generates perl source code from a Glade file - Glade is Damon Chaplin's beautiful Gtk+/Gnome UI builder. Glade-Perl can display the UI as it is built and/or generate source code and it can be called directly from Glade's 'Build' button. It can also generate code to use libglade if you prefer. Regards, Dermot snipped from the Changelog: ------------------------------------------------------------ Wed Jun 20 14:48:25 BST 2001 Dermot Musgrove - Version 0.59 - All modules now have empty DESTROY() sub as perl 5.6 demands. PerlRun->AUTOLOAD() also caters for (ignores) AUTOLOADED DESTROY() call. PerlRun perldoc corrected to lose warnings in pod2man. Thanks to Jim Edwards for the super-fast reports and patches. - PerlRun->lookup_widget() is a new method that accesses a window or a form's widget by name. It prints an error if the widget does not exist. e.g. my $widget = $window->lookup_widget('clist1'); OR my $form = $window->FORM; # or use $form in signal handlers my $widget = $form->lookup_widget('clist1'); - Glade-Perl will now create skeleton documentation files if they do not already exist. These default to directory 'Documentation' files called COPYING, Changelog, FAQ, INSTALL, NEWS, README, ROADMAP and TODO If you don't want to generate the doc files add a line to site or project options file: 0 - Glade-Perl will now create skeleton distribution files if they do not already exist. These default to - Makefile.PL, MANIFEST.SKIP, Project.spec and test.pl - so you should be able to call: 'perl Makefile.PL; make manifest; make dist;' and then either 'rpm -ta Project-0.01.tar.gz' to build a RPM or the normal perl methods of 'make test' and 'make install'. This is all at a very early stage and will probably fail in many cases but you should, at least, have some files to edit :) If you don't want to generate the dist files add a line to site or project options file: 0 ------------------------------------------------------------ From uckelman@scylla.ellipsis.cx Mon Jun 25 01:15:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from scylla.ellipsis.cx (unknown [64.109.29.58]) by mail.gnome.org (Postfix) with SMTP id A95D92BB38 for ; Mon, 25 Jun 2001 01:15:51 -0400 (EDT) Received: (qmail 13911 invoked by uid 500); 25 Jun 2001 05:15:51 -0000 Message-ID: <20010625051551.13909.qmail@scylla.ellipsis.cx> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: copying pixmaps From: Joel Uckelman Reply-To: uckelman@nomic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 25 Jun 2001 00:15:51 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I writing something for which I need two separate copies of the same GdkPixmap--one of which will be drawn to, while the other is used to restore areas of the first to their initial state. Since the XPMs I'm loading to make GdkPixmaps have the potential to be rather large, it would be nice if I could load them once and then make copies in memory instead of calling gdk_pixmap_create_from_xpm twice. I presume there is some simple way to do this, but I don't see any copy functions. Is there a way to get the dimensions of a GdkPixmap after creating it from an arbitrarily-sized XPM? If I could do that my problem would be solved, since I could create a blank GdkPixmap of the appropriate size and use gdk_draw_pixmap to copy from one to the other. Any help would be greatly appreciated. -- J. From backes@hlrwm.rhrk.uni-kl.de Mon Jun 25 01:53:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 766CA2BE1F; Mon, 25 Jun 2001 01:53:33 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id BAA17503; Mon, 25 Jun 2001 01:53:32 -0400 Received: from mail.uni-kl.de (mail.uni-kl.de [131.246.137.52]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5P5qQb10515; Mon, 25 Jun 2001 01:52:27 -0400 Received: from hlrwm.rhrk.uni-kl.de (IDENT:root@hlrwm.rhrk.uni-kl.de [131.246.91.18]) by mail.uni-kl.de (8.11.0/8.11.0) with ESMTP id f5P5rJC28224; Mon, 25 Jun 2001 07:53:19 +0200 (MET DST) Received: (from backes@localhost) by hlrwm.rhrk.uni-kl.de (8.11.0/8.11.0) id f5P5rJO21223; Mon, 25 Jun 2001 07:53:19 +0200 Message-ID: X-Mailer: XFMail 1.5.0 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3B34B95E.9FDB558B@glade.perl.connectfree.co.uk> Date: Mon, 25 Jun 2001 07:53:19 +0200 (CEST) X-Face: B^`ajbarE`qo`-u#R^.)e]6sO?X)FpoEm\>*T:H~b&S;U/h$2>my}Otw5$+BDxh}t0TGU?> O8Bg0/jQW@P"eyp}2UMkA!lMX2QmrZYW\F,OpP{/s{lA5aG'0LRc*>n"HM@#M~r8Ub9yV"0$^i~hKq P-d7Vz;y7FPh{XfvuQA]k&X+CDlg"*Y~{x`}U7Q:;l?U8C,K\-GR~>||pI/R+HBWyaCz1Tx]5 Reply-To: Joachim Backes Organization: University of Kaiserslautern, Computer Center [Supercomputing division] From: Joachim Backes To: Dermot Musgrove Subject: RE: ANNOUNCE: Glade-Perl 0.59 Cc: glade-devel , "gtk-perl-list@redhat.com" , "gtk-list@redhat.com" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 23-Jun-2001 Dermot Musgrove wrote: > Hi all, > > This is especially for all perl 5.6 users - I am sorry if you had > problems with a missing DESTROY() sub. > > I have just uploaded perl module Glade-Perl-0.59.tar.gz to CPAN > ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but please Hi, Dermot, address seems to be : ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Glade/ ^^^ ftp> cd /CPAN/modules/by-module/Glade/ 550 CPAN/modules/by-module/Glade/: No such file or directory ftp> cd /pub/CPAN/modules/by-module/Glade/ 250 CWD command successful. Regards Joachim Backes -- Joachim Backes | Univ. of Kaiserslautern Computer Center, High Performance Computing | Phone: +49-631-205-2438 D-67653 Kaiserslautern, PO Box 3049, Germany | Fax: +49-631-205-3056 ---------------------------------------------+------------------------ WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html From hoshem@mel.comcen.com.au Mon Jun 25 06:25:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id A9FE82CF34 for ; Mon, 25 Jun 2001 06:25:56 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id GAA18548 for ; Mon, 25 Jun 2001 06:25:56 -0400 Received: from BuffyRox.localdomain (modem031.mnementh.comcen.com.au [203.23.238.90]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5PAOlb24792 for ; Mon, 25 Jun 2001 06:24:48 -0400 Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5PAg8N02457; Mon, 25 Jun 2001 20:42:08 +1000 Date: Mon, 25 Jun 2001 20:42:07 +1000 From: Helmethead To: Nicolas George Cc: gtk-list@redhat.com Subject: Re: gdk-pixbuf: partial image loading Message-ID: <20010625204207.A2445@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Nicolas George , gtk-list@redhat.com References: <20010624205717.A9739@clipper.ens.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010624205717.A9739@clipper.ens.fr>; from nicolas.george@ens.fr on Sun, Jun 24, 2001 at 08:57:17PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sun, Jun 24, 2001 at 08:57:17PM +0200, Nicolas George wrote: > Is it possible, with gdk pixbuf, tu partially load an image? By that, I > mean to get a pixbuf with only a sub-image or a shrinked image, without > loading all in memory. This would be really useful in order to load parts > of huges high resolution images, or scaled to fit on the screen, without > filling the memory. You would have to load the whole image in memory, then scale or crop it as you like (gdk-pixbuf comes with functions for this). From hoshem@mel.comcen.com.au Mon Jun 25 06:48:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem031.mnementh.comcen.com.au [203.23.238.90]) by mail.gnome.org (Postfix) with ESMTP id F2F1E2BAB6 for ; Mon, 25 Jun 2001 06:48:15 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5PB4UF02544; Mon, 25 Jun 2001 21:04:30 +1000 Date: Mon, 25 Jun 2001 21:04:30 +1000 From: Helmethead To: Joel Uckelman Cc: gtk-list@gnome.org Subject: Re: copying pixmaps Message-ID: <20010625210430.A2463@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Joel Uckelman , gtk-list@gnome.org References: <20010625051551.13909.qmail@scylla.ellipsis.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010625051551.13909.qmail@scylla.ellipsis.cx>; from uckelman@nomic.net on Mon, Jun 25, 2001 at 12:15:51AM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 25, 2001 at 12:15:51AM -0500, Joel Uckelman wrote: > Hi, > > I writing something for which I need two separate copies of the same > GdkPixmap--one of which will be drawn to, while the other is used to > restore areas of the first to their initial state. Since the XPMs I'm > loading to make GdkPixmaps have the potential to be rather large, it would > be nice if I could load them once and then make copies in memory instead of > calling gdk_pixmap_create_from_xpm twice. I presume there is some simple > way to do this, but I don't see any copy functions. > > Is there a way to get the dimensions of a GdkPixmap after creating it from > an arbitrarily-sized XPM? If I could do that my problem would be solved, > since I could create a blank GdkPixmap of the appropriate size and use > gdk_draw_pixmap to copy from one to the other. > > Any help would be greatly appreciated. You can pass -1 to the width and height arguments of gdk_draw_pixmap, and the entire pixmap will be copied From craig.emery@3glab.com Mon Jun 25 06:50:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 8E6602DEEF for ; Mon, 25 Jun 2001 06:50:16 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15ETwb-0002Oe-00 for gtk-list@gnome.org; Mon, 25 Jun 2001 11:50:13 +0100 Message-ID: <3B371746.4050506@3glab.com> Date: Mon, 25 Jun 2001 11:49:42 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010624 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: A Modal Window References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15ETwb-0002Oe-00*OV0fWc8N5go* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Esteban Quijano Vincenzi wrote: > Hi, there are two ways for doing this: > 1) Call gtk_main() again so you enter in a second event loop. When you > press an "ok" or "cancel" button just call gtk_main_quit(). You will > return to the main event loop. > > 2) Do something like this: > > while (exit_modal != TRUE) gtk_main_iteration(); > > and in your callback function do exit_modal = TRUE somewhere > > Esteban Quijano Vincenzi. > This is good enough but not great. I understand that other windows in your application can still be raised on top of your modal window. I asked about this (kinda) recently and Havoc pointed me at gtk_grab_add () / gtk_grab_remove ()which you should call AS WELL as gtk_main (). See the FAQ at http://www.gtk.org/faq/#AEN556 for more info. Craig. From john.cupitt@ng-london.org.uk Mon Jun 25 07:14:21 2001 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 1AA0F2DBEE for ; Mon, 25 Jun 2001 07:14:21 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN9JQ; Mon, 25 Jun 2001 12:14:18 +0100 Message-ID: <3B371BB8.5453B91A@ng-london.org.uk> Date: Mon, 25 Jun 2001 12:08:40 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ronald Bultje Cc: GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje wrote: > does Gtk or any other lib offer the option to render texts to a drawable > or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it > would work something like some_function(char *font, char *text) (font > being the font as provided by the gtk-font-selection-dialog > (-courier-new-bla--bla-*-*-*-*-) and text being the string to be > rendered) and render the text to a gdk-pixbuf :-) Hi Ronald, you can do this with a bunch of gdk: - gdk_font_load() the font you want - gdk_text_extents() to work out how big your string will be (in pixels) - gdk_pixmap_new() to make a pixmap large enough to hold rendered text - make a black/white GC to render with - clear the pixmap to the background colour - gdk_draw_string() to draw the text into the pixmap - gdk_image_get() to read the image from the server as a GdkImage* - malloc yor RGB buffer, and unpack the GdkImage into that About 4 pages of code :-( I believe this is what gimp does (or it did last time I looked). I'm sure you can link against freetype or something and do the rendering on the client side, but I've not tried that. John From john.cupitt@ng-london.org.uk Mon Jun 25 07:29:24 2001 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 C51662DD79 for ; Mon, 25 Jun 2001 07:29:23 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN9LD; Mon, 25 Jun 2001 12:29:22 +0100 Message-ID: <3B371F40.FC078870@ng-london.org.uk> Date: Mon, 25 Jun 2001 12:23:44 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: Signal help needed (gtk_signal_new?) References: <3B3284A8.1133DCE3@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" wrote: > But even if I capture the relevant info for "changed" I can't use it to > create a new signal. The arguments for gtk_signal_new() are elusive to > me. I'd basically like to create something very similar to the > "value_changed" and "changed" signals, named "activate." It would be > the equivalent of a pulse that gets sent whenever the value changes from > 0-1 or 1-0. Hi David, take a look at the source for gtkadjustment, you can copy out the bits you need. You need to: - make a new class, inheriting from GtkData - have a member for your signal - haev a static array of signal ids in your implementation - build the signal in _class_init with gtk_signal_new() - attach the signal to your class with gtk_object_class_add_signals() - provide a function which emits your signal from an instance John From celston@corky.sapien.net Mon Jun 25 09:30:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from corky.sapien.net (corky.sapien.net [208.224.15.95]) by mail.gnome.org (Postfix) with ESMTP id CBAB72DC4E for ; Mon, 25 Jun 2001 09:30:54 -0400 (EDT) Received: from localhost (celston@localhost) by corky.sapien.net (8.11.2/8.11.2) with ESMTP id f5PDUrR08194 for ; Mon, 25 Jun 2001 09:30:53 -0400 Date: Mon, 25 Jun 2001 09:30:53 -0400 (EDT) From: Chris Elston To: Subject: Re: First post with a Question... In-Reply-To: <20010622141436.1a6c5e8c.golubenkoj@columbiafunds.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sorry, still very new at working with Gtk. What do you mean by bind? What I'm doing currently is using the "signal_connect" function to the "button_press_event". I was originally using the signal_connect to the "select" event. I have recently commented that out and am using the button_press_event. Still no progress. There isn't a way to just "turn it off"? Any more help? Chris On Fri, 22 Jun 2001, John Golubenko wrote: > Do you think you can bind this button to do whatever you want? This maybe a solution. > > On Fri, 22 Jun 2001 16:59:01 -0400 (EDT) > "Chris Elston" wrote: > > > Hey, my name is Chris. This is my first post to this list so be gentle. > > :) > > > > I'm working with Gtk-Perl but I'm pretty sure this idea applies to all > > versions of Gtk. I'm trying to design a GTree stucture so that if I right > > click a tree item, a menu comes up. I'm able to get the menu to come up > > easy, but the problem is that Gtk (at least in perl) has mapped the middle > > mouse button to expanding subtrees and the right to collapsing them. I > > want to be able to turn off this added "feature" so that when a subtree is > > right clicked, only my menu comes up. Any suggestions? > > > > -- > > > > Chris Elston > > celston@corky.sapien.net > > --------------------------------- > > Nucleus Communications > > Web Script Programmer > > > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. > > -- Chris Elston celston@corky.sapien.net --------------------------------- Nucleus Communications Web Script Programmer From otaylor@redhat.com Mon Jun 25 10:23:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 1108F2DDE3 for ; Mon, 25 Jun 2001 10:23:46 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id KAA32708 for ; Mon, 25 Jun 2001 10:23:45 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id ED5C624231B; Mon, 25 Jun 2001 10:23:44 -0400 (EDT) To: Nicolas George Cc: gtk-list@redhat.com Subject: Re: gdk-pixbuf: partial image loading References: <20010624205717.A9739@clipper.ens.fr> From: Owen Taylor Date: 25 Jun 2001 10:23:44 -0400 In-Reply-To: Nicolas George's message of "Sun, 24 Jun 2001 20:57:17 +0200" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Nicolas George writes: > Is it possible, with gdk pixbuf, tu partially load an image? By that, I > mean to get a pixbuf with only a sub-image or a shrinked image, without > loading all in memory. This would be really useful in order to load parts > of huges high resolution images, or scaled to fit on the screen, without > filling the memory. No, not possible currently. It's in bugzilla as a RFE: http://bugzilla.gnome.org/show_bug.cgi?id=53726 Whether this is useful or not depends a lot on the format - for a lot of formats, this doesn't buy you anything, but for, say, thumbnailing JPEGs, it can be a big win. Regards, Owen From hp@redhat.com Mon Jun 25 10:26:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id BCA112E42C for ; Mon, 25 Jun 2001 10:26:39 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5PEQWN21639; Mon, 25 Jun 2001 10:26:32 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: uckelman@nomic.net Cc: gtk-list@gnome.org Subject: Re: copying pixmaps References: <20010625051551.13909.qmail@scylla.ellipsis.cx> From: Havoc Pennington Date: 25 Jun 2001 10:26:32 -0400 In-Reply-To: Joel Uckelman's message of "Mon, 25 Jun 2001 00:15:51 -0500" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Joel Uckelman writes: > Is there a way to get the dimensions of a GdkPixmap after creating it from > an arbitrarily-sized XPM? If I could do that my problem would be solved, > since I could create a blank GdkPixmap of the appropriate size and use > gdk_draw_pixmap to copy from one to the other. gdk_drawable_get_size(). The way you copy a pixmap is to just draw it to another pixmap, as you say. Havoc From zb197@yahoo.com Mon Jun 25 13:20:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11605.mail.yahoo.com (web11605.mail.yahoo.com [216.136.172.57]) by mail.gnome.org (Postfix) with SMTP id 369412C90D for ; Mon, 25 Jun 2001 13:20:06 -0400 (EDT) Message-ID: <20010625172005.58660.qmail@web11605.mail.yahoo.com> Received: from [65.200.176.160] by web11605.mail.yahoo.com; Mon, 25 Jun 2001 10:20:05 PDT Date: Mon, 25 Jun 2001 10:20:05 -0700 (PDT) From: ZB Subject: writing to GUI from 2+ threads 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am trying to write to the GUI from more than one thread and it works with LINUX but not win32. I made a stub program by modifying the threaded hello world program (http://www.gtk.org/faq/#AEN462) from the gtk site. The program creates a window and then starts a thread and i modified the thread to show a second window. In LINUX, it works great. In win32.. the second window freezes halfway shown and the app gets stuck. (for win32.. i am using the DLLs posted 12/26 at http://user.sgic.fi/~tml/gimp/win32/downloads.html) I also downloaded the 1.3.6 GTK and compiled the latest DLLs for windows. The same problem still persists and the window remains half shown. I am always using gdk_thread_enter and leave within my thread. My question is how do you write to the GUI from more than one thread? I thought that the gdk_thread_enter and leave should do the trick. Is this a bug? I did a little reseach in the forums and found that you can call the gtk_add_timeout function to get the window to show. Is this the best way? Is there something cleaner? I can post my stub if that will help. I also tried running a backtrace from gdb when it froze and it told me that it could access the memory when i typed 'bt'. Thanks, Zev. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From rbultje@ronald.bitfreak.net Mon Jun 25 17:28:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id B44BA2BA83 for ; Mon, 25 Jun 2001 17:28:39 -0400 (EDT) Received: from [192.168.0.98] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5PMAhF19656; Tue, 26 Jun 2001 00:10:44 +0200 (CEST) Subject: Re: render texts to a buffer/drawable From: Ronald Bultje To: John Cupitt Cc: GTK Mailing List In-Reply-To: <3B371BB8.5453B91A@ng-london.org.uk> References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Jun 2001 23:28:38 +0200 Message-Id: <993504519.1645.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi John, On 25 Jun 2001 12:08:40 +0100, John Cupitt wrote: > - gdk_font_load() the font you want > - gdk_text_extents() to work out how big your string will be (in pixels) > - gdk_pixmap_new() to make a pixmap large enough to hold rendered text > - make a black/white GC to render with > - clear the pixmap to the background colour > - gdk_draw_string() to draw the text into the pixmap > - gdk_image_get() to read the image from the server as a GdkImage* > - malloc yor RGB buffer, and unpack the GdkImage into that Thanks for the tips, I feel like I'm almost there. Basically, I do see the text, there's just two problem, the color of the text is changing all the time and I'm not sure how to get the background transparent. > About 4 pages of code :-( I believe this is what gimp does (or it did > last time I looked). Not that bad, actually.... I'll give the code as I got it now: GdkColor color; GdkGC *gc; GdkPixmap *pixmap; GdkPixbuf *image; gdouble colors[3]; int w,h,x,y; GdkFont *font; guchar *data; char *text; guint32 pixel; //some initializing [...] color.red = (guint16)(options->colors[0]*65535.0); color.green = (guint16)(options->colors[1]*65535.0); color.blue = (guint16)(options->colors[2]*65535.0); font = gdk_font_load(options->font); w = gdk_text_width(font, text, strlen(text)); h = gdk_text_height(font, text, strlen(text)); pixmap = gdk_pixmap_new(NULL, w, h, 24); gc = gdk_gc_new(pixmap); gdk_gc_set_foreground(gc, &color); gdk_draw_string(pixmap, font, gc, 0, h, text); image = gdk_image_get(pixmap, 0,0,w,h); data = malloc(sizeof(guchar)*w*h*4); for (y=0;yimage = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, 1, 8, w, h, w*4, NULL, NULL); (and here I unref it all) The outcome pixbuf has an alpha of 255 everywhere because I'm not sure how to find out whether it should be transparent at that pixel or not. Second problem is, as I said, that the text of both the background (which makes sense because it's just a random data background) and the text changes everytime I create the pixmap. Is there an error in my "calculate-color-from-data"? And do you have an idea on how to see transparency? My idea is to read the background color (just do a gdk_draw_rectangle() with different colors) and if the background color matches the color in the GdkPixbuf, we have transparency - but maybe there's a better way? Anyway, thanks a lot for all the help for now, I'm almost there :-). Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From iainmf2000@yahoo.com Mon Jun 25 21:36:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web12505.mail.yahoo.com (web12505.mail.yahoo.com [216.136.173.197]) by mail.gnome.org (Postfix) with SMTP id 9F8FE2D46B for ; Mon, 25 Jun 2001 21:36:09 -0400 (EDT) Message-ID: <20010626013608.41493.qmail@web12505.mail.yahoo.com> Received: from [62.7.94.163] by web12505.mail.yahoo.com; Mon, 25 Jun 2001 18:36:08 PDT Date: Mon, 25 Jun 2001 18:36:08 -0700 (PDT) From: Iain Subject: configure on Win9x 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi. I'm trying to configure glib, but when I try to make it, it fails. When I look at the log for configure, I get the following error messages: configure:3741: checking for wctype.h configure:3748: C:/cygwin/bin/gcc -E conftest.c >/dev/null 2>conftest.out configure:3744: wctype.h: No such file or directory /cygdrive/c/glib/obj/configure:3886: undefined reference to `iswalnum' configure: In function `main': configure:5366: too many arguments to function `pthread_getspecific' configure: failed program was: #line 5363 "configure" configure:5426: warning: unused variable `tval' configure: failed program was: #line 5421 "configure" [end snippets] I have tried building with both cygwin and djgpp, and yes, I am using GNU make. Either there are errors in the configure file, or it won't compile with the two compilers I'm using. Why not? Thanks. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From hp@redhat.com Mon Jun 25 23:46:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8788E2BAB4 for ; Mon, 25 Jun 2001 23:46:04 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5Q3jvo08654; Mon, 25 Jun 2001 23:45:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> From: Havoc Pennington Date: 25 Jun 2001 23:45:52 -0400 In-Reply-To: Ronald Bultje's message of "25 Jun 2001 23:28:38 +0200" Message-ID: Lines: 26 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > pixmap = gdk_pixmap_new(NULL, w, h, 24); Not sure if you are trying to be portable across machines, but this could easily fail, not all X servers have 24-bit. > for (y=0;y { > for (x=0;x { > pixel = gdk_image_get_pixel(image,x,y); > data[(y*w+x)*4] = pixel/(256^3); > data[(y*w+x)*4+1] = (pixel/(256^2))%256; > data[(y*w+x)*4+2] = (pixel/256)%(256^2); > data[(y*w+x)*4+3] = 255; > } > } Here you're assuming far more than you reasonably can about the image format. gdk_pixbuf_get_from_drawable() does this for you and handles all the image formats and bit depths. Havoc From paul@paulandjamie.com Tue Jun 26 00:06:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from usbizmap.com (unknown [198.145.120.15]) by mail.gnome.org (Postfix) with ESMTP id C4C562BAB1 for ; Tue, 26 Jun 2001 00:06:30 -0400 (EDT) Received: from production [63.165.229.33] by usbizmap.com [198.145.120.19] with SMTP (MDaemon.v3.5.0.R) for ; Mon, 25 Jun 2001 21:21:19 -0700 Message-ID: <000d01c0fdf5$9524b6c0$21e5a53f@production> From: "Paul Singleton" To: Subject: very basic question about glib Date: Mon, 25 Jun 2001 21:07:56 -0700 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.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-MDRemoteIP: 63.165.229.33 X-Return-Path: paul@paulandjamie.com X-MDaemon-Deliver-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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. As you'll soon see, I'm a newbie. I installed Caldera eDesktop 2.4 and I think it's really cool. Seeking to free myself from the grips of Microsoft, I'm trying to find Windows-equivalent tools for Linux. The first one was an ftp app. I found gFTP. gFTP uses gtk+ so I needed to install glib1.2.8 and gtk1.2.8. Sounded easy enough. Seeking to learn, I avoided the rpms and went for the source. I downloaded everything. I extracted each of the three archives into their own folders under home/paul/desktop and followed instructions: glib says to go into the directory, type './configure' then 'make' then 'make install' that was easy enough. But when I went to do the same for gtk, it said it couldn't find a new enough version of glib!!! Well that made me upset, cause I don't know my way around linux, and the instructions didn't work. [by the way I've gotten past all this by using rpms but I'm none the wiser] My question: how do i remove COMPLETELY an old version of glib (or anything else for that matter) so that I know I don't have two or more versions of a library on my system. For instance, I found that I could use ./configure --prefix=/usr/ and glib would be installed over the top of the old version in /usr/lib instead of usr/local/lib. When I tried that, it still didn't seem to work. That lead me to my question. If I knew where to wipe out libraries and where they are being pointed to, etc, I would feel much more comfortable. I'm quite capable in DOS and of course Windows, so new venture is exciting but frustrating. I thank you much for your help--- and patience. -=Paul =Paul From pbd@op.net Tue Jun 26 00:29:12 2001 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 E61242CEB5 for ; Tue, 26 Jun 2001 00:29:11 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-0f.ppp.op.net [209.152.206.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id AAA14047; Tue, 26 Jun 2001 00:29:03 -0400 (EDT) Message-Id: <200106260429.AAA14047@renoir.op.net> To: "Paul Singleton" Cc: gtk-list@gnome.org Subject: Re: very basic question about glib In-reply-to: Your message of "Mon, 25 Jun 2001 21:07:56 PDT." <000d01c0fdf5$9524b6c0$21e5a53f@production> Date: Tue, 26 Jun 2001 00:29:00 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >that was easy enough. But when I went to do the same for gtk, it said it >couldn't find a new enough version of glib!!! Well that made me upset, cause >I don't know my way around linux, and the instructions didn't work. What exactly was the error message you got when you tried this? --p From zoey@xenonbase.net Tue Jun 26 00:50:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from host31.hostingcheck.com (host31.hostingcheck.com [209.239.36.147]) by mail.gnome.org (Postfix) with ESMTP id AD1C42BB20 for ; Tue, 26 Jun 2001 00:50:05 -0400 (EDT) Received: from xenonbase.net (co3007127-a.thorn1.nsw.optushome.com.au [203.164.22.188]) by host31.hostingcheck.com (8.10.2/8.10.2) with ESMTP id f5Q4o4917699 for ; Tue, 26 Jun 2001 00:50:04 -0400 Message-ID: <3B390317.7E82B4DA@xenonbase.net> Date: Tue, 26 Jun 2001 14:48:07 -0700 From: Zoey X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@gnome.org" Subject: Diff versions? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I recently downloaded GTK and installed it - the library first and the other stuff second. However, it persists in telling me the library version is an earlier one to the one I just installed. Any suggestions on how to fix the conflict? (I'm running Corel linux) zoey@xenonbase.net From pranjal@lgsi.co.in Tue Jun 26 01:14:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from polaris.lgsi.co.in (unknown [202.54.13.206]) by mail.gnome.org (Postfix) with ESMTP id CEDD82CE3E for ; Tue, 26 Jun 2001 01:14:01 -0400 (EDT) Received: from pranjal ([202.54.13.195]) by polaris.lgsi.co.in (Netscape Messaging Server 4.15) with ESMTP id GFIUUT00.O70 for ; Tue, 26 Jun 2001 10:50:53 +0530 From: "Pranjal Saikia" To: Subject: Latest version of GTK+, GLIB and Pango !! Date: Tue, 26 Jun 2001 11:29:13 +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.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <20010626050002.04DCD2D368@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi !! I wanted to know the latest versions of GTK+, Glib and Pango. Actually I wanted to run my application with Frame Buffer enabled. Please help to proceed. Please let me know, the availability of these packages. Regards Pranjal From rwan@cs.mu.oz.au Tue Jun 26 01:20:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 6DC372DB86 for ; Tue, 26 Jun 2001 01:18:49 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id PAA25242; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 0C65375AA; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 0BB7AAC94; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Date: Tue, 26 Jun 2001 15:17:27 +1000 (EST) From: Raymond Wan To: Pranjal Saikia Cc: gtk-list@gnome.org Subject: Re: Latest version of GTK+, GLIB and Pango !! 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, 26 Jun 2001, Pranjal Saikia wrote: > I wanted to know the latest versions of GTK+, Glib and Pango. Actually I > wanted to run my application with Frame Buffer enabled. Please help to > proceed. Please let me know, the availability of these packages. Hi, Take a look at: http://www.gtk.org/ for more information. In particular, take a look at: http://www.gtk.org/download/ to obtain the latest versions. You probably want the latest stable release of 1.2.X . Ray From deepika.sikri@wipro.com Tue Jun 26 02:36:59 2001 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 A182A2BB36 for ; Tue, 26 Jun 2001 02:36:55 -0400 (EDT) Received: from ecvwall11.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id f5QGuFj16098 for ; Tue, 26 Jun 2001 11:56:15 -0500 (GMT) Received: from deepika ([192.168.42.222]) by itplmail.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GFIY9Y00.QF7 for ; Tue, 26 Jun 2001 12:04:46 +0530 Message-ID: <008a01c0fda5$5ea3d400$de2aa8c0@wipro.com> From: "Deepika Sikri" To: Subject: Newbie question Date: Tue, 26 Jun 2001 00:03:45 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------InterScan_NT_MIME_Boundary" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----=_NextPart_000_0087_01C0FDD3.77EFB9A0" ------=_NextPart_000_0087_01C0FDD3.77EFB9A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm working on a project for making a UI in GTK+ and we need to display = the thumbnail images when URL's is specified.The screen shud be able = have multiple images(thumbnail). I'm a Newbie in this and just wanted to ask whether we can achieve it = thru GTK+ and pls if u can do send me pointers of where i can get info = for doing so which might be helpful.Any help will be appreciated ! Thanks, Deepika ------=_NextPart_000_0087_01C0FDD3.77EFB9A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
 
Hi,
 
 I'm working on a project for making a UI in = GTK+ and we=20 need to display the thumbnail images when URL's is specified.The screen = shud be=20 able have multiple images(thumbnail).
 
I'm a Newbie in this and just wanted to ask whether=20 we can achieve it thru GTK+ and pls if u can = do send me=20 pointers of where i can get info for doing so which might be helpful.Any = help=20 will be appreciated !
 
Thanks,
Deepika
 
 
------=_NextPart_000_0087_01C0FDD3.77EFB9A0-- --------------InterScan_NT_MIME_Boundary Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" The Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@wipro.com --------------InterScan_NT_MIME_Boundary-- From mseisdedos@cirsa.com Tue Jun 26 03:09:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id 8ED202CA7C for ; Tue, 26 Jun 2001 03:09:38 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A77.002746B5; Tue, 26 Jun 2001 09:09:00 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Tue, 26 Jun 2001 09:09:53 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4839@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: RV: Undeliverable message Date: Tue, 26 Jun 2001 09:09:52 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Hello every body: > > a core always happens to me when i close a window. I have a > button, when i > click it, a new window with a canvas and a plot is opened, i > can click the > button every time i want, but if i close one of the windows > and then try to > click the button to get another plot i get a gnome coredump. > I think is something related to register different objects > with the same > name, or something like that. > Thanks in advance > > > From sven@gimp.org Tue Jun 26 03:12:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A3B.dip.t-dialin.net [217.80.26.59]) by mail.gnome.org (Postfix) with ESMTP id 33E432DF28 for ; Tue, 26 Jun 2001 03:12:55 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15EmuJ-0001Q3-00 for ; Tue, 26 Jun 2001 09:05:07 +0200 To: gtk-list@gnome.org Subject: Re: Latest version of GTK+, GLIB and Pango !! References: From: Sven Neumann Date: 26 Jun 2001 09:05:07 +0200 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Raymond Wan writes: > > I wanted to know the latest versions of GTK+, Glib and Pango. Actually I > > wanted to run my application with Frame Buffer enabled. Please help to > > proceed. Please let me know, the availability of these packages. > > Take a look at: http://www.gtk.org/ for more information. In > particular, take a look at: http://www.gtk.org/download/ to obtain the > latest versions. You probably want the latest stable release of 1.2.X . he/she probably wants to use the unstable branch since the intention is to use the framebuffer device. You will find the unstable version at the same place but beware that this is unstable development software. Another place to grab the latest packages from is http://www.directfb.org/ where you will find a hardware accelerated version of GTK+ for the Linux framebuffer. Of course the same warning applies here: this is unstable development stuff. You have been warned. Salut, Sven From brandon@ovnet.com Tue Jun 26 03:23:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from riker.mountain.net (smtp.mountain.net [66.118.64.15]) by mail.gnome.org (Postfix) with ESMTP id 7437E2BF1E for ; Tue, 26 Jun 2001 03:23:52 -0400 (EDT) Received: from ovnet.com ([198.77.41.116]) by riker.mountain.net (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id net; Tue, 26 Jun 2001 03:21:00 -0400 Message-ID: <3B38399C.66AA057B@ovnet.com> Date: Tue, 26 Jun 2001 03:28:28 -0400 From: Brandon McCombs X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: ru,en MIME-Version: 1.0 To: Paul Singleton Cc: gtk-list@gnome.org Subject: Re: very basic question about glib References: <000d01c0fdf5$9524b6c0$21e5a53f@production> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Singleton wrote: > > Hello. As you'll soon see, I'm a newbie. I installed Caldera eDesktop 2.4 > and I think it's really cool. > > Seeking to free myself from the grips of Microsoft, I'm trying to find > Windows-equivalent tools for Linux. The first one was an ftp app. I found > gFTP. > > gFTP uses gtk+ so I needed to install glib1.2.8 and gtk1.2.8. Sounded easy > enough. Seeking to learn, I avoided the rpms and went for the source. I > downloaded everything. > > I extracted each of the three archives into their own folders under > home/paul/desktop and followed instructions: > glib says to go into the directory, type './configure' then 'make' then > 'make install' > > that was easy enough. But when I went to do the same for gtk, it said it > couldn't find a new enough version of glib!!! Well that made me upset, cause > I don't know my way around linux, and the instructions didn't work. > run /sbin/ldconfig as root and then run ./configure for gtk From rbultje@ronald.bitfreak.net Tue Jun 26 03:30:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id 1E1412BD47 for ; Tue, 26 Jun 2001 03:30:09 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id JAA21064; Tue, 26 Jun 2001 09:30:05 +0200 (CEST) Message-ID: <3B3836A8.50305@ronald.bitfreak.net> Date: Tue, 26 Jun 2001 09:15:52 +0200 From: Ronald Bultje User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us MIME-Version: 1.0 To: Havoc Pennington Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: >Ronald Bultje writes: > >> pixmap = gdk_pixmap_new(NULL, w, h, 24); >> > >Not sure if you are trying to be portable across machines, but this >could easily fail, not all X servers have 24-bit. > Uhm... Never thought about that, really :-) Is there any way to get a 24-bit drawable form the server on non-24-bit X-servers? Is it possible at all to have 24-bit drawables on non-24-bit X-servers? Or would I haev to use something else (client-side) for this? (like freetype, as John suggested). >> for (y=0;y> { >> for (x=0;x> { >> pixel = gdk_image_get_pixel(image,x,y); >> data[(y*w+x)*4] = pixel/(256^3); >> data[(y*w+x)*4+1] = (pixel/(256^2))%256; >> data[(y*w+x)*4+2] = (pixel/256)%(256^2); >> data[(y*w+x)*4+3] = 255; >> } >> } >> > >Here you're assuming far more than you reasonably can about the image >format. > >gdk_pixbuf_get_from_drawable() does this for you and handles all the >image formats and bit depths. > The problem I encountered with gdk_pixbuf_from_drawable is that it needed a colormap. However, trying to get a colormap from the pixmap resulted in an error that it could not get a colormap from a pixmap.... Or should I use gdk_colormap_get_system() (which could be different from the colormap of the pixmap...)? Regards, Ronald From switk@yahoo.com Tue Jun 26 06:14:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx03.cluster1.charter.net (dc-mx03.cluster0.hsacorp.net [209.225.8.13]) by mail.gnome.org (Postfix) with ESMTP id 0D5192C858 for ; Tue, 26 Jun 2001 06:14:21 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx03.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 5709764; Tue, 26 Jun 2001 06:20:28 -0400 Subject: Re: very basic question about glib From: Stephen Witkop To: Paul Singleton Cc: gtk-list@gnome.org In-Reply-To: <000d01c0fdf5$9524b6c0$21e5a53f@production> References: <000d01c0fdf5$9524b6c0$21e5a53f@production> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 26 Jun 2001 06:14:16 -0400 Message-Id: <993550460.816.1.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 25 Jun 2001 21:07:56 -0700, Paul Singleton wrote: > > that was easy enough. But when I went to do the same for gtk, it said it > couldn't find a new enough version of glib!!! Well that made me upset, cause > I don't know my way around linux, and the instructions didn't work. > > [by the way I've gotten past all this by using rpms but I'm none the wiser] > > My question: how do i remove COMPLETELY an old version of glib (or anything > else for that matter) so that I know I don't have two or more versions of a > library on my system. For instance, I found that I could use > ./configure --prefix=/usr/ and glib would be installed over the top of the > old version in /usr/lib instead of usr/local/lib. When I tried that, it > still didn't seem to work. That lead me to my question. > You should remove the old rpm packages for gtk+ and glib before you build the new ones. The rpms that Caldera packages might put things in different places than a 'make install' after configuring for '--prefix=/usr', most likely the glib-config and gtk-config scripts. Stephen From wilhelmi@ira.uka.de Tue Jun 26 06:29:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from iraun1.uka.de (iraun1.uka.de [129.13.10.90]) by mail.gnome.org (Postfix) with ESMTP id 217912E52C for ; Tue, 26 Jun 2001 06:29:05 -0400 (EDT) Received: from i80fs2.ira.uka.de by iraun1 (PP) with ESMTP; Tue, 26 Jun 2001 12:22:46 +0200 Received: from ira.uka.de (actually i81pc4) by i8fs1 (PP) with ESMTP; Tue, 26 Jun 2001 12:22:54 +0200 Message-ID: <3B386274.C0CD993B@ira.uka.de> Date: Tue, 26 Jun 2001 12:22:44 +0200 From: Sebastian Wilhelmi Organization: IRF Uni Karlsruhe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17 i586) X-Accept-Language: en MIME-Version: 1.0 To: ZB Cc: gtk-list@gnome.org Subject: Re: writing to GUI from 2+ threads References: <20010625172005.58660.qmail@web11605.mail.yahoo.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > I am trying to write to the GUI from more than one > thread and it works with LINUX but not win32. I made a > stub program by modifying the threaded hello world > program (http://www.gtk.org/faq/#AEN462) from the gtk > site. The program creates a window and then starts a > thread and i modified the thread to show a second > window. In LINUX, it works great. In win32.. the > second window freezes halfway shown and the app gets > stuck. > (for win32.. i am using the DLLs posted 12/26 at > http://user.sgic.fi/~tml/gimp/win32/downloads.html) > I also downloaded the 1.3.6 GTK and compiled the > latest DLLs for windows. The same problem still > persists and the window remains half shown. > I am always using gdk_thread_enter and leave within my > thread. There might be a deadlock in GTK+ for win32. You can find out by compiling the test program with -DG_ERRORCHECK_MUTEXES. If that really confirms, that there is a deadlock, I would also compile GLib and GTK+ with -DG_ERRORCHECK_MUTEXES to find out where that deadlock is. Bye, Sebastian -- Sebastian Wilhelmi mailto:wilhelmi@ira.uka.de http://goethe.ira.uka.de/~wilhelmi From andrej.prsa@guest.arnes.si Tue Jun 26 07:36:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id 2C4612D31A for ; Tue, 26 Jun 2001 07:36:58 -0400 (EDT) Received: from arnes.si (ar10-169i.dial-up.arnes.si [194.249.12.169]) by razor.arnes.si (Postfix) with SMTP id 35EBBE5F5; Tue, 26 Jun 2001 13:34:04 +0200 (MET DST) Date: Tue, 26 Jun 2001 13:36:00 +0200 From: Andrej Prsa To: "Paul Singleton" Cc: gtk-list@gnome.org Subject: Re: very basic question about glib Message-Id: <20010626133600.6366e238.andrej.prsa@guest.arnes.si> In-Reply-To: <000d01c0fdf5$9524b6c0$21e5a53f@production> References: <000d01c0fdf5$9524b6c0$21e5a53f@production> Organization: University of Astrophysics X-Mailer: Sylpheed version 0.4.99 (GTK+ 1.2.9; 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello! > My question: how do i remove COMPLETELY an old version of glib (or anything > else for that matter) so that I know I don't have two or more versions of a > library on my system. If you installed it from tarball (.tar.gz), you should type "make clean" to clear the package from installed directory, or "make distclean" to delete everything except the source (all .o files, executables, ...). Afterwards you can make them again by "make" and install them by "make install". If you installed the package from rpm (eg. rpm -Uvh rpm-name.rpm), you may query it for its name with "rpm -q rpm_name" (eg. rpm -q gtk+) and delete it with "rpm -e rpm_name (eg. rpm -e gtk+). That does the trick thoroughly. ;) > If I knew where to wipe out libraries and where they are being pointed to, > etc, I would feel much more comfortable. I'm quite capable in DOS and of > course Windows, so new venture is exciting but frustrating. Use /sbin/ldconfig. Bye! Andrej From john.cupitt@ng-london.org.uk Tue Jun 26 07:48:30 2001 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 83D782BD08 for ; Tue, 26 Jun 2001 07:48:30 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQ3ALW; Tue, 26 Jun 2001 12:48:29 +0100 Message-ID: <3B38753A.5DAF5550@ng-london.org.uk> Date: Tue, 26 Jun 2001 12:42:50 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ronald Bultje Cc: GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ronald, Ronald Bultje wrote: > color.red = (guint16)(options->colors[0]*65535.0); > color.green = (guint16)(options->colors[1]*65535.0); > color.blue = (guint16)(options->colors[2]*65535.0); In my app, I use a 1 bit pixmap (bitmap), since every server supports that (and there's less data to copy from the server to the client). Just use 0x0 for the background, and 0x1 for the foreground. > w = gdk_text_width(font, text, strlen(text)); > h = gdk_text_height(font, text, strlen(text)); I use text_extents, I think it's a little quicker. > pixmap = gdk_pixmap_new(NULL, w, h, 24); You can bitdepth 1 here I think. > gc = gdk_gc_new(pixmap); > gdk_gc_set_foreground(gc, &color); > gdk_draw_string(pixmap, font, gc, 0, h, text); I think you need to clear the background before you render the text ... draw a filled rectangle in the background colour. > image = gdk_image_get(pixmap, 0,0,w,h); > data = malloc(sizeof(guchar)*w*h*4); > > for (y=0;y { > for (x=0;x { > pixel = gdk_image_get_pixel(image,x,y); > data[(y*w+x)*4] = pixel/(256^3); > data[(y*w+x)*4+1] = (pixel/(256^2))%256; > data[(y*w+x)*4+2] = (pixel/256)%(256^2); > data[(y*w+x)*4+3] = 255; > } > } I think this will be slow and unreliable :-( For 1 bit XImages, you can unpack yourself pretty easily (this is Xlib, you'll need to change the names for gdk): -- static void unpack_image( XImage *xim, unsigned char *msk ) { int x, y, b, i; unsigned char *p, q; for( i = 0, y = 0; y < xim->height; y++ ) { p = (unsigned char *) xim->data + y * xim->bytes_per_line; q = *p++; for( b = 0, x = 0; x < xim->width; x++, b++, i++ ) { if( b == 8 ) { b = 0; q = *p++; } if( xim->bitmap_bit_order == LSBFirst ) { if( q & 0x1 ) msk[i] = 255; else msk[i] = 0; q = q >> 1; } else { if( q & 0x80 ) msk[i] = 255; else msk[i] = 0; q = q << 1; } } } } -- I'm sure there are things to handle these conversions for you in the newer pixbuf libraries ... I hacked this a while ago. Something else you might consider is anti-aliasing ... gimp 1.1 asks for a font twice the size required, then does a 2x2 block average. Not the best way to anti-alias, but very easy, and it does look better. I guess you should consider using XRender really (is this wrapped by gdk yet? not sure). Good luck, John From timo.savola@iki.fi Sun Jun 24 18:14:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp-2.hut.fi (smtp-2.hut.fi [130.233.228.92]) by mail.gnome.org (Postfix) with ESMTP id 93D742BC88 for ; Sun, 24 Jun 2001 18:14:11 -0400 (EDT) Received: from smtp.hut.fi (timo@cc-dialin1-3.hut.fi [130.233.251.3]) by smtp-2.hut.fi (8.9.3/8.9.3) with SMTP id BAA34774; Mon, 25 Jun 2001 01:14:08 +0300 (EEST) Date: Mon, 25 Jun 2001 01:16:35 +0300 From: Timo Savola To: Reinhard Mueller Cc: gtk-list@gnome.org Subject: Re: Logging functions Message-ID: <20010625011635.A7126@whiz-bang> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 0.6.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > is there a reason why there are the functions > g_error > g_critical > g_warning > g_message > but not > g_info > g_debug > ? I've been wondering about the same thing. > #define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) > > #ifdef G_DEBUG > #define g_debug(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) > #else > #define g_debug(...) > #endif Here's what I use to extend GLib: #ifdef NDEBUG # define debug(msg) # define debugf(fmt, args...) #else # ifdef __GNUC__ # define debug(msg) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d %s: " msg, \ __FILE__, __LINE__, __PRETTY_FUNCTION__) # define debugf(fmt, args...) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d %s: " fmt, \ __FILE__, __LINE__, __PRETTY_FUNCTION__, ##args) # else # define debug(msg) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d: " msg, \ __FILE__, __LINE__) # define debugf(fmt, args...) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d: " fmt, \ __FILE__, __LINE__, ##args) # endif #endif Tell me how I can merge the debug(msg) and debugf(fmt, args...) macros. :) Timo Savola From Valdis.Kletnieks@vt.edu Tue Jun 26 10:29:00 2001 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 C66472BDF9 for ; Tue, 26 Jun 2001 10:28:59 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5QESqg31417; Tue, 26 Jun 2001 10:28:53 -0400 Message-Id: <200106261428.f5QESqg31417@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable In-Reply-To: Your message of "Mon, 25 Jun 2001 23:28:38 +0200." <993504519.1645.0.camel@tux> 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[ <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-369087844P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 26 Jun 2001 10:28:52 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-369087844P Content-Type: text/plain; charset=us-ascii On Mon, 25 Jun 2001 23:28:38 +0200, Ronald Bultje said: You're missing at least one error check here: > pixmap = gdk_pixmap_new(NULL, w, h, 24); /* This can lose if the X server doesn't have 24-bit visuals */ if (!pixmap) { sprintf(stderr,"Whoops gdk_pixmap_new blew chunks!"); return; } /* OK.. We got a pixmap, use it */ > gc = gdk_gc_new(pixmap); /Valdis --==_Exmh_-369087844P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzicJHAt5Vm009ewEQJiWACgt15rGCPnd9rBBCqcetDk94TB8L4An1tm EUXvhKxioeGYYshaxaaL4vlN =rLUp -----END PGP SIGNATURE----- --==_Exmh_-369087844P-- From hp@redhat.com Tue Jun 26 12:40:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2CFB22E644 for ; Tue, 26 Jun 2001 12:39:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5QGcvO09050; Tue, 26 Jun 2001 12:38:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> <3B3836A8.50305@ronald.bitfreak.net> From: Havoc Pennington Date: 26 Jun 2001 12:38:57 -0400 In-Reply-To: Ronald Bultje's message of "Tue, 26 Jun 2001 09:15:52 +0200" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > Uhm... Never thought about that, really :-) > Is there any way to get a 24-bit drawable form the server on > non-24-bit X-servers? > > Is it possible at all to have 24-bit drawables on non-24-bit > X-servers? Nope and nope. Server-side objects such as images and pixmaps are raw-to-the-hardware. If the hardware lacks 24-bit mode you have no 24-bit available. However as John points out, you could use a bitmap. All X servers support 1-bit pixmaps (bitmaps). > Or would I haev to use something else (client-side) for this? (like > freetype, as John suggested). That's a cleaner solution, yes. > The problem I encountered with gdk_pixbuf_from_drawable is that it > needed a colormap. For 1-bit, you would call gdk_colormap_new() using a 1-bit visual obtained with gdk_visual_get_best_with_depth(). Otherwise you need to know the colormap used to allocate the color you used to render text to the pixmap. Havoc From lestat.lioncourt@innocent.com Tue Jun 26 18:25:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-5-115.abo.wanadoo.fr [193.252.11.115]) by mail.gnome.org (Postfix) with ESMTP id 1277A2E706 for ; Tue, 26 Jun 2001 18:24:09 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id C0238BFA4 for ; Wed, 27 Jun 2001 00:24:02 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Tue, 26 Jun 2001 22:24:02 +0000 From: "David Goncalves" To: Subject: gtk_clist_remove : bug or undocumented feature ;) MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010626222402.C0238BFA4@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm currently experiencing a strange reaction from a gtk_clist. I have a gtk_clist configured with GTK_SELECTION_BROWSE and when i use gtk_clist_remove to remove the LAST row, an invisible row stay in the list and is unusable... If anyone knows about this reaction... thanks. From ardm2@cam.ac.uk Tue Jun 26 13:56:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yellow.csi.cam.ac.uk (yellow.csi.cam.ac.uk [131.111.8.67]) by mail.gnome.org (Postfix) with ESMTP id AB6922CF1F for ; Tue, 26 Jun 2001 13:56:51 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] helo=ardm2 ident=alex) by yellow.csi.cam.ac.uk with smtp (Exim 3.22 #1) id 15Ex51-0001sf-00 for gtk-list@gnome.org; Tue, 26 Jun 2001 18:56:51 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Alexandre Mathy To: gtk-list@gnome.org Subject: stacking pixmaps Date: Tue, 26 Jun 2001 18:58:59 +0000 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01062618585902.27164@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi.. I'm building an inteface for which I need stackable pixmaps.. Now I have read that this can't be achieved using a gtk_pixmap, and that I'd have to use Gdk stuff instead. However, these pixmaps need to be able to recieve click events etc... Is there an easy way to achieve this? cheers, Alex Mathy From dermot@glade.perl.connectfree.co.uk Tue Jun 26 20:37:42 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 77AD22E723; Tue, 26 Jun 2001 20:37:29 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id UAA26010; Tue, 26 Jun 2001 20:37:28 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5R0aPb04012; Tue, 26 Jun 2001 20:36:26 -0400 Received: from higrade.botwrights.farm (ppp-1-50.cvx6.telinco.net [212.1.156.50]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id CAA19226; Wed, 27 Jun 2001 02:11:18 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id BAA00992; Wed, 27 Jun 2001 01:35:50 +0100 Message-ID: <3B391642.55ED3F98@glade.perl.connectfree.co.uk> Date: Wed, 27 Jun 2001 00:09:54 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: Joachim Backes Cc: glade-devel , "gtk-perl-list@redhat.com" , "gtk-list@redhat.com" Subject: Re: ANNOUNCE: Glade-Perl 0.59 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Joachim Backes wrote: > [...] > address seems to be : ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Glade/ > ^^^ Thanks Joachim - sorry to anyone who got lost. Regards, Dermot From zoey@xenonbase.net Wed Jun 27 03:46:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from host31.hostingcheck.com (host31.hostingcheck.com [209.239.36.147]) by mail.gnome.org (Postfix) with ESMTP id 559032BEA5 for ; Wed, 27 Jun 2001 03:46:52 -0400 (EDT) Received: from xenonbase.net (co3007127-a.thorn1.nsw.optushome.com.au [203.164.22.188]) by host31.hostingcheck.com (8.10.2/8.10.2) with ESMTP id f5R7kno29994 for ; Wed, 27 Jun 2001 03:46:50 -0400 Message-ID: <3B3A7DFE.EA659075@xenonbase.net> Date: Wed, 27 Jun 2001 17:44:46 -0700 From: Zoey X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@gnome.org" Subject: Backtrack on Diff. Versions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Running ./configure, I got the following message just after I'd installed glib 1.2.10 cheking for GLIB - version >= 1.2.8... *** 'glib-config --version' returned 1.2.10, but GLIB (1.2.6) *** was found! If glib-config was correct, then it is best *** to remove the old version of GLIB. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH environment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If glib-config was wrong, set the environment variable GLIB_CONFIG *** to point to the correct copy of glib-config, and remove the fil config.cache *** before re-running configure On useing rpm, I tried. However, it too gave me an error message. I -think- that might be because Corel is based on debian?? Thanks for all the replies! (and the patience. ;)) Zoey. From rbultje@ronald.bitfreak.net Wed Jun 27 04:35:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id EF3122CB80 for ; Wed, 27 Jun 2001 04:35:00 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id KAA12370; Wed, 27 Jun 2001 10:34:57 +0200 (CEST) Message-ID: <3B399AAC.1060907@ronald.bitfreak.net> Date: Wed, 27 Jun 2001 10:34:52 +0200 From: Ronald Bultje Organization: Textinfo Technologies User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: nl, nl-be, en MIME-Version: 1.0 To: Zoey Cc: "gtk-list@gnome.org" Subject: Re: Backtrack on Diff. Versions problem. References: <3B3A7DFE.EA659075@xenonbase.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Zoey wrote: >Running ./configure, I got the following message just after I'd >installed glib 1.2.10 > >cheking for GLIB - version >= 1.2.8... >*** 'glib-config --version' returned 1.2.10, but GLIB (1.2.6) >*** was found! If glib-config was correct, then it is best >*** to remove the old version of GLIB. You may also be able to fix the >error >*** by modifying your LD_LIBRARY_PATH environment variable, or by >editing >*** /etc/ld.so.conf. Make sure you have run ldconfig if that is >*** required on your system. >*** If glib-config was wrong, set the environment variable GLIB_CONFIG >*** to point to the correct copy of glib-config, and remove the fil >config.cache >*** before re-running configure > Remove /usr/include/glib.h and/or /usr/include/glib/glib.h. don't remove /usr/include/glib-1.2/anything, that's 1.2.10 :-) Ronald From linuxfun@163.com Wed Jun 27 06:14:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp4.163.com (unknown [202.108.44.226]) by mail.gnome.org (Postfix) with ESMTP id DFB512DC6B for ; Wed, 27 Jun 2001 06:14:38 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp4.163.com (Postfix) with SMTP id 15F911D2EDB9C for ; Wed, 27 Jun 2001 17:38:39 +0800 (CST) Message-ID: <001c01c0feed$430577f0$8002a8c0@SHECA.COM> From: "linuxfun" To: Subject: test Date: Wed, 27 Jun 2001 17:40:53 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01C0FF30.50639330" 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.5 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_0019_01C0FF30.50639330 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 dGVzdA0K ------=_NextPart_000_0019_01C0FF30.50639330 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj50ZXN0PC9GT05UPjwvRElWPjwv Qk9EWT48L0hUTUw+DQo= ------=_NextPart_000_0019_01C0FF30.50639330-- From ardm2@cam.ac.uk Wed Jun 27 07:31:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from orange.csi.cam.ac.uk (orange.csi.cam.ac.uk [131.111.8.77]) by mail.gnome.org (Postfix) with ESMTP id 055CF2E7C2 for ; Wed, 27 Jun 2001 07:30:41 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by orange.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FDWq-0005P4-00 for gtk-list@gnome.org; Wed, 27 Jun 2001 12:30:40 +0100 Subject: mouse motion redraws From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 27 Jun 2001 12:33:09 +0000 Message-Id: <993645192.2364.1.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm currently writing an app in which pixmaps (Gdk, not Gtk)in a GtkDrawingArea can be dragged by using the mouse.To achieve this, I connect to the usual mouse signals. My problem is that the motion of the pixmaps is sluggish. The weird thing is, if I run the program at the same time I run "Dia" (gtk drawing program), the motion of my program all of a sudden becomes acceptable. I've looked through "Dia'"s source, but cannot find what it's doing. Cheers, Alex Mathy here's the code: gtk_signal_connect (GTK_OBJECT (canvas), "motion_notify_event", GTK_SIGNAL_FUNC (canvas_motion_notify_event), NULL); gtk_signal_connect (GTK_OBJECT (canvas), "button_press_event", GTK_SIGNAL_FUNC (canvas_button_press_event), NULL); gtk_signal_connect (GTK_OBJECT (canvas), "button_release_event", GTK_SIGNAL_FUNC (canvas_button_release_event), NULL); gtk_widget_set_events (GTK_WIDGET (canvas), GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_BUTTON_RELEASE_MASK ); . . . gint canvas_button_press_event (GtkWidget *widget, GdkEventButton *event) { if (event->button == 1){ int i; for (i=0;i<*(compCount);i++){ circObj* component; component=getComponent(components,i); if (isInComponent(component,event->x,event->y)==TRUE){ //start dragging! selectedObj=component; dragging=TRUE; xInObj=event->x-component->x; yInObj=event->y-component->y; selectedType=SELECTED_COMPONENT; gtk_timeout_remove(threadid); return TRUE; } else { } } } return TRUE; } gint canvas_button_release_event (GtkWidget *widget, GdkEventButton *event) { if (event->button == 1){ if (dragging==TRUE){ dragging=FALSE; threadid=gtk_timeout_add(DELAY,circuitLoop,canvas); //snap to grid: } } return TRUE; } gint canvas_motion_notify_event (GtkWidget *widget, GdkEventMotion *event) { int x, y; GdkModifierType state; if (event->is_hint) { gdk_window_get_pointer (event->window, &x, &y, &state); } else { x = event->x; y = event->y; state = event->state; } if (state & GDK_BUTTON1_MASK){ if (dragging==TRUE){ if (selectedType=SELECTED_COMPONENT){ circObj* component=(circObj*)selectedObj; component->x=event->x - xInObj; component->y=event->y - yInObj; redrawCanvas(canvas); } } } return TRUE; } From john.cupitt@ng-london.org.uk Wed Jun 27 07:38:17 2001 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 E718B2E7CD for ; Wed, 27 Jun 2001 07:38:06 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WJ1Q; Wed, 27 Jun 2001 12:38:06 +0100 Message-ID: <3B39C44C.6BB97EF2@ng-london.org.uk> Date: Wed, 27 Jun 2001 12:32:28 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: stacking pixmaps References: <01062618585902.27164@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy wrote: > I'm building an inteface for which I need stackable pixmaps.. > Now I have read that this can't be achieved using a gtk_pixmap, > and that I'd have to use Gdk stuff instead. > However, these pixmaps need to be able to recieve click events etc... I think the gtk_canvas widget does what you want: http://www.atai.org/gtk-canvas/ I don't know if this is the most recent version. It's a port of GnomeCanvas back to plain gtk, so you can just look up the GnomeCanvas docs. HTH, John From kodis@jagunet.com Wed Jun 27 08:35:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from skydiver.jaguNET.com (skydiver.jaguNET.com [209.133.192.8]) by mail.gnome.org (Postfix) with ESMTP id 9950C2E80D for ; Wed, 27 Jun 2001 08:34:03 -0400 (EDT) Received: from kodis.jagunet.com (kodis.jaguNET.com [209.133.192.48]) by skydiver.jaguNET.com (8.9.3/jag-2.6) with ESMTP id IAA13861 for ; Wed, 27 Jun 2001 08:33:40 -0400 (EDT) Received: (from kodis@localhost) by kodis.jagunet.com (8.11.2/8.11.2) id f5RCWsO02304 for gtk-list@gnome.org; Wed, 27 Jun 2001 08:32:54 -0400 X-Authentication-Warning: papa.jagunet.com: kodis set sender to kodis@jagunet.com using -f Date: Wed, 27 Jun 2001 08:32:53 -0400 From: John Kodis To: gtk-list@gnome.org Subject: Re: gtk_clist_remove : bug or undocumented feature ;) Message-ID: <20010627083253.A2262@papa.jagunet.com> Mail-Followup-To: John Kodis , gtk-list@gnome.org References: <20010626222402.C0238BFA4@transylvania> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010626222402.C0238BFA4@transylvania>; from lestat.lioncourt@innocent.com on Tue, Jun 26, 2001 at 10:24:02PM +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 26, 2001 at 10:24:02PM +0000, David Goncalves wrote: > I'm currently experiencing a strange reaction from a gtk_clist. > I have a gtk_clist configured with GTK_SELECTION_BROWSE and > when i use gtk_clist_remove to remove the LAST row, an invisible > row stay in the list and is unusable... It could be that the unusable last row is just blank space left in the clist's enclosing window. Try setting the policy of the window that holds the clist to allow-shrink and auto-shrink using the gtk_window_set_policy() routine. -- John Kodis. From pbd@op.net Wed Jun 27 09:28:01 2001 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 761392BBBA for ; Wed, 27 Jun 2001 09:28:01 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-07.ppp.op.net [209.152.194.103]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA27351 for ; Wed, 27 Jun 2001 09:27:59 -0400 (EDT) Message-Id: <200106271327.JAA27351@renoir.op.net> To: gtk-list@gnome.org Subject: Re: stacking pixmaps In-reply-to: Your message of "Wed, 27 Jun 2001 12:32:28 BST." <3B39C44C.6BB97EF2@ng-london.org.uk> Date: Wed, 27 Jun 2001 09:28:15 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I think the gtk_canvas widget does what you want: > > http://www.atai.org/gtk-canvas/ > >I don't know if this is the most recent version. It's a port of >GnomeCanvas back to plain gtk, so you can just look up the GnomeCanvas >docs. At the cost of repeating myself, the GtkCanvas is perhaps the most useful and most powerful widget available under Gtk. Is there *any* way we can shame/cajole/bribe/convict/persuade the GTK+ team to remove it from GNOME and follow the example of the back-port by including it in GTK+ 1.3/2.0 ? --p From hp@redhat.com Wed Jun 27 10:26:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A8B882E2DA for ; Wed, 27 Jun 2001 10:26:46 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5REQaa18318; Wed, 27 Jun 2001 10:26:36 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> From: Havoc Pennington Date: 27 Jun 2001 10:26:36 -0400 In-Reply-To: Paul Davis's message of "Wed, 27 Jun 2001 09:28:15 -0400" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > At the cost of repeating myself, the GtkCanvas is perhaps the most > useful and most powerful widget available under Gtk. Is there *any* > way we can shame/cajole/bribe/convict/persuade the GTK+ team to remove > it from GNOME and follow the example of the back-port by including it > in GTK+ 1.3/2.0 ? > libgnomecanvas is in a separate library for GNOME 2, not dependent on any other libs except GTK (and libart). We don't want to move it to GTK with a rename, instead we want to wait until we add a vector graphics API and then have a canvas widget that uses that. Havoc From bonjour@ime.unicamp.br Wed Jun 27 12:12:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pretoria.ime.unicamp.br (pretoria.ime.unicamp.br [143.106.22.7]) by mail.gnome.org (Postfix) with ESMTP id A9C332DCF5 for ; Wed, 27 Jun 2001 12:12:23 -0400 (EDT) Received: from goiania.ime.unicamp.br (goiania.ime.unicamp.br [143.106.96.188]) by pretoria.ime.unicamp.br (8.9.0/8.9.0) with ESMTP id NAA14778 for ; Wed, 27 Jun 2001 13:12:58 -0300 (EST) Date: Wed, 27 Jun 2001 12:56:21 -0300 (EST) From: Filipe Bonjour To: GTK List Subject: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm just starting programming with GTK, and I'm having problems with events. Specifically, I'm writing a program (using GTK/Gnome built by Glade) to visualize data in 2D/3D using a GtkGlArea widget (a subclass of GtkDrawingArea). In short, I have several drawing options, and I want to send the GtkGlArea widget an expose event when the user changes any of these options. I have tried things like: gtk_signal_emit_by_name(glarea, "expose_event"); gtk_signal_emit_by_name(glarea, "expose-event"); (which cause a SIGSEGV) and gtk_signal_emit(glarea, 32); gtk_signal_emit(glarea, GDK_EXPOSE); gtk_signal_emit(glarea, gtk_signal_lookup("expose_event", GTK_TYPE_GL_AREA)); gtk_signal_emit(glarea, gtk_signal_lookup("expose-event", GTK_TYPE_GL_AREA)); which are at best ignored. So I have a few questions... 1) Where are the signal numbers and names defined? I couldn't find them anywhere. For gtk_signal_emit I find it hard to believe that we are expected to give an actual number, I thought there would be some defined symbols, such as "#define GTK_SIGNAL_EXPOSE 32" or something. 2) I guess I could create a bogus event and call the signal-handling routine directly, but that's ugly and I'm pretty sure there's a better and more elegant way. How? Any help would be very appreciated, TIA, Fil +-----------------------------------------------------------------------+ | Dr. Fil Bonjour | Fil Bonjour | | UNICAMP, IMECC, DMA - Room 328 | Rua Alberto de Salvo 53 | | 13081-970 Campinas SP Brazil | 13084-670 Campinas SP Brazil | | Phone: (++55.19) 3788.60.44 | Phone: (+55.19) 3289.77.84 | | Fax: (++55.19) 3289.14.66 | | | Email: bonjour@ime.unicamp.br | Email: fbonjour@uol.com.br | | http://www.ime.unicamp.br/~bonjour| | +-----------------------------------------------------------------------+ From ardm2@cam.ac.uk Wed Jun 27 12:35:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from red.csi.cam.ac.uk (red.csi.cam.ac.uk [131.111.8.70]) by mail.gnome.org (Postfix) with ESMTP id 906F42E196 for ; Wed, 27 Jun 2001 12:35:47 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by red.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FII6-0000Px-00 for gtk-list@gnome.org; Wed, 27 Jun 2001 17:35:46 +0100 Subject: gnome/gtkcanvas From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 27 Jun 2001 17:38:17 +0000 Message-Id: <993663497.11889.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey.. Ok so I've decided to go with gnomecanvas. I'm having trouble drawing images to the canvas though... Here's the code: GdkImlibImage *Image = gdk_imlib_load_image ("mypng.png"); /* create a new canvas */ gtk_widget_push_visual (gdk_imlib_get_visual ()); gtk_widget_push_colormap (gdk_imlib_get_colormap ()); canvas = gnome_canvas_new(); gtk_widget_pop_visual(); gtk_widget_pop_colormap(); . . . . gnome_canvas_item_new (gnome_canvas_root(canvas), gnome_canvas_image_get_type (), "image", Image, "x", 0, "y", 0, "width",(double)Image->rgb_width, "height", (double)Image->rgb_height, NULL); The image does not display, i.e. the canvas remains empty except for non-image objects I draw to it... What am I doing wrong? Cheers, Alex Mathy From emonsler@beamreachnetworks.com Wed Jun 27 12:48:02 2001 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 6B1102E86C for ; Wed, 27 Jun 2001 12:48:02 -0400 (EDT) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.40]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J50PXXM7; Wed, 27 Jun 2001 09:46:53 -0700 Message-ID: <3B3A0EFD.7E89282C@beamreachnetworks.com> Date: Wed, 27 Jun 2001 09:51:09 -0700 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > libgnomecanvas is in a separate library for GNOME 2, not dependent on > any other libs except GTK (and libart). What is the libgnomecanvas license? IIRC, GNOME is GPL, vs. the LGPL of GTK. (I tried to check the license from the gnome.org site, but there were lots of references to "free" software and FSF links, but no license info immediately available) It's not just size that keeps everyone from using the GNOME libs. Eric From hp@redhat.com Wed Jun 27 13:31:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4EF302CF3A for ; Wed, 27 Jun 2001 13:31:44 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5RHVOC18397; Wed, 27 Jun 2001 13:31:24 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Eric M. Monsler" Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> <3B3A0EFD.7E89282C@beamreachnetworks.com> From: Havoc Pennington Date: 27 Jun 2001 13:31:24 -0400 In-Reply-To: "Eric M. Monsler"'s message of "Wed, 27 Jun 2001 09:51:09 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Eric M. Monsler" writes: > What is the libgnomecanvas license? > > IIRC, GNOME is GPL, vs. the LGPL of GTK. No, this is completely untrue - GNOME libraries have always been LGPL. > It's not just size that keeps everyone from using the GNOME libs. It's also suckiness for much of libgnomeui - but with libgnomecanvas split out, neither size nor suckiness should be an issue for using the canvas. Havoc From emonsler@beamreachnetworks.com Wed Jun 27 13:38:00 2001 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 BA2252CC8D for ; Wed, 27 Jun 2001 13:37:59 -0400 (EDT) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.40]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J50PXXPK; Wed, 27 Jun 2001 10:36:52 -0700 Message-ID: <3B3A1AB8.9EE5C5C7@beamreachnetworks.com> Date: Wed, 27 Jun 2001 10:41:12 -0700 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> <3B3A0EFD.7E89282C@beamreachnetworks.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "Eric M. Monsler" writes: > > IIRC, GNOME is GPL, vs. the LGPL of GTK. > > No, this is completely untrue - GNOME libraries have always been LGPL. Well, always happy to lose a fundamental misunderstanding! From john.cupitt@ng-london.org.uk Wed Jun 27 13:41:11 2001 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 068252E8E2 for ; Wed, 27 Jun 2001 13:40:00 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WJ0R; Wed, 27 Jun 2001 18:39:58 +0100 Message-ID: <3B3A191C.E67F1052@ng-london.org.uk> Date: Wed, 27 Jun 2001 18:34:20 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Filipe Bonjour Cc: GTK List Subject: Re: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour wrote: > II have several drawing options, and I want to send the > GtkGlArea widget an expose event when the user changes any of these > options. Hi Filipe, I think you can just do: gtk_widget_queue_draw( widget ); This deals with all of the signal stuff for you. HTH, John From elrin@mclink.it Wed Jun 27 13:43:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.mclink.it (net128-007.mclink.it [195.110.128.7]) by mail.gnome.org (Postfix) with ESMTP id 6D6162E8E2 for ; Wed, 27 Jun 2001 13:43:27 -0400 (EDT) Received: from localhost.localdomain (net147-015.mclink.it [195.110.147.15]) by mail.mclink.it (8.11.0/8.11.0) with SMTP id f5RHhP307810 for ; Wed, 27 Jun 2001 19:43:25 +0200 (CEST) From: Daniele Guerrieri To: gtk-list@gnome.org Date: Wed, 27 Jun 2001 19:39:31 +0200 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <01062719422701.00714@localhost.localdomain> Content-Transfer-Encoding: 8bit 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm a beginner of Gtk. I would like know how move a button in a fixed widget using the GdkSignals Thank you! From golubenkoj@columbiafunds.com Wed Jun 27 13:52:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 2DF1B2E249; Wed, 27 Jun 2001 13:52:16 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 10:50:30 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 10:50:30 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: "'gtk-list@gnome.org'" , "'gtk-devel-list@gnome.org'" Subject: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 10:50:29 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724C36C27394-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, quick question, does anyone know editor with syntax highlighting for GTK+/GNOME API? Thanks, John. -----Original Message----- From: Eric M. Monsler [mailto:emonsler@beamreachnetworks.com] Sent: Wednesday, June 27, 2001 10:41 AM To: Havoc Pennington Cc: Paul Davis; gtk-list@gnome.org Subject: Re: stacking pixmaps Havoc Pennington wrote: > > "Eric M. Monsler" writes: > > IIRC, GNOME is GPL, vs. the LGPL of GTK. > > No, this is completely untrue - GNOME libraries have always been LGPL. Well, always happy to lose a fundamental misunderstanding! _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From alfons@proteus.demon.nl Wed Jun 27 14:00:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from proteus.demon.nl (proteus.demon.nl [212.238.30.186]) by mail.gnome.org (Postfix) with ESMTP id 2A0272E8FB; Wed, 27 Jun 2001 14:00:02 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=proteus.demon.nl ident=alfons) by proteus.demon.nl with smtp (Exim 3.22 #1) id 15FJvc-00007y-00; Wed, 27 Jun 2001 20:20:40 +0200 Date: Wed, 27 Jun 2001 20:20:40 +0200 From: Alfons Hoogervorst To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Message-Id: <20010627202040.22b0356b.alfons@proteus.demon.nl> In-Reply-To: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> References: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> Organization: Doubtful X-Mailer: Sylpheed version 0.5.0claws3 (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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Lo John, On Wed, 27 Jun 2001 10:50:29 -0700 you wrote: JG>Hey, quick question, JG>does anyone know editor with syntax highlighting for GTK+/GNOME API? Yeah, Scintilla... Bye. -- the ancient ruins the former wasted they shall all rise up and restore the ruined cities desolate now for generations From golubenkoj@columbiafunds.com Wed Jun 27 14:19:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id CB5C92BC97; Wed, 27 Jun 2001 14:19:07 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 11:17:22 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 11:17:22 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E7@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 11:17:22 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724FCB828641-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks Alfons, but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. I've wrote a little plugin for Jext (jext.org) editor, to highlight GTK+/GNOME API, but it's written in Java, so it's frustrating because of Java's slow GUI, etc. (http://65.4.117.16/projects/jext/ - 2 screenies). If I can find editor that does that kind of highlighting (written for Linux ;-), it'll be very helpfull. But, I like this SciTE editor a lot, it's seems very good. Thanks again, John. -----Original Message----- From: Alfons Hoogervorst [mailto:alfons@proteus.demon.nl] Sent: Wednesday, June 27, 2001 11:21 AM To: John Golubenko Cc: gtk-list@gnome.org; gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Lo John, On Wed, 27 Jun 2001 10:50:29 -0700 you wrote: JG>Hey, quick question, JG>does anyone know editor with syntax highlighting for GTK+/GNOME API? Yeah, Scintilla... Bye. -- the ancient ruins the former wasted they shall all rise up and restore the ruined cities desolate now for generations NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From pbd@op.net Wed Jun 27 14:27:40 2001 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 158262E917; Wed, 27 Jun 2001 14:27:25 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-20.ppp.op.net [209.152.206.32]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA28109; Wed, 27 Jun 2001 14:27:06 -0400 (EDT) Message-Id: <200106271827.OAA28109@renoir.op.net> To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-reply-to: Your message of "Wed, 27 Jun 2001 11:17:22 PDT." <0E402AD0FEACD411B7C100508BCDF6110108A0E7@cmc-exchange.columbiafunds.com> Date: Wed, 27 Jun 2001 14:27:07 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thanks Alfons, >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. the GTK+ and GNOME API's are written in C. what on earth does it mean to "highlight" the API of a particular library? emacs can do what you want to. obviously, since emacs is turing-complete. --p From golubenkoj@columbiafunds.com Wed Jun 27 14:36:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 1537B2E92B; Wed, 27 Jun 2001 14:35:01 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 11:33:12 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 11:33:12 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 11:33:11 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724F96229368-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I meant that those editors hightligh only int, float, char, etc., a common keywords, but not keywords like GtkObject, GtkWidget, gtk_main_quit, etc. Also you can see what i'm talking about by visiting the url i've posted, and look at [before] and [after] screenshots. The one named [before] shows what every editor out there does, and [after] shows highlighting that i want. Emacs doesn't do it either. Of course I can modify the sources to make it work, but it's another story. Also I don't feel good about discussing it on this public list, sinse it's kinda offtopic... anyway, thanks a lot, john. -----Original Message----- From: Paul Davis [mailto:pbd@Op.Net] Sent: Wednesday, June 27, 2001 11:27 AM To: John Golubenko Cc: gtk-list@gnome.org; gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API >Thanks Alfons, >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. the GTK+ and GNOME API's are written in C. what on earth does it mean to "highlight" the API of a particular library? emacs can do what you want to. obviously, since emacs is turing-complete. --p NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From trutkin@physics.clarku.edu Wed Jun 27 15:19:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from planck.clarku.edu (planck.clarku.edu [140.232.2.12]) by mail.gnome.org (Postfix) with ESMTP id 8BEC72BCF5 for ; Wed, 27 Jun 2001 15:19:25 -0400 (EDT) Received: from trutkin (helo=localhost) by planck.clarku.edu with local-smtp (Exim 3.12 #1 (Debian)) id 15FKqR-0004fD-00 for ; Wed, 27 Jun 2001 15:19:23 -0400 Date: Wed, 27 Jun 2001 15:19:23 -0400 (EDT) From: Taybin Rutkin X-Sender: trutkin@planck.clarku.edu Reply-To: Taybin Rutkin To: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-Reply-To: <200106271827.OAA28109@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 27 Jun 2001, Paul Davis wrote: > >Thanks Alfons, > >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. > > the GTK+ and GNOME API's are written in C. what on earth does it mean > to "highlight" the API of a particular library? I know what he's asking for. I used to use a basic editor for the macintosh called FutureBasic that highlight all the macintosh system calls as well as the reserved words. Try glimmer. It seems to highlight certain gtk+ calls. Or at least it is intelligent to recognize macros and highlight those. Also, gide support two or three scripting languages to customize highlighting. That would probably be the easiest way to get what you want. And if you write a script to do that yourself, don't forget to release it; I think I might be interested in such a feature. Taybin Rutkin From sven@gimp.org Wed Jun 27 15:28:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9055BC4.dip.t-dialin.net [217.5.91.196]) by mail.gnome.org (Postfix) with ESMTP id 986642E848; Wed, 27 Jun 2001 15:28:36 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15FKri-0001Wb-00; Wed, 27 Jun 2001 21:20:42 +0200 To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API References: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> From: Sven Neumann Date: 27 Jun 2001 21:20:42 +0200 In-Reply-To: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> Message-ID: Lines: 29 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "John Golubenko" writes: > Emacs doesn't do it either. Of course I can modify the sources to make it > work, but it's another story. you don't need to modify any source. Just add a few lines to your .emacs. Something like: (custom-set-variables '(c-font-lock-extra-types (quote ("gint" "gfloat" "gchar" "gint8" "gint16" "gint32" "guint" "guint8" "guint16" "guint32" "guchar" "glong" "gboolean" "gshort" "gushort" "gulong" "gdouble" "gldouble" "gpointer" "G_\\w+" "GList" "GSList" "GFunc" "GPOINTER_\\w+" "GINT_\\w+" "GUINT_\\w+" "Gtk\\w+" "Gdk\\w+" "GTK\\w+" "GDK\\w+" "NULL" "Gimp\\w+" "GIMP\\w+" "FT_\\w+" "Pango\\w+" "PANGO\\w+" "->" "FALSE" "TRUE" "FILE" "MIN" "MAX" "CLAMP" "ABS" "DIR" "\\sw+_t" "GCim\\w+"))) You will want to modify/extend this list a bit and I'm sure there are better ways to do this, but this one works reasonably well. Salut, Sven From golubenkoj@columbiafunds.com Wed Jun 27 15:30:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 2FD6D2E887 for ; Wed, 27 Jun 2001 15:30:17 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 12:28:31 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 12:28:31 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0FC@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: "'Taybin Rutkin'" , gtk-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 12:28:30 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724EC5531657-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Taybin, You are very right. Like I've said, i've wrote an update for jext, that has GTK+ API highlighting. It took me a while to find all API calls I can find. Still, i've missed a lot. But sinse it's written in Java, and uses GUI, it's not something I'm going to use, because of slow performance of Java on the front end, etc. I've just started to write GTK+ applications, and I love it. Thanks, John. -----Original Message----- From: Taybin Rutkin [mailto:trutkin@physics.clarku.edu] Sent: Wednesday, June 27, 2001 12:19 PM To: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API On Wed, 27 Jun 2001, Paul Davis wrote: > >Thanks Alfons, > >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. > > the GTK+ and GNOME API's are written in C. what on earth does it mean > to "highlight" the API of a particular library? I know what he's asking for. I used to use a basic editor for the macintosh called FutureBasic that highlight all the macintosh system calls as well as the reserved words. Try glimmer. It seems to highlight certain gtk+ calls. Or at least it is intelligent to recognize macros and highlight those. Also, gide support two or three scripting languages to customize highlighting. That would probably be the easiest way to get what you want. And if you write a script to do that yourself, don't forget to release it; I think I might be interested in such a feature. Taybin Rutkin _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From pbd@op.net Wed Jun 27 15:34:29 2001 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 09FF22D315 for ; Wed, 27 Jun 2001 15:34:29 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-20.ppp.op.net [209.152.206.32]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA06308; Wed, 27 Jun 2001 15:34:20 -0400 (EDT) Message-Id: <200106271934.PAA06308@renoir.op.net> To: Taybin Rutkin Cc: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-reply-to: Your message of "Wed, 27 Jun 2001 15:19:23 EDT." Date: Wed, 27 Jun 2001 15:34:39 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >Thanks Alfons, >> >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. >> >> the GTK+ and GNOME API's are written in C. what on earth does it mean >> to "highlight" the API of a particular library? > >I know what he's asking for. I used to use a basic editor for the >macintosh called FutureBasic that highlight all the macintosh system calls >as well as the reserved words. OK. For emacs: (font-lock-add-keywords 'c-mode '(("gtk_widget_new" 1 font-lock-function-name-face t) ("gtk_widget_whatever" 1 font-lock-function-name-face t) .... ("GtkWidget" 1 font-lock-keyword-face t) ("GtkFrame" 1 font-lock-keyword-face t) .... )) By using etags to build a list of function names, then sed/awk/perl to transform this into an elisp statement like the one above, the job could be done extremely quickly. I don't know how quick emacs would handle this for a library with hundreds of functions but I imagine it would work pretty well. --p (who prefers his source code raw, not burnt to a multicolored crisp) From nhodgson@bigpond.net.au Wed Jun 27 18:51:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailin5.bigpond.com (juicer02.bigpond.com [139.134.6.78]) by mail.gnome.org (Postfix) with ESMTP id EB0CA2DDF4; Wed, 27 Jun 2001 18:51:33 -0400 (EDT) Received: from neil ([144.135.24.81]) by mailin5.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GFM2FC00.JPK; Thu, 28 Jun 2001 08:57:12 +1000 Received: from CPE-144-132-204-10.nsw.bigpond.net.au ([144.132.204.10]) by bwmam05.mailsvc.email.bigpond.com(MailRouter V2.9g 8335/16534); 28 Jun 2001 08:52:18 Message-ID: <033201c0ff5b$9a21b120$0acc8490@neil> From: "Neil Hodgson" To: Cc: References: <20010627193601.7F45C2E39D@mail.gnome.org> Subject: Re: editor with syntax highlighting for GTK+/GNOME API Date: Thu, 28 Jun 2001 08:50:45 +1000 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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: John Golubenko: > If I can find editor that does that kind of highlighting > (written for Linux ;-), it'll be very helpfull. But, I like > this SciTE editor a lot, it's seems very good. The current prerelease versions of Scintilla and SciTE 1.39 support a second set of keywords in the C lexer. It does not support regular expressions or prefix based keyword matching although a prefix matcher would be fairly easy to add. I'd be concerned at the performance implications of using regular expressions for this. If you want to modify the C lexer to support prefix based keyword matching scintilla/src/LexCPP.cxx is the file to modify. Prerelease 1.39 available from the Scintilla CVS at https://sourceforge.net/cvs/?group_id=2439 or as a source zip at http://www.scintilla.org/scite.zip To add the keywords in SciTE add this property listing all the keywords: keywords2.$(file.patterns.cpp)=GtkWidget GtkItemFactory GtkAccelGroup \ ... Neil From lestat.lioncourt@innocent.com Wed Jun 27 19:02:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-5-115.abo.wanadoo.fr [193.252.11.115]) by mail.gnome.org (Postfix) with ESMTP id 999C32BB2D for ; Wed, 27 Jun 2001 19:02:56 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 6FE04C0D2; Thu, 28 Jun 2001 01:02:54 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Wed, 27 Jun 2001 23:02:54 +0000 From: "David Goncalves" To: Cc: Subject: Re: Re: gtk_clist_remove : bug or undocumented feature ;) MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010627230254.6FE04C0D2@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, > > I'm currently experiencing a strange reaction from a gtk_clist. > > I have a gtk_clist configured with GTK_SELECTION_BROWSE and > > when i use gtk_clist_remove to remove the LAST row, an invisible > > row stay in the list and is unusable... > > It could be that the unusable last row is just blank space left in the > clist's enclosing window. Try setting the policy of the window that > holds the clist to allow-shrink and auto-shrink using the > gtk_window_set_policy() routine. I don't think that the last row is just a blank space because this row is clickable but when you try to get informations, from this row it fails. And i only have this problem when i remove the last line of the clist. I don't understand what's appening ;( From nhodgson@bigpond.net.au Wed Jun 27 19:22:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailin8.bigpond.com (juicer39.bigpond.com [139.134.6.96]) by mail.gnome.org (Postfix) with ESMTP id 34C102D200; Wed, 27 Jun 2001 19:22:11 -0400 (EDT) Received: from neil ([144.135.24.81]) by mailin8.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GFM3UD00.D85; Thu, 28 Jun 2001 09:27:49 +1000 Received: from CPE-144-132-204-10.nsw.bigpond.net.au ([144.132.204.10]) by bwmam05.mailsvc.email.bigpond.com(MailRouter V2.9g 8335/43883); 28 Jun 2001 09:22:55 Message-ID: <03a801c0ff5f$e1381960$0acc8490@neil> From: "Neil Hodgson" To: Cc: , Subject: Re: editor with syntax highlighting for GTK+/GNOME AP Date: Thu, 28 Jun 2001 09:21:22 +1000 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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Neil (me): > If you want to modify the C lexer to support prefix based > keyword matching scintilla/src/LexCPP.cxx is the file > to modify. Such an easy feature that its now in and available from the previously mentioned locations. Uses '^' to indicate a prefix by analogy with start-of-line regexps. Try: keywords2.$(file.patterns.cpp)=GtkWidget ^GTK_ ^gtk_ This does lose some functionality over listing all the calls which shows when you have misspelt a call by not highlighting. Neil From zaloi@yahoo.com Wed Jun 27 23:30:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14505.mail.yahoo.com (web14505.mail.yahoo.com [216.136.224.68]) by mail.gnome.org (Postfix) with SMTP id 606662E7A5 for ; Wed, 27 Jun 2001 23:30:20 -0400 (EDT) Message-ID: <20010628033019.95035.qmail@web14505.mail.yahoo.com> Received: from [161.142.78.84] by web14505.mail.yahoo.com; Wed, 27 Jun 2001 20:30:19 PDT Date: Wed, 27 Jun 2001 20:30:19 -0700 (PDT) From: mr zali Subject: gtkfilesel.c To: gtk-list@gnome.org In-Reply-To: <20010618070228.62817.qmail@web14508.mail.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear friend, I want to edit the 'GTK file selector' so that the user can browse their 'home' directory only. I have a problem with gtk-menu-option(at top of of the 'file selector' dialog box). How I want to edit the gtkfilesel.c source code so that the gtk-menu-option, display 'home directory' and forward only. Can u guide me.. :-) regards, __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From deekshit.mantampady@wipro.com Thu Jun 28 00:20:37 2001 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 00DF92C983 for ; Thu, 28 Jun 2001 00:20:31 -0400 (EDT) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id f5S9wtc13271 for ; Thu, 28 Jun 2001 09:58:55 GMT Received: from wipro.com ([192.168.22.180]) by sarovar.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GFMG4L00.G5X for ; Thu, 28 Jun 2001 09:23:09 +0530 Message-ID: <3B3AA907.11DE77FB@wipro.com> Date: Wed, 27 Jun 2001 20:48:23 -0700 From: Deekshit Mantampady X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: How to make menu insensitive 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am using "GtkItemFactory" to create menus. I want to know How I enable or disable, make it visible or invisible, dynamically. Can anybody help me to find out solution. Regards Deekshit M From suzhe@gnuchina.org Thu Jun 28 00:35:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnuchina.org (unknown [210.73.87.125]) by mail.gnome.org (Postfix) with ESMTP id 8D0212E81D for ; Thu, 28 Jun 2001 00:35:53 -0400 (EDT) Received: from gnuchina.org ([166.111.148.127]) by gnuchina.org (8.11.3/8.9.3) with ESMTP id f5S4XI929392 for ; Thu, 28 Jun 2001 12:33:18 +0800 Message-ID: <3B3AB3FA.6090801@gnuchina.org> Date: Thu, 28 Jun 2001 12:35:06 +0800 From: James Su Reply-To: suzhe@gnuchina.org User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5-1.4 i686; en-US; rv:0.9.1) Gecko/20010612 X-Accept-Language: zh-cn, zh, en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Can I get the screen resolution via Gdk/Gtk ? Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I want to get the screen resolution (dpi), but how can I do it within gdk/gtk? Regards, James Su From hp@redhat.com Thu Jun 28 01:03:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B31A92E95A for ; Thu, 28 Jun 2001 01:03:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5S53bG07866; Thu, 28 Jun 2001 01:03:37 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: suzhe@gnuchina.org Cc: gtk-list@gnome.org Subject: Re: Can I get the screen resolution via Gdk/Gtk ? References: <3B3AB3FA.6090801@gnuchina.org> From: Havoc Pennington Date: 28 Jun 2001 01:03:37 -0400 In-Reply-To: James Su's message of "Thu, 28 Jun 2001 12:35:06 +0800" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: James Su writes: > > I want to get the screen resolution (dpi), but how can I do it within > gdk/gtk? > gdk_screen_width_mm() gives size in millimeters, gdk_screen_width() size in pixels, the math to get pixels per millimeter is pretty simple. Beware though, for many X servers the millimeter size will be completely bogus. Havoc From pranjal@lgsi.co.in Thu Jun 28 01:08:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from polaris.lgsi.co.in (unknown [202.54.13.206]) by mail.gnome.org (Postfix) with ESMTP id 520B32E974 for ; Thu, 28 Jun 2001 01:08:05 -0400 (EDT) Received: from pranjal ([202.54.13.195]) by polaris.lgsi.co.in (Netscape Messaging Server 4.15) with ESMTP id GFMJWX00.QNV for ; Thu, 28 Jun 2001 10:44:57 +0530 From: "Pranjal Saikia" To: Subject: GTK FB !! Date: Thu, 28 Jun 2001 11:26:19 +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.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi !! I'm trying to develop one application using GTK FB for embedded system. Can anyone tell me abt the steps to Install as well as the verions of GTK + FB ? Regards Pranjal From linuxfun@163.com Thu Jun 28 02:27:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.163.com (unknown [202.108.44.225]) by mail.gnome.org (Postfix) with ESMTP id EDCE72BD60 for ; Thu, 28 Jun 2001 02:27:34 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp3.163.com (Postfix) with SMTP id 61A811D30C234 for ; Thu, 28 Jun 2001 14:19:51 +0800 (CST) Message-ID: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> From: "linuxfun" To: "GTK+" Subject: Hi Date: Thu, 28 Jun 2001 14:25:39 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C0FFDE.347EC640" 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.5 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_0013_01C0FFDE.347EC640 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGkNCkkgYW0gdGhlIGJlZ2lubmVyIG9nIEdUSysgYnV0IEkgbG92ZSBpdCB2ZXJ5IG11Y2guSGVy ZSBpcyBteSBwcm9ibGVvbToNCkkgY2Fubm90IGNvbXBpbGUgbXkgR1RLIHByb2dyYW1tIGhlbGxv LmMgaW4gUmVkaGF0IDYuMSx1c2UgZ2NjIGhlbGxvLmMgLW8gaGVsbG8gJ2d0ay1jb25maWctLWNm bGFncy0tbGlicycsd2h5PyBJIGluc3RhbGxlZCB3b3Jrc3RhdGlvbiByZWRoYXQuDQoNCnRoYW5r IGFsbCBvZiB5b3UhIA0K ------=_NextPart_000_0013_01C0FFDE.347EC640 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj5IaTwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgc2l6ZT0yPkkgYW0gdGhlIGJlZ2lubmVyIG9nIEdUSysgYnV0IEkgbG92ZSBpdCB2 ZXJ5IG11Y2guSGVyZSBpcyBteSANCnByb2JsZW9tOjwvRk9OVD48L0RJVj4NCjxESVY+PEZPTlQg c2l6ZT0yPkkgY2Fubm90IGNvbXBpbGUgbXkgR1RLIHByb2dyYW1tIGhlbGxvLmMgaW4gUmVkaGF0 IDYuMSx1c2UgZ2NjIA0KaGVsbG8uYyAtbyBoZWxsbyAnZ3RrLWNvbmZpZy0tY2ZsYWdzLS1saWJz Jyx3aHk/IEkgaW5zdGFsbGVkIHdvcmtzdGF0aW9uIA0KcmVkaGF0LjwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgc2l6ZT0yPjwvRk9OVD4mbmJzcDs8L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0yPnRo YW5rIGFsbCBvZiB5b3UhIDwvRk9OVD48L0RJVj48L0JPRFk+PC9IVE1MPg0K ------=_NextPart_000_0013_01C0FFDE.347EC640-- From Florent.Devin@lifl.fr Thu Jun 28 02:57:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by mail.gnome.org (Postfix) with ESMTP id 785AE2DC95 for ; Thu, 28 Jun 2001 02:57:00 -0400 (EDT) Received: from lifl.fr (brakina.lifl.fr [134.206.10.212]) by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id IAA01960 ; Thu, 28 Jun 2001 08:56:34 +0200 (MET DST) Message-ID: <3B3AD5A1.7070502@lifl.fr> Date: Thu, 28 Jun 2001 08:58:41 +0200 From: "Florent.Devin" User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: gnome/gtkcanvas References: <993663497.11889.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy wrote: > Hey.. > Ok so I've decided to go with gnomecanvas. > I'm having trouble drawing images to the canvas though... > Here's the code: > > GdkImlibImage *Image = gdk_imlib_load_image ("mypng.png"); > > /* create a new canvas */ > gtk_widget_push_visual (gdk_imlib_get_visual ()); > gtk_widget_push_colormap (gdk_imlib_get_colormap ()); > canvas = gnome_canvas_new(); > gtk_widget_pop_visual(); > gtk_widget_pop_colormap(); > . > . > . > . > gnome_canvas_item_new (gnome_canvas_root(canvas), > gnome_canvas_image_get_type (), > "image", Image, > "x", 0, > "y", 0, > "width",(double)Image->rgb_width, > "height", (double)Image->rgb_height, > NULL); > You should use "x", 0.0, "y", 0.0, This is to respect the correct type an int is not a float... and perhaps put an anchor for your image, I can't remember if it's necessary. "anchor", GTK_ANCHOR_... -- Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL) LIFL, Laboratoire d'Informatique Fondamentale de LILLE USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex From Florent.Devin@lifl.fr Thu Jun 28 03:02:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by mail.gnome.org (Postfix) with ESMTP id 1ECF62E381 for ; Thu, 28 Jun 2001 03:02:07 -0400 (EDT) Received: from lifl.fr (brakina.lifl.fr [134.206.10.212]) by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id JAA02326 ; Thu, 28 Jun 2001 09:02:03 +0200 (MET DST) Message-ID: <3B3AD6EB.5070405@lifl.fr> Date: Thu, 28 Jun 2001 09:04:11 +0200 From: "Florent.Devin" User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: en MIME-Version: 1.0 To: Filipe Bonjour Cc: GTK List Subject: Re: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour wrote: > Hi, > > I'm just starting programming with GTK, and I'm having problems with > events. Specifically, I'm writing a program (using GTK/Gnome built by > Glade) to visualize data in 2D/3D using a GtkGlArea widget (a subclass > of GtkDrawingArea). > > In short, I have several drawing options, and I want to send the > GtkGlArea widget an expose event when the user changes any of these > options. I have tried things like: > > gtk_signal_emit_by_name(glarea, "expose_event"); > gtk_signal_emit_by_name(glarea, "expose-event"); > > (which cause a SIGSEGV) and > > gtk_signal_emit(glarea, 32); > gtk_signal_emit(glarea, GDK_EXPOSE); > gtk_signal_emit(glarea, gtk_signal_lookup("expose_event", > GTK_TYPE_GL_AREA)); > gtk_signal_emit(glarea, gtk_signal_lookup("expose-event", > GTK_TYPE_GL_AREA)); > > which are at best ignored. So I have a few questions... > > 1) Where are the signal numbers and names defined? I couldn't find them > anywhere. For gtk_signal_emit I find it hard to believe that we are > expected to give an actual number, I thought there would be some > defined symbols, such as "#define GTK_SIGNAL_EXPOSE 32" or something. > gtk_signal_emit_by_name (GTK_OBJECT (widget), "expose_event", widget); which mean that you have to provide all parameter of the function which is call when the signal is emited. In my case the prototype is : gint f (GtkWidget *widget, GdkEventExpose *event, gpointer userdata) Hope this help -- Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL) LIFL, Laboratoire d'Informatique Fondamentale de LILLE USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex From craig.emery@3glab.com Thu Jun 28 03:13:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 1AD1D2E80D for ; Thu, 28 Jun 2001 03:13:33 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15FVzW-0004Vy-00 for gtk-list@gnome.org; Thu, 28 Jun 2001 08:13:30 +0100 Message-ID: <3B3AD8F4.50905@3glab.com> Date: Thu, 28 Jun 2001 08:12:52 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010626 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK List Subject: Re: How to make menu insensitive References: <3B3AA907.11DE77FB@wipro.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15FVzW-0004Vy-00*xrg5tS1097w* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After setting up the menu with the item factory I use gtk_item_factory_get_widget () to get the widget that's created with the path of the item I want. Then (if, say, it's a check-box item) you can call gtk_check_menu_item_set_active (...) might not be the best method, but works for me. Craig. Deekshit Mantampady wrote: >Hi, > > I am using "GtkItemFactory" to create menus. I want to know How I >enable or disable, make it visible or invisible, dynamically. Can >anybody help me to find out solution. > >Regards >Deekshit M > From craig.emery@3glab.com Thu Jun 28 04:03:23 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 604CB2BD26 for ; Thu, 28 Jun 2001 04:03:21 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15FWlj-0008S8-00 for gtk-list@gnome.org; Thu, 28 Jun 2001 09:03:19 +0100 Message-ID: <3B3AE4A2.9050903@3glab.com> Date: Thu, 28 Jun 2001 09:02:42 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010626 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK+ Subject: Re: Hi References: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15FWlj-0008S8-00*9PQ7TU4YBSY* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yup. Looks like you're using the wrong quotes in your compile command. You've got "single quotation marks" (i.e. ' ) but you need apostrophies (i.e. ` ) On my keyboard, the apostrophy is up by the non-keypad 1 key. Apostrophies (I've heard them called ticks too; that's only one sylable, much easier to "talk") mean: "run this command and put it's output **here**" So the output of the call to gtk-config (that gives the compiler flags, in your case, for bith #include directives and linking) will be supplied to gcc. This is failrly simple shell stuff and, incidentally, nothing to do with GTK+. The shell is your friend. Learn it well. Craig. linuxfun wrote: > Hi > > I am the beginner og GTK+ but I love it very much.Here is my probleom: > > I cannot compile my GTK programm hello.c in Redhat 6.1,use gcc hello.c > -o hello 'gtk-config--cflags--libs',why? I installed workstation redhat. > > thank all of you! > From sven@gimp.org Thu Jun 28 05:01:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A24.dip.t-dialin.net [217.80.26.36]) by mail.gnome.org (Postfix) with ESMTP id 832F22DEA3 for ; Thu, 28 Jun 2001 05:01:26 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15FX6T-000892-00; Thu, 28 Jun 2001 10:24:45 +0200 To: "Florent.Devin" Cc: Filipe Bonjour , GTK List Subject: Re: Signals References: <3B3AD6EB.5070405@lifl.fr> From: Sven Neumann Date: 28 Jun 2001 10:24:45 +0200 In-Reply-To: <3B3AD6EB.5070405@lifl.fr> Message-ID: Lines: 19 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "Florent.Devin" writes: > gtk_signal_emit_by_name (GTK_OBJECT (widget), "expose_event", widget); > > which mean that you have to provide all parameter of the function which > is call when the signal is emited. > > In my case the prototype is : > gint f (GtkWidget *widget, GdkEventExpose *event, gpointer userdata) and you still should _not_ create synthetic expose events, but use gtk_widget_queue_draw() instead. Salut, Sven From john.cupitt@ng-london.org.uk Thu Jun 28 06:57:55 2001 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 822572DBB9 for ; Thu, 28 Jun 2001 06:57:55 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WKZX; Thu, 28 Jun 2001 11:57:54 +0100 Message-ID: <3B3B0C5F.A714E371@ng-london.org.uk> Date: Thu, 28 Jun 2001 11:52:15 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Craig Emery Cc: GTK List Subject: Re: How to make menu insensitive References: <3B3AA907.11DE77FB@wipro.com> <3B3AD8F4.50905@3glab.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Craig Emery wrote: > > After setting up the menu with the item factory I use > gtk_item_factory_get_widget () > to get the widget that's created with the path of the item I want. > > Then (if, say, it's a check-box item) you can call > > gtk_check_menu_item_set_active (...) > > might not be the best method, but works for me. > > Craig. > > Deekshit Mantampady wrote: > > >Hi, > > > > I am using "GtkItemFactory" to create menus. I want to know How I > >enable or disable, make it visible or invisible, dynamically. Can > >anybody help me to find out solution. > > > >Regards > >Deekshit M Hi, you can also use gtk_widget_show()/gtk_widget_hide() to make menu items appear and disappear, and gtk_widget_set_sensitive() to make items grey out/not grey out. John From maiano@ensma.fr Thu Jun 28 07:06:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from graal.ensma.fr (graal.ensma.fr [193.55.167.3]) by mail.gnome.org (Postfix) with ESMTP id 353C52DE4C for ; Thu, 28 Jun 2001 07:06:06 -0400 (EDT) Received: from lisi-linux.ensma.fr (lisi-linux.ensma.fr [193.55.163.95]) by graal.ensma.fr (8.9.1b+Sun/8.9.1) with SMTP id NAA02999 for ; Thu, 28 Jun 2001 13:04:57 +0100 (WET DST) From: S M Date: Thu, 28 Jun 2001 11:05:07 GMT Message-ID: <20010628.11050700@lisi-linux.ensma.fr> Subject: Drag and Drop To: gtk-list@gnome.org X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Linux) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary= "------------=_4D4800C722E808580338" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------=_4D4800C722E808580338 Content-Description: filename="text1.txt" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I have got few questions about Drag and Drop: First, At which time are released the following signals: =AB drag-begin = =BB,=20 =AB drag-end =BB, =AB drag-data-get =BB, =AB drag-data-received =BB, =AB= drag-motion =BB,=20 =AB drag-drop =BB, =AB drag-leave =BB, =AB drag-data-delete =BB? Then, What do we exactly obtain in GdkDragContext? And, How do we get the destination tree position when we perform a Drag = and Drop?=20 What about the use of x and y in =AB drag-data-received =BB callback, fo= r a=20 tree? ? S. Maiano --------------=_4D4800C722E808580338 Content-Description: filename="text1.html" Content-Type: text/html Content-Transfer-Encoding: quoted-printable Drag and Drop
Hi,

  I have got few questions about Drag and Drop:

First, At which time are released the following signals:
« drag-begin », =
« drag-end », « drag-data-get &raq=
uo;,
« drag-data-received », « drag-motion&n=
bsp;», « drag-drop », « drag-leav=
e »,
« drag-data-delete »?

Then, What do we exactly obtain in Gdk=
DragContext?


And, How do we get the destination tre=
e position when we perform a Drag
and Drop?=20
What about the use of x and y in « drag-data-received &r=
aquo; callback, for a
tree? ?

S. Maiano
--------------=_4D4800C722E808580338-- From mark@winksmith.com Thu Jun 28 09:35:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from internal.winksmith.com (dsl254-080-158.nyc1.dsl.speakeasy.net [216.254.80.158]) by mail.gnome.org (Postfix) with ESMTP id 5CDA22CE47 for ; Thu, 28 Jun 2001 09:35:27 -0400 (EDT) Received: from alpha.winksmith.com (IDENT:root@alpha.winksmith.com [192.168.1.10]) by internal.winksmith.com (8.11.0/8.11.0) with ESMTP id f5SDYvo10136; Thu, 28 Jun 2001 09:34:57 -0400 Received: (from mark@localhost) by alpha.winksmith.com (8.11.0/8.11.0) id f5SDZAL18031; Thu, 28 Jun 2001 09:35:10 -0400 Date: Thu, 28 Jun 2001 09:35:07 -0400 From: mark@winksmith.com To: gtk-list@gnome.org Cc: Judd Montgomery Subject: calendar widget on alpha/rh7.0 Message-ID: <20010628093507.A18013@winksmith.com> Reply-To: mark@winksmith.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using a great application called jpilot on my DEC alpha. The operating system is RH7.0 (gtk+1.2.8). The program works pretty good except for the GtkCalendar widget. It gets all vertically squeezed. This only occurs on the alpha architecture. gtk 1.2.8 works as expected on intel. I have a small-ish program (supplied by judd, email listed above) which creates the defect. I can also supply 4-5k jpg snapshots of the squeezing effect. I researched the bugzilla database on rh and for gtk, did a google search, and searched the mail archives, but couldn't find any mention of this phenomenon. Is anyone familiar with this? can anyone help me? -- Mark Smith mark@winksmith.com From rbultje@ronald.bitfreak.net Thu Jun 28 16:30:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 5CA192BD2A for ; Thu, 28 Jun 2001 16:30:16 -0400 (EDT) Received: from [192.168.0.112] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5SLC0F04230 for ; Thu, 28 Jun 2001 23:12:00 +0200 (CEST) Subject: bug? From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Jun 2001 22:30:05 +0200 Message-Id: <993760215.9692.2.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi people, I have a window of two buttons and one label in a hbox. If I change the text in the label, as a reaction on a signal, the hbox will suddenly enlarge and be much larger than it should be... Code of the window: hbox2 = gtk_hbox_new(FALSE, 10); button = gtk_button_new(); //_with_label("Stop []"); /* kill */ pixmap_widget = gtk_widget_from_xpm_data(editor_stop_xpm); gtk_container_add(GTK_CONTAINER(button), pixmap_widget); gtk_widget_show (pixmap_widget); gtk_tooltips_set_tip(tooltip, button, "Stop Preview Video Stream", NULL); gtk_widget_set_usize(button, 32, 32); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(stop_scene_transition), NULL); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE,FALSE, 0); gtk_widget_show (button); button = gtk_button_new(); //_with_label("Play |>"); /* lavpipe | yuvplay */ pixmap_widget = gtk_widget_from_xpm_data(editor_play_xpm); gtk_container_add(GTK_CONTAINER(button), pixmap_widget); gtk_widget_show (pixmap_widget); gtk_tooltips_set_tip(tooltip, button, "Preview the Scene Transition", NULL); gtk_widget_set_usize(button, 32, 32); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(play_scene_transition), (gpointer)options); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE,FALSE, 0); gtk_widget_show (button); sprintf(temp, "0 / %d - 0:00:00.00", GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1); preview_frame_count_label = gtk_label_new(temp); gtk_box_pack_start (GTK_BOX (hbox2), preview_frame_count_label, TRUE,FALSE, 0); gtk_widget_show (preview_frame_count_label); gtk_box_pack_start (GTK_BOX (vbox2), hbox2, TRUE, FALSE, 0); gtk_widget_show(hbox2); The signal does the following: char temp[64]; int d,h,m,s,f; sscanf(msg, "Playing frame %d - %d:%d:%d.%d", &d, &h, &m, &s, &f); sprintf(temp, "%d / %d - %d:%2.2d:%2.2d.%2.2d", d, GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1, h,m,s,f); gtk_label_set_text(GTK_LABEL(preview_frame_count_label), temp); And the first time this signal is called, the hbox enlarges. After that, I can resize the window and it will stay small until I get back to another callback which sets it back to the original state: char temp[64]; sprintf(temp, "0 / %d - 0:00:00.00" , GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1); gtk_label_set_text(GTK_LABEL(preview_frame_count_label), temp); Then, it gets big again. Is this a (known) bug? And is there a way to solve this? Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From pbd@op.net Thu Jun 28 17:32:40 2001 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 A83072BB01 for ; Thu, 28 Jun 2001 17:32:39 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-16.ppp.op.net [209.152.206.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id RAA03942; Thu, 28 Jun 2001 17:32:30 -0400 (EDT) Message-Id: <200106282132.RAA03942@renoir.op.net> To: Ronald Bultje Cc: GTK Mailing List Subject: Re: bug? In-reply-to: Your message of "28 Jun 2001 22:30:05 +0200." <993760215.9692.2.camel@tux> Date: Thu, 28 Jun 2001 17:32:59 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have a window of two buttons and one label in a hbox. >If I change the text in the label, as a reaction on a signal, the hbox >will suddenly enlarge and be much larger than it should be... labels (and containers) expand to display their contents unless told otherwise. whats the bug? if you want the box to be of a fixed size, use gtk_widget_set_usize(). --p From ardm2@cam.ac.uk Thu Jun 28 20:53:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from orange.csi.cam.ac.uk (orange.csi.cam.ac.uk [131.111.8.77]) by mail.gnome.org (Postfix) with ESMTP id 3CD1A2CA8C for ; Thu, 28 Jun 2001 20:53:44 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by orange.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FmXX-0006sq-00 for gtk-list@gnome.org; Fri, 29 Jun 2001 01:53:43 +0100 Subject: GC's From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 29 Jun 2001 01:56:16 +0000 Message-Id: <993779777.4838.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, I'm trying to get the hang of GdkGC's but I can't find any decent documentation... For example, if I wanted to draw something in, say, red on a pixmap, how would I go about that? I currently do this, but it doesn't seem to work GdkGc selectedGC; //I think the following line is the problem // I have tried this with the pixmap instead of widget->window // but then the colormap is null.. with this code, nothing happens GdkColormap *cmap = gdk_window_get_colormap (widget->window); GdkColor cred; cred.red =1.0; cred.green = 0; cred.blue = 0; gdk_color_alloc (cmap, &cred); selectedGC = gdk_gc_new (pictureBuff); gdk_gc_set_foreground (selectedGC, &cred); cheers, Alex Mathy From linuxfun@163.com Thu Jun 28 21:47:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.163.com (unknown [202.108.44.225]) by mail.gnome.org (Postfix) with ESMTP id B47C92BB98 for ; Thu, 28 Jun 2001 21:47:06 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp3.163.com (Postfix) with SMTP id 94ED11D4D35B0; Fri, 29 Jun 2001 09:27:32 +0800 (CST) Message-ID: <001701c1003b$8155d140$8002a8c0@SHECA.COM> From: "linuxfun" To: "Craig Emery" , "GTK+" References: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> <3B3AE4A2.9050903@3glab.com> Subject: Re: Hi Date: Fri, 29 Jun 2001 09:33:24 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: RGVhciBDcmFpZyBFbWVyeToNClRoYW5rIHlvdSB2ZXJ5IG11Y2ggZm9yIHlvdXIgcmVwbHkuDQpJ IGFtIGEgQ2hpbmVzZSBib3kgYW5kIGJlZ2luIHRvIGxlYXJuIHByb2dyYW1taW5nIG9uIExpbnV4 Lkl0J3MgbXkgaW50ZXJlc3QuQnV0IGF0IHRoZSB2ZXJ5IGJlZ2lubmluZyAsZXZlcnl0aGluZyBz ZWVtcyB0b28gZGlmZmljdWx0LjopIEFueXdheSBJIGxvdmUgdGhpcy4NCmF0ICMgLEkgdHlwZSBn dGstY29uZmlnIC0tdmVyc2lvbiAsaXQgcmVwbHlzIDoxLjIuNSxzbyBpdCBzZWVtcyB0aGF0IHRo ZSBHVEsrIGlzIGdvaW5nIHdlbGw/DQphbmQgSSAjbWFuIGd0ay1jb25maWcgdG8gZ2V0IGhlbHAu QnV0IEkgZG8gbm90IGtub3cgdGhlIHJlbGF0aW9uc2hpcCBiZXR3ZWVuICIjZ2NjIC1vIGRlc3Qu YyBzb3VyY2UuYyBgZ3RrLWNvbmcuLi4uLi4uYCIgYW5kIGNvbW1hbmQgImd0ay1jb25maWciLGNv dWxkIHlvdSB0ZWxsIG1lIHdoZW4geW91IGFyZSBmcmVlPw0KdGhhbmtzIGEgbG90IQ0KUFM6Zm9y Z2l2ZSBtZSB0aGF0IG15IGVuZ2xpc2ggaXMgbm90IGZsdWVudC4NCg0KLS0tLS0gT3JpZ2luYWwg TWVzc2FnZSAtLS0tLSANCkZyb206ICJDcmFpZyBFbWVyeSIgPGNyYWlnLmVtZXJ5QDNnbGFiLmNv bT4NClRvOiAiR1RLKyIgPGd0ay1saXN0QGdub21lLm9yZz4NClNlbnQ6IFRodXJzZGF5LCBKdW5l IDI4LCAyMDAxIDQ6MDIgUE0NClN1YmplY3Q6IFJlOiBIaQ0KDQoNCj4gWXVwLiBMb29rcyBsaWtl IHlvdSdyZSB1c2luZyB0aGUgd3JvbmcgcXVvdGVzIGluIHlvdXIgY29tcGlsZSBjb21tYW5kLg0K PiANCj4gWW91J3ZlIGdvdCAic2luZ2xlIHF1b3RhdGlvbiBtYXJrcyIgKGkuZS4gJyApIGJ1dCB5 b3UgbmVlZCBhcG9zdHJvcGhpZXMNCj4gKGkuZS4gYCApDQo+IE9uIG15IGtleWJvYXJkLCB0aGUg YXBvc3Ryb3BoeSBpcyB1cCBieSB0aGUgbm9uLWtleXBhZCAxIGtleS4NCj4gDQo+IEFwb3N0cm9w aGllcyAoSSd2ZSBoZWFyZCB0aGVtIGNhbGxlZCB0aWNrcyB0b287IHRoYXQncyBvbmx5IG9uZSBz eWxhYmxlLA0KPiBtdWNoIGVhc2llciB0byAidGFsayIpIG1lYW46ICJydW4gdGhpcyBjb21tYW5k IGFuZCBwdXQgaXQncyBvdXRwdXQgKipoZXJlKioiDQo+IA0KPiBTbyB0aGUgb3V0cHV0IG9mIHRo ZSBjYWxsIHRvIGd0ay1jb25maWcgKHRoYXQgZ2l2ZXMgdGhlIGNvbXBpbGVyIGZsYWdzLA0KPiBp biB5b3VyIGNhc2UsIGZvciBiaXRoICNpbmNsdWRlIGRpcmVjdGl2ZXMgYW5kIGxpbmtpbmcpIHdp bGwgYmUgc3VwcGxpZWQNCj4gdG8gZ2NjLg0KPiANCj4gVGhpcyBpcyBmYWlscmx5IHNpbXBsZSBz aGVsbCBzdHVmZiBhbmQsIGluY2lkZW50YWxseSwgbm90aGluZyB0byBkbyB3aXRoDQo+IEdUSysu DQo+IA0KPiBUaGUgc2hlbGwgaXMgeW91ciBmcmllbmQuIExlYXJuIGl0IHdlbGwuDQo+IA0KPiBD cmFpZy4NCj4gDQo+IGxpbnV4ZnVuIHdyb3RlOg0KPiANCj4gPiBIaQ0KPiA+DQo+ID4gSSBhbSB0 aGUgYmVnaW5uZXIgb2cgR1RLKyBidXQgSSBsb3ZlIGl0IHZlcnkgbXVjaC5IZXJlIGlzIG15IHBy b2JsZW9tOg0KPiA+DQo+ID4gSSBjYW5ub3QgY29tcGlsZSBteSBHVEsgcHJvZ3JhbW0gaGVsbG8u YyBpbiBSZWRoYXQgNi4xLHVzZSBnY2MgaGVsbG8uYw0KPiA+IC1vIGhlbGxvICdndGstY29uZmln LS1jZmxhZ3MtLWxpYnMnLHdoeT8gSSBpbnN0YWxsZWQgd29ya3N0YXRpb24gcmVkaGF0Lg0KPiA+ DQo+ID4gdGhhbmsgYWxsIG9mIHlvdSENCj4gPg0KPiANCj4gDQo+IA0KPiBfX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPiBndGstbGlzdCBtYWlsaW5nIGxp c3QNCj4gZ3RrLWxpc3RAZ25vbWUub3JnDQo+IGh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFu L2xpc3RpbmZvL2d0ay1saXN0DQo= From topper@virginia.edu Thu Jun 28 22:45:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 9BF9B2DBE0 for ; Thu, 28 Jun 2001 22:45:22 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa27826; 28 Jun 2001 22:45 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id WAA12245 for ; Thu, 28 Jun 2001 22:45:20 -0400 (EDT) Message-ID: <3B3BE054.45BDDCFA@virginia.edu> Date: Thu, 28 Jun 2001 21:56:37 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to set gtk_entry size? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm creating a small window that takes in parameters for the creation of objects on the fly. So I'm using a bunch of gtk_entrys to grab those settings. But I seem unable to control the actual (physical) width of these entries. Using gtk_entry_max_length() has no effect on that. I *guess* I could use gtk_widget_set_usize() but would rather not since it uses pixel values. Thanks, DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From pbd@op.net Thu Jun 28 23:20:02 2001 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 B684E2EA5A for ; Thu, 28 Jun 2001 23:19:44 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-1a.ppp.op.net [209.152.194.122]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA01237; Thu, 28 Jun 2001 23:19:10 -0400 (EDT) Message-Id: <200106290319.XAA01237@renoir.op.net> To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "Thu, 28 Jun 2001 21:56:37 EDT." <3B3BE054.45BDDCFA@virginia.edu> Date: Thu, 28 Jun 2001 23:19:49 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I'm creating a small window that takes in parameters for the creation of >objects on the fly. So I'm using a bunch of gtk_entrys to grab those >settings. But I seem unable to control the actual (physical) width of >these entries. Using gtk_entry_max_length() has no effect on that. > >I *guess* I could use gtk_widget_set_usize() but would rather not since >it uses pixel values. my approach to this is to: 1) determine the longest string that will appear in the entry 2) use gdk_string_extents to get the width of that string in the particular style in use for the entry widget 3) use gtk_widget_set_usize to that size to demonstrate this function (which i trust made it into GTK+ 1.3), i enclose (once again): /* Copyright (C) 1998-99 Paul Barton-Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. $Id: gtkutils.c,v 1.1 1999/11/29 18:38:11 pbd Exp $ */ #include void gtk_widget_set_usize_to_display_given_text (GtkWidget *w, const gchar *text, gint hpadding, gint vpadding) { guint width; guint lbearing; guint rbearing; guint ascent; guint descent; gdk_string_extents (w->style->font, text, &lbearing, &rbearing, &width, &ascent, &descent); gtk_widget_set_usize (w, width+hpadding, ascent+descent+vpadding); } From rbultje@ronald.bitfreak.net Fri Jun 29 02:39:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id 689E02BEA6 for ; Fri, 29 Jun 2001 02:39:11 -0400 (EDT) Received: from Ronald.ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id IAA24943; Fri, 29 Jun 2001 08:39:07 +0200 (CEST) Message-Id: <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> X-Sender: rbultje@ronald.bitfreak.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 29 Jun 2001 08:38:55 +0200 To: Paul Davis From: Ronald Bultje Subject: Re: bug? Cc: gtk-list@gnome.org In-Reply-To: <200106282132.RAA03942@renoir.op.net> References: 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: At 17:32 28-06-2001 -0400, you wrote: > >I have a window of two buttons and one label in a hbox. > >If I change the text in the label, as a reaction on a signal, the hbox > >will suddenly enlarge and be much larger than it should be... > >labels (and containers) expand to display their contents unless told >otherwise. > >whats the bug? > >if you want the box to be of a fixed size, use gtk_widget_set_usize(). The content of the label is *much* smaller than the size is expands to, that's the bug/problem. The content or "size of content" does not change. It has the same number of characters, even. But the hbox still expands and directly after that I can make the window smaller so it expands to a higher size than it needs...... That does not sound like how it should be to me, but I could be wrong of course. Anyway, I'll try using the set_usize, although not the nicest solution. Ronald From rbultje@ronald.bitfreak.net Fri Jun 29 02:42:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.127.132]) by mail.gnome.org (Postfix) with ESMTP id 8E5302EA97 for ; Fri, 29 Jun 2001 02:42:34 -0400 (EDT) Received: from Ronald.ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp3.xs4all.nl (8.9.3/8.9.3) with ESMTP id IAA17002; Fri, 29 Jun 2001 08:42:31 +0200 (CEST) Message-Id: <5.1.0.14.0.20010629084054.00a04670@ronald.bitfreak.net> X-Sender: rbultje@ronald.bitfreak.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 29 Jun 2001 08:42:19 +0200 To: Alexandre Mathy , gtk-list@gnome.org From: Ronald Bultje Subject: Re: GC's In-Reply-To: <993779777.4838.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: At 01:56 29-06-2001 +0000, Alexandre Mathy wrote: >cred.red =1.0; That should be 1.0 * 65535.0 GdkColors work with [0-65535] rather than [0.0-1.0]. Ronald From Steph.Fox@btinternet.com Fri Jun 29 06:18:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id D00672EACB for ; Fri, 29 Jun 2001 06:18:55 -0400 (EDT) Received: from [213.1.74.67] (helo=t2r1o8) by protactinium with smtp (Exim 3.22 #9) id 15FvMP-00056P-00 for gtk-list@gnome.org; Fri, 29 Jun 2001 11:18:49 +0100 Message-ID: <026c01c10084$e4df3140$c2107bd5@t2r1o8> From: "Steph" To: Subject: GTK WINDOWS PORT Date: Fri, 29 Jun 2001 11:18:43 +0100 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello ppl I come of the PHP-GTK community & have several queries re the windows = port which hopefully someone here can assist with. First off (tester question to see if I'm in the right place) - GtkText = set_line_wrap() is putting \r returns (little black boxes) at every = wrap. =20 We're using 1.3 Any knowledge/comments, anyone? ty Steph From binnema@djcb.dyndns.org Wed Jun 27 15:59:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from djcb.dyndns.org (29dyn214.dh.casema.net [213.17.5.214]) by mail.gnome.org (Postfix) with SMTP id 5C2912DEF0 for ; Wed, 27 Jun 2001 15:59:37 -0400 (EDT) Received: (qmail 30366 invoked by uid 550); 27 Jun 2001 20:00:57 -0000 Received: from unknown (192.168.1.2) by 192.168.1.1 with QMQP; 27 Jun 2001 20:00:57 -0000 Date: Wed, 27 Jun 2001 22:08:31 +0200 From: "Dirk-Jan C. Binnema" To: gtk-list@gnome.org Cc: gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Message-ID: <20010627220830.A910@mindcrime.djb.nl> Reply-To: bulkmeel@yahoo.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.18i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed Jun 27, 2001 at 09:20:42PM +0200, Sven Neumann wrote: > (custom-set-variables > '(c-font-lock-extra-types (quote ("gint" "gfloat" "gchar" > "gint8" "gint16" "gint32" "guint" "guint8" "guint16" > "guint32" "guchar" "glong" "gboolean" "gshort" "gushort" > "gulong" "gdouble" "gldouble" "gpointer" "G_\\w+" > "GList" "GSList" "GFunc" "GPOINTER_\\w+" "GINT_\\w+" "GUINT_\\w+" > "Gtk\\w+" "Gdk\\w+" "GTK\\w+" "GDK\\w+" "NULL" > "Gimp\\w+" "GIMP\\w+" > "FT_\\w+" > "Pango\\w+" "PANGO\\w+" > "->" "FALSE" "TRUE" "FILE" "MIN" "MAX" "CLAMP" "ABS" "DIR" "\\sw+_t" > "GCim\\w+"))) > > You will want to modify/extend this list a bit and I'm sure there are > better ways to do this, but this one works reasonably well. Indeed; there's an OpenGL mode for emacs that goes a step further, and has built in completion for functions, knows about their args etc. Something like that would certainly be nice for GTK+ (probably best with separate glib.el, gtk.el and gnome.el), but would be a *lot* of work. Well, at least we can use tags. --Dirk-Jan. From andres_giraldo@yahoo.com Fri Jun 29 10:05:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11503.mail.yahoo.com (web11503.mail.yahoo.com [216.136.172.35]) by mail.gnome.org (Postfix) with SMTP id 234CD2BB19 for ; Fri, 29 Jun 2001 10:05:40 -0400 (EDT) Message-ID: <20010629140539.42763.qmail@web11503.mail.yahoo.com> Received: from [209.205.77.165] by web11503.mail.yahoo.com; Fri, 29 Jun 2001 07:05:39 PDT Date: Fri, 29 Jun 2001 07:05:39 -0700 (PDT) From: "Andrés" Giraldo Subject: How gtk_widget_hide works? To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to set unvisible a window, using: GtkWidget *window; gtk_widget_hide (window); but it doesn't work... I'm just need to hide a window to set it unvisible for a while, so what am I doing wrong? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From pbd@op.net Fri Jun 29 10:35:47 2001 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 77FB42EB0F for ; Fri, 29 Jun 2001 10:35:40 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA14511; Fri, 29 Jun 2001 10:35:36 -0400 (EDT) Message-Id: <200106291435.KAA14511@renoir.op.net> To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug? In-reply-to: Your message of "Fri, 29 Jun 2001 08:38:55 +0200." <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> Date: Fri, 29 Jun 2001 10:36:21 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >The content of the label is *much* smaller than the size is expands to, >that's the bug/problem. >The content or "size of content" does not change. It has the same number of >characters, even. But the hbox still expands and directly after that I can >make the window smaller so it expands to a higher size than it needs...... >That does not sound like how it should be to me, but I could be wrong of >course. is the container set to "homogeneous" ? if so, all of its children are required to be of the same size. did you unset this? also, what padding and expand options did you use? --p From hp@redhat.com Fri Jun 29 10:43:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 296402EB10 for ; Fri, 29 Jun 2001 10:43:54 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEhdb01031; Fri, 29 Jun 2001 10:43:39 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Steph" Cc: Subject: Re: GTK WINDOWS PORT References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> From: Havoc Pennington Date: 29 Jun 2001 10:43:39 -0400 In-Reply-To: "Steph"'s message of "Fri, 29 Jun 2001 11:18:43 +0100" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Steph" writes: > Hello ppl > > I come of the PHP-GTK community & have several queries re the windows port which hopefully someone here can assist with. > > First off (tester question to see if I'm in the right place) - GtkText set_line_wrap() is putting \r returns (little black boxes) at every wrap. > > We're using 1.3 > Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) It's on-topic to ask about GTK win32 here, but I believe the gimp-win32 list (? something like that) may have more people who knows win32-specific answers. Havoc From hp@redhat.com Fri Jun 29 10:45:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A436A2EB1A for ; Fri, 29 Jun 2001 10:45:18 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEiwP01037; Fri, 29 Jun 2001 10:44:58 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106290319.XAA01237@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 10:44:58 -0400 In-Reply-To: Paul Davis's message of "Thu, 28 Jun 2001 23:19:49 -0400" Message-ID: Lines: 8 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > to demonstrate this function (which i trust made it into GTK+ 1.3), i > enclose (once again): What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). Havoc From andrei@ispi.net Fri Jun 29 10:47:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wynton.ispi.net (wynton.ispi.net [206.131.193.10]) by mail.gnome.org (Postfix) with ESMTP id DA0FA2BB41 for ; Fri, 29 Jun 2001 10:47:33 -0400 (EDT) Received: by ispi.net (secure version) id JAA10142; Fri, 29 Jun 2001 09:47:17 -0500 X-Authentication-Warning: cassandra.ispi.prv: andrey set sender to andrei@ispi.net using -f Date: Fri, 29 Jun 2001 09:47:17 -0500 From: Andrei Zmievski To: Havoc Pennington Cc: Steph , gtk-list@gnome.org Subject: Re: GTK WINDOWS PORT Message-ID: <20010629094717.P9196@ispi.net> References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> 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 Fri, Jun 29, 2001 at 10:43:39AM -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, 29 Jun 2001, Havoc Pennington wrote: > > We're using 1.3 > > > > Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to > define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) > > It's on-topic to ask about GTK win32 here, but I believe the > gimp-win32 list (? something like that) may have more people who knows > win32-specific answers. I have to correct her, PHP-GTK users have to use Gtk+ 1.3 for Windows because it's the one with the least bugs -- they don't compile it. -Andrei * We are not a clone. * From hp@redhat.com Fri Jun 29 10:47:42 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2B2C92BB41 for ; Fri, 29 Jun 2001 10:47:42 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TElRL01040; Fri, 29 Jun 2001 10:47:27 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: GC's References: <993779777.4838.0.camel@ardm2> From: Havoc Pennington Date: 29 Jun 2001 10:47:26 -0400 In-Reply-To: Alexandre Mathy's message of "29 Jun 2001 01:56:16 +0000" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy writes: > Hey, > I'm trying to get the hang of GdkGC's but I can't find any decent > documentation... The "scribble" example in the tutorial may help, and the Xlib Programming Manual (vol 1) is good if you want tons of details. > GdkGc selectedGC; > > //I think the following line is the problem > // I have tried this with the pixmap instead of widget->window > // but then the colormap is null.. with this code, nothing happens > GdkColormap *cmap = gdk_window_get_colormap (widget->window); Suggest simply: gtk_widget_get_colormap (widget) > cred.red =1.0; These values are in the range [0,G_MAXUSHORT] Havoc From hp@redhat.com Fri Jun 29 10:49:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B4A1A2EAFD for ; Fri, 29 Jun 2001 10:49:03 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEmm101043; Fri, 29 Jun 2001 10:48:48 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: Paul Davis , gtk-list@gnome.org Subject: Re: bug? References: <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> From: Havoc Pennington Date: 29 Jun 2001 10:48:48 -0400 In-Reply-To: Ronald Bultje's message of "Fri, 29 Jun 2001 08:38:55 +0200" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > The content of the label is *much* smaller than the size is expands to, that's > the bug/problem. > The content or "size of content" does not change. It has the same number of > characters, even. But the hbox still expands and directly after that I can make > the window smaller so it expands to a higher size than it needs...... That does > not sound like how it should be to me, but I could be wrong of > course. No, that shouldn't happen. If you can come up with a test case we can compile, it'd be great if you could file a bug on bugzilla.gnome.org. Havoc From hp@redhat.com Fri Jun 29 10:50:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EB40B2EAFD for ; Fri, 29 Jun 2001 10:50:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEnpp01046; Fri, 29 Jun 2001 10:49:51 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "=?iso-8859-1?q?Andr=E9s?=" Giraldo Cc: Gtk List Subject: Re: How gtk_widget_hide works? References: <20010629140539.42763.qmail@web11503.mail.yahoo.com> From: Havoc Pennington Date: 29 Jun 2001 10:49:51 -0400 In-Reply-To: "=?iso-8859-1?q?Andr=E9s?=" Giraldo's message of "Fri, 29 Jun 2001 07:05:39 -0700 (PDT)" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Andr s" Giraldo writes: >=20 > I'm trying to set unvisible a window, using: >=20 > GtkWidget *window; >=20 > gtk_widget_hide (window); >=20 > but it doesn't work... I'm just need to hide a window > to set it unvisible for a while, so what am I doing wrong? >=20 gtk_widget_hide() should work, must be something else wrong with the code. Havoc From pbd@op.net Fri Jun 29 10:58:08 2001 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 801B62EB24 for ; Fri, 29 Jun 2001 10:58:08 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16712; Fri, 29 Jun 2001 10:57:54 -0400 (EDT) Message-Id: <200106291457.KAA16712@renoir.op.net> To: Havoc Pennington Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "29 Jun 2001 10:44:58 EDT." Date: Fri, 29 Jun 2001 10:58:39 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> to demonstrate this function (which i trust made it into GTK+ 1.3), i >> enclose (once again): > >What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). That can't be right. The text of characters in some fonts varies widely. If I want an entry to precisely contain "lllllllll", it may be totally different size than if I want it to contain "mxmxmxmxmxmxm". Not to mention issues with non-Latin1 text. Oh well, I guess I'll keep posting gtk_entry_set_usize_from_given_text() :) --p From hp@redhat.com Fri Jun 29 11:30:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 9CF4E2EB59 for ; Fri, 29 Jun 2001 11:30:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TFURH32606; Fri, 29 Jun 2001 11:30:27 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106291457.KAA16712@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 11:30:26 -0400 In-Reply-To: Paul Davis's message of "Fri, 29 Jun 2001 10:58:39 -0400" Message-ID: Lines: 27 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >> to demonstrate this function (which i trust made it into GTK+ 1.3), i > >> enclose (once again): > > > >What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). > > That can't be right. The text of characters in some fonts varies > widely. If I want an entry to precisely contain "lllllllll", it may be > totally different size than if I want it to contain > "mxmxmxmxmxmxm". Not to mention issues with non-Latin1 text. > > Oh well, I guess I'll keep posting gtk_entry_set_usize_from_given_text() :) > There are no issues with non-Latin1 text. set_width_chars() uses the 'average char width' from the Pango font, which is somewhat a voodoo number, but does consider the existence of non-Latin1. After all that's the point of Pango. set_width_chars() is intended for when you don't know exactly which chars it will contain - if you know the entry will contain "lllllll" then setting the usize is probably right, but also, using a label rather than an entry is probably right. ;-) Havoc From pbd@op.net Fri Jun 29 11:40:31 2001 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 367092EB67 for ; Fri, 29 Jun 2001 11:40:31 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA20868; Fri, 29 Jun 2001 11:40:28 -0400 (EDT) Message-Id: <200106291540.LAA20868@renoir.op.net> To: Havoc Pennington Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "29 Jun 2001 11:30:26 EDT." Date: Fri, 29 Jun 2001 11:41:13 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >There are no issues with non-Latin1 text. set_width_chars() uses the >'average char width' from the Pango font, which is somewhat a voodoo >number, but does consider the existence of non-Latin1. After all >that's the point of Pango. > >set_width_chars() is intended for when you don't know exactly which >chars it will contain - if you know the entry will contain "lllllll" >then setting the usize is probably right, but also, using a label >rather than an entry is probably right. ;-) ah, what i failed to notice was that the prefix is "gtk_entry" rather than "gtk_widget". in fact, i failed to notice it so much that i even used the same prefix when referring to the function i posted (which is actually prefixed gtk_widget_...). that helps to explain the approach you've taken. is this going to work for spinbuttons as well? my recollection is that the GtkEntry widget is supposed to be "private", and thus not amenable to tricks to set its width. or do we just violate the privacy rule and set it anyway, since trying it on the overall widget fails miserably due to the (unknowable) width of the controls (typically arrows). --p From hp@redhat.com Fri Jun 29 12:07:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id C144C2CCF3 for ; Fri, 29 Jun 2001 12:07:24 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TG79O25651; Fri, 29 Jun 2001 12:07:09 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106291540.LAA20868@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 12:07:09 -0400 In-Reply-To: Paul Davis's message of "Fri, 29 Jun 2001 11:41:13 -0400" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > is this going to work for spinbuttons as well? my recollection is that > the GtkEntry widget is supposed to be "private", and thus not amenable > to tricks to set its width. or do we just violate the privacy rule and > set it anyway, since trying it on the overall widget fails miserably > due to the (unknowable) width of the controls (typically arrows). > SpinButton is_a GtkEntry rather than containing one, so it isn't really supposed to be private. (Though the is_a relationship is a bit questionable.) Anyhow, spin buttons now default to basing their size request on MAX (width_of_min_value, width_of_max_value), with a random hardcoded min size of 30 pixels. You can override this with either gtk_entry_set_width_chars() or gtk_widget_set_usize(). Havoc From Steph.Fox@btinternet.com Fri Jun 29 12:35:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rhenium (rhenium.btinternet.com [194.73.73.93]) by mail.gnome.org (Postfix) with ESMTP id E34C32E12E for ; Fri, 29 Jun 2001 12:32:56 -0400 (EDT) Received: from [62.7.121.142] (helo=t2r1o8) by rhenium with smtp (Exim 3.22 #9) id 15G1CK-0003QN-00; Fri, 29 Jun 2001 17:32:49 +0100 Message-ID: <004801c100b9$1fea8ee0$7406073e@t2r1o8> From: "Steph" To: "Havoc Pennington" , "Raymond Wan" Cc: References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> Subject: Re: GTK WINDOWS PORT Date: Fri, 29 Jun 2001 17:32:39 +0100 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks Havoc, I'll go back to basics & get details of what's been = compiled & how for our Windows binary & then check out the list you = referred to. Thanks to you too, Raymond - s'nice to get a quick response! ----- Original Message -----=20 From: "Havoc Pennington" To: "Steph" Cc: Sent: Friday, June 29, 2001 3:43 PM Subject: Re: GTK WINDOWS PORT "Steph" writes: > Hello ppl >=20 > I come of the PHP-GTK community & have several queries re the windows = port which hopefully someone here can assist with. >=20 > First off (tester question to see if I'm in the right place) - GtkText = set_line_wrap() is putting \r returns (little black boxes) at every = wrap. =20 >=20 > We're using 1.3 >=20 Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) It's on-topic to ask about GTK win32 here, but I believe the gimp-win32 list (? something like that) may have more people who knows win32-specific answers. Havoc From bonjour@ime.unicamp.br Fri Jun 29 12:48:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pretoria.ime.unicamp.br (pretoria.ime.unicamp.br [143.106.22.7]) by mail.gnome.org (Postfix) with ESMTP id 563EE2E1EF for ; Fri, 29 Jun 2001 12:40:32 -0400 (EDT) Received: from athenas.ime.unicamp.br (athenas.ime.unicamp.br [143.106.22.3]) by pretoria.ime.unicamp.br (8.9.0/8.9.0) with ESMTP id NAA23065 for ; Fri, 29 Jun 2001 13:41:07 -0300 (EST) Date: Fri, 29 Jun 2001 13:40:17 -0300 (EST) From: Filipe Bonjour To: GTK List Subject: Synchronizing X 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Under Xlib you can call XSynchronize to synchronize the X server and catch bugs. Is there a similar call under GTK/GNOME? Otherwise, can I get the display from a gtk/gdk function and pass it to XSyncronize? (How?) Thanks, Fil +-----------------------------------------------------------------------+ | Dr. Fil Bonjour | Fil Bonjour | | UNICAMP, IMECC, DMA - Room 328 | Rua Alberto de Salvo 53 | | 13081-970 Campinas SP Brazil | 13084-670 Campinas SP Brazil | | Phone: (++55.19) 3788.60.44 | Phone: (+55.19) 3289.77.84 | | Fax: (++55.19) 3289.14.66 | | | Email: bonjour@ime.unicamp.br | Email: fbonjour@uol.com.br | | http://www.ime.unicamp.br/~bonjour| | +-----------------------------------------------------------------------+ From robyegiuly@libero.it Fri Jun 29 12:48:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mail.gnome.org (Postfix) with ESMTP id B16532E226 for ; Fri, 29 Jun 2001 12:42:41 -0400 (EDT) Received: from mail.libero.it (151.25.37.171) by smtp1.libero.it (5.5.025) id 3AE980E700E7931B for gtk-list@gnome.org; Fri, 29 Jun 2001 18:42:40 +0200 Date: Fri, 29 Jun 2001 18:44:30 +0200 From: Roberto Sobachi To: gtk-list@gnome.org Subject: ICONS!!! Message-ID: <20010629184430.A542@DEBIAN> Reply-To: robyegiuly@libero.it Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.0.pre5 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I associate an icon to my application for the task list or the top of the window? -- --------------- Roberto Sobachi From bachn@LESTERELECTRICAL.com Fri Jun 29 12:49:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from nt_le.Lesterelectrical.com (h216-170-003-037.adsl.navix.net [216.170.3.37]) by mail.gnome.org (Postfix) with ESMTP id 190C62E2C4 for ; Fri, 29 Jun 2001 12:48:04 -0400 (EDT) Received: by NT_LE with Internet Mail Service (5.5.2448.0) id ; Fri, 29 Jun 2001 11:48:01 -0500 Message-ID: From: Bach Ngo To: "'gtk-list@gnome.org'" Subject: How do I know the version of gtk? Date: Fri, 29 Jun 2001 11:47:55 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi How can I find out what the version of gtk? Bach Ngo From rbultje@ronald.bitfreak.net Fri Jun 29 12:52:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 107192E18B for ; Fri, 29 Jun 2001 12:52:36 -0400 (EDT) Received: from [192.168.0.96] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5THYDF13014; Fri, 29 Jun 2001 19:34:13 +0200 (CEST) Subject: Re: bug? From: Ronald Bultje To: Paul Davis Cc: GTK Mailing List In-Reply-To: <200106291435.KAA14511@renoir.op.net> References: <200106291435.KAA14511@renoir.op.net> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 29 Jun 2001 20:44:28 +0200 Message-Id: <993840279.968.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 10:36:21 -0400, Paul Davis wrote: > is the container set to "homogeneous" ? if so, all of its children are > required to be of the same size. did you unset this? also, what I set it to FALSE... > padding and expand options did you use? padding of 10 pixels, changing it to 0 made no difference. expand: false as well... Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From hp@redhat.com Fri Jun 29 13:40:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 40E3D2E204 for ; Fri, 29 Jun 2001 13:40:11 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5THdrf04270; Fri, 29 Jun 2001 13:39:53 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Filipe Bonjour Cc: GTK List Subject: Re: Synchronizing X References: From: Havoc Pennington Date: 29 Jun 2001 13:39:53 -0400 In-Reply-To: Filipe Bonjour's message of "Fri, 29 Jun 2001 13:40:17 -0300 (EST)" Message-ID: Lines: 12 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour writes: > > Under Xlib you can call XSynchronize to synchronize the X server and > catch bugs. Is there a similar call under GTK/GNOME? Otherwise, can I > get the display from a gtk/gdk function and pass it to XSyncronize? > (How?) > Just start your app with the "--sync" option. Havoc From kodis@jagunet.com Fri Jun 29 16:27:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from skydiver.jaguNET.com (skydiver.jaguNET.com [209.133.192.8]) by mail.gnome.org (Postfix) with ESMTP id 051D02CF0A for ; Fri, 29 Jun 2001 16:27:39 -0400 (EDT) Received: from kodis.jagunet.com (kodis.jaguNET.com [209.133.192.48]) by skydiver.jaguNET.com (8.9.3/jag-2.6) with ESMTP id QAA01296 for ; Fri, 29 Jun 2001 16:27:37 -0400 (EDT) Received: (from kodis@localhost) by kodis.jagunet.com (8.11.2/8.11.2) id f5TKRZb12256 for gtk-list@gnome.org; Fri, 29 Jun 2001 16:27:35 -0400 X-Authentication-Warning: papa.jagunet.com: kodis set sender to kodis@jagunet.com using -f Date: Fri, 29 Jun 2001 16:27:34 -0400 From: John Kodis To: gtk-list@gnome.org Subject: Re: ICONS!!! Message-ID: <20010629162734.B12221@papa.jagunet.com> Mail-Followup-To: John Kodis , gtk-list@gnome.org References: <20010629184430.A542@DEBIAN> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010629184430.A542@DEBIAN>; from robyegiuly@libero.it on Fri, Jun 29, 2001 at 06:44:30PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, Jun 29, 2001 at 06:44:30PM +0200, Roberto Sobachi wrote: > > How can I associate an icon to my application for the task list or the top > of the window? While this might be considered heresy on a gtk list, the only way I know to do this is: gnome_window_icon_set_default_from_file("/path/to/icon.png"); -- John Kodis. From watchthinker@netease.com Fri Jun 29 20:17:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.netease.com (unknown [202.103.134.10]) by mail.gnome.org (Postfix) with ESMTP id 3C80B2BF20 for ; Fri, 29 Jun 2001 20:17:44 -0400 (EDT) Received: from default (unknown [211.159.47.200]) by smtp1.netease.com (Postfix) with ESMTP id 8AC121C535783 for ; Sat, 30 Jun 2001 08:22:49 +0800 (CST) Date: Sat, 30 Jun 2001 08:15:46 +0800 From: watchthinker To: gtk-list@gnome.org Subject: win32 port In-Reply-To: <20010629145202.E77FD2EB35@mail.gnome.org> References: <20010629145202.E77FD2EB35@mail.gnome.org> Message-Id: <20010630080944.7918.WATCHTHINKER@netease.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.03 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear All: I am new to gtk. I want to use gtk to write win32 programs. But when the complied program run, there is a console window appears. What to do to close the console windows? Thanks! From pfeiffer@cs.nmsu.edu Fri Jun 29 20:37:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.CS.NMSU.Edu (cs.CS.NMSU.Edu [128.123.64.2]) by mail.gnome.org (Postfix) with ESMTP id 79EBB2E3AE for ; Fri, 29 Jun 2001 20:37:02 -0400 (EDT) Received: from viper.cs.nmsu.edu (root@viper [128.123.64.113]) by cs.CS.NMSU.Edu (8.8.6/8.8.6) with ESMTP id SAA05026 for ; Fri, 29 Jun 2001 18:37:01 -0600 (MDT) Received: (pfeiffer@localhost) by viper.cs.nmsu.edu (8.10.2/8.6.12) id f5U0b0q11303; Fri, 29 Jun 2001 18:37:00 -0600 Date: Fri, 29 Jun 2001 18:37:00 -0600 Message-Id: <200106300037.f5U0b0q11303@viper.cs.nmsu.edu> X-Authentication-Warning: viper.cs.nmsu.edu: pfeiffer set sender to pfeiffer@cs.nmsu.edu using -f From: Joe Pfeiffer To: gtk-list@gnome.org Subject: focus and notebook tabs? Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using a gtknotebook, and need to have some pages inaccessible depending on the state of the program. I'm using gtk version 1.2.10. My first try at this was to simply get the tab and set it insensitive; when I did that, the tab ``greyed out'' appropriately, but if I clicked on it I went to the tab's page anyway. Following a suggestion on the gtkmm mailing list (I'm actually working in gtkmm, but I think I'm looking at gtk troubles here), I intercepted the page-switch signal, and only let the switch happen if the tab was sensitive. This is working, but I'm having trouble controlling keyboard navigation. I can use the key to set the focus on the greyed-out tab, even though pressing the key when it has the focus has no effect (well, it tries to switch pages, but I'm intercepting that). Following another gtkmm suggestion, I'm using GTK_OBJECT_UNSET_FLAGS to unset the GTK_CAN_FOCUS flag. This is having no effect; it still gets the focus. So... how should I be doing this? -- 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 SWNMRSEF: http://www.nmsu.edu/~scifair From abrice2@home.com Sat Jun 30 02:53:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from femail17.sdc1.sfba.home.com (femail17.sdc1.sfba.home.com [24.0.95.144]) by mail.gnome.org (Postfix) with ESMTP id 1D6262BB38 for ; Sat, 30 Jun 2001 02:53:07 -0400 (EDT) Received: from home.com ([24.250.194.198]) by femail17.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010630065306.MLBF13663.femail17.sdc1.sfba.home.com@home.com> for ; Fri, 29 Jun 2001 23:53:06 -0700 Message-ID: <3B3D7840.2804DF71@home.com> Date: Fri, 29 Jun 2001 23:57:04 -0700 From: Aaron Brice X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: XPM collection? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This probably gets asked a lot but it's not in the FAQ so... Can anyone recommend a good site to get collections of XPM icons? Thanks, Aaron From andres_giraldo@yahoo.com Sat Jun 30 10:06:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11501.mail.yahoo.com (web11501.mail.yahoo.com [216.136.172.46]) by mail.gnome.org (Postfix) with SMTP id 8F16D2D438 for ; Sat, 30 Jun 2001 10:06:31 -0400 (EDT) Message-ID: <20010630140630.14259.qmail@web11501.mail.yahoo.com> Received: from [209.205.77.165] by web11501.mail.yahoo.com; Sat, 30 Jun 2001 07:06:30 PDT Date: Sat, 30 Jun 2001 07:06:30 -0700 (PDT) From: "Andrés" Giraldo Subject: gtk_signal_connect To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I created a class that connect 2 signals from 2 widgtes to the same function: class myclass { char *string; myclass { string = "Hello World"; } void some_function () { GtkWidget *button = gtk_new_button_with_label ("Tes") GtkWidget *drawing_area = gtk_drawing_area_new (); ... gtk_widget_show (button); gtk_widget_show (drawing_area); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this) gtk_signal_connect (GTK_OBJECT (drawing_area), "expose_event", GTK_SIGNAL_FUNC (on_drawing_area_expose_event), this) } static void on_button_clicked (GtkButton *button, gpointer arg) { ((myclass *) arg)->test (); } static void on_drawing_area_expose_event (GtkDrawingArea *drawing_area, gpointer arg) { ((myclass *) arg)->test (); } void test () { cout << string << "\n"; } } So... why it works with the "clicked" button's signal, but it doesn't work with the "expose_event" drawing_area's signal? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From sven@gimp.org Sat Jun 30 12:16:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD90020D1.dip.t-dialin.net [217.0.32.209]) by mail.gnome.org (Postfix) with ESMTP id 079812DBEC for ; Sat, 30 Jun 2001 12:16:24 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15GNIK-0000iN-00; Sat, 30 Jun 2001 18:08:28 +0200 To: "AndrXs" Giraldo Cc: Gtk List Subject: Re: gtk_signal_connect References: <20010630140630.14259.qmail@web11501.mail.yahoo.com> From: Sven Neumann Date: 30 Jun 2001 18:08:28 +0200 In-Reply-To: <20010630140630.14259.qmail@web11501.mail.yahoo.com> Message-ID: Lines: 24 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "AndrXs" Giraldo writes: > static void on_button_clicked (GtkButton *button, > gpointer arg) > > static void on_drawing_area_expose_event > (GtkDrawingArea *drawing_area, gpointer arg) > > So... why it works with the "clicked" button's signal, > but it doesn't work with the "expose_event" > drawing_area's signal? because the "expose_event" signal has a different signature. Your signal handler should look like: static gint on_drawing_area_expose_event (GtkDrawingArea *drawing_area, GdkEventExpose *event, gpointer arg) Salut, Sven From switk@yahoo.com Sat Jun 30 19:15:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx01.cluster1.charter.net (dc-mx01.cluster0.hsacorp.net [209.225.8.11]) by mail.gnome.org (Postfix) with ESMTP id 1F8F42BBE4 for ; Sat, 30 Jun 2001 19:15:18 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx01.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 10471282 for gtk-list@gnome.org; Sat, 30 Jun 2001 19:21:35 -0400 Subject: Re: ICONS!!! From: Stephen Witkop To: gtk-list@gnome.org In-Reply-To: <20010629162734.B12221@papa.jagunet.com> References: <20010629184430.A542@DEBIAN> <20010629162734.B12221@papa.jagunet.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <993942786.4037.1.camel@athlon.localdomain> Mime-Version: 1.0 X-Mailer: Evolution/0.10.99 (Preview Release) Date: 30 Jun 2001 19:15:17 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 16:27:34 -0400, John Kodis wrote: > On Fri, Jun 29, 2001 at 06:44:30PM +0200, Roberto Sobachi wrote: > > > > How can I associate an icon to my application for the task list or the top > > of the window? > > While this might be considered heresy on a gtk list, the only way I > know to do this is: > > gnome_window_icon_set_default_from_file("/path/to/icon.png"); > > -- John Kodis. > Luckily we have: void gdk_window_set_icon (GdkWindow *window, GdkWindow *icon_window, GdkPixmap *pixmap, GdkBitmap *mask); Stephen From switk@yahoo.com Sat Jun 30 19:22:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx04.cluster1.charter.net (dc-mx04.cluster0.hsacorp.net [209.225.8.14]) by mail.gnome.org (Postfix) with ESMTP id 1C9782DF4D for ; Sat, 30 Jun 2001 19:22:50 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx04.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 11613095; Sat, 30 Jun 2001 19:28:37 -0400 Subject: Re: How do I know the version of gtk? From: Stephen Witkop To: Bach Ngo Cc: "'gtk-list@gnome.org'" In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 30 Jun 2001 19:22:39 -0400 Message-Id: <993943359.4238.0.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 11:47:55 -0500, Bach Ngo wrote: > Hi > > How can I find out what the version of gtk? > > Bach Ngo > > Use the command gtk-config --version. If gtk is installed properly on your system it will return the correct version number. Stephen From popeofpop@softhome.net Sat Jun 30 19:38:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by mail.gnome.org (Postfix) with SMTP id 718D02DF59 for ; Sat, 30 Jun 2001 19:38:58 -0400 (EDT) Received: (qmail 1836 invoked by uid 417); 30 Jun 2001 23:43:01 -0000 Received: from gateway.dr.dk (HELO smtp.softhome.net) (129.142.20.129) by i-softhome-tango with SMTP; 30 Jun 2001 23:43:01 -0000 X-Mailer: Ultrafunk Popcorn release 1.04 (13.Jan.2001) X-URL: http://www.ultrafunk.com/products/popcorn Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 Date: Sun, 1 Jul 2001 01:38:55 +0100 (Vesteuropa, normaltid) From: Chris Hansen To: gtk-list@gnome.org Subject: Re: ICONS!!! Reply-To: popeofpop@softhome.net Message-Id: <20010630233858.718D02DF59@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Subject: Re: ICONS!!! > From: Stephen Witkop > Date: 30 Jun 2001 19:15:17 -0400 > To: gtk-list@gnome.org > >Luckily we have: > >void gdk_window_set_icon (GdkWindow *window, > GdkWindow *icon_window, > GdkPixmap *pixmap, > GdkBitmap *mask); But how do we use this function with a window created as GtkWidget *window; ? Does anyone have some sample code? Regards Chris Hansen From skip@beluga.mojam.com Thu May 31 21:02:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-131-167-214.ce.mediaone.net [24.131.167.214]) by mail.gnome.org (Postfix) with ESMTP id 1106D2BDDD for ; Thu, 31 May 2001 21:02:22 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id CA0D52814; Thu, 31 May 2001 20:02:23 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15126.59807.757971.704953@beluga.mojam.com> Date: Thu, 31 May 2001 20:02:23 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: object_data -> qdata? In-Reply-To: References: <15126.51607.39215.891459@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Havoc" == Havoc Pennington writes: Havoc> Skip Montanaro writes: >> Where in 1.2 you have >> >> >K_OBJECT (widget)->object_data >> Havoc> Yikes, you shouldn't be using this I don't think. ;-) Havoc> What are you trying to do, maybe we can give you what you should Havoc> be using in that context. I'm just trying to get Tim Janik's Gerd app running under 1.3.5: http://www.gtk.org/~timj/gerd/ I'm trying to take the simplest path possible at this point. I figure if I can get it running, someone else can make it pretty... Skip From zxjdz@21cn.com Fri Jun 1 04:54:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from 21cn.com (unknown [202.104.32.251]) by mail.gnome.org (Postfix) with SMTP id BA3FA2BBE7; Fri, 1 Jun 2001 04:54:03 -0400 (EDT) Received: from zzz([61.165.154.208]) by 21cn.com(AIMC 2.9.5.1) with SMTP id jm03b17bd44; Fri, 01 Jun 2001 16:53:37 +0800 Message-ID: <016601c0ea78$b7e6df70$b100a8c0@Dazheng.com> From: "Zou xiaojun" To: Cc: , References: <010701c0e98c$709e4e10$b100a8c0@Dazheng.com> <3B161431.8049A2F@ng-london.org.uk> Subject: The problem about jpeg solved! Thank you all! Date: Fri, 1 Jun 2001 16:56:13 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: base64 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: aGksDQoNCiAgICBUaGFuayB5b3UgZm9yIHJlcGx5LlRob3NlIGxldHRlcnMgaGVscCBtZSBtdWNo IQ0KDQogICAgTm93IEkgdXNlIGpwZWctNmIgJiBHZGtSR0IgaW1wbGVtZW50aW5nIGl0IHN1Y2Nl c3NmdWxseSENCg0KQmVzdCBSZWdhcmRzDQpab3UNCg== From otaylor@redhat.com Fri Jun 1 09:22:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 68CB72BEF2 for ; Fri, 1 Jun 2001 09:22:30 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 08741242226; Fri, 1 Jun 2001 09:22:29 -0400 (EDT) To: Mark Leisher Cc: gtk-list@gnome.org Subject: Re: Some cut,copy and paste thoughts References: <991197305.7414.7.camel@dhcp-64-104-195-74.cisco.com> <15125.1642.372420.281433@helion.crl.nmsu.edu> <991273192.997.1.camel@dhcp-64-104-195-74.cisco.com> <15126.19119.603419.917486@helion.crl.nmsu.edu> <15126.35568.331688.319880@helion.crl.nmsu.edu> From: Owen Taylor Date: 01 Jun 2001 09:22:29 -0400 In-Reply-To: Mark Leisher's message of "Thu, 31 May 2001 12:18:24 -0600 (MDT)" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Mark Leisher writes: > Owen> I'm not sure why it is working for you, but there AFAIK nothing of > Owen> this nature in the selection protocol as described in the ICCCM, and > Owen> I don't remember implementing it in GTK+ either. > > We must be talking about different things. > > Calling XGetWindowProperty() with a selection and type just returns a buffer > of bytes. If the number of bytes returned is > 0, there is something in the > selection. This is generally sufficient for dynamically setting menu item > sensitivity during a "map_event". Why do you think there will be a property holding the contents of the selection? (What target would it correspond to? Nothing has been requested yet.) Can you point out the place in the ICCCM where this is described? ftp://ftp.x.org/pub/R6.6/xc/doc/hardcopy/ICCCM/icccm.PS.gz Regards, Owen From www-data@emacinc.com Fri Jun 1 10:47:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.emacinc.com (unknown [208.248.202.76]) by mail.gnome.org (Postfix) with ESMTP id B7C4A2E0CD for ; Fri, 1 Jun 2001 10:47:40 -0400 (EDT) Received: from www-data by mail.emacinc.com with local (Exim 3.12 #1 (Debian)) id 155qMZ-0005DD-00 for ; Fri, 01 Jun 2001 09:57:19 -0500 To: gtk-list@gnome.org Subject: error messages From: ngustavson@emacinc.com Reply-To: ngustavson@emacinc.com Cc: X-Mailer: AeroMail (http://the.cushman.net/reverb/aeromail/) Message-Id: Date: Fri, 01 Jun 2001 09:57:19 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: need to be able to suppress error messages while my program is running. Does anyone know how? From hp@redhat.com Fri Jun 1 11:52:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AE0312E8D5 for ; Fri, 1 Jun 2001 11:52:41 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f51FskR21621; Fri, 1 Jun 2001 11:54:46 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: ngustavson@emacinc.com Cc: gtk-list@gnome.org Subject: Re: error messages References: From: Havoc Pennington Date: 01 Jun 2001 11:54:46 -0400 In-Reply-To: ngustavson@emacinc.com's message of "Fri, 01 Jun 2001 09:57:19 -0500" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ngustavson@emacinc.com writes: > need to be able to suppress error messages while my program is running. Does anyone > know how? > Redirect stderr to /dev/null, or you can use g_log_set_handler(). Havoc From king@eiffel.com Fri Jun 1 12:51:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 253F32CDC3 for ; Fri, 1 Jun 2001 12:51:53 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 155s9P-0008Al-00 for gtk-list@gnome.org; Fri, 01 Jun 2001 09:51:51 -0700 Message-ID: <092201c0eabc$37fb2110$750a000a@naples> From: "Ian King" To: Subject: Left Alt and Right Alt Date: Fri, 1 Jun 2001 09:59:27 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there anyway to dynamically query whether a Left Alt key is pressed and not the right, I am using GDK_MOD1_MASK at the moment but this seems to do both. Ian King From hp@redhat.com Fri Jun 1 14:03:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7FA932C7E9 for ; Fri, 1 Jun 2001 14:03:51 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f51I66X12914; Fri, 1 Jun 2001 14:06:06 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Left Alt and Right Alt References: <092201c0eabc$37fb2110$750a000a@naples> From: Havoc Pennington Date: 01 Jun 2001 14:06:06 -0400 In-Reply-To: "Ian King"'s message of "Fri, 1 Jun 2001 09:59:27 -0700" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > Is there anyway to dynamically query whether a Left Alt key is pressed and > not the right, I am using GDK_MOD1_MASK at the moment but this seems to do > both. > If you're using Alt as a modifier, then it will produce broken/surprising behavior for end users if you distinguish these (mod1 doesn't actually even have to be on the keys labeled "Alt", on my system it's only on one of them, etc.). But the basic way you'd do this is to track key press / key release events and keep a flag whether the left/right alt keys are pressed. event->keyval == GDK_Alt_L, event->keyval == GDK_Alt_R. Also some disabled users may be using a "sticky modifiers" feature where they tap alt, release, then tap another key. I'm not sure if you get the key release event before or after the MOD1_MASK flag disappears in this case. Havoc From king@eiffel.com Fri Jun 1 14:08:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 243ED2E308 for ; Fri, 1 Jun 2001 14:08:27 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 155tLV-0002cT-00 for gtk-list@gnome.org; Fri, 01 Jun 2001 11:08:25 -0700 Message-ID: <09a201c0eac6$ea6fe600$750a000a@naples> From: "Ian King" To: Subject: Ctree in scrolled window Date: Fri, 1 Jun 2001 11:16:02 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I place a ctree in a scrollable window (with horizontal and vertical automatic policy) with gtk_container_add, I only get the vertical scrollbar, no matter how wide the ctree is. How do I hack the ctree so that I do not get size allocation errors and so that the horizontal scrollbar is actually shown when required. Ian King From skip@beluga.mojam.com Fri Jun 1 17:08:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 18A622BAC2 for ; Fri, 1 Jun 2001 17:08:56 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id EEF972814; Fri, 1 Jun 2001 16:08:59 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15128.1131.913997.532592@beluga.mojam.com> Date: Fri, 1 Jun 2001 16:08:59 -0500 To: gtk-list@gnome.org Subject: Gerd for Gtk 1.3.x X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I made some progress porting Tim Janik's Gerd program to Gtk 1.3.x. If anyone's interested in the results, let me know and I'll shoot you a context diff. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From jdiago@escher.puj.edu.co Fri Jun 1 19:28:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from escher.puj.edu.co (c3281-136.impsat.com.co [200.32.81.136]) by mail.gnome.org (Postfix) with ESMTP id 7F8E52BAE9 for ; Fri, 1 Jun 2001 19:28:30 -0400 (EDT) Received: from localhost (jdiago@localhost) by escher.puj.edu.co (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id SAA13469; Fri, 1 Jun 2001 18:28:27 -0500 Date: Fri, 1 Jun 2001 18:28:26 -0500 (COT) From: Jose Fernando Diago To: Havoc Pennington Cc: GTK+ List Subject: Question about printing a drawable 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. This question goes to Havoc. I read this message from the GTK+ mailing list archives: >Re: Printing snapshot of a window > From: Havoc Pennington > To: "Tim Betts" > Cc: gtk-app-devel-list gnome org > Subject: Re: Printing snapshot of a window > Date: 01 Jun 2000 13:12:06 -0400 >"Tim Betts" writes: >> Just wondered if anyone knew of a C library or way of programmically >>taking a snapshot of a given X GtkWindow and printing it to a lazer >>printer. I would like to do it all from within the application via a >>print button. Any ideas, references or code would be greatly >>appreciated. >gdk-pixbuf can take a snapshot of a drawable, and gnome-print has a >routine to print a GdkPixbuf. You can copy the code if you don't want >to use the libraries. >Havoc So my question is: What's the gdk-pixbuf? How can I use it? Thanks. Jose. From skip@beluga.mojam.com Fri Jun 1 22:22:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 743972BE13 for ; Fri, 1 Jun 2001 22:22:10 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id AD6AC2814; Fri, 1 Jun 2001 21:22:13 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15128.19924.937913.885668@beluga.mojam.com> Date: Fri, 1 Jun 2001 21:22:12 -0500 To: Jose Fernando Diago Cc: GTK+ List Subject: Re: Question about printing a drawable In-Reply-To: References: X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jose> So my question is: What's the gdk-pixbuf? How can I use it? Gdk-pixbuf is an image manipulation library. The reference manual is at http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/index.html I'm not aware of any tutorial documentation and all the links I could find to Imlib tutorials (gdk-pixbuf's predecessor) seem to be broken. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Fri Jun 1 23:26:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 54AFE2D3D6 for ; Fri, 1 Jun 2001 23:26:33 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f523S0X22341; Fri, 1 Jun 2001 23:28:00 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Jose Fernando Diago Cc: GTK+ List Subject: Re: Question about printing a drawable References: From: Havoc Pennington Date: 01 Jun 2001 23:27:59 -0400 In-Reply-To: Jose Fernando Diago's message of "Fri, 1 Jun 2001 18:28:26 -0500 (COT)" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jose Fernando Diago writes: > > So my question is: What's the gdk-pixbuf? How can I use it? > There's a new app that does exactly this (gdk-pixbuf for screenshots, gnome-print to print): http://lists.eazel.com/pipermail/nautilus-list/2001-May/003389.html Will probably come with the panel sooner or later. Havoc From needles@industrialmusic.com Sun Jun 3 15:32:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from industrialmusic.com (unknown [216.101.163.50]) by mail.gnome.org (Postfix) with ESMTP id AB95B2D45F for ; Sun, 3 Jun 2001 15:32:03 -0400 (EDT) Received: (from needles@localhost) by industrialmusic.com (8.9.3/8.9.3) id MAA10514 for gtk-list@gnome.org; Sun, 3 Jun 2001 12:56:47 -0700 From: "needles@industrialmusic.com" Message-Id: <200106031956.MAA10514@industrialmusic.com> Subject: Programming Help. Determing what line the user clicks in GtkText To: gtk-list@gnome.org Date: Sun, 3 Jun 2001 12:56:47 -0700 (PDT) X-Mailer: ELM [version 2.5 PL3] 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm using gtk+ 1.2.10 on RedHat 7.1. I'm trying to display text in a scrollable window, then get a callback when the user clicks on the text. I did that by using a GtkText widget and connecting it to the "button-press-event" signal. That gives me the callback when I want it, but I can't figure out what line the user clicked on. I tried using the GList textWidget->current_line and counting till I got to the start of the list which almost work. It gave me the previous line that was clicked on. Does anyone have any ideas of the best way to do what I want? I'm not opposed to modifying gtktext.c or using a different widget. I realize that Gtk+2.0 will have a lot of changes in the text area, but I don't know if it is in usable form yet. Some other requirements I need is the ability to highlight different lines. I'm trying to write a TMS320C54x DSP simulator under the GPL license. Thanks for any help Kerry -- Windows 95: n. 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition. From bowman@montana.com Mon Jun 4 00:47:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailA.montana.com (mailA.montana.com [199.2.139.116]) by mail.gnome.org (Postfix) with ESMTP id E08732BA98 for ; Mon, 4 Jun 2001 00:46:59 -0400 (EDT) Received: from odin (mso1-114.montana.com [208.4.224.114]) by mailA.montana.com (8.11.2/8.11.2) with SMTP id f544fOw26028 for ; Sun, 3 Jun 2001 22:41:24 -0600 (MDT) Message-ID: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> From: "bowman" To: Subject: getting a GtkWidget* Date: Sun, 3 Jun 2001 22:46:15 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I haven't been able to hit on quite the right thing in the FAQ or docs. I've been working with glade, which doesn't expose the widgets used in the generated interface.c file. If I have connected a callback to a button click, for instance, and I would like to get the text from an GetEntry widget, is there a graceful way to get a pointer to the entry? It looks like my options are passing a GList of the widget pointers I'll be interested in during the callback, or getting the ancestor container of the button and iterating through the children. Is there anything analogous to XtNameToWidget? thanks. From tvv@sparc.spb.su Mon Jun 4 04:11:58 2001 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 913742DC31 for ; Mon, 4 Jun 2001 04:11:57 -0400 (EDT) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.10.1/8.10.1) with ESMTP id f548BuC02849 for ; Mon, 4 Jun 2001 12:11:56 +0400 (MSD) Received: from sparc.spb.su (norwich.sparc.spb.su [192.168.205.226]) by mail.sparc.spb.su (8.11.3/8.11.1) with ESMTP id f548CZE61308 for ; Mon, 4 Jun 2001 12:12:35 +0400 (MSD) (envelope-from tvv@sparc.spb.su) Message-ID: <3B1B430A.C1BDD77D@sparc.spb.su> Date: Mon, 04 Jun 2001 12:12:58 +0400 From: Vitaly Tishkov 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_tree_view_column_set_min_width (column, 0) segvs Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, The following example segvs. #include int main (int argc, char** argv) { GtkTreeViewColumn* column; gtk_init (&argc, &argv); column = gtk_tree_view_column_new (); gtk_tree_view_column_set_min_width (column, 1); } What am I doing wrong or is it a bug? Thanks, Vitaly. From 4dadio@telkom.net Mon Jun 4 06:46:38 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 3D9AF2BDE3 for ; Mon, 4 Jun 2001 06:46:36 -0400 (EDT) Received: out-mta3.plasa.com; Mon, 04 Jun 2001 17:46:27 +0700 Received: out-mta2.plasa.com; Mon, 04 Jun 2001 17:46:27 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 61793 for ; Mon, 04 Jun 2001 17:46:27 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: problem with gtk_entry_get_text() To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Mon, 04 Jun 2001 17:46:27 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've some problems in gtk+ ver. 1.2.0. Well, I thimk the funtion, gtk_entry_get_text(), make a problem. I can't get any character from entries. dadio From niklas.hoglund@telia.com Mon Jun 4 07:40:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by mail.gnome.org (Postfix) with ESMTP id CBF4F2DE6A for ; Mon, 4 Jun 2001 07:40:56 -0400 (EDT) Received: from d1o828.telia.com (d1o828.telia.com [213.65.100.241]) by mailc.telia.com (8.11.2/8.11.0) with ESMTP id f54BetY06075 for ; Mon, 4 Jun 2001 13:40:55 +0200 (CEST) Received: from zero (h204n1fls33o828.telia.com [213.65.102.204]) by d1o828.telia.com (8.10.2/8.10.1) with ESMTP id f54Betb28805 for ; Mon, 4 Jun 2001 13:40:55 +0200 (CEST) Received: from niklas by zero with local (Exim 3.22 #1 (Debian)) id 156sjE-0001FW-00 for ; Mon, 04 Jun 2001 13:41:00 +0200 Date: Mon, 4 Jun 2001 13:41:00 +0200 To: gtk-list@gnome.org Subject: Drawing in window gives it focus in win32 Message-ID: <20010604134059.A4790@mail.canit.se> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.18i From: Niklas Hoglund Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems that whenever I draw in a custom widget and whenever I add items to a clist the GTK window containing it gets keyboard focus. This is unbearable as it happens in a window containing a status display which monitors actions that happen in the background. During background activities this renders the machine practically unusable. This happens on Windows NT. I don't know if it happens on other systems. What can I do about this? I have code to draw the relevant things using native windows calls, but I'd rather use GTK/GDK. -- Niklas From bowman@montana.com Mon Jun 4 09:28:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailB.montana.com (mailB.montana.com [199.2.139.117]) by mail.gnome.org (Postfix) with ESMTP id 02D0D2D2DB for ; Mon, 4 Jun 2001 09:28:47 -0400 (EDT) Received: from odin (mso1-163.montana.com [208.4.224.163]) by mailB.montana.com (8.11.2/8.11.2) with SMTP id f54DMIS00860; Mon, 4 Jun 2001 07:22:30 -0600 (MDT) Message-ID: <004101c0ecfa$31228960$0100a8c0@mshome.net> From: "bowman" To: "dodi-nug" <4dadio@telkom.net>, References: Subject: Re: problem with gtk_entry_get_text() Date: Mon, 4 Jun 2001 07:27:53 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "dodi-nug" <4dadio@telkom.net> > > Well, I thimk the funtion, gtk_entry_get_text(), make a > problem. > I can't get any character from entries. The docs say this is a deprecated function. Why don't you try: something like: msg = gtk_editable_get_chars ((GtkEditable*) msg_text, 0, -1); where 0 is the start_pos, and -1 the default 'get everything' end_pos. From rbultje@ronald.bitfreak.net Mon Jun 4 09:36:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 66AD92DFC3 for ; Mon, 4 Jun 2001 09:36:40 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f54ELCC13549 for ; Mon, 4 Jun 2001 16:21:12 +0200 (CEST) From: "Ronald Bultje" To: Subject: wait for a condition to be satisfied Date: Mon, 4 Jun 2001 15:42:41 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, I'm looking for a function which returns if a certain condition is satisfied. I'm now using: /* now, we need to pause until scene detection is done */ while (scene_detection_reply == 1) usleep(100000); but this is ugly (imho, that is ;-) ). Is there something like waitfor(scenedetection != 1) in Gtk, glib or anything? Secondly, sleep() (and usleep()) are not thread-safe, are they? is there anything thread-safe as a replacement for sleep()? (I heard about g_sleep but "grep -r g_sleep /usr/include/*" gives no results) Regards and thanks in advance, Ronald Bultje From sven@gimp.org Mon Jun 4 10:03:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A1A.dip.t-dialin.net [217.80.26.26]) by mail.gnome.org (Postfix) with ESMTP id B163D2BC79 for ; Mon, 4 Jun 2001 10:03:42 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 156urP-0001as-00; Mon, 04 Jun 2001 15:57:35 +0200 To: "Ronald Bultje" Cc: Subject: Re: wait for a condition to be satisfied References: From: Sven Neumann Date: 04 Jun 2001 15:57:35 +0200 In-Reply-To: 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "Ronald Bultje" writes: > I'm looking for a function which returns if a certain condition is > satisfied. since you seem to be using threads, why not use pthread_cond_wait() ? Salut, Sven From hoshem@mel.comcen.com.au Mon Jun 4 10:47:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem056.mnementh.comcen.com.au [203.23.238.115]) by mail.gnome.org (Postfix) with ESMTP id A292D2BA99 for ; Mon, 4 Jun 2001 10:47:48 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f54ExrT11518; Tue, 5 Jun 2001 00:59:53 +1000 Date: Tue, 5 Jun 2001 00:59:53 +1000 From: Helmethead To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: wait for a condition to be satisfied Message-ID: <20010605005953.A11070@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , gtk-list@gnome.org 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 rbultje@ronald.bitfreak.net on Mon, Jun 04, 2001 at 03:42:41PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 04, 2001 at 03:42:41PM +0200, Ronald Bultje wrote: > Hi there, > > I'm looking for a function which returns if a certain condition is > satisfied. I'm now using: > > /* now, we need to pause until scene detection is done */ > while (scene_detection_reply == 1) > usleep(100000); > > but this is ugly (imho, that is ;-) ). Is there something like > waitfor(scenedetection != 1) in Gtk, glib or anything? Well in a normal program this kind of problem doesn't come up, since it has a single thread of execution. It does in threaded programs though, and pthreads condition variables probably fit the bill nicely ;) If your code snippet is waiting for something even more external to modify the variable (variable lives in shared memory perhaps), then you'd have to roll your own mechanism from pipes or signals or something. If you don't wanna poll (sleep,test,sleep,test etc), it basically comes down to getting the thread that changed the variable, to notify the thread that's waiting for the variable to be changed. > Secondly, sleep() (and usleep()) are not thread-safe, are they? is there > anything thread-safe as a replacement for sleep()? (I heard about g_sleep > but "grep -r g_sleep /usr/include/*" gives no results) Dahm, I heard something like this but I can't remember or find anything in the pthreads docs. I don't program in threads.. I can do a better job of scheduling my simultaneous tasks than the linux kernel any day ;-) From loban@ugcs.caltech.edu Mon Jun 4 10:53:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from spew.ugcs.caltech.edu (spew.ugcs.caltech.edu [131.215.43.154]) by mail.gnome.org (Postfix) with ESMTP id 26B8D2E18E for ; Mon, 4 Jun 2001 10:53:39 -0400 (EDT) Received: by spew.ugcs.caltech.edu (Postfix, from userid 9289) id DBA902446E; Mon, 4 Jun 2001 07:53:37 -0700 (PDT) Date: Mon, 4 Jun 2001 07:53:37 -0700 From: Loban Amaan Rahman To: bowman Cc: gtk-list@gnome.org Subject: Re: getting a GtkWidget* Message-ID: <20010604075337.A12312@spew.ugcs.caltech.edu> References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net>; from bowman@montana.com on Sun, Jun 03, 2001 at 10:46:15PM -0600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes, but in order to do this you need to use libglade to dynamically load the XML file at runtime to create the widgets. You can give each widget a name, and then call glade_xml_get_widget(GladeXML *self, char *name) to get a pointer to the GtkWidget. If you aren't using libglade, but having glade pregenerate the code for you, i'm not perfectly sure what the proper solution is. Loban. > I haven't been able to hit on quite the right thing in the FAQ or docs. I've > been working with glade, which doesn't expose the widgets used in the > generated interface.c file. If I have connected a callback to a button > click, for instance, and I would like to get the text from an GetEntry > widget, is there a graceful way to get a pointer to the entry? > > It looks like my options are passing a GList of the widget pointers I'll be > interested in during the callback, or getting the ancestor container of the > button and iterating through the children. > > Is there anything analogous to XtNameToWidget? /-------------------------------------------------------------------\ | Loban Amaan Rahman <-- anagram of --> Aha! An Abnormal Man! | | loban@earthling.net, loban@ugcs.caltech.edu, http://i.am/loban | \-------------------------------------------------------------------/ From edsonlima@magnumsa.com.br Mon Jun 4 14:21:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ncc1701.magnumsa.com.br (unknown [200.189.50.122]) by mail.gnome.org (Postfix) with ESMTP id 57F862DC17 for ; Mon, 4 Jun 2001 14:21:44 -0400 (EDT) Received: from edson (edson.magnumsa.com.br [172.16.0.121]) by ncc1701.magnumsa.com.br (8.9.3/8.9.3) with SMTP id PAA10470 for ; Mon, 4 Jun 2001 15:26:04 -0300 Posted-Date: Mon, 4 Jun 2001 15:26:04 -0300 Message-ID: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Reply-To: "Edson Lima" From: "Edson Lima" To: Subject: GTK+ with PHP Date: Mon, 4 Jun 2001 15:18:00 -0300 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like to know somebody already knows some thing of GTK+ with PHP. From hp@redhat.com Mon Jun 4 14:49:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0F0F52BAC0 for ; Mon, 4 Jun 2001 14:49:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f54IpUv05371; Mon, 4 Jun 2001 14:51:30 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Vitaly Tishkov Cc: gtk-list@gnome.org Subject: Re: gtk_tree_view_column_set_min_width (column, 0) segvs References: <3B1B430A.C1BDD77D@sparc.spb.su> From: Havoc Pennington Date: 04 Jun 2001 14:51:30 -0400 In-Reply-To: Vitaly Tishkov's message of "Mon, 04 Jun 2001 12:12:58 +0400" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vitaly Tishkov writes: > > #include > int > main (int argc, char** argv) > { > GtkTreeViewColumn* column; > > gtk_init (&argc, &argv); > > column = gtk_tree_view_column_new (); > gtk_tree_view_column_set_min_width (column, 1); > } > > What am I doing wrong or is it a bug? > Probably a bug, looks reasonable to me. Havoc From skip@beluga.mojam.com Mon Jun 4 15:23:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id C46A02E318 for ; Mon, 4 Jun 2001 15:23:57 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id D3C5B2813; Mon, 4 Jun 2001 14:23:58 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15131.57422.598775.865140@beluga.mojam.com> Date: Mon, 4 Jun 2001 14:23:58 -0500 To: gtk-list@gnome.org Subject: themes & key bindings? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen Taylor's theme architecture guide: http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html doesn't mention key/button bindings at all. Do themes only deal with the visual aspects of the user interface? If I create a new widget for an application, what hooks (if any) do I need to provide to make it "themeable"? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From erik@turner.org Mon Jun 4 15:36:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c000.snv.cp.net (c000-h000.c000.snv.cp.net [209.228.32.64]) by mail.gnome.org (Postfix) with SMTP id 5F4C92DC1E for ; Mon, 4 Jun 2001 15:32:58 -0400 (EDT) Received: (cpmta 24969 invoked from network); 4 Jun 2001 12:32:57 -0700 Received: from cpe-66-1-218-98.fl.sprintbbd.net (HELO ECTGateway) (66.1.218.98) by smtp.turner.org (209.228.32.64) with SMTP; 4 Jun 2001 12:32:57 -0700 X-Sent: 4 Jun 2001 19:32:57 GMT Message-ID: <012c01c0ed2c$de7c35c0$6664a8c0@riocasa> From: "Erik Turner" To: References: <15131.57422.598775.865140@beluga.mojam.com> Subject: Drop down signal for GtkCombo Date: Mon, 4 Jun 2001 15:30:52 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've got a GtkCombo and I would like to see a signal for the dropdown event so that I can refresh the dropdown list before it's displayed. Is there an easy way to do this? Thanks in advance, Erik Turner From 4dadio@telkom.net Mon Jun 4 18:26:09 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 9D3EE2CFD8 for ; Mon, 4 Jun 2001 18:26:07 -0400 (EDT) Received: out-mta3.plasa.com; Tue, 05 Jun 2001 05:26:01 +0700 Received: out-mta2.plasa.com; Tue, 05 Jun 2001 05:26:01 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 289900; Tue, 05 Jun 2001 05:26:01 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: Re: problem with gtk_entry_get_text() To: "bowman" Cc: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Tue, 05 Jun 2001 05:26:01 +0700 Message-ID: In-Reply-To: <004101c0ecfa$31228960$0100a8c0@mshome.net> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: erouter=gtk_entry_new(); gtk_widget_show(erouter); gtk_box_pack_start(GTK_BOX(hbox1),erouter,TRUE,TRUE,0); isi = gtk_editable_get_chars(GTK_EDITABLE(erouter),0,-1); gtk_editable_chars cause the same problem with gtk_entry_get_text() On Mon, 4 Jun 2001 07:27:53 -0600 "bowman" wrote: > > From: "dodi-nug" <4dadio@telkom.net> > > > > Well, I thimk the funtion, gtk_entry_get_text(), make a > > problem. > > I can't get any character from entries. > > The docs say this is a deprecated function. Why don't you > try: > something like: > > msg = gtk_editable_get_chars ((GtkEditable*) msg_text, > 0, -1); > > where 0 is the start_pos, and -1 the default 'get > everything' end_pos. > > From damon@ximian.com Mon Jun 4 18:49:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id D78E22E3B8 for ; Mon, 4 Jun 2001 18:49:56 -0400 (EDT) Received: from ximian.com (IDENT:damon@karuna.ximian.com [141.154.95.114]) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id SAA24045; Mon, 4 Jun 2001 18:49:50 -0400 Message-ID: <3B1C1014.798F27BA@ximian.com> Date: Mon, 04 Jun 2001 18:47:48 -0400 From: Damon Chaplin X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: bowman Cc: gtk-list@gnome.org Subject: Re: getting a GtkWidget* References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: bowman wrote: > > I haven't been able to hit on quite the right thing in the FAQ or docs. I've > been working with glade, which doesn't expose the widgets used in the > generated interface.c file. If I have connected a callback to a button > click, for instance, and I would like to get the text from an GetEntry > widget, is there a graceful way to get a pointer to the entry? > > It looks like my options are passing a GList of the widget pointers I'll be > interested in during the callback, or getting the ancestor container of the > button and iterating through the children. > > Is there anything analogous to XtNameToWidget? Glade outputs a lookup_widget() function in support.c that you can use. See the FAQ on http://glade.gnome.org Damon From hp@redhat.com Mon Jun 4 21:22:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8141C2BAB6 for ; Mon, 4 Jun 2001 21:22:41 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f551PB128575; Mon, 4 Jun 2001 21:25:11 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: themes & key bindings? References: <15131.57422.598775.865140@beluga.mojam.com> From: Havoc Pennington Date: 04 Jun 2001 21:25:11 -0400 In-Reply-To: Skip Montanaro's message of "Mon, 4 Jun 2001 14:23:58 -0500" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > Owen Taylor's theme architecture guide: > > http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html > > doesn't mention key/button bindings at all. Do themes only deal with the > visual aspects of the user interface? Yes. Keybindings are done with GtkBindingSet. GTK 2 uses binding set fairly extensively, so there are lots of examples in the source. > If I create a new widget for an application, what hooks (if any) do I need > to provide to make it "themeable"? Draw with colors in widget->style, be sure any computations based on widget->style are recalculated either on size_request/size_allocate or in a style_set handler, use the gtk_paint_ routines to draw rather than gdk_draw_ whenever a gtk_paint_ routine is appropriate. Again, many examples in GTK source. Havoc From switk@yahoo.com Mon Jun 4 22:30:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx08.cluster1.charter.net (dc-mx08.cluster0.hsacorp.net [209.225.8.18]) by mail.gnome.org (Postfix) with ESMTP id 1D3DD2BDFD for ; Mon, 4 Jun 2001 22:30:50 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx08.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 7106414; Mon, 04 Jun 2001 22:36:44 -0400 Subject: Re: GTK+ with PHP From: Stephen Witkop To: Edson Lima Cc: gtk-list@gnome.org In-Reply-To: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> References: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Jun 2001 22:30:45 -0400 Message-Id: <991708249.27473.0.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: http://gtk.php.net Stephen On 04 Jun 2001 15:18:00 -0300, Edson Lima wrote: > Hello, > I would like to know somebody already knows some thing of GTK+ with PHP. > From bowman@montana.com Mon Jun 4 23:18:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailC.montana.com (mailC.montana.com [199.2.139.118]) by mail.gnome.org (Postfix) with ESMTP id F03A22BAB6 for ; Mon, 4 Jun 2001 23:18:03 -0400 (EDT) Received: from odin (mso1-76.montana.com [208.4.224.76]) by mailC.montana.com (8.11.2/8.11.2) with SMTP id f553CI211221 for ; Mon, 4 Jun 2001 21:12:20 -0600 (MDT) Message-ID: <004d01c0ed6e$20d9bd20$4ce004d0@mshome.net> From: "bowman" To: References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> <3B1C1014.798F27BA@ximian.com> Subject: Re: getting a GtkWidget* Date: Mon, 4 Jun 2001 21:17:55 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "Damon Chaplin" > > Glade outputs a lookup_widget() function in support.c that you can use. Thanks. I eventually worked my way down to the Glade FAQ in the tarball. I was looking for something native to Gtk, where the lookup_widget depends on Glade sticking the name/pointer pair into the top level widget and later retrieving it. It certainly works. I'm a little sensitive about user data; I work with a suite of Motif apps that go back almost 10 years -- appending data to a widget has be used and abused over those years to the point you never know just what might be lurking in some widget. From bowman@montana.com Mon Jun 4 23:24:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from maild.montana.com (mailD.montana.com [199.2.139.119]) by mail.gnome.org (Postfix) with ESMTP id 5EBF12BABF for ; Mon, 4 Jun 2001 23:24:44 -0400 (EDT) Received: from odin (mso1-76.montana.com [208.4.224.76]) by maild.montana.com (8.11.2/8.11.2) with SMTP id f553oUB04390 for ; Mon, 4 Jun 2001 21:50:30 -0600 (MDT) Message-ID: <005a01c0ed6f$0f58bb40$4ce004d0@mshome.net> From: "bowman" To: References: <20010605005953.A11070@BuffyRox.localdomain> Subject: Re: wait for a condition to be satisfied Date: Mon, 4 Jun 2001 21:24:38 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "Helmethead" > > Secondly, sleep() (and usleep()) are not thread-safe, are they? is there > > anything thread-safe as a replacement for sleep()? (I heard about g_sleep > > but "grep -r g_sleep /usr/include/*" gives no results) > > Dahm, I heard something like this but I can't remember or find anything in the pthreads docs. I don't program in threads.. I can do a better job of scheduling my simultaneous tasks than the linux kernel any day ;-) for what it's worth, nanosleep() is the usual thread-safe sleep. it works a little differently, but the man nanosleep page should clarify it. From chris.l.pettit@lmco.com Tue Jun 5 08:38:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailgw1a.lmco.com (mailgw1a.lmco.com [192.31.106.7]) by mail.gnome.org (Postfix) with ESMTP id C2DD02BE02 for ; Tue, 5 Jun 2001 08:38:19 -0400 (EDT) Received: from emss02g01.ems.lmco.com (relay2.ems.lmco.com [166.29.2.54]) by mailgw1a.lmco.com (8.8.8/8.8.8) with ESMTP id GAA02523 for ; Tue, 5 Jun 2001 06:38:19 -0600 (MDT) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-33 #38887) id <0GEG00H01J3UOR@lmco.com> for gtk-list@gnome.org; Tue, 5 Jun 2001 06:38:18 -0600 (MDT) Received: from emss06m01.ems.lmco.com ([134.5.45.74]) by lmco.com (PMDF V5.2-33 #38887) with ESMTP id <0GEG00ECWJ3QCG@lmco.com> for gtk-list@gnome.org; Tue, 05 Jun 2001 06:38:14 -0600 (MDT) Received: by emss06m01.ems.lmco.com with Internet Mail Service (5.5.2653.19) id ; Tue, 05 Jun 2001 08:38:19 -0400 Content-return: allowed Date: Tue, 05 Jun 2001 08:38:13 -0400 From: "Pettit, Chris L" Subject: Need a 3D diagram of Gtk window stack up for presentation tomorro w (6/6) To: "Gtk-List (E-mail)" Message-id: MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Help !! I'm assembling a presentation on open source GUI development. Recently, i saw a schematic 3D stack-up diagram for the gtk window elements and structure ... and didn't save it. ( Yes, i should know better. A classic lesson from running scanning electron microscopes +20 yrs ) Well, now I can't find it. I was hoping someone could point me to a similar source. I'm pretty sure it was at one of the gtk sites... but, I am getting older ;-). The presentation is tomorrow and I'd really like to have this to talk about. Thx, chris ====================================== Chris Pettit Aircraft Vehicle Integration Facility Embedded Systems Programming * Lockheed Martin Aeronautics Company D/6H52 Z/0698 86 South Cobb Drive Marietta, GA 30063-0698 * Chris.L.Pettit@lmco.com * 770-793-2595 (Voice) * 770-793-2001 (FAX) ====================================== "They have computers, and they may have other weapons of mass destruction." - Janet Reno "If you think there's a solution, you're a part of the problem." - George Carlin ====================================== From jrb@redhat.com Mon Jun 4 14:54:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aware-of-vacuity.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 94CE52DE1F for ; Mon, 4 Jun 2001 14:54:31 -0400 (EDT) Received: (from jrb@localhost) by aware-of-vacuity.labs.redhat.com (8.11.2/8.11.2) id f54IrMH10144; Mon, 4 Jun 2001 14:53:22 -0400 X-Authentication-Warning: aware-of-vacuity.labs.redhat.com: jrb set sender to jrb@redhat.com using -f To: gtk-list@gnome.org Cc: Vitaly Tishkov Subject: Re: [Vitaly Tishkov ] gtk_tree_view_column_set_min_width (column, 0) segvs References: X-URL: From: Jonathan Blandford Date: 04 Jun 2001 14:53:22 -0400 In-Reply-To: Message-ID: Lines: 24 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vitaly Tishkov Writes: > Hi, > > The following example segvs. > > > #include > int > main (int argc, char** argv) > { > GtkTreeViewColumn* column; > > gtk_init (&argc, &argv); > > column = gtk_tree_view_column_new (); > gtk_tree_view_column_set_min_width (column, 1); > } > > What am I doing wrong or is it a bug? It's a bug. I'm fixing it now. -Jonathan From mnatsu@cicese.mx Tue Jun 5 08:03:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 98CD42DF49 for ; Tue, 5 Jun 2001 08:03:02 -0400 (EDT) Received: from matrix.cicese.mx (matrix.cicese.mx [158.97.23.247]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f55C31f25139 for ; Tue, 5 Jun 2001 05:03:01 -0700 (PDT) Received: (from mnatsu@localhost) by matrix.cicese.mx (8.9.3+Sun/8.9.1) id FAA26163; Tue, 5 Jun 2001 05:03:00 -0700 (PDT) Date: Tue, 5 Jun 2001 05:02:58 -0700 (PDT) From: Masaru Natsu Cardenas To: gtk-list@gnome.org Subject: Help 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello i'm new in the gtk programming subject.. i ave only 3 days programming in Gtk and im trayng to make a simple prog: i'm trayng to open a xpm file and dsiplay it into a window and thats all. if anyone know where i can found some code .. to read and learn.. it will be very usefull thanks.. Hello from Mexico =) From jiang.xu@echostar.com Tue Jun 5 11:31:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 0B4102BBB2 for ; Tue, 5 Jun 2001 11:31:10 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA02991 for ; Tue, 5 Jun 2001 11:31:09 -0400 Received: from linux0.echostar.com (w146-253.echostar.com [205.172.146.253]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f55FTTb04256 for ; Tue, 5 Jun 2001 11:29:29 -0400 Received: from echostar.com (linux7.echostar.com [10.79.98.107]) by linux0.echostar.com (Postfix) with ESMTP id 64F7979085; Tue, 5 Jun 2001 09:30:45 -0600 (MDT) Message-ID: <3B1CFB25.B8676254@echostar.com> Date: Tue, 05 Jun 2001 09:30:45 -0600 From: Jiang XU X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.4.0 i686) X-Accept-Language: zh-CN, en MIME-Version: 1.0 To: "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" Subject: where I can find more API information about GdkImlib Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Guys, I try to use GdkImlib to load transparent pixmap, such as using gdk_imlib_XXX calls. I wonder where I can find more API document about GdkImlib? Thanks Jiang From rhfreeman@micron.com Tue Jun 5 12:10:43 2001 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 007A12BDFD for ; Tue, 5 Jun 2001 12:10:42 -0400 (EDT) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.9.2/8.9.2) with ESMTP id KAA11080 for ; Tue, 5 Jun 2001 10:10:42 -0600 (MDT) Received: from ntexchange01.micron.com (ntexchange01 [137.201.104.84]) by mail-srv1.micron.com (8.9.2/8.9.2) with ESMTP id KAA11054 for ; Tue, 5 Jun 2001 10:10:41 -0600 (MDT) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Tue, 5 Jun 2001 10:10:40 -0600 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: Compiling GTK apps with Sun's Forte compiler Date: Tue, 5 Jun 2001 10:10:31 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, Sun's compiler doesn't seem to get on with GTK too well. Anyone got any ideas what I can do to change this rather odd behaviour? /opt/SUNWspro/bin/../WS6U1/bin/cc -g -mt -xCC -c -I. -I/opt/gnu/include -I/opt/gnu/include/glib -I/opt/gnu/lib/glib/include -I/usr/openwin/include -I/usr/dt/include -o output/rwaves2-filehandler.o rwaves2-filehandler.c *** Error code 2 "/opt/gnu/include/glib.h", line 1554: undefined or not a type: inline "/opt/gnu/include/glib.h", line 1555: parameter not in identifier list: g_bit_nth_lsf "/opt/gnu/include/glib.h", line 1557: only "register" valid as formal parameter storage class "/opt/gnu/include/glib.h", line 1557: parameter not in identifier list: inline "/opt/gnu/include/glib.h", line 1557: syntax error before or at: gint "/opt/gnu/include/glib.h", line 1560: parameter not in identifier list: g_bit_nth_lsf "/opt/gnu/include/glib.h", line 1560: parameter not in identifier list: __func__ "/opt/gnu/include/glib.h", line 1560: cannot initialize parameter: __func__ "/opt/gnu/include/glib.h", line 1563: undefined symbol: nth_bit "/opt/gnu/include/glib.h", line 1564: undefined symbol: mask "/opt/gnu/include/glib.h", line 1567: undefined symbol: nth_bit "/opt/gnu/include/glib.h", line 1569: warning: statement not reached "/opt/gnu/include/glib.h", line 1569: cannot recover from previous errors : cc: acomp failed for rwaves2-filehandler.c dmake: Fatal error: Command failed for target `output/rwaves2-filehandler.o' Thanks! Rich From skip@beluga.mojam.com Tue Jun 5 12:40:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 345FF2E469 for ; Tue, 5 Jun 2001 12:40:25 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id E64FC2818; Tue, 5 Jun 2001 11:40:24 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.2936.859775.496672@beluga.mojam.com> Date: Tue, 5 Jun 2001 11:40:24 -0500 To: gtk-list@gnome.org Subject: adjustment property on scales and scrollbars get/set methods on range X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: According to the 2.0 reference manual the GtkHScale, GtkVScale, GtkHScrollbar and GtkVScrollbar classes all define an adjustment property, but get_adjustment and set_adjustment methods are defined at the GtkRange level. Is this an inconsistency in the documentation or do each of the scale and scrollbar classes define adjustment properties? If they do, why isn't this defined at the level of the GtkRange class instead? -- Skip Montanaro (skip@pobox.com) (847)971-7098 From skip@beluga.mojam.com Tue Jun 5 12:58:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id E364D2E482 for ; Tue, 5 Jun 2001 12:58:06 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 4B71D2818; Tue, 5 Jun 2001 11:58:06 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.3998.127554.140938@beluga.mojam.com> Date: Tue, 5 Jun 2001 11:58:06 -0500 To: rhfreeman Cc: "'gtk-list@gnome.org'" Subject: Re: Compiling GTK apps with Sun's Forte compiler In-Reply-To: References: X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Rich> Sun's compiler doesn't seem to get on with GTK too well. ... Rich> "/opt/gnu/include/glib.h", line 1554: undefined or not a type: inline For starters it looks like it doesn't understand the "inline" keyword. I'd check a few things: 1. Make sure that configure used the Sun compiler when it ran. 2. Check the various inline-related defines in config.h: /* Have __inline keyword */ #define G_HAVE___INLINE 1 /* Have __inline__ keyword */ #define G_HAVE___INLINE__ 1 /* Have inline keyword */ #define G_HAVE_INLINE 1 If you comment them out does the situation improve? 3. Delete config.cache and try reconfiguring. If it insists on using gcc, set the (I think) CC environment variable explicitly. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Tue Jun 5 14:40:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 669D52E4A4 for ; Tue, 5 Jun 2001 14:38:10 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f55IeYV02037; Tue, 5 Jun 2001 14:40:34 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: rhfreeman Cc: "'gtk-list@gnome.org'" Subject: Re: Compiling GTK apps with Sun's Forte compiler References: From: Havoc Pennington Date: 05 Jun 2001 14:40:34 -0400 In-Reply-To: rhfreeman's message of "Tue, 5 Jun 2001 10:10:31 -0600" Message-ID: Lines: 11 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: rhfreeman writes: > > Sun's compiler doesn't seem to get on with GTK too well. Anyone got any > ideas what I can do to change this rather odd behaviour? You have to build GLib apps with the same compiler used to build GLib, since GLib uses compiler-specific features according to compile-time checks. That might explain it. Havoc From hp@redhat.com Tue Jun 5 14:41:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7499A2DC11 for ; Tue, 5 Jun 2001 14:41:02 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f55IhUC02040; Tue, 5 Jun 2001 14:43:30 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: adjustment property on scales and scrollbars get/set methods on range References: <15133.2936.859775.496672@beluga.mojam.com> From: Havoc Pennington Date: 05 Jun 2001 14:43:30 -0400 In-Reply-To: Skip Montanaro's message of "Tue, 5 Jun 2001 11:40:24 -0500" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > According to the 2.0 reference manual the GtkHScale, GtkVScale, > GtkHScrollbar and GtkVScrollbar classes all define an adjustment property, > but get_adjustment and set_adjustment methods are defined at the GtkRange > level. Is this an inconsistency in the documentation or do each of the > scale and scrollbar classes define adjustment properties? If they do, why > isn't this defined at the level of the GtkRange class instead? > It is at the GtkRange level in the code, I'm not sure what's up with the docs. Havoc From cone@moritz.mine.nu Tue Jun 5 15:24:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prototype (pD9012D3D.dip.t-dialin.net [217.1.45.61]) by mail.gnome.org (Postfix) with ESMTP id 8F1992CC48 for ; Tue, 5 Jun 2001 15:24:48 -0400 (EDT) Received: from cone by prototype with local (Exim 3.22 #1 (Debian)) id 157OJL-0000Ap-00 for ; Tue, 05 Jun 2001 23:24:23 +0200 Date: Tue, 5 Jun 2001 23:24:22 +0200 From: Moritz Angermann To: gtk-list@gnome.org Subject: Re: GTK+ with PHP Message-ID: <20010605232422.B537@prototype> References: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br>; from edsonlima@magnumsa.com.br on Mon, Jun 04, 2001 at 20:18:00 +0200 X-Mailer: Balsa 1.0.pre5 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: yea i do, my latest project is a PHP / GTK based Napster Client ... On Mon, 04 Jun 2001 20:18:00 Edson Lima wrote: > Hello, > I would like to know somebody already knows some thing of GTK+ with PHP. > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > From skip@beluga.mojam.com Tue Jun 5 15:35:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 2990E2DC11 for ; Tue, 5 Jun 2001 15:35:33 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 976BA2819; Tue, 5 Jun 2001 14:35:32 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.13444.459493.270927@beluga.mojam.com> Date: Tue, 5 Jun 2001 14:35:32 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: adjustment property on scales and scrollbars get/set methods on range In-Reply-To: References: <15133.2936.859775.496672@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> According to the 2.0 reference manual the GtkHScale, GtkVScale, >> GtkHScrollbar and GtkVScrollbar classes all define an adjustment >> property, but get_adjustment and set_adjustment methods are defined >> at the GtkRange level. Havoc> It is at the GtkRange level in the code, I'm not sure what's up Havoc> with the docs. I went to file a bug report and discovered I was in error. I was referring to a local snapshot of the 2.0 docs I took in late April. It looks like the current docs on developer.gnome.org are correct. Skip From 4dadio@telkom.net Tue Jun 5 17:29:46 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 35A2B2BDDA for ; Tue, 5 Jun 2001 17:25:14 -0400 (EDT) Received: out-mta3.plasa.com; Wed, 06 Jun 2001 04:25:06 +0700 Received: out-mta2.plasa.com; Wed, 06 Jun 2001 04:25:06 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 640545 for ; Wed, 06 Jun 2001 04:25:05 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: gtk_editable_get_chars=gtk_entry_get_text To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Wed, 06 Jun 2001 04:25:05 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: i failed to get text from entry text's widget, it seem that in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html) doesn't work too. i have tried gtk_editable_get_chars ( Mr. bowman's advise), but i didn't work too. so i need advise from all of you guys thanks dadio From mathew@fugue.jpl.nasa.gov Tue Jun 5 19:38:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ampersand.jpl.nasa.gov (ampersand.jpl.nasa.gov [137.78.28.29]) by mail.gnome.org (Postfix) with ESMTP id E73D52E107 for ; Tue, 5 Jun 2001 19:38:33 -0400 (EDT) Received: from fugue.jpl.nasa.gov (fugue.jpl.nasa.gov [137.78.28.46]) by ampersand.jpl.nasa.gov (8.9.3/8.9.3/RSE-jhk-1.15) with ESMTP id QAA19531 for ; Tue, 5 Jun 2001 16:38:29 -0700 (PDT) Received: from fugue.jpl.nasa.gov (localhost [127.0.0.1]) by fugue.jpl.nasa.gov (8.9.1a/8.9.1/JPLRsol2.jhk-1.7a) with ESMTP id QAA11326 for ; Tue, 5 Jun 2001 16:38:27 -0700 (PDT) Message-Id: <200106052338.QAA11326@fugue.jpl.nasa.gov> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.3 #8[UCI] To: gtk-list@gnome.org Subject: gtk.themes.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 05 Jun 2001 16:38:27 -0700 From: Mathew Yeates Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Has been down for awhile. Anybody know why and when it's going to be back up? Mathew From king@eiffel.com Tue Jun 5 20:05:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 5FE782BCB1 for ; Tue, 5 Jun 2001 20:05:36 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 157QpH-0001RE-00 for gtk-list@gnome.org; Tue, 05 Jun 2001 17:05:31 -0700 Message-ID: <06ca01c0ee1d$6ede5260$750a000a@naples> From: "Ian King" To: Subject: Removing a selected list item from a combo box Date: Tue, 5 Jun 2001 17:12:54 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way that a listitem can remove itself from a combo box on its selection without the application seg faulting. Thanks for your time Ian King From Adam.K@klografx.de Tue Jun 5 11:38:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id A6E6A2DFFD for ; Tue, 5 Jun 2001 11:38:11 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA04516 for ; Tue, 5 Jun 2001 11:38:11 -0400 Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f55FaUb04913 for ; Tue, 5 Jun 2001 11:36:30 -0400 Received: from [195.20.224.208] (helo=mrvdom01.schlund.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 157IuD-0003xQ-00; Tue, 5 Jun 2001 17:38:05 +0200 Received: from p3e9e004a.dip.t-dialin.net ([62.158.0.74] helo=klografx.de) by mrvdom01.schlund.de with smtp (Exim 2.12 #2) id 157ItA-0004hx-00; Tue, 5 Jun 2001 17:37:00 +0200 From: Adam Kopacz To: jiang.xu@echostar.com Cc: gtk-app-devel-list@gnome.org, gtk-list@redhat.com Subject: Re: where I can find more API information about GdkImlib In-Reply-To: <3B1CFB25.B8676254@echostar.com> Organization: kLoGraFX Network Date: Tue, 05 Jun 2001 17:37:29 +0200 (CEST) X-Mailer: XCmail 1.3 - with PGP support, PGP engine version 0.5 (Linux) X-Mailerorigin: http://www.fsai.fh-trier.de/~schmitzj/Xclasses/XCmail/ MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-Id: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Reply to eMail from 'jiang.xu@echostar.com' about 'where I can find more API information about GdkImlib' Hi Jiang XU, > I try to use GdkImlib to load transparent pixmap, such as using > gdk_imlib_XXX calls. > I wonder where I can find more API document about GdkImlib? there is a html-file in the imlib.tgz.. you can download it from my www.klografx.net/qiv/ site.. -- Adam Kopacz kLoGraFX Network Kieselgrund 39 http://klografx.de/ D-68239 Mannheim http://kopacz.de/ ___________________________________________________________ Tel: 06214816775 - Mobil: 01736602174 - ICQ UIN: 257499 From hoshem@mel.comcen.com.au Tue Jun 5 22:42:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 0B0EB2DBD1 for ; Tue, 5 Jun 2001 22:42:48 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id WAA09671 for ; Tue, 5 Jun 2001 22:42:47 -0400 Received: from BuffyRox.localdomain (modem039.mnementh.comcen.com.au [203.23.238.98]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f562f5b02815 for ; Tue, 5 Jun 2001 22:41:05 -0400 Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5604Jj17107; Wed, 6 Jun 2001 10:04:19 +1000 Date: Wed, 6 Jun 2001 10:04:18 +1000 From: Helmethead To: Jiang XU Cc: "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" Subject: Re: where I can find more API information about GdkImlib Message-ID: <20010606100418.A16987@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Jiang XU , "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" References: <3B1CFB25.B8676254@echostar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1CFB25.B8676254@echostar.com>; from jiang.xu@echostar.com on Tue, Jun 05, 2001 at 09:30:45AM -0600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 05, 2001 at 09:30:45AM -0600, Jiang XU wrote: > Guys, > > I try to use GdkImlib to load transparent pixmap, such as using > gdk_imlib_XXX calls. > I wonder where I can find more API document about GdkImlib? > > Thanks > > Jiang Imlib api docs should have come with your imlib development package. Look in /usr/doc or /usr/share/doc. From hoshem@mel.comcen.com.au Tue Jun 5 23:23:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem039.mnementh.comcen.com.au [203.23.238.98]) by mail.gnome.org (Postfix) with ESMTP id E368D2BAC0 for ; Tue, 5 Jun 2001 23:23:43 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f563aI318004; Wed, 6 Jun 2001 13:36:18 +1000 Date: Wed, 6 Jun 2001 13:36:18 +1000 From: Helmethead To: Masaru Natsu Cardenas Cc: gtk-list@gnome.org Subject: Re: Help Message-ID: <20010606133618.A17955@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Masaru Natsu Cardenas , gtk-list@gnome.org 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 mnatsu@cicese.mx on Tue, Jun 05, 2001 at 05:02:58AM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 05, 2001 at 05:02:58AM -0700, Masaru Natsu Cardenas wrote: > Hello i'm new in the gtk programming subject.. i ave only 3 days > programming in Gtk and im trayng to make a simple prog: > > i'm trayng to open a xpm file and dsiplay it into a window and thats all. > > if anyone know where i can found some code .. to read and learn.. it will > be very usefull > > thanks.. > > Hello from Mexico > =) GTK+ can't read image files by itself, you use either gdk-pixbuf or imlib to do that. You probably have one or the other already on your system. If you have imlib installed (development packages) it should have installed some documentation somewhere, probably /usr/doc or /usr/share/doc. From tjlewis@link.com Wed Jun 6 06:09:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from issun6.hti.com (sunmgr.hti.com [130.210.206.69]) by mail.gnome.org (Postfix) with ESMTP id B0BBC2E161 for ; Wed, 6 Jun 2001 06:09:25 -0400 (EDT) Received: from issun5.hti.com ([130.210.202.3]) by issun6.hti.com (Netscape Messaging Server 3.6) with ESMTP id AAA46E9 for ; Wed, 6 Jun 2001 04:36:05 -0500 Received: from home.com ([130.210.4.11]) by issun5.hti.com (Netscape Messaging Server 3.6) with ESMTP id AAA536B for ; Wed, 6 Jun 2001 05:09:34 -0500 Message-ID: <3B1E0006.ACBD2BEC@home.com> Date: Wed, 06 Jun 2001 06:03:50 -0400 From: "Thomas J Lewis" 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: seg fault, gtk_fixed_expose 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: get segmentation fault when clicking on windows. doesn't happen all the time. doesn't point to a line of code in my software. running xxgdb get error message: Program received signal SIGSEGV, Segmentation fault. 0x401ba306 in gtk_fixed_expose () from /usr/lib/libgtk-1.2.so.0 (xxgdb) thanks in advance, tom From john.cupitt@ng-london.org.uk Wed Jun 6 06:25:24 2001 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 538DF2E4DA for ; Wed, 6 Jun 2001 06:25:10 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43KH; Wed, 6 Jun 2001 11:25:09 +0100 Message-ID: <3B1E03C1.5249BBDE@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:19:45 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Thomas J Lewis Cc: gtk-list@gnome.org Subject: Re: seg fault, gtk_fixed_expose References: <3B1E0006.ACBD2BEC@home.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thomas J Lewis wrote: > get segmentation fault when clicking > on windows. doesn't happen all the time. > doesn't point to a line of code in my software. > running xxgdb get error message: > > Program received signal SIGSEGV, Segmentation fault. > 0x401ba306 in gtk_fixed_expose () from /usr/lib/libgtk-1.2.so.0 > (xxgdb) Hi Tom, if this happens with your application, and other GTK programs on your machine are OK, it's probably a problem in your code somewhere. This sort of thing is uaually a memory problem: you're perhaps freeing something twice, or writing beyond the end of an area of memory you allocated. Try running with electric fence, or try memprof. HTH, John From john.cupitt@ng-london.org.uk Wed Jun 6 06:31:06 2001 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 7643B2BC09 for ; Wed, 6 Jun 2001 06:31:06 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43K4; Wed, 6 Jun 2001 11:31:05 +0100 Message-ID: <3B1E0526.3AAD8ADF@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:25:42 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ian King Cc: gtk-list@gnome.org Subject: Re: Removing a selected list item from a combo box References: <06ca01c0ee1d$6ede5260$750a000a@naples> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ian King wrote: > Is there any way that a listitem can remove itself from a combo box on its > selection without the application seg faulting. Hi Ian, I remember struggling with something like this ... the solution I found was to warp the focus to some other widget (with gtk_widget_grab_focus()) before the delete. John From john.cupitt@ng-london.org.uk Wed Jun 6 06:40:32 2001 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 38A122D026 for ; Wed, 6 Jun 2001 06:40:32 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43LP; Wed, 6 Jun 2001 11:40:31 +0100 Message-ID: <3B1E075C.13F084A2@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:35:08 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: dodi-nug <4dadio@telkom.net> Cc: gtk-list@gnome.org Subject: Re: gtk_editable_get_chars=gtk_entry_get_text 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dodi-nug wrote: > i failed to get text from entry text's widget, it seem that > in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html) > doesn't work too. > i have tried gtk_editable_get_chars ( Mr. bowman's advise), > but i didn't work too. It should work. Try: char *txt = gtk_editable_get_chars( GTK_EDITABLE( text ), 0, -1 ); printf( "You typed: \"%s\"\n", txt ); free( txt ); John From howardzzh@yahoo.com Wed Jun 6 06:56:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13402.mail.yahoo.com (web13402.mail.yahoo.com [216.136.175.60]) by mail.gnome.org (Postfix) with SMTP id BF2E12BC09 for ; Wed, 6 Jun 2001 06:56:13 -0400 (EDT) Message-ID: <20010606105613.89298.qmail@web13402.mail.yahoo.com> Received: from [131.215.103.7] by web13402.mail.yahoo.com; Wed, 06 Jun 2001 03:56:13 PDT Date: Wed, 6 Jun 2001 03:56:13 -0700 (PDT) From: Howard Zhou Subject: Help, how to set background color of a text(window) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everyone, We are currently writing a text editor and I wonder whether there is an easy way to set up the background color of a text widget (or a window). We can set the background of the text we will insert, but that doesn't fill the entire window, so is there something like a function that I can call to accomplish that? Thanks! Howard __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From edsonlima@magnumsa.com.br Wed Jun 6 09:32:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ncc1701.magnumsa.com.br (unknown [200.189.50.122]) by mail.gnome.org (Postfix) with ESMTP id 4BD0D2DE2A for ; Wed, 6 Jun 2001 09:32:38 -0400 (EDT) Received: from edson (edson.magnumsa.com.br [172.16.0.121]) by ncc1701.magnumsa.com.br (8.9.3/8.9.3) with SMTP id KAA07765 for ; Wed, 6 Jun 2001 10:37:03 -0300 Posted-Date: Wed, 6 Jun 2001 10:37:03 -0300 Message-ID: <002b01c0ee8c$a0bdcf80$790010ac@magnumsa.com.br> Reply-To: "Edson Lima" From: "Edson Lima" To: Subject: To Moritz Angermann Date: Wed, 6 Jun 2001 10:28:52 -0300 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Moritz Could you help me with some study aid of GTK+ with PHP, and how to access database?? From hbensaid@ensisun.imag.fr Wed Jun 6 09:36:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imag.imag.fr (imag.imag.fr [129.88.30.1]) by mail.gnome.org (Postfix) with ESMTP id F0E902E537; Wed, 6 Jun 2001 09:36:57 -0400 (EDT) Received: from ensisun.imag.fr (ensisun.imag.fr [195.221.228.2]) by imag.imag.fr (8.11.3/8.11.3) with ESMTP id f56Dauk11061; Wed, 6 Jun 2001 15:36:56 +0200 (MEST) Received: from localhost (hbensaid@localhost) by ensisun.imag.fr (8.9.3/8.8.5) with ESMTP id PAA23625; Wed, 6 Jun 2001 15:38:33 +0200 (MET DST) Date: Wed, 6 Jun 2001 15:38:33 +0200 (MET DST) From: "hicham.bensaid@ensimag.imag.fr" X-X-Sender: To: Cc: gtk , gtk app Subject: Re: Printing In-Reply-To: <3B1E0D92.41F9E806@fi.usj.edu.lb> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Try to use gtkextra library it provides tools for drawing graphics, and for printing in ps format, you can find it in "gtkextra.sourceforge.net" On Wed, 6 Jun 2001 dany.mezher@fi.usj.edu.lb wrote: > Hello!!! > > I am writing an application using gtk and I want to allow the user to > print some graphical results. How can I do it??? > > Thanks > Dany Mezher > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > From dany.mezher@fi.usj.edu.lb Wed Jun 6 09:24:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from estrelita.usj.edu.lb (estrelita.usj.edu.lb [193.227.161.97]) by mail.gnome.org (Postfix) with ESMTP id 7576B2E52C; Wed, 6 Jun 2001 09:20:24 -0400 (EDT) Received: from fi.usj.edu.lb (pc118.esib.edu.lb [192.168.1.118] (may be forged)) by estrelita.usj.edu.lb (8.9.3/8.9.3) with ESMTP id QAA28351; Wed, 6 Jun 2001 16:15:15 +0300 From: dany.mezher@fi.usj.edu.lb Message-ID: <3B1E0D92.41F9E806@fi.usj.edu.lb> Date: Wed, 06 Jun 2001 14:01:38 +0300 X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: gtk , gtk app Subject: Printing 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello!!! I am writing an application using gtk and I want to allow the user to print some graphical results. How can I do it??? Thanks Dany Mezher From pbd@op.net Wed Jun 6 10:37:41 2001 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 E97952CEDE for ; Wed, 6 Jun 2001 10:37:40 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0f.ppp.op.net [209.152.194.111]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA23956; Wed, 6 Jun 2001 10:37:36 -0400 (EDT) Message-Id: <200106061437.KAA23956@renoir.op.net> To: Howard Zhou Cc: gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-reply-to: Your message of "Wed, 06 Jun 2001 03:56:13 PDT." <20010606105613.89298.qmail@web13402.mail.yahoo.com> Date: Wed, 06 Jun 2001 10:37:40 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi everyone, > We are currently writing a text editor and I wonder despite the mellifluous superfluousness of existing text based applications for unix like operating systems, we have decided to implement yet another text editor that will no doubt include bits and pieces of the functionality offered by the other 3 dozen or more text editors listed at FreshMeat but will still fail to do everything done by long lived text editors that don't meet our particular aesthetic criteria. >whether there is an easy way to set up the background >color of a text widget (or a window). Have you read Havoc's color-setting FAQ? Search the archives of this list; it was posted here recently. It would be nice if it showed up in the GTK FAQ. --p From skip@beluga.mojam.com Wed Jun 6 11:11:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id AF3EA2CEDE for ; Wed, 6 Jun 2001 11:11:53 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 03E3D2818; Wed, 6 Jun 2001 10:11:51 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15134.18487.924366.641640@beluga.mojam.com> Date: Wed, 6 Jun 2001 10:11:51 -0500 To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-Reply-To: <200106061437.KAA23956@renoir.op.net> References: <20010606105613.89298.qmail@web13402.mail.yahoo.com> <200106061437.KAA23956@renoir.op.net> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Paul" == Paul Davis writes: Paul> implement yet another text editor that will no doubt ... still Paul> fail to do everything done by long lived text editors that don't Paul> meet our particular aesthetic criteria. Agreed. Is there a move afoot to Gtk-ize XEmacs? I found the following page: http://www.cs.indiana.edu/elisp/gui-xemacs/ I don't know what blessings this project has with the powers-that-be, but it seems to me that working toward completing this project would be more fruitful than writing YATE. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From Valdis.Kletnieks@vt.edu Wed Jun 6 11:20:14 2001 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 B1A582E1F1 for ; Wed, 6 Jun 2001 11:20:14 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f56FIo301273; Wed, 6 Jun 2001 11:18:50 -0400 Message-Id: <200106061518.f56FIo301273@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.3.1 01/19/2001 with nmh-1.0.4+dev To: skip@pobox.com (Skip Montanaro) Cc: Paul Davis , gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-Reply-To: Your message of "Wed, 06 Jun 2001 10:11:51 CDT." <15134.18487.924366.641640@beluga.mojam.com> 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[ <200106061437.KAA23956@renoir.op.net> <15134.18487.924366.641640@beluga.mojam.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1200707942P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 06 Jun 2001 11:18:50 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1200707942P Content-Type: text/plain; charset=us-ascii On Wed, 06 Jun 2001 10:11:51 CDT, Skip Montanaro said: > Agreed. Is there a move afoot to Gtk-ize XEmacs? I found the following > page: > > http://www.cs.indiana.edu/elisp/gui-xemacs/ XEmacs 21.4 and 21.5 have --with-gtk options for configure. Unfortunately, at the current time, you have to choose Gtk support or the standard X support (the biggest single loss is that the Gtk code doesn't support opening frames on different $DISPLAY devices). -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-1200707942P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOx5J2nAt5Vm009ewEQLwfwCfeSQQ8MxWYYzkZtpki9/FqSNCSNoAn063 SksZenmQg99QLZZLmZFbWhLp =jAaB -----END PGP SIGNATURE----- --==_Exmh_-1200707942P-- From hp@redhat.com Wed Jun 6 12:14:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EE5C32BAE9 for ; Wed, 6 Jun 2001 12:13:59 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f56GGPM28993; Wed, 6 Jun 2001 12:16:25 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Howard Zhou , gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) References: <200106061437.KAA23956@renoir.op.net> From: Havoc Pennington Date: 06 Jun 2001 12:16:25 -0400 In-Reply-To: Paul Davis's message of "Wed, 06 Jun 2001 10:37:40 -0400" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >whether there is an easy way to set up the background > >color of a text widget (or a window). > > Have you read Havoc's color-setting FAQ? Search the archives of this > list; it was posted here recently. It would be nice if it showed up in > the GTK FAQ. > The URL is: http://pobox.com/~hp/gtk-colors.html Havoc From rsteinke@w-link.net Wed Jun 6 13:35:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 8BF5B2BA83 for ; Wed, 6 Jun 2001 13:35:22 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 157hGO-0004ie-00 for ; Wed, 06 Jun 2001 10:38:36 -0700 Date: Wed, 06 Jun 2001 10:38:36 -0700 To: gtk-list@gnome.org Subject: 1 bit GdkVisual Message-ID: <3B1E6A9C.nailDZB1W5P9I@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm trying to add a utility program which will pull certain GdkBitmaps from the code of my main program and save them as xpms. Since nothing I'm doing in the utility program actually uses gtk, I'm running gdk_init() instead. Everything works fine, except that to create a colormap for the bitmaps I need a visual, and the system visual isn't loaded in gdk_init(). What would be a sensible visual for a bitmap? Ron Steinke From inodal@teleline.es Wed Jun 6 18:07:51 2001 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 B17372BC8B for ; Wed, 6 Jun 2001 18:07:50 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp3.ldap.isp (Netscape Messaging Server 4.15) with ESMTP id GEJ42T03.K3I for ; Thu, 7 Jun 2001 00:06:29 +0200 Message-ID: <3B1E9B48.796ACCDD@teleline.es> Date: Wed, 06 Jun 2001 23:06:16 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: Segmetation fault using assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, May 24, 2001 at 07:29:29PM +0100, Ignacio Nodal wrote: > Hi, > > I want to write a function to read a pixmap string and store it into a > GdkPixmap, but without having to know which widget it will be added into.By > the way the widget could be still not created at all. > The problem is if I use gdk_pixmap_create_from_xpm_d() one of its parameters > force me to specify a "GdkWindow *window". I'm not using any transparent > color, so the "style" isn't a real problem for me... > If I use a non-existing widget I obviously get this error: > "Gdk-WARNING **: Creating pixmap from xpm with NULL window and colormap" > This was written by me a long long time ago ;)) Now, I've been working again on it. Helmethead told me to do it using pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(),&mask, NULL, xpm_structure); I used it, and it seems to work fine, the problem is i'm using C++ (yes yes.. don't tell me to use the Gtk-- again, I already know ;)) and I'm getting a Segmentation fault when trying to assign the GdkPixmap *pixmap returned by "gdk_pixmap_colormap_create_from_xpm_d()" to my "GdkPixmap& pix" parameter.. Here is my C++ function... gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **) pixstring); g_print("The program arrives this point\n"); (GdkPixmap *) pix = pixmap; g_print("Segmentation fault is in the line above\n"); if (&pix == NULL) {return (FALSE);} else {return (TRUE);} } ...any idea about what can be wrong? Thanks in advance, Ignacio Nodal From inodal@teleline.es Wed Jun 6 18:18:12 2001 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 B85762E664 for ; Wed, 6 Jun 2001 18:18:11 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEJ4K106.E3M for ; Thu, 7 Jun 2001 00:16:49 +0200 Message-ID: <3B1E9DB5.1BE2D28B@teleline.es> Date: Wed, 06 Jun 2001 23:16:37 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sorry,there was a fault on the function I pasted ;)) gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **) pixstring); g_print("The program arrives this point\n"); pix = *pixmap; g_print("Segmentation fault is in the line above\n"); if (&pix == NULL) {return (FALSE);} else {return (TRUE);} } In the previous mail I put "(GdkPixmap *) pix = pixmap;" instead of "pix = *pixmap;"... that returns me this error: cannot convert `pix' from type `_GdkWindow' to type `GdkPixmap *' but not the segmentation fault I get with "pix = *pixmap;" which I don't really understand ;(( Thanks again, Ignacio Nodal From hp@redhat.com Wed Jun 6 20:43:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AA75F2BBA9 for ; Wed, 6 Jun 2001 20:43:50 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f570kF323291; Wed, 6 Jun 2001 20:46:15 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ignacio Nodal Cc: GTK-List Subject: Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) References: <3B1E9DB5.1BE2D28B@teleline.es> From: Havoc Pennington Date: 06 Jun 2001 20:46:15 -0400 In-Reply-To: Ignacio Nodal's message of "Wed, 06 Jun 2001 23:16:37 +0200" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > but not the segmentation fault I get with "pix = *pixmap;" which I don't > really understand ;(( You can't copy GdkPixmap by value. It can only be manipulated as a pointer. Havoc From hoshem@mel.comcen.com.au Thu Jun 7 02:07:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp48.angel.comcen.com.au [203.23.238.48]) by mail.gnome.org (Postfix) with ESMTP id 9AC4D2BAF1 for ; Thu, 7 Jun 2001 02:07:43 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f576Kdh29499; Thu, 7 Jun 2001 16:20:39 +1000 Date: Thu, 7 Jun 2001 16:20:39 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) Message-ID: <20010607162039.A29408@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1E9DB5.1BE2D28B@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1E9DB5.1BE2D28B@teleline.es>; from inodal@teleline.es on Wed, Jun 06, 2001 at 11:16:37PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Jun 06, 2001 at 11:16:37PM +0200, Ignacio Nodal wrote: > Sorry,there was a fault on the function I pasted ;)) > > gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) > //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix > { > > GdkPixmap *pixmap; > GdkBitmap *mask; > > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **) > pixstring); > > > > g_print("The program arrives this point\n"); > pix = *pixmap; &pix must be a valid pointer, or this will segfault, just like if (char *)ptr is not a valid pointer, *ptr = 'f' will segfault. This means you're doing something wrong if.. > g_print("Segmentation fault is in the line above\n"); > > if (&pix == NULL) {return (FALSE);} else {return (TRUE);} ..you're expecting &pix might be NULL here. I've forgotten everything I ever knew about c++ but I don't think it can be NULL anyway. Using GTK structures without any indirection is a bad idea, besides. I suspect what you really wanted to do here is something like this, using a reference to a pointer: gboolean ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, pixstring); pix = pixmap; if (pix == NULL) return FALSE; else return TRUE; } Then you would use the function like this: #include "myxpm.xpm" // declares char *myxpm[] GdkPixmap *pixmap; ParameterKernel::ReadPixmap (myxpm, pixmap); From inodal@teleline.es Thu Jun 7 06:12:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id 61B712CB09 for ; Thu, 7 Jun 2001 06:12:12 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEK1M301.M1G for ; Thu, 7 Jun 2001 12:10:51 +0200 Message-ID: <3B1F450E.D98882E4@teleline.es> Date: Thu, 07 Jun 2001 11:10:38 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: (gtk_pixmap_new): assertion `val != NULL' failed 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje wrote: > > Hi Ignacio, > > [...] . Why not try this: > > gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap *pix) > /* "&" changed into "*" */ > [...] > GdkPixmap *pixmap; > [...] > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), ... > [...] > pix = pixmap; /* got rid of the "*" because you're allocating a > pointer to a pointer - so they're the same */ > > That's the good way of doing it, I guess. > Regards, > > Ronald This avoids the segmentation fault... but then.. when I use gtk_pixmap_new() I get this other error: "Gtk-CRITICAL **: file gtkpixmap.c: line 97 (gtk_pixmap_new): assertion `val != NULL' failed." Here is the part of the code involve... Somewhere in the main program I create a button, ParameterButton is subclass of ParameterKernel [...] ParameterButton* button = new ParameterButton(PixmapButton); [...] Then I call the ReadPixmap function in the class constructor: if (_type = PixmapButton) { _pixmap_read = ReadPixmap(pixstring, _pixmap);} [...] Then I try to use my "stored" _pixmap, declared as GdkPixmap* _pixmap being a field of the ParameterButton class, in another member-function I have to create/show the buttons: [...] if (_pixmap_read) { GtkWidget* pixmapwidget; g_print("_pixmap_read seems to have been correctly updated\n"); if (_pixmap == NULL) { g_print("Why the hell isn't my GdkPixmap* _pixmap correctly updated ;(\n");} pixmapwidget = gtk_pixmap_new( _pixmap, NULL ); gtk_widget_show( pixmapwidget); gtk_container_add(GTK_CONTAINER(_button), pixmapwidget); [...] Why isn't my _pixmap field being updated? Thanks again and again and again ;) Ignacio Nodal From hoshem@mel.comcen.com.au Thu Jun 7 06:49:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 517922D033 for ; Thu, 7 Jun 2001 06:49:33 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57B2R731002; Thu, 7 Jun 2001 21:02:27 +1000 Date: Thu, 7 Jun 2001 21:02:27 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607210227.A30953@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1F450E.D98882E4@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1F450E.D98882E4@teleline.es>; from inodal@teleline.es on Thu, Jun 07, 2001 at 11:10:38AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:10:38AM +0200, Ignacio Nodal wrote: > Why isn't my _pixmap field being updated? > > Thanks again and again and again ;) > > Ignacio Nodal Sigh :) Have you ever tried doing this when you were learning C: void foo (int i) { i = 10; printf ("%d\n", i); } int main () { int a = 5; printf ("%d\n", a); foo (a); printf ("%d\n", a); return 0; } the output will be: 5 10 5 and not: 5 10 10 That's the same reason why ronald's proposal won't work. Mine will tho unless I've made some silly screw up too :) By the way I didn't make much sense when I was talking about the cause of the segfault, I was confusing myself. Are you sure it was on the line you said it was? Did you actually try out the g_prints to see if they print? From rbultje@ronald.bitfreak.net Thu Jun 7 07:37:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 7DF8E2DBDC for ; Thu, 7 Jun 2001 07:37:00 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f57CL3C01561; Thu, 7 Jun 2001 14:21:03 +0200 (CEST) From: "Ronald Bultje" To: "Helmethead" Cc: Subject: RE: (gtk_pixmap_new): assertion `val != NULL' failed Date: Thu, 7 Jun 2001 13:42:54 +0200 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: <20010607210227.A30953@BuffyRox.localdomain> Importance: Normal 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Helmethead, >Have you ever tried doing this when you were learning C: [nice code] This is true. >That's the same reason why ronald's proposal won't work. Mine will tho >unless I've made some silly screw up too :) >By the way I didn't make much sense when I was talking about the cause >of the segfault, I was confusing myself. Are you sure it was on the >line you said it was? Did you actually try out the g_prints to see if >they print? But this is not. Because I work with pointers, so the data should be saved. Right? Or am I really missing a big big big big point here? I do see your point here - but as far as I see my code did work with pointers - so the data should be kept in place. --- #include "image.xpm" void create_pixmap(GtkWidget *w) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **)image_xpm); w = gtk_pixmap_new (pixmap, mask); } void test() { GtkWidget *w = NULL; create_pixmap(w); if (w == NULL) g_print("I am stupid\n"); else g_print("I am not that stupid\n"); } --- Should return "I am not that stupid", right? (I don't have a xwindows computer on my hands here so I can't test it - grom). w is a pointer in itself, so although I'm not making pointers to this pointer, we're still working with pointers so your point in the simple-C example is a good point but does not apply here. Right? But I might have missed your point completely :-). Regards, Ronald From lah@micropp.se Thu Jun 7 07:59:38 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from albert.micropp.se (unknown [62.168.157.3]) by mail.gnome.org (Postfix) with ESMTP id AC45F2BBA9 for ; Thu, 7 Jun 2001 07:59:37 -0400 (EDT) Received: by albert.micropp.se (Postfix, from userid 1000) id BB6C24145; Thu, 7 Jun 2001 13:59:34 +0200 (CEST) Date: Thu, 7 Jun 2001 13:59:34 +0200 To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607135934.A21230@albert.micropp.se> References: <20010607210227.A30953@BuffyRox.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 01:42:54PM +0200 From: lah@micropp.se (Lars Hallberg) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:42:54PM +0200, Ronald Bultje wrote: > > --- > #include "image.xpm" > void create_pixmap(GtkWidget *w) { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > w = gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w = NULL; > create_pixmap(w); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } > --- > > Should return "I am not that stupid", right? (I don't have a xwindows > computer on my hands here so I can't test it - grom). unless create_pixmap(w) is C++ with an referens argument this program *will* output "I am stupid\n". In C, ther is *no* way the create_pixmap funktion can change its argument. It can change the memory the pointer points to (but then it have to be pointing to valid memory, not NULL), but it can *not* change the pointer itself. So, i C, w is garanteed to still point to NULL! You actuly have to send a pointer to a pointer for the funktion to be able to change the pointer. That is a poor interface tho, in C a initsilasion funktion (like fopen) that returns a alocated chunk of memory whit a fiting pointer type is commonly used. /Lars From inodal@teleline.es Thu Jun 7 08:54:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id E01222BD69 for ; Thu, 7 Jun 2001 08:54:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEK94L04.U0G for ; Thu, 7 Jun 2001 14:53:09 +0200 Message-ID: <3B1F6B18.3F9E4233@teleline.es> Date: Thu, 07 Jun 2001 13:52:56 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Helmethead wrote: >Sigh :) hehehe, be patient with me :))) > > Have you ever tried doing this when you were learning C: > void foo (int i) > { > i = 10; > printf ("%d\n", i); > } int main () > { > int a = 5; printf ("%d\n", a); > foo (a); > printf ("%d\n", a); > return 0; >} > the output will be: > 5 > 10 > 5 > and not: > 5 > 10 > 10 > That's the same reason why ronald's proposal won't work. > Mine will tho unless I've made some silly screw up too :) > By the way I didn't make much sense when I was talking about > the cause of the segfault, I was confusing myself. Are you > sure it was on the line you said it was? Did you actually try > out the g_prints to see if they print? Yeah, but.. gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap *pix) is more like void foo(int* i), or not? Well, I suppose not, since then my program would be working fine :))) The program crahsed on the line I said, because it printed "The program arrives this point\n" and then returned me the segmentation fault, not printing "Segmentation fault is in the line above\n". [...] g_print("The program arrives this point\n"); pix = *pixmap; g_print("Segmentation fault is in the line above\n"); [...] When I use Ronald's proposal it doesn't return me any segmentation fault (both g_prints are shown) but then, when using gtk_pixmap_new() out from the ReadPixmap() function I get the "assertion `val != NULL' failed" error mentioned in my previous mail... Is there anyway to use my GdkPixmap* _pixmap as a parameter for gtk_pixmap_new(), outside from the function where I create it using gdk_pixmap_colormap_create_from_xpm_d()??? really, anyway... Thanks again... And sorry if my bad programming skills turn you nervous, just some more sighs and I hope it will work :)))) Ignacio Nodal From rwan@cs.mu.oz.au Thu Jun 7 09:44:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 5E1B52BAF1 for ; Thu, 7 Jun 2001 09:43:58 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id XAA22540 for ; Thu, 7 Jun 2001 23:43:08 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id EB24775AA; Thu, 7 Jun 2001 23:43:07 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id E93F2AC94 for ; Thu, 7 Jun 2001 23:43:07 +1000 (EST) Date: Thu, 7 Jun 2001 23:43:07 +1000 (EST) From: Raymond Wan To: GTK-List Subject: Installing gtk without root access 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, A few weeks ago, someone posted a message about having problems installing GTK without root access. I'm having problems with it now, but before I go digging through the scripts, can someone confirm to me whether or not it is possible to install GTK without root access? Unfortunately, our system administrator is overloaded with work (as most sysadmins are :) ), so I would like to try to install it myself. The person who posted that message got a lot of helpful advice but no one said that it was not possible to install GTK without root permission, so can I presume it is possible? BTW, I'm talking about the current version of GTK v1.3 (v1.2.9 is already installed) and I guess I would need to install it and any required components such as GDK. Thanks! Ray From rbultje@ronald.bitfreak.net Thu Jun 7 09:57:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 13DF62DF00 for ; Thu, 7 Jun 2001 09:57:17 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f57EfPC23205; Thu, 7 Jun 2001 16:41:25 +0200 (CEST) From: "Ronald Bultje" To: "Lars Hallberg" Cc: Subject: RE: (gtk_pixmap_new): assertion `val != NULL' failed Date: Thu, 7 Jun 2001 16:03:16 +0200 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: <20010607135934.A21230@albert.micropp.se> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, mr. stupid was playing in my head again. >> #include "image.xpm" >> void create_pixmap(GtkWidget *w) { >> GdkPixmap *pixmap; >> GdkBitmap *mask; >> pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, >> gtk_widget_get_default_colormap(), >> &mask, NULL, (gchar **)image_xpm); >> w = gtk_pixmap_new (pixmap, mask); >> } >> void test() { >> GtkWidget *w = NULL; >> create_pixmap(w); >> if (w == NULL) g_print("I am stupid\n"); >> else g_print("I am not that stupid\n"); >> } >> --- >> >> Should return "I am not that stupid", right? (I don't have a xwindows >> computer on my hands here so I can't test it - grom). > >unless create_pixmap(w) is C++ with an referens argument this program >*will* output "I am stupid\n". In C, ther is *no* way the >create_pixmap >funktion can change its argument. It can change the memory the pointer >points to (but then it have to be pointing to valid memory, not NULL), >but it can *not* change the pointer itself. So, i C, w is garanteed >to still point to NULL! You actuly have to send a pointer to a pointer >for the funktion to be able to change the pointer. Double oops. I forgot that. Let's try this one then: #include "image.xpm" void create_pixmap(GtkWidget **w) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **)image_xpm); *w = gtk_pixmap_new (pixmap, mask); } void test() { GtkWidget *w = NULL; create_pixmap(&w); if (w == NULL) g_print("I am stupid\n"); else g_print("I am not that stupid\n"); } This better? :-) Stupid me... Regards, Ronald From lah@micropp.se Thu Jun 7 10:13:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from albert.micropp.se (unknown [62.168.157.3]) by mail.gnome.org (Postfix) with ESMTP id E2BFA2BEF8 for ; Thu, 7 Jun 2001 10:13:00 -0400 (EDT) Received: by albert.micropp.se (Postfix, from userid 1000) id 0B9C84145; Thu, 7 Jun 2001 16:13:00 +0200 (CEST) Date: Thu, 7 Jun 2001 16:13:00 +0200 To: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607161300.A21786@albert.micropp.se> References: <20010607135934.A21230@albert.micropp.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 04:03:16PM +0200 From: lah@micropp.se (Lars Hallberg) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 04:03:16PM +0200, Ronald Bultje wrote: > > Double oops. I forgot that. Let's try this one then: Shuld work if the pixmap stuf is right (haven't used that). But I would predere: > #include "image.xpm" > GtkWidget *create_pixmap() { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > return gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w; > w = create_pixmap(); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } It is not only a cuestion of taste, 99% of C-code use this convention, so it is more consistent and easy to remember and understand. /Lars From sven@gimp.org Thu Jun 7 11:26:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 26A7F2DF20 for ; Thu, 7 Jun 2001 11:26:57 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 1581Zp-0001Qg-00; Thu, 07 Jun 2001 17:20:01 +0200 To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access References: From: Sven Neumann Date: 07 Jun 2001 17:20:01 +0200 In-Reply-To: Message-ID: Lines: 22 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Raymond Wan writes: > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. ./configure --prefix= make make install Then you'll have to add $prefix/bin to your PATH environment variable, $prefix/lib to LD_LIBRARY_PATH and $prefix/lib/pkgconfig to PKG_CONFIG_PATH and you are done. Salut, Sven From erik@arthur.ubicom.tudelft.nl Thu Jun 7 11:35:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhst2.its.tudelft.nl (mailhst2.its.tudelft.nl [130.161.34.250]) by mail.gnome.org (Postfix) with ESMTP id 3B6ED2E74F for ; Thu, 7 Jun 2001 11:34:45 -0400 (EDT) Received: from arthur.ubicom.tudelft.nl (root@arthur.ubicom.tudelft.nl [130.161.43.222]) by mailhst2.its.tudelft.nl (8.9.3/8.9.3) with ESMTP id RAA28086; Thu, 7 Jun 2001 17:34:42 +0200 (METDST) Received: (from erik@localhost) by arthur.ubicom.tudelft.nl (8.9.3/8.9.3/Debian 8.9.3-21) id RAA11614; Thu, 7 Jun 2001 17:31:14 +0200 Date: Thu, 7 Jun 2001 17:31:14 +0200 From: Erik Mouw To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010607173113.B10688@arthur.ubicom.tudelft.nl> 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 rwan@cs.mu.oz.au on Thu, Jun 07, 2001 at 11:43:07PM +1000 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy! Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. Sure, no problem. > The person who posted that message got a lot of helpful advice but > no one said that it was not possible to install GTK without root > permission, so can I presume it is possible? Yes. export MY_GTK=/home/myhome/gtk export PATH=$MY_GTK/bin:$PATH export LD_LIBRARY_PATH=$MY_GTK/lib Now configure install GTK the usual way, but use the flag --prefix=$MY_GTK for all configure scripts. Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ From hoshem@mel.comcen.com.au Thu Jun 7 11:49:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id AC0832E782 for ; Thu, 7 Jun 2001 11:49:21 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57G2PA00489; Fri, 8 Jun 2001 02:02:25 +1000 Date: Fri, 8 Jun 2001 02:02:25 +1000 From: Helmethead To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010608020225.A31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , gtk-list@gnome.org References: <20010607210227.A30953@BuffyRox.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 01:42:54PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:42:54PM +0200, Ronald Bultje wrote: > Hi Helmethead, > > >Have you ever tried doing this when you were learning C: > [nice code] > > This is true. > > >That's the same reason why ronald's proposal won't work. Mine will tho > >unless I've made some silly screw up too :) > >By the way I didn't make much sense when I was talking about the cause >of > the segfault, I was confusing myself. Are you sure it was on the > >line you said it was? Did you actually try out the g_prints to see if > >they print? > > But this is not. Because I work with pointers, so the data should be saved. > Right? Or am I really missing a big big big big point here? Actually, that's not true :) To pass a variable to a function so the function can modify it, you need to pass the address of the variable (like the mask argument to gdk_pixmap_colormap_create_from_xpm_d). That means the function parameter's type is another level of pointerness (indirection is the technical word) past your original variable. If your original variable is an int, the function has to take int*. If the original variable is GtkWidget*, the function has to take a GtkWidget**. I'll use your example for another example (heh) > I do see your point here - but as far as I see my code did work with > pointers - so the data should be kept in place. > > --- > #include "image.xpm" > void create_pixmap(GtkWidget *w) { void create_pixmap(GtkWidget **w) { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > w = gtk_pixmap_new (pixmap, mask); *w = gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w = NULL; > create_pixmap(w); create_pixmap(&w); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } > --- From hoshem@mel.comcen.com.au Thu Jun 7 12:06:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 15EB02CE45 for ; Thu, 7 Jun 2001 12:06:23 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57GEYl00519; Fri, 8 Jun 2001 02:14:34 +1000 Date: Fri, 8 Jun 2001 02:14:33 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010608021433.B31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.localdomain> <3B1F6B18.3F9E4233@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1F6B18.3F9E4233@teleline.es>; from inodal@teleline.es on Thu, Jun 07, 2001 at 01:52:56PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:52:56PM +0200, Ignacio Nodal wrote: > Helmethead wrote: > > >Sigh :) > hehehe, be patient with me :))) No worries, I have nothing else to do ;) > > > > Have you ever tried doing this when you were learning C: > > void foo (int i) > > { > > i = 10; > > printf ("%d\n", i); > > } int main () > > { > > int a = 5; printf ("%d\n", a); > > foo (a); > > printf ("%d\n", a); > > return 0; > > } [snip] > Yeah, but.. gboolean ParameterKernel::ReadPixmap(gchar **pixstring, > GdkPixmap *pix) is more like void foo(int* i), or not? Well, I suppose > not, since then my program would be working fine :))) Nope, it's like foo(int i) ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap*& pix) is like foo(int &i) you can use a GdkPixmap ** if you really want it to be like foo(int *i) :) > The program crahsed on the line I said, because it printed "The program > arrives this point\n" and then returned me the segmentation fault, not > printing "Segmentation fault is in the line above\n". Hmm... gdk_pixmap_colormap_create_from_xpm_d must be failing (as well!) Write a g_print that prints out the value of pixmap and see if it's NULL > > [...] > g_print("The program arrives this point\n"); > pix = *pixmap; > g_print("Segmentation fault is in the line above\n"); > [...] > > When I use Ronald's proposal it doesn't return me any segmentation fault > (both g_prints are shown) but then, when using gtk_pixmap_new() out from > the ReadPixmap() function I get the "assertion `val != NULL' failed" > error mentioned in my previous mail... The variable passed to ReadPixmap isn't getting set, though if I'm right about what I said above it'd be set to NULL anyway. :( > Is there anyway to use my GdkPixmap* _pixmap as a parameter for > gtk_pixmap_new(), outside from the function where I create it using > gdk_pixmap_colormap_create_from_xpm_d()??? really, anyway... With exactly one change, change the function declarations from ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap* pix) to ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) and it will automagically set the variable you pass in properly. C++ references are pretty cute. From hoshem@mel.comcen.com.au Thu Jun 7 12:09:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 08E5A2DC49 for ; Thu, 7 Jun 2001 12:09:39 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57GMsh00547; Fri, 8 Jun 2001 02:22:54 +1000 Date: Fri, 8 Jun 2001 02:22:54 +1000 From: Helmethead To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010608022254.C31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Raymond Wan , GTK-List 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 rwan@cs.mu.oz.au on Thu, Jun 07, 2001 at 11:43:07PM +1000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > > Hi all, > > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. > > The person who posted that message got a lot of helpful advice but > no one said that it was not possible to install GTK without root > permission, so can I presume it is possible? > > BTW, I'm talking about the current version of GTK v1.3 (v1.2.9 is > already installed) and I guess I would need to install it and any required > components such as GDK. Thanks! I have a nice collection of installed gtk/glib/pango/atk/pkg-config files in my /home/helmet/progs/gtk/newgtk directory. Works fine. Just make sure you set LD_LIBRARY_PATH to /lib and add /bin to your path BEFORE configuring, building and installing, and nothing should croak. And pass --prefix= to configure or autogen.sh. That's all there is to it. From inodal@teleline.es Thu Jun 7 12:23:18 2001 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 EC2E32DECD for ; Thu, 7 Jun 2001 12:23:17 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEKISD05.K0X; Thu, 7 Jun 2001 18:21:49 +0200 Message-ID: <3B1F9C00.C1D966B7@teleline.es> Date: Thu, 07 Jun 2001 17:21:37 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: Helmethead Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.localdomain> <3B1F6B18.3F9E4233@teleline.es> <20010608021433.B31663@BuffyRox.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Helmethead wrote: > With exactly one change, change the function declarations from > > ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap* pix) > to > ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) > > and it will automagically set the variable you pass in properly. C++ references are pretty cute. Ok, thanks a lot.. all seems to work fine now. I've learned a lot about pointers, hehehe It works fine using ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) //the C++ way and also using ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap** pix) //the C way with some little internal changes, of course ;) Thanks for being so patient, I know this was basic pointers UNknowledge :)) Ignacio Nodal From king@eiffel.com Thu Jun 7 15:00:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 63B3C2BB2D for ; Thu, 7 Jun 2001 15:00:16 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15850g-0005Jt-00; Thu, 07 Jun 2001 11:59:58 -0700 Message-ID: <0af601c0ef85$196d0d80$750a000a@naples> From: "Ian King" To: "Erik Mouw" , "Raymond Wan" Cc: "GTK-List" References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> Subject: Re: Installing gtk without root access Date: Thu, 7 Jun 2001 12:07:30 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root access. How would I get my application to dynamically use the 1.2.9 shared libraries (which would be in my home/gtk/lib directory) without editing ld.so.conf (root access needed), or breaking any other applications? Thanks for your time Ian King ----- Original Message ----- From: "Erik Mouw" To: "Raymond Wan" Cc: "GTK-List" Sent: Thursday, June 07, 2001 8:31 AM Subject: Re: Installing gtk without root access > On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > > A few weeks ago, someone posted a message about having problems > > installing GTK without root access. I'm having problems with it now, but > > before I go digging through the scripts, can someone confirm to me whether > > or not it is possible to install GTK without root access? Unfortunately, > > our system administrator is overloaded with work (as most sysadmins are :) > > ), so I would like to try to install it myself. > > Sure, no problem. > > > The person who posted that message got a lot of helpful advice but > > no one said that it was not possible to install GTK without root > > permission, so can I presume it is possible? > > Yes. > > export MY_GTK=/home/myhome/gtk > export PATH=$MY_GTK/bin:$PATH > export LD_LIBRARY_PATH=$MY_GTK/lib > > Now configure install GTK the usual way, but use the flag > --prefix=$MY_GTK for all configure scripts. > > > Erik > > -- > J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department > of Electrical Engineering, Faculty of Information Technology and Systems, > Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands > Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl > WWW: http://www-ict.its.tudelft.nl/~erik/ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From erik@arthur.ubicom.tudelft.nl Thu Jun 7 15:07:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhst2.its.tudelft.nl (mailhst2.its.tudelft.nl [130.161.34.250]) by mail.gnome.org (Postfix) with ESMTP id B4FB52DB5A for ; Thu, 7 Jun 2001 15:07:43 -0400 (EDT) Received: from arthur.ubicom.tudelft.nl (root@arthur.ubicom.tudelft.nl [130.161.43.222]) by mailhst2.its.tudelft.nl (8.9.3/8.9.3) with ESMTP id VAA09745; Thu, 7 Jun 2001 21:07:37 +0200 (METDST) Received: (from erik@localhost) by arthur.ubicom.tudelft.nl (8.9.3/8.9.3/Debian 8.9.3-21) id VAA18730; Thu, 7 Jun 2001 21:07:27 +0200 Date: Thu, 7 Jun 2001 21:07:27 +0200 From: Erik Mouw To: Ian King Cc: Raymond Wan , GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010607210727.D10688@arthur.ubicom.tudelft.nl> References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> <0af601c0ef85$196d0d80$750a000a@naples> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0af601c0ef85$196d0d80$750a000a@naples>; from king@eiffel.com on Thu, Jun 07, 2001 at 12:07:30PM -0700 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy! Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 12:07:30PM -0700, Ian King wrote: > Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older > version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root > access. How would I get my application to dynamically use the 1.2.9 shared > libraries (which would be in my home/gtk/lib directory) without editing > ld.so.conf (root access needed), or breaking any other applications? By using LD_LIBRARY_PATH. "export LD_LIBRARY_PATH=/my/home/gtk/lib" does the trick. See "man ld.so" for more information. Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ From hoshem@mel.comcen.com.au Thu Jun 7 22:23:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem015.ramoth.comcen.com.au [203.23.238.134]) by mail.gnome.org (Postfix) with ESMTP id BC0872C8BC for ; Thu, 7 Jun 2001 22:23:48 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f582aU401945; Fri, 8 Jun 2001 12:36:30 +1000 Date: Fri, 8 Jun 2001 12:36:29 +1000 From: Helmethead To: Ian King Cc: Erik Mouw , Raymond Wan , GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010608123629.A1906@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ian King , Erik Mouw , Raymond Wan , GTK-List References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> <0af601c0ef85$196d0d80$750a000a@naples> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0af601c0ef85$196d0d80$750a000a@naples>; from king@eiffel.com on Thu, Jun 07, 2001 at 12:07:30PM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 12:07:30PM -0700, Ian King wrote: > Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older > version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root > access. How would I get my application to dynamically use the 1.2.9 shared > libraries (which would be in my home/gtk/lib directory) without editing > ld.so.conf (root access needed), or breaking any other applications? > > Thanks for your time > > Ian King Yup, LD_LIBRARY_PATH is ready willing and able in GNU ld on linux. From David.Bourguignon@imag.fr Thu Jun 7 06:53:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ebene.inrialpes.fr (ebene.inrialpes.fr [194.199.18.70]) by mail.gnome.org (Postfix) with ESMTP id 29AD92CF6B for ; Thu, 7 Jun 2001 06:53:53 -0400 (EDT) Received: from safran.inrialpes.fr (safran.inrialpes.fr [194.199.26.1]) by ebene.inrialpes.fr (8.11.3/8.11.3) with ESMTP id f57AqFg28545; Thu, 7 Jun 2001 12:52:15 +0200 (MEST) Received: from imag.fr (estragon [194.199.26.93]) by safran.inrialpes.fr (980427.SGI.8.8.8/8.8.5) with ESMTP id MAA17863; Thu, 7 Jun 2001 12:53:49 +0200 (MDT) Message-ID: <3B1F5C68.A34E8B0@imag.fr> Date: Thu, 07 Jun 2001 12:50:16 +0200 From: David Bourguignon Organization: iMAGIS X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem with gxid_lib 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I apologize in advance if my question is not related to this list topic. I'm using an sgi workstation running irix (sgi unix), a wacom tablet with a wacom irix driver. I tried to use my tablet with gimp. Unfortunately, when configuring gimp to recognize my tablet, using the "File -> Dialogs -> Input Devices" window, I get the following error message : gxid_lib: can't connect to 127.0.0.1:6951 Gdk-WARNING **: Could not get device (is gxid running?) Do you know what does this mean ? Thank you very much for your help. David. -- iMAGIS project, GRAVIR lab INRIA Rhône-Alpes, 655 avenue de l'Europe 38330 Montbonnot Saint Martin, France http://www-imagis.imag.fr/~David.Bourguignon/index.gb.html From otaylor@redhat.com Thu Jun 7 23:25:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 03D9B2D2D6 for ; Thu, 7 Jun 2001 23:25:07 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 9D0A82422B3; Thu, 7 Jun 2001 23:25:01 -0400 (EDT) To: David Bourguignon Cc: gtk-list@gnome.org Subject: Re: problem with gxid_lib References: <3B1F5C68.A34E8B0@imag.fr> From: Owen Taylor Date: 07 Jun 2001 23:25:01 -0400 In-Reply-To: David Bourguignon's message of "Thu, 07 Jun 2001 12:50:16 +0200" Message-ID: Lines: 55 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David Bourguignon writes: > Hi all, > > I apologize in advance if my question is not related to this list topic. Certainly on topic for this list. > I'm using an sgi workstation running irix (sgi unix), a wacom tablet with a > wacom irix driver. I tried to use my tablet with gimp. Unfortunately, when > configuring gimp to recognize my tablet, using the "File -> Dialogs -> Input > Devices" window, I get the following error message : > > gxid_lib: can't connect to 127.0.0.1:6951 > > Gdk-WARNING **: Could not get device (is gxid running?) > > Do you know what does this mean ? > Thank you very much for your help. Well, note the warning in GTK+'s README: ==== The --with-xinput flag specifies whether to compile with support for the XInput extension (mainly used for graphics tablets), and which form of support to use: no : no support xfree : Use special features in the Wacom drivers in XFree86 3.3.1 and later. gxi : Use generic XInput support (not recommended) The XInput support is not known to work with any other XServer than XFree86. For more information about XInput, see: ==== The gxi support was added for and tested with versions of XFree86 older than 3.3.1, and hasn't been tested at all for several years. That being said, what the message means is that you need to start the 'gxid' programming that was built and installed with GTK+ when you compile --with-xinput=gxi. The gxid program is responsible for switching a graphics tablet between controlling the core pointer and sending extended input events that GTK+ and the GIMP can interpret for getting pressure/tilt information. Regards, Owen From Michael.Mitton@millersville.edu Fri Jun 8 08:56:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail1.millersville.edu (mail1.millersville.edu [166.66.56.75]) by mail.gnome.org (Postfix) with ESMTP id C862C2E120 for ; Fri, 8 Jun 2001 08:56:06 -0400 (EDT) Received: by mail1.millersville.edu with Internet Mail Service (5.5.2653.19) id ; Fri, 8 Jun 2001 08:52:00 -0400 Message-ID: From: Michael Mitton To: gtk-list@gnome.org Subject: Glade link off of www.gtk.org Date: Fri, 8 Jun 2001 08:52:00 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. On http://www.gtk.org, the link for glade is set to http://glade.pn.org, but the link is really http://glade.gnome.org. This change happened around 4-19-2001. Could somebody please update the website accordingly? There has been quite a few messages in the glade forum about "Where is the website", and this may help. Thank you. -Michael From howardzzh@yahoo.com Fri Jun 8 12:46:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13405.mail.yahoo.com (web13405.mail.yahoo.com [216.136.175.63]) by mail.gnome.org (Postfix) with SMTP id 84DE22BBFC for ; Fri, 8 Jun 2001 12:46:49 -0400 (EDT) Message-ID: <20010608164648.48317.qmail@web13405.mail.yahoo.com> Received: from [131.215.103.7] by web13405.mail.yahoo.com; Fri, 08 Jun 2001 09:46:48 PDT Date: Fri, 8 Jun 2001 09:46:48 -0700 (PDT) From: Howard Zhou Subject: Help: why Gtk::Bin.remove() deletes my object 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am back. Thanks for your advice last time. Now I have a new one. I tried to switch between text object in a scrolled window by calling remove() then add(*_) because the trial with just calling add(*_) does not work. But I found that remove() will actually delete the text object I put in first(this maybe my misunderstanding). Is this really true? If so, is there a function that I can call so that it will replace the text widget in that window without deleting the old one, or is there any other way going around. Thanks! Howard __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From topper@virginia.edu Fri Jun 8 16:42:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 36AE42DEBA for ; Fri, 8 Jun 2001 16:42:59 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab09715; 8 Jun 2001 16:42 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id QAA19988 for ; Fri, 8 Jun 2001 16:42:58 -0400 (EDT) Message-ID: <3B213847.BBB97D7B@virginia.edu> Date: Fri, 08 Jun 2001 16:40:39 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to keep (force) window focus? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, Is there a way for me to force a window to remain in focus? I've got some popup windows on a canvas, that of course drop to back when focus moves off them. I'm looking for an easy way to force them to remain on top. Thanks, Dave Topper -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From sven@gimp.org Fri Jun 8 19:09:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD90020A1.dip.t-dialin.net [217.0.32.161]) by mail.gnome.org (Postfix) with ESMTP id 92DE52DF1B for ; Fri, 8 Jun 2001 19:09:00 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 158VGo-00025H-00; Sat, 09 Jun 2001 01:02:22 +0200 To: Howard Zhou Cc: gtk-list@gnome.org Subject: Re: Help: why Gtk::Bin.remove() deletes my object References: <20010608164648.48317.qmail@web13405.mail.yahoo.com> From: Sven Neumann Date: 09 Jun 2001 01:02:21 +0200 In-Reply-To: <20010608164648.48317.qmail@web13405.mail.yahoo.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Howard Zhou writes: > I tried to switch between text object > in a scrolled window by calling remove() then add(*_) > because the trial with just calling add(*_) does not > work. But I found that remove() will actually delete > the text object I put in first. the container (scrolled window) takes ownership of the object you add to it and sinks it. All GTK+ containers behave like this. You need to change your code to: gtk_object_ref (object1); container_add (container, object1); ... container_remove (container, object1); container_add (container, object2); Then don't forget to unref your object as soon as you don't need it anymore. Salut, Sven From king@eiffel.com Fri Jun 8 19:36:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 71B5C2E234 for ; Fri, 8 Jun 2001 19:36:21 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 158Vnf-0004Yq-00 for gtk-list@gnome.org; Fri, 08 Jun 2001 16:36:19 -0700 Message-ID: <101f01c0f074$e2607a20$750a000a@naples> From: "Ian King" To: Subject: Hacks needed. Date: Fri, 8 Jun 2001 16:43:56 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a few questions that hopefully someone could help me with. 1) Does anyone know why the vertical scrollbar in a scrollable gtklist doesn't function when the list contains more than 2500 items? 2) Does anyone know why the pixmap in a gtkctreenode disappears when the node is expanded? 3) Does anyone know why the horizontal scrollbar for a ctree doesn't appear at all (with Automatic scroll Policy)? If anyone knows any hacks around these bugs then that would be great, especially number two as that is the most annoying. Thanks for your time Ian King From hp@redhat.com Fri Jun 8 19:55:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 69E7D2E266 for ; Fri, 8 Jun 2001 19:55:14 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f58NvYV12794; Fri, 8 Jun 2001 19:57:34 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> From: Havoc Pennington Date: 08 Jun 2001 19:57:34 -0400 In-Reply-To: "David J. Topper"'s message of "Fri, 08 Jun 2001 16:40:39 -0400" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > Is there a way for me to force a window to remain in focus? I've got > some popup windows on a canvas, that of course drop to back when focus > moves off them. I'm looking for an easy way to force them to remain on > top. > By "popup" do you mean a dialog or a menu or a tooltip type of thing? Are they toplevel GtkWindows? Are they GTK_WINDOW_POPUP? Do you actually want keyboard focus on these, or do you just mean you want them to remain on top? (You mean on top of another window, or on top of the other widgets in a canvas?) Havoc From skip@beluga.mojam.com Fri Jun 8 21:08:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 735612BCF9 for ; Fri, 8 Jun 2001 21:08:47 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 28D632818; Fri, 8 Jun 2001 20:08:44 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15137.30492.15858.792431@beluga.mojam.com> Date: Fri, 8 Jun 2001 20:08:44 -0500 To: gtk-list@gnome.org Subject: odd assertion in gtktextiter.c X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm getting an assertion error in forward_line_leaving_caches_unmodified in gtktextiter.c (this is from the vanilla 1.3.5 distribution). There is a test of new_line: if (new_line != NULL) { ... do some stuff ... } else { /* There is no way to move forward; we were already at the "end" index. (the end index is the last line pointer, segment_byte_offset of 0) */ g_assert (real->line_char_offset == 0 || real->line_byte_offset == 0); ... do some other stuff ... } I'm landing in the else clause. The assertion is failing because real_line_char_offset is -1 and real->line_byte_offset is 25. I looked at new_line and discovered its value to be 0xffffffff. So my confusion is two-fold. One, new_line's value looks mighty suspicious to me. (Looks like -1 instead of a valid pointer.) Two, how in the heck could new_line have compared equal to NULL? I don't believe I did anything unusual when compiling Gtk, so the gcc compilation flags where probably just "-g -O2". I'll try rebuilding without any optimization and see if that helps. Any other debugging suggestions would be appreciated. Thanks, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From 4dadio@telkom.net Fri Jun 8 21:24:53 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 23BA62CF20 for ; Fri, 8 Jun 2001 21:24:46 -0400 (EDT) Received: out-mta3.plasa.com; Sat, 09 Jun 2001 08:24:37 +0700 Received: out-mta2.plasa.com; Sat, 09 Jun 2001 08:24:37 +0700 Received: from [192.168.19.56] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 1810391 for ; Sat, 09 Jun 2001 08:24:37 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: examp. of simple graphic using Gdk To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Sat, 09 Jun 2001 08:24:37 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: There is a lack of how to draw graphic using gdk. so if you guys have an example to draw a simple x=y graphic, please tell me. thanks for your help dadio From hp@redhat.com Fri Jun 8 23:58:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4B0B42BACE for ; Fri, 8 Jun 2001 23:58:05 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f593w2T27857; Fri, 8 Jun 2001 23:58:02 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Hacks needed. References: <101f01c0f074$e2607a20$750a000a@naples> From: Havoc Pennington Date: 08 Jun 2001 23:58:02 -0400 In-Reply-To: "Ian King"'s message of "Fri, 8 Jun 2001 16:43:56 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > > 1) Does anyone know why the vertical scrollbar in a scrollable gtklist > doesn't function when the list contains more than 2500 items? The size of GtkList is limited by the size of an X window, which is 32K pixels or so. Using GtkCList is recommended for this reason among others. I don't know the other two, if you have test cases file a bug on bugzilla.gnome.org and someone can investigate. Havoc From hp@redhat.com Sat Jun 9 00:06:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2DF0C2DBA0 for ; Sat, 9 Jun 2001 00:06:24 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5946NQ28955; Sat, 9 Jun 2001 00:06:23 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: odd assertion in gtktextiter.c References: <15137.30492.15858.792431@beluga.mojam.com> From: Havoc Pennington Date: 09 Jun 2001 00:06:23 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 8 Jun 2001 20:08:44 -0500" Message-ID: Lines: 39 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I'm getting an assertion error in forward_line_leaving_caches_unmodified in > gtktextiter.c (this is from the vanilla 1.3.5 distribution). There is a > test of new_line: > > if (new_line != NULL) > { > ... do some stuff ... > } > else > { > /* There is no way to move forward; we were already > at the "end" index. (the end index is the last > line pointer, segment_byte_offset of 0) */ > > g_assert (real->line_char_offset == 0 || > real->line_byte_offset == 0); > ... do some other stuff ... > } > > I'm landing in the else clause. The assertion is failing because > real_line_char_offset is -1 and real->line_byte_offset is 25. I looked at > new_line and discovered its value to be 0xffffffff. So my confusion is > two-fold. One, new_line's value looks mighty suspicious to me. (Looks like > -1 instead of a valid pointer.) Two, how in the heck could new_line have > compared equal to NULL? I don't believe I did anything unusual when > compiling Gtk, so the gcc compilation flags where probably just "-g -O2". > I'll try rebuilding without any optimization and see if that helps. Any > other debugging suggestions would be appreciated. > The value of new_line is probably either the stack getting messed up or gdb getting confused. If you can make a test case for this so I can reproduce it, I'll try to sort it out. Havoc From inodal@teleline.es Sat Jun 9 08:33:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id 0787A2BA83 for ; Sat, 9 Jun 2001 08:33:13 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GENXFY06.JDB for ; Sat, 9 Jun 2001 14:31:10 +0200 Message-ID: <3B220909.205DA3BF@teleline.es> Date: Sat, 09 Jun 2001 13:31:21 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: hbox widgets with different heights 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, I'm packing a label, a scale and a button in a hbox. If I resize the widget the label and the button should remain of the same size and the scale should be expanded. So I used: [...] _box = gtk_hbox_new(FALSE, 0); _label = gtk_label_new("Integer:"); gtk_box_pack_start(GTK_BOX(_box), _label, FALSE, FALSE, 5); _adj = gtk_adjustment_new(val_default,val_min,val_max,0.1,1.0,1.0); _scale = gtk_hscale_new(GTK_ADJUSTMENT(_adj)); gtk_range_set_update_policy (GTK_RANGE(_scale),GTK_UPDATE_CONTINUOUS); gtk_scale_set_digits (GTK_SCALE(_scale),0); gtk_scale_set_value_pos (GTK_SCALE(_scale), GTK_POS_TOP); gtk_scale_set_draw_value (GTK_SCALE(_scale), TRUE); gtk_box_pack_start(GTK_BOX(_box),_scale, TRUE, TRUE, 0); _button = gtk_button_new_with_label("[-]"); gtk_box_pack_start(GTK_BOX(_box),_button, FALSE, FALSE, 5); [...] That works fine.. the problem is I don't like the height of the button, I would like it a little smaller, so I tried : gtk_widget_set_usize(GTK_WIDGET(_button),20,5); ..but the button widget didn't care at all.. Is there any way to make a widget in a hbox smaller in height than the other widgets?? Thanks in advance, Ignacio Nodal From lsetia78@yahoo.com Sat Jun 9 10:48:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnu.org (unknown [203.195.142.141]) by mail.gnome.org (Postfix) with ESMTP id E9CB62BACE for ; Sat, 9 Jun 2001 10:47:55 -0400 (EDT) Received: (from lsetia@localhost) by gnu.org (8.11.0/8.11.0) id f59F5HY02359; Sat, 9 Jun 2001 20:35:17 +0530 X-Authentication-Warning: milkyway.net.in: lsetia set sender to lsetia78@yahoo.com using -f To: gtk-list@gnome.org Subject: save as dialog... X-please-use: GNU software X-listening-to: Jim Morrison X-personal-homepage: (Still!) Under Construction From: Lokesh Setia Date: 09 Jun 2001 20:35:16 +0530 Message-ID: Lines: 18 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have a couple of questions... o When the file selection widget is used in the context of "Save as", the filename goes off as soon as the directory is changed. Is it a bug in gtk+ 1.2? Or a feature that can be changed? o Is it possible to somehow make the keyboard cursor blink in gtk+ ? Thanks for your time. Loki -- Cricket scoreboard for linux For more info, visit http://scoreboard.sourceforge.net From hp@redhat.com Sat Jun 9 12:27:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 9F6F52D9B8 for ; Sat, 9 Jun 2001 12:27:11 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f59GR7h15824; Sat, 9 Jun 2001 12:27:07 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ignacio Nodal Cc: GTK-List Subject: Re: hbox widgets with different heights References: <3B220909.205DA3BF@teleline.es> From: Havoc Pennington Date: 09 Jun 2001 12:27:07 -0400 In-Reply-To: Ignacio Nodal's message of "Sat, 09 Jun 2001 13:31:21 +0200" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > Is there any way to make a widget in a hbox smaller in height than the > other widgets?? > set_usize() isn't working because it only sets the widget size request, it doesn't force a size. What you want to do is put the button inside a GtkAlignment, then tune the GtkAlignment parameters. Havoc From michaelv@cox-internet.com Sat Jun 9 12:31:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from io.cox-internet.com (unknown [208.180.118.41]) by mail.gnome.org (Postfix) with ESMTP id 8C3102BB31 for ; Sat, 9 Jun 2001 12:31:45 -0400 (EDT) Received: from cdm-233-171-vict.cox-internet.com ([208.180.233.171]) by io.cox-internet.com (InterMail vK.4.02.00.10 201-232-116-110 license dd72657b95c070b1853187e4f5a0d6a7) with ESMTP id <20010609162917.IYJO29067.io@cdm-233-171-vict.cox-internet.com> for ; Sat, 9 Jun 2001 11:29:17 -0500 Subject: themes.org From: Michael Vanderford To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 09 Jun 2001 11:52:20 -0500 Message-Id: <992105540.1078.0.camel@cdm-233-171-vict.cox-internet.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone know what happened to themes.org It's been down for a while now. From alan@clueserver.org Sat Jun 9 12:47:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from clueserver.org (216-99-213-120.dsl.aracnet.com [216.99.213.120]) by mail.gnome.org (Postfix) with ESMTP id 0891A2CC78 for ; Sat, 9 Jun 2001 12:47:56 -0400 (EDT) Received: by clueserver.org (Postfix, from userid 500) id 51DC66E42; Sat, 9 Jun 2001 10:58:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by clueserver.org (Postfix) with ESMTP id 42F045E87; Sat, 9 Jun 2001 10:58:52 -0700 (PDT) Date: Sat, 9 Jun 2001 10:58:52 -0700 (PDT) From: Alan Olsen To: Michael Vanderford Cc: gtk-list@gnome.org Subject: Re: themes.org In-Reply-To: <992105540.1078.0.camel@cdm-233-171-vict.cox-internet.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 9 Jun 2001, Michael Vanderford wrote: > Does anyone know what happened to themes.org > It's been down for a while now. They got hacked when Sourceforge and a bunch of others got hit. I am not certain why it is taking them so long to come back up though. alan@ctrl-alt-del.com | Note to AOL users: for a quick shortcut to reply Alan Olsen | to my mail, just hit the ctrl, alt and del keys. "All power is derived from the barrel of a gnu." - Mao Tse Stallman From Darshan.wakchaure@Vashimail.ltitl.com Fri Jun 8 01:08:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ltitlrelay.ltitl.com (unknown [203.199.54.28]) by mail.gnome.org (Postfix) with ESMTP id 95FDE2D41B for ; Fri, 8 Jun 2001 01:08:14 -0400 (EDT) Received: from Vashimail.ltitl.com ([172.17.9.1]) by ltitlrelay.ltitl.com (Lotus Domino Release 5.0.5) with SMTP id 2001060810371403:29255 ; Fri, 8 Jun 2001 10:37:14 +0530 Received: by Vashimail.ltitl.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id 65256A65.001BE791 ; Fri, 8 Jun 2001 10:34:47 +0530 X-Lotus-FromDomain: VASHI From: Darshan.wakchaure@Vashimail.ltitl.com To: gnome-list@gnome.org Message-ID: <65256A65.001BE5F4.01@Vashimail.ltitl.com> Date: Fri, 8 Jun 2001 10:34:43 +0530 Subject: Help on menu .. Mime-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on ltitlrelay/Ltitl(Release 5.0.5 |September 22, 2000) at 06/08/2001 10:37:14 AM, Serialize by Router on ltitlrelay/Ltitl(Release 5.0.5 |September 22, 2000) at 06/08/2001 10:37:17 AM, Serialize complete at 06/08/2001 10:37:17 AM Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi , I want to have a menu in my application. I have tried to use the sample menu code from the net. Its ok when i am opening notebook kind of appplication, but i want to open multiple windows in from the menu, a mdi - with number of child windows within .. Has anyone used gnome/gtk for building similar kind of stuff??? Thanks, Darshan From reinhard.mueller@bytewise.at Fri Jun 8 10:26:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from email03.aon.at (WARSL401PIP5.highway.telekom.at [195.3.96.112]) by mail.gnome.org (Postfix) with SMTP id 911BA2BAB8 for ; Fri, 8 Jun 2001 10:26:36 -0400 (EDT) Received: (qmail 31834 invoked from network); 8 Jun 2001 14:26:34 -0000 Received: from n813p023.adsl.highway.telekom.at (HELO bytewise.at) ([62.47.45.151]) (envelope-sender ) by qmail3.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 8 Jun 2001 14:26:34 -0000 Message-ID: <3B20E15B.6000003@bytewise.at> Date: Fri, 08 Jun 2001 16:29:47 +0200 From: Reinhard Mueller Organization: GNU Enterprise User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: de, en MIME-Version: 1.0 To: gtk-list@gnome.org Cc: gnue-geas@lists.gnue.org Subject: g_assert vs. g_return[_val]_if_fail 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, We are using glib all over our project (GNU Enterprise) and want to make best use of it's debugging functions. Now the discussion has started on in which cases g_assert should be used and in which g_return... is better. We know the differences: * g_assert is turned off by a different define than g_return..., but both can be turned off. * g_assert terminates the application, where g_return... only terminates the function * therefore, g_assert lets me jump into gdb as soon as it is hit, while g_return... doesn not. This seems to be an advantage for g_assert. * for users, it seems that g_return... is nicer because it doesn't kill the process. So my questions are: Is there a golden rule when to use which? Does it make sense to use both and disable the g_assert for production use and let g_return... in? How do others handle this? Thanks a lot, -- Reinhard Mueller GNU Enterprise project http://www.gnue.org From inodal@teleline.es Sun Jun 10 16:34:31 2001 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 D9D272BEAB for ; Sun, 10 Jun 2001 16:34:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEQEEH05.F3Z for ; Sun, 10 Jun 2001 22:32:41 +0200 Message-ID: <3B23CB67.6CA5C0C2@teleline.es> Date: Sun, 10 Jun 2001 21:32:55 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: problems with gtk_toggle_button_set_active() and check buttons 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, I've create a check button but I've also added a callback which must be called if the right button has been pressed. The calldata is a pointer to my class. When I create it I set the state to TRUE or FALSE according to the value stored in *parameter. [...] _boolean_button = gtk_check_button_new(); _label_widget = gtk_label_new (_label); gtk_container_add(GTK_CONTAINER(_boolean_button), _label_widget); gtk_misc_set_alignment(GTK_MISC(_label_widget), 0.1f, 0.5f); gtk_widget_show(_label_widget); //"button_press_event" instead of "toggled" to know which button was pressed gtk_signal_connect (GTK_OBJECT(_boolean_button), "button_press_event", GTK_SIGNAL_FUNC(CB_ChangedValue), (gpointer) this); //set state as indicated in "*parameter" gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(_boolean_button), (*parameter)); [...] In my callback I look which button has been pressed so I can use differents callbacks for the left and the right button. I know the button only toggles using the left button, that's ok for me. The problem is when I ask in my CB_ChangedValue for "button->active" it returns me FALSE when it's "pressed-in" and TRUE when it's "raised-out". If I don't use gtk_toggle_button_set_active() in the code above all works fine.. Here is the callback function (just testing)... void CB_ChangedValue(GtkWidget* widget, GdkEventButton* event, gpointer cd) { ParameterBoolean * pb = (ParameterBoolean *) cd; switch (event->button) { case 1: *(pb->parameter) = !(*(pb->parameter)); if(pb->_type == BooleanCharCase || pb->_type == BooleanPixmap) pb->Update(); if(pb->_callback != NULL) { void (*pf) (gpointer) = (void (*) (gpointer)) pb->_callback; pf(pb->_calldata); } if (GTK_TOGGLE_BUTTON(widget)->active) { g_print("button activated w:%d p:%d\n",GTK_TOGGLE_BUTTON(widget)->active,*(pb->parameter)); } else { g_print("button desactivated w:%d p:%d\n",GTK_TOGGLE_BUTTON(widget)->active,*(pb->parameter)); } break; case 3: if(pb->_btn3callback != NULL) { void (*pf) (gpointer) = (void (*) (gpointer)) pb->_btn3callback; pf(pb->_btn3data); } break; } What's going wrong? Thanks in advance, Ignacio Nodal From hp@redhat.com Sun Jun 10 17:07:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0AA162DC20 for ; Sun, 10 Jun 2001 17:07:51 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5AL7li07987; Sun, 10 Jun 2001 17:07:47 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Reinhard Mueller Cc: gtk-list@gnome.org, gnue-geas@lists.gnue.org Subject: Re: g_assert vs. g_return[_val]_if_fail References: <3B20E15B.6000003@bytewise.at> From: Havoc Pennington Date: 10 Jun 2001 17:07:47 -0400 In-Reply-To: Reinhard Mueller's message of "Fri, 08 Jun 2001 16:29:47 +0200" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Reinhard Mueller writes: > * g_assert terminates the application, where g_return... only terminates the function > * therefore, g_assert lets me jump into gdb as soon as it is hit, while > g_return... doesn not. This seems to be an advantage for g_assert. You can always run the app with --g-fatal-warnings to also make g_return fatal. > Is there a golden rule when to use which? > Does it make sense to use both and disable the g_assert for production use and let > g_return... in? For GTK, we normally use g_return if the app developer has made a mistake, and g_assert() if GTK itself is confused. Havoc From Simon.Budig@unix-ag.org Sun Jun 10 19:19:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from harley.unix-ag.uni-siegen.de (harley.unix-ag.uni-siegen.de [141.99.42.44]) by mail.gnome.org (Postfix) with ESMTP id 3D3CC2BABF for ; Sun, 10 Jun 2001 19:19:09 -0400 (EDT) Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id BAA17935 for ; Mon, 11 Jun 2001 01:19:07 +0200 Received: (from simon@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id BAA60150 for gtk-list@gnome.org; Mon, 11 Jun 2001 01:19:07 +0200 Date: Mon, 11 Jun 2001 01:19:07 +0200 From: Simon Budig To: gtk-list@gnome.org Subject: "Lightweight GTK+"? Message-ID: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all. I am currently evaluating different Toolkits for an embedded application. I'd like to ask if some people here have made some experiences with GTK+ (on Framebuffer or on X11) in an embedded device. Is it possible to reduce the size of the GTK Library (we don't have unlimited resources) e.g. by removing some unused widgets? Would you recommend to use GTK+ in it's current state? Thanks for opinions, Simon -- Simon.Budig@unix-ag.org http://www.home.unix-ag.org/simon/ From hp@redhat.com Sun Jun 10 23:18:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4192D2BB36 for ; Sun, 10 Jun 2001 23:18:14 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5B3I8U31970; Sun, 10 Jun 2001 23:18:08 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> From: Havoc Pennington Date: 10 Jun 2001 23:18:08 -0400 In-Reply-To: Simon Budig's message of "Mon, 11 Jun 2001 01:19:07 +0200" Message-ID: Lines: 35 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Simon Budig writes: > Is it possible to reduce the size of the GTK Library (we don't have > unlimited resources) e.g. by removing some unused widgets? You can do a custom GTK build and remove a substantial number of the widgets and some other features (e.g. unused image loaders and language modules). Static linking will already strip a lot of unused stuff of course. > Would you recommend to use GTK+ in it's current state? GTK for framebuffer is GTK 1.3.x, which is a development branch - the API is not fixed. Nonetheless it's reasonably stable at this point. If you're willing to tolerate a rough edge or two it should work OK, if you want a full-on shrink-wrapped frozen-solid-API then it's not quite there yet, but will be soon I hope. For embedded you should also consider simply using a small version of X such as the one used for the iPAQ; framebuffer is somewhat smaller but not hugely so, and its smaller size is achieved at the expense of multiprocess support. http://www.redhat.com/devnet/ has an article on GTK framebuffer, scroll down a bit from the top of the front page and you'll see it. The primary advantage of GTK for embedded devices is that you get the same GUI API as a full-fledged computer, and of course the higher-level full-featured nature of that API; GTK will be larger than something like FLTK, but will also be a good bit more powerful if you can afford the size and need the GTK features or the similarity to the non-embedded API. Tradeoffs, tradeoffs. ;-) Havoc From zhu_f@yahoo.com Mon Jun 11 00:09:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id CAF652BF1E for ; Mon, 11 Jun 2001 00:09:15 -0400 (EDT) Message-ID: <20010611040915.71408.qmail@web11502.mail.yahoo.com> Received: from [131.215.103.1] by web11502.mail.yahoo.com; Sun, 10 Jun 2001 21:09:15 PDT Date: Sun, 10 Jun 2001 21:09:15 -0700 (PDT) From: Feng Zhu Subject: get gtk menubar title 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I had some problems with using Gtk-- menu system. Your help will greatly appreciated. First, it looks there is no function to get the title of the menu/menuitem (there is a function to set_title though). If I have a function which takes a menu name and item name, how can I check whether the menu or the item has already exist on the menu bar. Second, why *(menubar->items().begin()) and *(menu->items().begin()) will both return menuitem*? Shouldn't the first return Menu*? How can I traverse the menus given a menubar pointer in that case? Thank you very much, Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From J.B.Huijsmans@chem.rug.nl Mon Jun 11 05:36:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dep.chem.rug.nl (dep.chem.rug.nl [129.125.7.81]) by mail.gnome.org (Postfix) with ESMTP id 1A5702BB4D for ; Mon, 11 Jun 2001 05:36:36 -0400 (EDT) Received: from 00e0291bc23d (chte92.chem.rug.nl [129.125.35.224]) by dep.chem.rug.nl (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id LAA06142 for ; Mon, 11 Jun 2001 11:36:35 +0200 X-Authentication-Warning: dep.chem.rug.nl: Host chte92.chem.rug.nl [129.125.35.224] claimed to be 00e0291bc23d From: "J.B. Huijsmans" To: gtk-list@gnome.org Date: Mon, 11 Jun 2001 11:36:19 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Feature suggestion/request: Display of dotfiles Message-ID: <3B24AD33.8520.D160E7@localhost> Priority: normal X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have just subscribed to this list, so this may have been discussed before. I was looking at a way to change the default behaviour of the fileselection widget to show all files, including 'dotfiles' and it seems to me there is no way to do this currently. I have patched my own version of GTK to include an extra function: gtk_file_selection_show_dotfiles(GtkFileSelection filesel, gboolean dotfiles) I implemented this by adding a global gboolean dot_or_not and addapting the FNMATCH_FLAGS definition, #define FNMATCH_FLAGS(dot_or_not) ( dot_or_not ? FNM_PATHNAME : (FNM_PATHNAME | FNM_PERIOD) ) adding the boolean gboolean dot_or_not=FALSE; and changing every occurance of FNMATCH_FLAGS to FNMATCH_FLAGS(dot_or_not). With this very simple change it was trivial to implement the show dotfiles function to just change the value of dot_or_not. Might this be a useful addition to the gtk fileselection API ? Regards, Jasper -- Ir. J.B. Huijsmans Nijenborgh 4 9747 AG Groningen tel. +31-50-3634503 e-mail: j.b.huijsmans@chem.rug.nl -- From inodal@teleline.es Mon Jun 11 07:43:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp2.teleline.es (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 0C99D2CDF9 for ; Mon, 11 Jun 2001 07:43:01 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp2.teleline.es (Netscape Messaging Server 4.1) with ESMTP id GERKGK04.U12 for ; Mon, 11 Jun 2001 13:41:08 +0200 Message-ID: <3B24A052.E0E184B9@teleline.es> Date: Mon, 11 Jun 2001 12:41:22 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: "button_press_event" signal instead of "toggled" 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, I'll ask it in another way: If I create a check button and want to differentiate between "toggled" event and a "button_press_event" emitted because the right button has been pressed, can I connect only the "button_press_event" signal and then ask in my callback which button has been pressed? Something like this.. gtk_signal_connect_after (GTK_OBJECT(_boolean_button), "button_press_event", GTK_SIGNAL_FUNC(CB_ChangedValue), (gpointer) this); voi CB_ChangedValue (GtkWidget* widget, GdkEventButton* event, gpointer cd) { if (event->button == 1) { /* "toggled" */ } else if (event->button == 3) { /* right button code */ } } The gtk_toggle_button_set_active() function causes the "clicked" and "toggled" signals to be emitted from the button if the state is actually changed. Can this be a problem for me? When I create the button and use gtk_toggle_button_set_active() to set it TRUE it works fine. But then, when I press the button to toggle the state my callback is called because of the "button_press_event". "_boolean_button->active" turns into FALSE but the button toggled twice, so it remains pressed-in. After this first callback, if I press again it toggled only once, but know FALSE is "pressed-in" and TRUE "raise-out". Is there any problem connecting the "button_press_event" signal instead of "toggled"? What's going wrong? Thanks in advance, Ignacio Nodal From john.cupitt@ng-london.org.uk Mon Jun 11 09:47:43 2001 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 77E652BAC0 for ; Mon, 11 Jun 2001 09:47:43 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K44MP; Mon, 11 Jun 2001 14:47:42 +0100 Message-ID: <3B24CAB7.D783B3EF@ng-london.org.uk> Date: Mon, 11 Jun 2001 14:42:15 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Lokesh Setia Cc: gtk-list@gnome.org Subject: Re: save as dialog... 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Lokesh Setia wrote: > o When the file selection widget is used in the context of "Save as", > the filename goes off as soon as the directory is changed. Is it a > bug in gtk+ 1.2? Or a feature that can be changed? It's a feature that can't be changed :-) Lots of people have done new fileselectors, and this is one of the features they almost always put in. Try: http://gtkfilesel.sourceforge.net/ There are lots of others around. > o Is it possible to somehow make the keyboard cursor blink in gtk+ ? I think the next version of GTK has this. It's not easy (as far as I know) in gtk1.2. John From zhu_f@yahoo.com Sun Jun 10 08:45:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id EED4E2DC52 for ; Sun, 10 Jun 2001 08:45:20 -0400 (EDT) Message-ID: <20010610124520.83375.qmail@web11502.mail.yahoo.com> Received: from [131.215.103.1] by web11502.mail.yahoo.com; Sun, 10 Jun 2001 05:45:20 PDT Date: Sun, 10 Jun 2001 05:45:20 -0700 (PDT) From: Feng Zhu Subject: questions about menubar 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I had some problems with using Gtk-- menu system. Your help will greatly appreciated. First, it looks there is no function to get the title of the menu/menuitem (there is a function to set_title though). If I have a function which takes a menu name and item name, how can I check whether the menu or the item has already exist on the menubar. Second, why *(menubar->items().begin()) and *(menu->items().begin()) will both return menuitem*? Shouldn't the first return Menu*? How can I traverse the menus given a menubar pointer in that case? Thank you very much, Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From sven@gimp.org Mon Jun 11 04:19:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id B84722C891 for ; Mon, 11 Jun 2001 04:19:47 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 159Mov-0000Zf-00; Mon, 11 Jun 2001 10:13:09 +0200 To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> From: Sven Neumann Organization: convergence integrated media GmbH Date: 11 Jun 2001 10:13:08 +0200 In-Reply-To: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> Message-ID: Lines: 36 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Simon, Simon Budig writes: > I am currently evaluating different Toolkits for an embedded application. > I'd like to ask if some people here have made some experiences with > GTK+ (on Framebuffer or on X11) in an embedded device. we (http://www.convergence.de/) use GTK+-1.3 ported to DirectFB (http://www.directfb.org/) to avoid the overhead of X and to make use of some advanced features of modern gfx cards like hardware accelerated alpha transparency. > Is it possible to reduce the size of the GTK Library (we don't have > unlimited resources) e.g. by removing some unused widgets? yes, but it's quite a lot of work. It would be nice if we could strip GTK+ down to its basics and provide an easy way to add only the widgets the application really needs. Static linking could be a solution but it does not help if you want to run more than one GTK+ app. Actually we need something like GTK+-Embedded but at the moment I don't see anyone pushing it and we are lacking the resources to do a general solution at the moment. > Would you recommend to use GTK+ in it's current state? it depends on what exactly you are up to. Unfortunately GTK+-1.3 and GLib-1.3 are considerably slower than GTK+-1.2. The major problem here seems to be the bad performance of signal emissions in GObject that has already been pointed out here. Hopefully this will become better before 2.0 is released. Salut, Sven From john.cupitt@ng-london.org.uk Mon Jun 11 09:53:44 2001 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 8EEAA2DCB6 for ; Mon, 11 Jun 2001 09:53:44 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K44NH; Mon, 11 Jun 2001 14:53:43 +0100 Message-ID: <3B24CC20.DBD887FA@ng-london.org.uk> Date: Mon, 11 Jun 2001 14:48:16 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: dodi-nug <4dadio@telkom.net> Cc: gtk-list@gnome.org Subject: Re: examp. of simple graphic using Gdk 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dodi-nug wrote: > There is a lack of how to draw graphic using gdk. > so if you guys have an example to draw a simple x=y graphic, > please tell me. There's the scribble example in the tutorial: http://www.gtk.org/tutorial/ch-scribble.html For fancier GDK stuff, any source covering Xlib graphics will be helpful ... the functions are (mostly) the same: eg. for gdk_gc_set_function(), look up XSetFunction(). HTH, John From lsetia78@yahoo.com Mon Jun 11 13:13:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnu.org (unknown [203.195.140.9]) by mail.gnome.org (Postfix) with ESMTP id 84D0F2CAEF for ; Mon, 11 Jun 2001 13:13:22 -0400 (EDT) Received: (from lsetia@localhost) by gnu.org (8.11.0/8.11.0) id f5BHNv701452; Mon, 11 Jun 2001 22:53:57 +0530 X-Authentication-Warning: milkyway.net.in: lsetia set sender to lsetia78@yahoo.com using -f To: John Cupitt Cc: gtk-list@gnome.org Subject: Re: save as dialog... References: <3B24CAB7.D783B3EF@ng-london.org.uk> X-please-use: GNU software X-listening-to: Jim Morrison X-personal-homepage: (Still!) Under Construction From: Lokesh Setia Date: 11 Jun 2001 22:53:57 +0530 In-Reply-To: <3B24CAB7.D783B3EF@ng-london.org.uk> Message-ID: Lines: 25 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "John" == John Cupitt writes: John> Lokesh Setia wrote: >> o When the file selection widget is used in the context of >> "Save as", the filename goes off as soon as the directory is >> changed. Is it a bug in gtk+ 1.2? Or a feature that can be >> changed? John> It's a feature that can't be changed :-) Lots of people have John> done new fileselectors, and this is one of the features they John> almost always put in. Try: John> http://gtkfilesel.sourceforge.net/ Thanks John for the link, It works with all my existing gtk+ applications with LD_PRELOAD (though I needed it most only for my new galeon :)). Regards, Lokesh. -- When we get back, I'll drop a line -- The Doors. From lestat.lioncourt@innocent.com Mon Jun 11 14:17:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-3-245.abo.wanadoo.fr [193.252.111.245]) by mail.gnome.org (Postfix) with ESMTP id 4E7D52BCA5 for ; Mon, 11 Jun 2001 14:17:10 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 48B3AC95E for ; Mon, 11 Jun 2001 20:17:11 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Mon, 11 Jun 2001 18:17:11 +0000 From: "David Goncalves" To: Subject: Setting fonts to a GtkText widget MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010611181711.48B3AC95E@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, anyone knows how can i force a GtkText widget to use specific fonts ? for example, a widget with fixed fonts. Thanks. From rbultje@ronald.bitfreak.net Mon Jun 11 14:46:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www-server.ucu.uu.nl (www-server.ucu.uu.nl [131.211.104.40]) by mail.gnome.org (Postfix) with ESMTP id 79E2F2D409 for ; Mon, 11 Jun 2001 14:46:47 -0400 (EDT) Received: from ucu-105-112.ucu.uu.nl ([131.211.105.112]) by www-server.ucu.uu.nl (Post.Office MTA v3.5.3 release 223 ID# 0-68709U800L100S0V35) with ESMTP id nl for ; Mon, 11 Jun 2001 20:46:45 +0200 Subject: is this a Gtk-problem? From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 11 Jun 2001 20:46:46 +0200 Message-Id: <992285206.1636.4.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Sometimes, I get really weird bug reports and I have no clue what they mean. I have a user who has severe problems getting the whole thing to start at all, he gets the following notice: [root@localhost temp]# studio Oops, error opening /root/.studio/studio_editlist.eli (open_eli_file) <-- my own error, nothing bad Uh oh, something went wrong when opening the edit list file... <-- my own error, nothing bad Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 1927 error_code 8 request_code 141 minor_code 5 [root@localhost temp]# What does this Gdk-error mean? The user has gtk-1.2.10-1 RPMs from gtk.org on a redhat-7.1 box. (with the initial 1.2.9-4 RPMs, the thing segfaulted, also during gtk_widget_show(window) - I can provide the backtrace if that's interesting). He uses gdk-pixbuf 0.8.0-7. gdb shows no backtrace for this error (because it's not a segfault). And the program starts up, the window appears for 0,1 second but he doesn't get the the notice that it got past gtk_widget_show(window) so something is going wrong in gtk_widget_show(window); - but what? Can anyone shed some light on this for me? It's a unique case. For all other users, it runs fine (but they again don't use redhat-7.1) Thanks in advance (and sorry for bothering you with my users' bug reports but I have no clue where else to ask), Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From andres_giraldo@yahoo.com Mon Jun 11 15:15:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11507.mail.yahoo.com (web11507.mail.yahoo.com [216.136.172.39]) by mail.gnome.org (Postfix) with SMTP id 1F13D2E112 for ; Mon, 11 Jun 2001 15:15:44 -0400 (EDT) Message-ID: <20010611191543.3592.qmail@web11507.mail.yahoo.com> Received: from [208.221.130.25] by web11507.mail.yahoo.com; Mon, 11 Jun 2001 12:15:43 PDT Date: Mon, 11 Jun 2001 12:15:43 -0700 (PDT) From: "Andrés" Giraldo Subject: Newbie questions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm newbie at gtk and I need a little help; I'm trying to create a new Widget its based on a drawingarea, but I have 2 problems: 1. If I declare another widget of the type I'm creating, gtk returns me the following error: Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion `bin->child == NULL' failed. I don't understand the parent class and those things... 2. I have a procedure that repaints the drawing area; I connect a signal to the drawingarea, on the expose event, but... How can I pass it the members of the structure I'm creating? I'm trying to pass a gpointer to the object but in the expose_event function the gpointer data->any_member doesn't work... Please give me any idea... I really apreciate this, Thanks a lot The little header code: /***************************************************/ #ifndef __GTK_NEWLABEL_H__ #define __GTK_NEWLABEL_H__ #include #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define GTK_NEWLABEL(obj) GTK_CHECK_CAST (obj, gtk_newlabel_get_type (), GtkNewLabel) #define GTK_NEWLABEL_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_newlabel_get_type (), GtkNewLabelClass) #define IS_GTK_NEWLABEL(obj) GTK_CHECK_TYPE (obj, gtk_newlabel_get_type ()) typedef struct _GtkNewLabel GtkNewLabel; typedef struct _GtkNewLabelClass GtkNewLabelClass; struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; gchar *str; glong backred; glong backgreen; glong backblue; glong forered; glong foregreen; glong foreblue; }; struct _GtkNewLabelClass { GtkVBoxClass parent_class; }; guint gtk_newlabel_get_type (); GtkWidget* gtk_newlabel_new (gchar *caption); void gtk_newlabel_set_caption (GtkNewLabel *newlabel, gchar *caption); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __GTK_NEWLABEL_H__ */ My Widget's code... /****************************************************/ #include "gtk/gtktable.h" #include "gtk/gtkdrawingarea.h" #include "gtknewlabel.h" #define arial "-ult1mo-arial-medium-r-normal-*-*-160-*-*-p-*-adobe-fontspecific" static void gtk_newlabel_class_init (GtkNewLabelClass *klass); static void gtk_newlabel_init (GtkNewLabel *newlabel); void gtk_newlabel_expose (gpointer data); GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable); GdkColor *NewColor (long red, long green, long blue); guint gtk_newlabel_get_type () { static guint newlabel_type = 0; if (!newlabel_type) { GtkTypeInfo newlabel_info = { "GtkNewLabel", sizeof (GtkNewLabel), sizeof (GtkNewLabelClass), (GtkClassInitFunc) gtk_newlabel_class_init, (GtkObjectInitFunc) gtk_newlabel_init, (GtkArgSetFunc) NULL, (GtkArgGetFunc) NULL }; newlabel_type = gtk_type_unique (gtk_vbox_get_type (), &newlabel_info); } return newlabel_type; } static void gtk_newlabel_class_init (GtkNewLabelClass *class) { } static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; long back_red = 0xb4b4; long back_green = 0xb2b2; long back_blue = 0xb0b0; long fore_red = 0x0000; long fore_green = 0x0000; long fore_blue = 0x0000; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_red", (void *)back_red); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_green", (void *)back_green); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_blue", (void *)back_blue); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_red", (void *)fore_red); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_green", (void *)fore_green); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_blue", (void *)fore_blue); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "caption", ""); gtk_widget_show (newlabel->drawing_area); gtk_signal_connect (GTK_OBJECT (newlabel->drawing_area), "expose_event", GTK_SIGNAL_FUNC (gtk_newlabel_expose), NULL); } GtkWidget* gtk_newlabel_new (gchar *caption) { GtkNewLabel *newlabel; newlabel = gtk_type_new (gtk_newlabel_get_type ()); gtk_newlabel_set_caption (newlabel, caption); return GTK_WIDGET (newlabel); } void gtk_newlabel_set_caption (GtkNewLabel *newlabel, gchar *caption) { gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "caption", (void *)caption); } void gtk_newlabel_expose (gpointer data) { GtkWidget *drawing_area = data; GdkDrawable *drawable = drawing_area->window; GdkGC *gc_back, *gc_fore; GdkFont *font; int x, y, height, width; long back_red = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_red"); long back_green = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_green"); long back_blue = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_blue"); long fore_red = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_red"); long fore_green = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_green"); long fore_blue = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_blue"); char *caption = (char *)gtk_object_get_data (GTK_OBJECT (drawing_area), "caption"); gc_back = GetPen (NewColor (back_red, back_green, back_blue), drawable); gc_fore = GetPen (NewColor (fore_red, fore_green, fore_blue), drawable); gdk_draw_rectangle (drawable, gc_back, TRUE, 0, 0, drawing_area->allocation.width, drawing_area->allocation.height); font = gdk_font_load (arial); height = gdk_text_height (font, caption, strlen(caption)); width = gdk_text_width (font, caption, strlen(caption)); x = ((drawing_area->allocation.width - width) / 2); y = ((drawing_area->allocation.height - height) / 2) + height; gdk_draw_string (drawable, font, gc_fore, x, y, caption); } GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From iweiny@acm.org Mon Jun 11 15:33:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.he.net (mail.he.net [216.218.130.57]) by mail.gnome.org (Postfix) with ESMTP id 60E632E196 for ; Mon, 11 Jun 2001 15:33:36 -0400 (EDT) Received: from acm.org ([216.218.229.236] (may be forged)) by mail.he.net (8.8.6/8.8.2) with ESMTP id MAA22458; Mon, 11 Jun 2001 12:33:32 -0700 Message-ID: <3B251ADF.E6B9ECF5@acm.org> Date: Mon, 11 Jun 2001 12:24:15 -0700 From: Ira Weiny X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.4.5-pre3 ppc) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org, linuxppc Subject: gtk font dependancies 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am running linuxppc-2000-Q4 on my Apple Titanium PowerBook. I am _not_ runnig gnome just straight enlightenment. I have rpm's for XFree86 installed (4.0.99) version. My question is: where does gtk get it's fonts from? (xfs?) I have a couple of programs, namely gscanbus and gaim which don't display certian text correctly. I have messed with xfs and I have _many_ font's installed but I still get "square" characters in certian dialogs. Here is a list of the font packages I have intsalled. $ rpm -qa | grep font ghostscript-fonts-5.50-1 chkfontpath-1.7-2 XFree86-ISO8859-2-100dpi-fonts-4.0.99.3-0b urw-fonts-2.0-4 XFree86-ISO8859-2-75dpi-fonts-4.0.99.3-0b tetex-fonts-1.0.6-11a XFree86-cyrillic-fonts-4.0.99.3-0b XFree86-100dpi-fonts-4.0.99.3-0b XFree86-75dpi-fonts-4.0.99.3-0b XFree86-ISO8859-7-100dpi-fonts-1.0-4 XFree86-ISO8859-7-75dpi-fonts-1.0-4 XFree86-ISO8859-7-Type1-fonts-1.0-4 XFree86-ISO8859-9-100dpi-fonts-2.1.2-10 XFree86-ISO8859-9-75dpi-fonts-2.1.2-10 Thanks in advance, Ira Weiny iweiny@acm.org From Esteban.Quijano@artinsoft.com Mon Jun 11 15:39:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from freedom-srv.intranet (unknown [196.40.21.166]) by mail.gnome.org (Postfix) with ESMTP id DE3402E239 for ; Mon, 11 Jun 2001 15:39:05 -0400 (EDT) Received: by FREEDOM-SRV with Internet Mail Service (5.5.2650.21) id ; Mon, 11 Jun 2001 13:31:10 -0600 Message-ID: From: Esteban Quijano Vincenzi To: gtk-list@gnome.org Subject: RE: Newbie questions Date: Mon, 11 Jun 2001 13:31:10 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0F2AD.117BDFAE" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_01C0F2AD.117BDFAE Content-Type: text/plain; charset="iso-8859-1" Ok, you can pass whatever you want to the callback using your gpointer data: gboolean on_expose_event(GtkWidget *widget, GtkEvent *event, gpointer data) { struct my_struct_t *ms = (my_struct_t *)data; ... /* Use ms as you wish */ ... return TRUE; } or even you can do: gboolean on_expose_event(GtkWidget *widget, GtkEvent *event, struct my_struct_t *ms) { ... /* Use ms as you wish */ ... return TRUE; } later in your code: ... struct my_struct_t ms; ms.something = something; ... gtk_signal_connect(GTK_OBJECT(drawing_area), "expose_event", GTK_SIGNAL_FUNC(on_expose_event), &ms); ... gtk_main(); ... just be carefull about the number of parameters your callback function has: gboolean on_expose_event(GtkWidget *widget, gpointer data); will give you an error when trying to access data as a (my_struct_t *) Esteban Q. ------_=_NextPart_001_01C0F2AD.117BDFAE Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Newbie questions

Ok, you can pass whatever you want to the callback = using your gpointer data:

gboolean on_expose_event(GtkWidget *widget, GtkEvent = *event, gpointer data)
{
   struct my_struct_t *ms =3D (my_struct_t = *)data;
   ...
   /* Use ms as you wish */
   ...
   return TRUE;
}

or even you can do:

gboolean on_expose_event(GtkWidget *widget, GtkEvent = *event, struct my_struct_t *ms)
{
   ...
   /* Use ms as you wish */
   ...
   return TRUE;
}

later in your code:

   ...
   struct my_struct_t ms;
   ms.something =3D something;
   ...
   = gtk_signal_connect(GTK_OBJECT(drawing_area), "expose_event", = GTK_SIGNAL_FUNC(on_expose_event), &ms);
   ...
   gtk_main();
   ...

just be carefull about the number of parameters your = callback function has:

   gboolean on_expose_event(GtkWidget = *widget, gpointer data);

will give you an error when trying to access data as = a (my_struct_t *)


Esteban Q.

------_=_NextPart_001_01C0F2AD.117BDFAE-- From rsteinke@w-link.net Mon Jun 11 17:18:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id B42BF2BD32 for ; Mon, 11 Jun 2001 17:18:33 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159Z8W-0005Sd-00 for ; Mon, 11 Jun 2001 14:22:12 -0700 Date: Mon, 11 Jun 2001 14:22:12 -0700 To: gtk-list@gnome.org Subject: GObject Message-ID: <3B253684.nailG6Z19P8Y1@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Could someone explain how the "properties-changed" signal in GObject is supposed to work? How do you write objects so they use it properly? Ron Steinke From hp@redhat.com Mon Jun 11 17:57:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8037B2BC2D for ; Mon, 11 Jun 2001 17:57:45 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5BLxq113758; Mon, 11 Jun 2001 17:59:52 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ira Weiny Cc: gtk-list@gnome.org, linuxppc Subject: Re: gtk font dependancies References: <3B251ADF.E6B9ECF5@acm.org> From: Havoc Pennington Date: 11 Jun 2001 17:59:51 -0400 In-Reply-To: Ira Weiny's message of "Mon, 11 Jun 2001 12:24:15 -0700" Message-ID: Lines: 8 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ira Weiny writes: > My question is: where does gtk get it's fonts from? (xfs?) They come from the X server, GTK isn't doing anything different from any other X app. Havoc From hp@redhat.com Mon Jun 11 18:01:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5179F2E267 for ; Mon, 11 Jun 2001 18:01:46 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5BM3va24733; Mon, 11 Jun 2001 18:03:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: GObject References: <3B253684.nailG6Z19P8Y1@yggdrasil> From: Havoc Pennington Date: 11 Jun 2001 18:03:57 -0400 In-Reply-To: Ron Steinke's message of "Mon, 11 Jun 2001 14:22:12 -0700" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Could someone explain how the "properties-changed" signal in > GObject is supposed to work? How do you write objects so they use > it properly? > You don't use it - we are campaigning to get it removed because it slows down GTK a lot and is not particularly useful. To get notification you connect to "notify::property_name", or just "notify" to get notification on all properties. To see how to send notifies in your own object implementations, look at most any GTK widget. Typically: void set_foo (Object *obj, Foo *foo) { obj->foo = foo; g_object_notify (obj, "foo"); } obj_set_property (blah blah) { case PROP_FOO: set_foo (obj, g_value_get_foo (value)); break; } Havoc From andrej.prsa@guest.arnes.si Mon Jun 11 18:51:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id A35FA2BF75 for ; Mon, 11 Jun 2001 18:51:11 -0400 (EDT) Received: from arnes.si (ar9-6i.dial-up.arnes.si [194.249.12.6]) by razor.arnes.si (Postfix) with SMTP id 77D35E663 for ; Tue, 12 Jun 2001 00:51:09 +0200 (MET DST) Date: Tue, 12 Jun 2001 00:52:59 +0200 From: Andrej Prsa To: gtk-list@gnome.org Subject: GDK-PixBuf Message-Id: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> X-Mailer: Sylpheed version 0.4.66 (GTK+ 1.2.9; i686-pc-linux-gnu) Organization: University of Astrophysics 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello! I'm going nuts with GDK-Pixbuf... I searched all over the net for a small example but failed to find it. The examples I did find utilize gnome.h, which I try to avoid. Here's my problem: I have to put simple jpg or gif graphics (with known dimensions, bits, ...) to screen. I tried to do it like this: #include #include #include #include "gtk/gtk.h" #include "gdk-pixbuf/gdk-pixbuf.h" int main (int argc, char *argv[]) { GtkWidget *window; GdkPixbuf *image; GdkPixmap *canvas; GdkGC *setup; gtk_init (&argc, &argv); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap()); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); gtk_widget_set_usize (window, 600, 600); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); image = gdk_pixbuf_new_from_file ("test.jpg"); canvas = gdk_pixmap_new (window->window, 262, 392, 8); setup = gdk_gc_new (canvas); gdk_pixbuf_render_to_drawable (image, canvas, setup, 0, 0, 0, 0, 262, 392, GDK_RGB_DITHER_NORMAL, 0, 0); gtk_widget_show_all (window); gtk_main(); return (0); } It compiles without problem, but, however, it crashes with: Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 59 error_code 8 request_code 147 minor_code 3 Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 60 error_code 8 request_code 147 minor_code 3 I'm really clueless... Any ideas? Andrej From rsteinke@w-link.net Mon Jun 11 19:10:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 1719D2DC80 for ; Mon, 11 Jun 2001 19:10:40 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159atF-0008Do-00 for ; Mon, 11 Jun 2001 16:14:33 -0700 Date: Mon, 11 Jun 2001 16:14:33 -0700 To: gtk-list@gnome.org Subject: Error running configure for CVS atk Message-ID: <3B2550D9.nailODH1UY76R@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I try to build atk from CVS, configure gives the following error: ./configure: line 5864: syntax error near unexpected token ``(a' ./configure: line 5864: ` case `(ac_space=' '; set | grep ac_space) 2>&1` in' The surrounding code is: # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache Similar code appears in the configure for pango (and probably glib, I haven't checked) and works fine. What's going on? Ron Steinke From topper@virginia.edu Mon Jun 11 19:26:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (unknown [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id 768BD2BD65 for ; Mon, 11 Jun 2001 19:26:44 -0400 (EDT) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by relay1-us.simplemente.net (Postfix) with SMTP id 5ED49D7829 for ; Mon, 11 Jun 2001 19:26:42 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa25751; 11 Jun 2001 19:26 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA26939 for ; Mon, 11 Jun 2001 19:26:32 -0400 (EDT) Message-ID: <3B252A56.A41BC06F@virginia.edu> Date: Mon, 11 Jun 2001 16:30:14 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Creating GdkEvents? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm having some trouble sending events around CanvasItems and GtkAdjustments. I'm thinking I need to create a new event type, something like "activate" or "trigger_my_event." But the functions listed to do that seem a bit heavy for my used (eg., # of bytes for function() pointer?). Where can I get a list of Gdk/Gtk Events for a given class? Or if anyone has some advice or sample code on creating my own event, I'd really appreciate it. Thanks, Dave Topper -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From topper@virginia.edu Mon Jun 11 19:28:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 5F9642E279 for ; Mon, 11 Jun 2001 19:28:19 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa26898; 11 Jun 2001 19:28 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA27296; Mon, 11 Jun 2001 19:28:15 -0400 (EDT) Message-ID: <3B252ABD.FFF37A9D@virginia.edu> Date: Mon, 11 Jun 2001 16:31:57 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "David J. Topper" writes: > > > > Is there a way for me to force a window to remain in focus? I've got > > some popup windows on a canvas, that of course drop to back when focus > > moves off them. I'm looking for an easy way to force them to remain on > > top. > > > > By "popup" do you mean a dialog or a menu or a tooltip type of thing? > Are they toplevel GtkWindows? Are they GTK_WINDOW_POPUP? > > Do you actually want keyboard focus on these, or do you just mean you > want them to remain on top? (You mean on top of another window, or on > top of the other widgets in a canvas?) I mean a window, they are GtkWindows, not popups. I'm using them to get parameters for items created on the fly (eg., length, width, height) and I don't want the "windows" to drop in back when I accidentally move the mouse off them. Thanks, DT -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From kens@ActiveState.com Mon Jun 11 19:38:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id CC5D92E2A0 for ; Mon, 11 Jun 2001 19:34:41 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5BMYEA13537; Mon, 11 Jun 2001 15:34:14 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5BKZIt20009; Mon, 11 Jun 2001 13:35:18 -0700 Date: Mon, 11 Jun 2001 13:35:18 -0700 (PDT) From: Ken Simpson To: Cc: , David Ascher , Mark Hammond Subject: Automatic focus handling? How do I turn it off? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was told that gtk has a mechanism for automatically setting or removing the focus on widgets in response to events such as keypresses. I think this mechanism has been enabled somewhere inside Mozilla and is causing all kinds of focus-related problems with Mozilla plugins. Can anyone tell me where I can look in gtk to find this automatic focus setting code? Thanks, Ken Simpson Komodo Developer ActiveState From jfbenck@home.nl Mon Jun 11 19:38:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from CP102461-A.home.nl (cp102461-a.landg1.lb.nl.home.com [213.51.21.239]) by mail.gnome.org (Postfix) with ESMTP id 6740A2E2AD for ; Mon, 11 Jun 2001 19:37:13 -0400 (EDT) Received: (from jeroen@localhost) by CP102461-A.home.nl (8.11.0/8.11.0) id f5BNcqP02597; Tue, 12 Jun 2001 01:38:52 +0200 X-Authentication-Warning: CP102461-A.home.nl: jeroen set sender to jfbenck@home.nl using -f Subject: Re: Creating GdkEvents? From: Jeroen Benckhuijsen To: David "J." Topper Cc: gtk-list@gnome.org In-Reply-To: <3B252A56.A41BC06F@virginia.edu> References: <3B252A56.A41BC06F@virginia.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 12 Jun 2001 01:38:52 +0200 Message-Id: <992302732.1367.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 11 Jun 2001 16:30:14 -0400, David J. Topper wrote: > Hi folks, > > I'm having some trouble sending events around CanvasItems and > GtkAdjustments. I'm thinking I need to create a new event type, > something like "activate" or "trigger_my_event." But the functions > listed to do that seem a bit heavy for my used (eg., # of bytes for > function() pointer?). > > Where can I get a list of Gdk/Gtk Events for a given class? > > Or if anyone has some advice or sample code on creating my own event, > I'd really appreciate it. > > Thanks, > > Dave Topper > -- > Technical Director, Virginia Center for Computer Music > http://www.people.virginia.edu/~djt7p > (804) 924-7355 > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list I don't think you want GdkEvents. Most (or all) of them are translations of X Window Events, like an event to redraw a window, resize it, move a mouse, etc, etc. I think what you want is a GtkSignal. The definition of the signals can be found in the .h files (most of the fuction pointers in the class structure) or in the API documentation on http://developer.gnome.org. Often however there isn't really a good description so you'll have to figure out yourselves when a signal is emitted. You can also define you're own signals i believe using a function of GtkObject (think it's called gtk_object_add_user_event or something like that). -- Jeroen Benckhuijsen Software Engineer Phoenix Software From topper@virginia.edu Mon Jun 11 19:45:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 746462E298 for ; Mon, 11 Jun 2001 19:45:13 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab05922; 11 Jun 2001 19:45 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA29639; Mon, 11 Jun 2001 19:42:00 -0400 (EDT) Message-ID: <3B252DF6.D4ED4B2B@virginia.edu> Date: Mon, 11 Jun 2001 16:45:42 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Jeroen Benckhuijsen Cc: gtk-list@gnome.org Subject: Re: Creating GdkEvents? References: <3B252A56.A41BC06F@virginia.edu> <992302732.1367.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jeroen Benckhuijsen wrote: > > I don't think you want GdkEvents. Most (or all) of them are translations > of X Window Events, like an event to redraw a window, resize it, move a > mouse, etc, etc. You're correct. Signals are what I really want. But I'm unable to find a list on the Gnome pages. Similarly, the .h files are a bit elusive too (eg., gtksignal.h doesn't have them). DT -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From king@eiffel.com Mon Jun 11 19:53:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id C157E2E2AD for ; Mon, 11 Jun 2001 19:53:24 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 159bUo-0005Qr-00 for gtk-list@gnome.org; Mon, 11 Jun 2001 16:53:22 -0700 Message-ID: <058e01c0f2d2$bd7c5570$750a000a@naples> From: "Ian King" To: Subject: Pixmaps and focus Date: Mon, 11 Jun 2001 17:00:50 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I were to write a gtktext replacement using gtkpixmap, what are the easiest ways for. 1) Letting the pixmap receive the focus when the user clicks on the editor. 2) Preventing the focus from leaving the widget on tab or arroy key press. Thanks for your time. Ian King. From skip@real-time.com Mon Jun 11 20:03:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id E288F2E2AF for ; Mon, 11 Jun 2001 20:03:58 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5C02R615454; Mon, 11 Jun 2001 19:02:27 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15141.23570.637244.705725@beluga.mojam.com> Date: Mon, 11 Jun 2001 19:02:26 -0500 To: "David J. Topper" Cc: Jeroen Benckhuijsen , gtk-list@gnome.org Subject: Re: Creating GdkEvents? In-Reply-To: <3B252DF6.D4ED4B2B@virginia.edu> References: <3B252A56.A41BC06F@virginia.edu> <992302732.1367.0.camel@CP102461-A.home.nl> <3B252DF6.D4ED4B2B@virginia.edu> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David> Signals are what I really want. But I'm unable to find a list on David> the Gnome pages. Similarly, the .h files are a bit elusive too David> (eg., gtksignal.h doesn't have them). Try the GtkWidget reference manual page: http://developer.gnome.org/doc/API/2.0/gtk/gtkwidget.html (Scroll down to the Signal Prototypes section.) Most signals are defined by GtkWidget. I believe any that end in "-event" are signals tied to X events. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hoshem@mel.comcen.com.au Mon Jun 11 20:47:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (unknown [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id E32A22BC15 for ; Mon, 11 Jun 2001 20:47:15 -0400 (EDT) Received: from BuffyRox.localdomain (ppp19.angel.comcen.com.au [203.23.238.19]) by relay1-us.simplemente.net (Postfix) with ESMTP id 58EB0D7829 for ; Mon, 11 Jun 2001 20:47:04 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5C0oN802922; Tue, 12 Jun 2001 10:50:23 +1000 Date: Tue, 12 Jun 2001 10:50:22 +1000 From: Helmethead To: Andrej Prsa Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf Message-ID: <20010612105022.A2877@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Andrej Prsa , gtk-list@gnome.org References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si>; from andrej.prsa@guest.arnes.si on Tue, Jun 12, 2001 at 12:52:59AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 12, 2001 at 12:52:59AM +0200, Andrej Prsa wrote: > Hello! > > I'm going nuts with GDK-Pixbuf... I searched all over the net for a small example but failed to find it. The examples I did find utilize gnome.h, which I try to avoid. > > Here's my problem: I have to put simple jpg or gif graphics (with known dimensions, bits, ...) to screen. I tried to do it like this: > > #include > #include > #include > #include "gtk/gtk.h" > #include "gdk-pixbuf/gdk-pixbuf.h" > > int main (int argc, char *argv[]) > { > GtkWidget *window; > GdkPixbuf *image; > GdkPixmap *canvas; > GdkGC *setup; > > gtk_init (&argc, &argv); > > gtk_widget_push_visual (gdk_rgb_get_visual ()); > gtk_widget_push_colormap (gdk_rgb_get_cmap()); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); > gtk_widget_set_usize (window, 600, 600); > gtk_widget_pop_visual (); > gtk_widget_pop_colormap (); > > image = gdk_pixbuf_new_from_file ("test.jpg"); > canvas = gdk_pixmap_new (window->window, 262, 392, 8); window->window doesn't exist yet, so that might be why this is failing. You can just pass NULL for the first argument anyway. From hoshem@mel.comcen.com.au Mon Jun 11 21:18:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp19.angel.comcen.com.au [203.23.238.19]) by mail.gnome.org (Postfix) with ESMTP id D01AA2BF58 for ; Mon, 11 Jun 2001 21:18:54 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5C1V3K03010; Tue, 12 Jun 2001 11:31:03 +1000 Date: Tue, 12 Jun 2001 11:31:03 +1000 From: Helmethead To: Ronald Bultje Cc: GTK Mailing List Subject: Re: is this a Gtk-problem? Message-ID: <20010612113103.B2877@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , GTK Mailing List References: <992285206.1636.4.camel@tux> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <992285206.1636.4.camel@tux>; from rbultje@ronald.bitfreak.net on Mon, Jun 11, 2001 at 08:46:46PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 11, 2001 at 08:46:46PM +0200, Ronald Bultje wrote: > gdb shows no backtrace for this error (because it's not a segfault). And > the program starts up, the window appears for 0,1 second but he doesn't > get the the notice that it got past gtk_widget_show(window) so something > is going wrong in gtk_widget_show(window); - but what? Don't know what the error means here, but you can make the error cause a core dump so you can get a useful backtrace by starting the program with the --g-fatal-warnings switch. From hp@redhat.com Mon Jun 11 22:47:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2B4412BE83 for ; Mon, 11 Jun 2001 22:47:20 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2lFM27582; Mon, 11 Jun 2001 22:47:15 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ken Simpson Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Havoc Pennington Date: 11 Jun 2001 22:47:15 -0400 In-Reply-To: Ken Simpson's message of "Mon, 11 Jun 2001 13:35:18 -0700 (PDT)" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson writes: > I was told that gtk has a mechanism for automatically setting or removing > the focus on widgets in response to events such as keypresses. I think > this mechanism has been enabled somewhere inside Mozilla and is causing > all kinds of focus-related problems with Mozilla plugins. > > Can anyone tell me where I can look in gtk to find this automatic focus > setting code? > I don't really understand the question - do you mean GTK widgets take focus when clicked? That code is per-widget, e.g. GtkEntry will call gtk_widget_grab_focus() if it gets a button click. Or do you mean GTK has support for moving focus via the Tab key, etc.? This is handled initially in the key_press_event default handler in gtkwindow.c and from there moves into the "focus" virtual function/signal on specific sub-containers. Havoc From hp@redhat.com Mon Jun 11 22:53:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 937892DC07 for ; Mon, 11 Jun 2001 22:53:36 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2rYW28329; Mon, 11 Jun 2001 22:53:34 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Andrej Prsa Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> From: Havoc Pennington Date: 11 Jun 2001 22:53:34 -0400 In-Reply-To: Andrej Prsa's message of "Tue, 12 Jun 2001 00:52:59 +0200" Message-ID: Lines: 33 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andrej Prsa writes: > image = gdk_pixbuf_new_from_file ("test.jpg"); > canvas = gdk_pixmap_new (window->window, 262, 392, 8); The "8" argument here is totally bogus, it will only work if your display is 8-bit. If window->window existed (and it doesn't here) you could then pass -1 for the depth to use the one from the window. However in this case you might do: gdk_pixmap_new (NULL, 262, 392, gtk_widget_get_visual (window)->depth); > gdk_pixbuf_render_to_drawable (image, canvas, setup, 0, 0, 0, 0, > 262, 392, GDK_RGB_DITHER_NORMAL, 0, 0); You need to look at the "scribble" example in the GTK tutorial for how to go about displaying the pixbuf. The tutorial is on www.gtk.org. > Gdk-ERROR **: BadMatch (invalid parameter attributes) > serial 59 error_code 8 request_code 147 minor_code 3 > Gdk-ERROR **: BadMatch (invalid parameter attributes) > serial 60 error_code 8 request_code 147 minor_code 3 These are from the depth of 8. In GTK 2, you could just do: image = gtk_image_new_from_file ("test.jpg"); gtk_container_add (GTK_CONTAINER (window), image); So look forward to that. ;-) Havoc From hp@redhat.com Mon Jun 11 22:55:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 762C22DC8C for ; Mon, 11 Jun 2001 22:54:35 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2sX828394; Mon, 11 Jun 2001 22:54:33 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Error running configure for CVS atk References: <3B2550D9.nailODH1UY76R@yggdrasil> From: Havoc Pennington Date: 11 Jun 2001 22:54:33 -0400 In-Reply-To: Ron Steinke's message of "Mon, 11 Jun 2001 16:14:33 -0700" Message-ID: Lines: 7 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Get latest pkg-config from http://www.freedesktop.org/software/, and be sure to re-run autogen.sh. Havoc From hp@redhat.com Mon Jun 11 22:56:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 25C192C9EE for ; Mon, 11 Jun 2001 22:56:32 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2uV928534; Mon, 11 Jun 2001 22:56:31 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> From: Havoc Pennington Date: 11 Jun 2001 22:56:31 -0400 In-Reply-To: "David J. Topper"'s message of "Mon, 11 Jun 2001 16:31:57 -0400" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > I mean a window, they are GtkWindows, not popups. I'm using them to get > parameters for items created on the fly (eg., length, width, height) and > I don't want the "windows" to drop in back when I accidentally move the > mouse off them. > I don't understand why they're moving to the back - is your window manager using focus-follows-mouse and raise-on-focus? Havoc From hp@redhat.com Mon Jun 11 23:01:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id E93252DBBA for ; Mon, 11 Jun 2001 23:01:08 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C316R28967; Mon, 11 Jun 2001 23:01:06 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Pixmaps and focus References: <058e01c0f2d2$bd7c5570$750a000a@naples> From: Havoc Pennington Date: 11 Jun 2001 23:01:06 -0400 In-Reply-To: "Ian King"'s message of "Mon, 11 Jun 2001 17:00:50 -0700" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > If I were to write a gtktext replacement using gtkpixmap, This is a totally weird thing to do, btw. > 1) Letting the pixmap receive the focus when the user clicks on the > editor. Set the GTK_CAN_FOCUS flag, handle focus_in_event and focus_out_event, and gtk_widget_grab_focus() on button click. > 2) Preventing the focus from leaving the widget on tab or arroy key press. Return TRUE from your key_press_event handler when receiving those events. Havoc From zhu_f@yahoo.com Mon Jun 11 23:41:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11504.mail.yahoo.com (web11504.mail.yahoo.com [216.136.172.36]) by mail.gnome.org (Postfix) with SMTP id B10222BD90 for ; Mon, 11 Jun 2001 23:41:10 -0400 (EDT) Message-ID: <20010612034106.42829.qmail@web11504.mail.yahoo.com> Received: from [131.215.103.1] by web11504.mail.yahoo.com; Mon, 11 Jun 2001 20:41:06 PDT Date: Mon, 11 Jun 2001 20:41:06 -0700 (PDT) From: Feng Zhu Subject: list select_child signal problem 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: What is wrong with the following code: (SPWorkSpaceView is the class name and FileSelectChild is a method. _file_list is a Gtk::List) _file_list->select_child.connect(bind(slot(this, &SPWorkSpaceView::FileSelectChild), _file_list, _main_window)); Compiler gives: no matching function for call to `Gtk::List::Proxy_select_child::connect (SigC::Slot0)' /usr/local/include/gtk--/list.h:281: candidates are: SigC::Connection Gtk::List::Proxy_select_child::connect (const SigC::Slot1 &) But for Gtk::tree works fine. Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From kens@ActiveState.com Tue Jun 12 01:07:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id E29CF2E236 for ; Tue, 12 Jun 2001 01:07:02 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C46oA09778; Mon, 11 Jun 2001 21:06:50 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C56oE02379; Mon, 11 Jun 2001 22:06:50 -0700 Date: Mon, 11 Jun 2001 22:06:50 -0700 (PDT) From: Ken Simpson To: Havoc Pennington Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Or do you mean GTK has support for moving focus via the Tab key, etc.? > This is handled initially in the key_press_event default handler in > gtkwindow.c and from there moves into the "focus" virtual > function/signal on specific sub-containers. I apologize if I wasn't clear in my email. The problem is that pressing keys such as the arrow keys, the backspace, and the tab cause my widget to lose focus and for its containing window to gain focus. The key press event first hits my widget and then, once I have returned 0 from the key_press handler, control returns to gtk, the focus is removed, and the event is propagated to the containing window where it is handled. So I suppose it could have something to do with gtk's support for moving the focus with tab, etc.. How does one turn this functionality off? Thanks very much for your help, Havoc. Regards, Ken From kens@ActiveState.com Tue Jun 12 01:13:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id 496752E2BD for ; Tue, 12 Jun 2001 01:13:19 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C4CuA10033; Mon, 11 Jun 2001 21:12:56 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C5Ct702613; Mon, 11 Jun 2001 22:12:55 -0700 Date: Mon, 11 Jun 2001 22:12:55 -0700 (PDT) From: Ken Simpson To: Havoc Pennington Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Or do you mean GTK has support for moving focus via the Tab key, etc.? > This is handled initially in the key_press_event default handler in > gtkwindow.c and from there moves into the "focus" virtual > function/signal on specific sub-containers. Let's try lines 1255+ of gtkwindow.c: case GDK_Up: case GDK_Down: case GDK_Left: case GDK_Right: case GDK_KP_Up: ... gtk_container_focus (GTK_CONTAINER (widget), direction); if (!GTK_CONTAINER (window)->focus_child) gtk_window_set_focus (GTK_WINDOW (widget), NULL); else handled = TRUE; break; } Is this the code which performs automatic focus changing in response to keypresses? It certainly seems to fit the symptoms :) Hmm.. But there doesn't appear any way of "turning it off". TTUL Ken From hp@redhat.com Tue Jun 12 01:44:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 877332C7E9 for ; Tue, 12 Jun 2001 01:44:37 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C5iXf12671; Tue, 12 Jun 2001 01:44:33 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ken Simpson Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Havoc Pennington Date: 12 Jun 2001 01:44:32 -0400 In-Reply-To: Ken Simpson's message of "Mon, 11 Jun 2001 22:12:55 -0700 (PDT)" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson writes: > Is this the code which performs automatic focus changing in response to > keypresses? It certainly seems to fit the symptoms :) > Hmm.. But there doesn't appear any way of "turning it off". > Yep, that's the code. Writing other widget sets is not what GTK is made for, so we don't have an easy way to change this. ;-) That's why Chris was working on Xlib Mozilla for a while I imagine. However you can do a hack to GtkWindow - connect to key_press_event, when you see one of these keys call gtk_signal_emit_stop_by_name to kill the event. Or subclass GtkWindow and override the default signal handler and do something a bit differently there. Should be able to get it working. You could possibly also override set_focus or grab_focus and do some sort of hack. You may well have weird interactions with GtkMozEmbed and apps like Galeon... Havoc From rsteinke@w-link.net Tue Jun 12 01:55:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 08CEC2D2FB for ; Tue, 12 Jun 2001 01:55:20 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159hCt-0001TR-00; Mon, 11 Jun 2001 22:59:15 -0700 Date: Mon, 11 Jun 2001 22:59:15 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Error running configure for CVS atk Cc: gtk-list@gnome.org Message-ID: <3B25AFB3.nail3J91WQY1M@yggdrasil> References: <3B2550D9.nailODH1UY76R@yggdrasil> In-Reply-To: User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks. It seems I was running the sourceforge CVS version of pkg-config, which is old. Ron Steinke From david.robin@st.com Tue Jun 12 02:18:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mail.gnome.org (Postfix) with ESMTP id E66622BCB1 for ; Tue, 12 Jun 2001 02:18:01 -0400 (EDT) Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id B1FE94A53 for ; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id EC8454A74; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: from eux100.sgp.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B19F5184F for ; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: from st.com (fenix.nvg.sgp.st.com [164.129.227.19]) by eux100.sgp.st.com (8.8.6 (PHNE_17190)/8.8.6) with ESMTP id IAA18896 for ; Tue, 12 Jun 2001 08:17:59 +0200 (METDST) Message-ID: <3B25B533.97696368@st.com> Date: Tue, 12 Jun 2001 08:22:43 +0200 From: David Robin X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: PanedBox Bug? References: <20010611233005.1B3A12E29B@mail.gnome.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I Created a H-Paned Box with a notebook in each of the panels with gtk_panel_add. When I hide the left notebook, the left panel goes hidden. But the right notebook doesnot takes the empty space, and the gutter stays visible. Is it the expected behaviour? The behaviour I expected was : when I 'kind of' close one of the panel, the other one fills all the space, and the gutter desappears because it is no more useful. Then, If I show both notebooks again, the gutter reappears, at the same position it used to be. Is this a bug, or do I need to add some code in my app and make it by myself? Thanks, David. From alex@vabank.kiev.ua Tue Jun 12 02:55:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.lucky.net (smtp.lucky.net [193.193.193.117]) by mail.gnome.org (Postfix) with ESMTP id 2105E2BC92 for ; Tue, 12 Jun 2001 02:55:29 -0400 (EDT) Received: from kozlik.carrier.kiev.ua (kozlik.carrier.kiev.ua [193.193.193.111]) by smtp.lucky.net (20001217) with ESMTP id 2D1902C712C for ; Tue, 12 Jun 2001 09:55:24 +0300 (EEST) Received: (from uucp@localhost) by kozlik.carrier.kiev.ua with UUCP id JVG97761 for gtk-list@gnome.org; Tue, 12 Jun 2001 09:55:16 +0300 (EEST) (envelope-from alex@vabank.kiev.ua) Received: from vabank.UUCP (uucp@localhost) by kozlik.carrier.kiev.ua (rmail mypid=97760 childpid=97761) with UUCP; Tue, 12 Jun 2001 06:55:16 +0000 GMT Received: (from alex@localhost) by vabank.kiev.ua (8.9.3/8.9.3) id JAA01298 for gtk-list@gnome.org; Tue, 12 Jun 2001 09:50:50 +0300 Date: Tue, 12 Jun 2001 09:50:50 +0300 From: Alex Biryukov To: gtk-list@gnome.org Subject: refresh window's labels Message-ID: <20010612095050.A1273@queen.vabank.kiev.ua> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Is anybody know how to refresh labels of the main window, after change language of GUI ? I use gettext, and change lang by setting environment variable: setenv("LANGUAGE", "es", 1); /* Make change known. */ { extern int _nl_msg_cat_cntr; ++_nl_msg_cat_cntr; } All of dialog boxes ok, because they created each time. But main window remain in old language. Any idea ? Thanks a lot. Alex From mseisdedos@cirsa.com Tue Jun 12 03:10:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id A7B802BE13 for ; Tue, 12 Jun 2001 03:10:27 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A69.00275AB8; Tue, 12 Jun 2001 09:09:51 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Tue, 12 Jun 2001 09:10:41 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4807@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: gtkclist Date: Tue, 12 Jun 2001 09:10:39 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello everybody: how can i know how many rows are there in a gtkclist???? Is there any conversion macro to get a glist from a gtkclist??? From matt.keenan@ireland.sun.com Tue Jun 12 03:52:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by mail.gnome.org (Postfix) with ESMTP id BDED92DB7E for ; Tue, 12 Jun 2001 03:52:03 -0400 (EDT) Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id AAA09708 for ; Tue, 12 Jun 2001 00:52:01 -0700 (PDT) Received: from ireland.Sun.COM (zaphod [129.156.238.30]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.1p1) with ESMTP id IAA24429 for ; Tue, 12 Jun 2001 08:52:01 +0100 (BST) Message-ID: <3B25C8BE.244572A5@ireland.Sun.COM> Date: Tue, 12 Jun 2001 08:46:06 +0100 From: Matt Keenan Organization: Sun Microsystems Inc X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.9 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: gtkclist References: <01294F3FC12BD41183BD00D0B7176A1D4D4807@srvexch> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Just access the GtkClist widget structure member "rows" and this will tell you how many items there are in the Clist. GtkWidget *CList_Widget; gint rows; row =3D GTK_CLIST(CList_Widget)->rows; You can then loop throught the clist based on the "rows" variable. for (i=3D0; i = > Hello everybody: > how can i know how many rows are there in a gtkclist???? > Is there any conversion macro to get a glist from a gtkclist??? > = > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- = __.--'\ \.__./ /'--.__ _.-' '.__.' '.__.' '-._ .' '. / Matt Keenan (MattMan) \ | CDE, Sun Microsystems Ireland | | GO JAGUARS !! | | E-Mail : Matt.Keenan@ireland.Sun.Com | | mattman@iol.ie | | URL : http://www.iol.ie/~mattman | | Phone : +353 1 8199251, Sun Ext : 19251 | \ .---. .---. / '._ .' '.''. .''.' '. _.' '-./ \ / \.-' '' From otaylor@redhat.com Tue Jun 12 07:42:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id CB88F2D2EC for ; Tue, 12 Jun 2001 07:42:50 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 38D042422D3; Tue, 12 Jun 2001 07:42:50 -0400 (EDT) To: Havoc Pennington Cc: Ken Simpson , , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Owen Taylor Date: 12 Jun 2001 07:42:50 -0400 In-Reply-To: Havoc Pennington's message of "12 Jun 2001 01:44:32 -0400" Message-ID: Lines: 35 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington writes: > Ken Simpson writes: > > Is this the code which performs automatic focus changing in response to > > keypresses? It certainly seems to fit the symptoms :) > > Hmm.. But there doesn't appear any way of "turning it off". > > > > Yep, that's the code. Writing other widget sets is not what GTK is > made for, so we don't have an easy way to change this. ;-) That's why > Chris was working on Xlib Mozilla for a while I imagine. > > However you can do a hack to GtkWindow - connect to key_press_event, > when you see one of these keys call gtk_signal_emit_stop_by_name to > kill the event. Or subclass GtkWindow and override the default signal > handler and do something a bit differently there. Should be able to > get it working. You could possibly also override set_focus or > grab_focus and do some sort of hack. > > You may well have weird interactions with GtkMozEmbed and apps like > Galeon... You shouldn't need anything this complicated, or this likely to break stuff. Widgets are sent key presses before GTK+ checks for focus keys. If the widget handles the key press in its event handler and returns TRUE, then GTK+ will not check for tab/arrows. For instance, this is how GtkText prevents a tab key from tabbing out of the GtkText widget. Regards, Owen From pbd@op.net Tue Jun 12 07:58:05 2001 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 1C10A2BAFB for ; Tue, 12 Jun 2001 07:58:05 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-09.ppp.op.net [209.152.194.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id HAA01694; Tue, 12 Jun 2001 07:57:58 -0400 (EDT) Message-Id: <200106121157.HAA01694@renoir.op.net> To: Ken Simpson Cc: Havoc Pennington , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Mon, 11 Jun 2001 22:06:50 PDT." Date: Tue, 12 Jun 2001 07:59:27 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I apologize if I wasn't clear in my email. The problem is that pressing >keys such as the arrow keys, the backspace, and the tab cause my widget to >lose focus and for its containing window to gain focus. The key press >event first hits my widget and then, once I have returned 0 from the >key_press handler, control returns to gtk, the focus is removed, and the >event is propagated to the containing window where it is handled. > >So I suppose it could have something to do with gtk's support for moving >the focus with tab, etc.. How does one turn this functionality off? you can't turn it off per se. you have two choices: 1) on a per-widget basis, catch key_press/key release events. if they are for one of the navigation keys, do nothing except: gtk_signal_emit_block_by_name (...); return TRUE; 2) install a global key snooper, inspect all key press events, and discard or translate the navigation keys. and yes, i don't like it any more than you do :) --p From pbd@op.net Tue Jun 12 08:00:19 2001 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 1BAFA2DCF5 for ; Tue, 12 Jun 2001 08:00:19 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-09.ppp.op.net [209.152.194.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA01853; Tue, 12 Jun 2001 08:00:12 -0400 (EDT) Message-Id: <200106121200.IAA01853@renoir.op.net> To: Owen Taylor Cc: Havoc Pennington , Ken Simpson , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "12 Jun 2001 07:42:50 EDT." Date: Tue, 12 Jun 2001 08:01:41 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Widgets are sent key presses before GTK+ checks for focus keys. If the >widget handles the key press in its event handler and returns TRUE, >then GTK+ will not check for tab/arrows. Owen, I'm suprised! You must be too used to Gtk 1.3 :) Returning TRUE by itself isn't enough to stop focus navigation under 1.2 ... From sjwillis@one.net Mon Jun 11 16:21:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from us.net (newmail1.one.net [216.23.22.181]) by mail.gnome.org (Postfix) with SMTP id C49DD2CEB7 for ; Mon, 11 Jun 2001 16:21:48 -0400 (EDT) Received: (qmail 29173 invoked by uid 0); 11 Jun 2001 20:21:42 -0000 Received: from unknown (HELO dhcp100) (216.23.55.74) by newmail1.one.net with SMTP; 11 Jun 2001 20:21:42 -0000 Date: Mon, 11 Jun 2001 16:21:40 -0400 (EDT) From: Jim Willis X-Sender: sjwillis@powerbook.jimshouse To: Ira Weiny Cc: gtk-list@gnome.org, linuxppc Subject: Re: gtk font dependancies In-Reply-To: <3B251ADF.E6B9ECF5@acm.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I had the same problem and partially solved it (though i still get the squares every so often, particuallarly when its looking for helvetica. Although, other apps which use helvetica display it just fine. anyway, here's the relevant config file from /etc/X11/fs catalogue = /usr/X11R6/lib/X11/fonts/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/100dpi:unscaled, /usr/X11R6/lib/X11/fonts/75dpi, /usr/X11R6/lib/X11/fonts/100dpi, /usr/share/fonts/default/Type1, /usr/X11R6/lib/X11/fonts/latin2/75dpi, /usr/X11R6/lib/X11/fonts/latin2/100dpi, /usr/X11R6/lib/X11/fonts/truetype, # /usr/X11R6/lib/X11/fonts/tt, /usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled, /usr/X11R6/lib/X11/fonts/local, /usr/X11R6/lib/X11/fonts/CID, /usr/X11R6/lib/X11/fonts/misc:unscaled, /usr/X11R6/lib/X11/fonts/misc, /usr/X11R6/lib/X11/fonts/Type1, /usr/X11R6/lib/X11/fonts/Speedo On Mon, 11 Jun 2001, Ira Weiny wrote: > > I am running linuxppc-2000-Q4 on my Apple Titanium PowerBook. I am > _not_ runnig gnome just straight enlightenment. I have rpm's for > XFree86 installed (4.0.99) version. > > My question is: where does gtk get it's fonts from? (xfs?) I have a > couple of > programs, namely gscanbus and gaim which don't display certian text > correctly. I have messed with xfs and I have _many_ font's installed > but I still get "square" characters in certian dialogs. > > Here is a list of the font packages I have intsalled. > > $ rpm -qa | grep font > ghostscript-fonts-5.50-1 > chkfontpath-1.7-2 > XFree86-ISO8859-2-100dpi-fonts-4.0.99.3-0b > urw-fonts-2.0-4 > XFree86-ISO8859-2-75dpi-fonts-4.0.99.3-0b > tetex-fonts-1.0.6-11a > XFree86-cyrillic-fonts-4.0.99.3-0b > XFree86-100dpi-fonts-4.0.99.3-0b > XFree86-75dpi-fonts-4.0.99.3-0b > XFree86-ISO8859-7-100dpi-fonts-1.0-4 > XFree86-ISO8859-7-75dpi-fonts-1.0-4 > XFree86-ISO8859-7-Type1-fonts-1.0-4 > XFree86-ISO8859-9-100dpi-fonts-2.1.2-10 > XFree86-ISO8859-9-75dpi-fonts-2.1.2-10 > > Thanks in advance, > Ira Weiny > iweiny@acm.org > > ** Sent via the linuxppc-user mail list. See http://lists.linuxppc.org/ > > From andrej.prsa@guest.arnes.si Tue Jun 12 08:21:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id 00E732BCDC for ; Tue, 12 Jun 2001 08:21:28 -0400 (EDT) Received: from arnes.si (ar8-184i.dial-up.arnes.si [194.249.0.184]) by razor.arnes.si (Postfix) with SMTP id B123DE619; Tue, 12 Jun 2001 14:21:03 +0200 (MET DST) Date: Tue, 12 Jun 2001 14:21:49 +0200 From: Andrej Prsa To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf Message-Id: <20010612142149.256b821e.andrej.prsa@guest.arnes.si> In-Reply-To: References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> X-Mailer: Sylpheed version 0.4.66 (GTK+ 1.2.9; i686-pc-linux-gnu) Organization: University of Astrophysics 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thank you very much, everybody! > In GTK 2, you could just do: > image = gtk_image_new_from_file ("test.jpg"); > gtk_container_add (GTK_CONTAINER (window), image); > > So look forward to that. ;-) > I am looking forward to that! In the meantime, since there's been a lot of questions on a working example for Gtk1.2, I'm posting my solution, hoping someone too will find it useful! #include #include #include #include "gtk/gtk.h" #include "gdk-pixbuf/gdk-pixbuf.h" GdkPixmap *picture; static gint expose_event (GtkWidget *widget, GdkEventExpose *event) { gdk_draw_pixmap (widget->window, widget->style->fg_gc[GTK_WIDGET_STATE (widget)], picture, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; } int main (int argc, char *argv[]) { GtkWidget *window; GtkWidget *vbox; GdkPixbuf *image; GdkGC *setup; GtkWidget *drawing_area; gtk_init (&argc, &argv); printf ("\n"); if (gdk_init_check (&argc, &argv) == 1) printf ("Connection to X Server Successful\n"); if (gdk_init_check (&argc, &argv) == 0) printf ("Connection to X Server Failed\n"); printf ("Display: %s\n", gdk_get_display () ); printf ("ScrWidth: %d\n", gdk_screen_width () ); printf ("ScrHeight: %d\n", gdk_screen_height () ); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap()); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); gtk_widget_set_usize (window, 512, 512); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); drawing_area = gtk_drawing_area_new (); gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_area), 512, 512); gtk_box_pack_start (GTK_BOX (vbox), drawing_area, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (drawing_area), "expose_event", (GtkSignalFunc) expose_event, NULL); image = gdk_pixbuf_new_from_file ("test.gif"); picture = gdk_pixmap_new (NULL, 512, 512, gtk_widget_get_visual (drawing_area)->depth); setup = gdk_gc_new (picture); printf ("Visual: %d\n", gtk_widget_get_visual (drawing_area)->depth); printf ("Channels: %d\n", gdk_pixbuf_get_n_channels (image)); printf ("Width: %d\n", gdk_pixbuf_get_width (image)); printf ("Height: %d\n", gdk_pixbuf_get_height (image)); printf ("Alpha: %d\n", gdk_pixbuf_get_has_alpha (image)); printf ("Bits: %d\n", gdk_pixbuf_get_bits_per_sample (image)); printf ("Rowstride: %d\n", gdk_pixbuf_get_rowstride (image)); printf ("\n"); gdk_pixbuf_render_to_drawable (image, picture, setup, 0, 0, 0, 0, 512, 512, GDK_RGB_DITHER_NONE, 0, 0); gdk_draw_pixmap ((GdkDrawable *)drawing_area, setup, picture, 0, 0, 0, 0, 512, 512); gtk_widget_show_all (window); gtk_main(); return (0); } Thanks again! Andrej From andres_giraldo@yahoo.com Tue Jun 12 14:34:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id A57E12DCD4 for ; Tue, 12 Jun 2001 14:34:50 -0400 (EDT) Message-ID: <20010612183449.15578.qmail@web11502.mail.yahoo.com> Received: from [208.221.130.25] by web11502.mail.yahoo.com; Tue, 12 Jun 2001 11:34:49 PDT Date: Tue, 12 Jun 2001 11:34:49 -0700 (PDT) From: "Andrés" Giraldo Subject: drawing_area->window!=NULL 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to create a new widget, this is my init object function: static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; GdkGC *gc; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (newlabel->drawing_area); gc = GetPen (NewColor (0x0000, 0x0000, 0x0000), newlabel->drawing_area->window); } /***************************************************** These functions, returns a GdkGC * color; *****************************************************/ GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } /***************************************************** The Widget structure *****************************************************/ struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; }; /*****************************************************/ Why Gdk returns: Gdk-CRITICAL **: file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed. Gdk-CRITICAL **: file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed. It doesn't work even if I show the newlabel->drawing_area widget or not... Why? Thanks! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From rsteinke@w-link.net Tue Jun 12 15:02:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 9C7752BDDC for ; Tue, 12 Jun 2001 15:02:25 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159tUc-0002c7-00 for ; Tue, 12 Jun 2001 12:06:22 -0700 Date: Tue, 12 Jun 2001 12:06:21 -0700 To: gtk-list@gnome.org Subject: _() macro? Message-ID: <3B26682D.nail7R111CG7S@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm seeing a lot of elements like: _("some string") in function calls. Is _() a macro? What does it do? Ron Steinke From wolfgang@contre.com Tue Jun 12 15:06:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cogito.cam.org (cogito.cam.org [198.168.100.2]) by mail.gnome.org (Postfix) with ESMTP id 8CA5D2E38A for ; Tue, 12 Jun 2001 15:06:45 -0400 (EDT) Received: from usrh-5-3.hip.cam.org (root@usrh-5-3.hip.cam.org [204.19.188.3]) by cogito.cam.org (8.11.0/8.11.0.Beta1) with ESMTP id f5CJ6hu26123 for ; Tue, 12 Jun 2001 15:06:43 -0400 Received: from debian.home (wolfgang@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5CJ6f0F006224 for ; Tue, 12 Jun 2001 15:06:42 -0400 Date: Tue, 12 Jun 2001 15:06:41 -0400 Message-ID: <8566e1o6v2.wl@debian.home> From: Wolfgang Sourdeau To: gtk-list@gnome.org Subject: Re: _() macro? Mail-Followup-To: Ron Steinke , gtk-list@gnome.org Mail-Reply-To: wolfgang@contre.com In-Reply-To: <3B26682D.nail7R111CG7S@yggdrasil> References: <3B26682D.nail7R111CG7S@yggdrasil> User-Agent: Wanderlust/2.5.8 (Smooth) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.0.103 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Ron" == Ron Steinke writes: > I'm seeing a lot of elements like: > _("some string") > in function calls. Is _() a macro? What does it do? It either calls gettext with the string as a parameter so that the program uses the translated strings. Otherwise (if i18n is not enabled during compilation) it just returns the same string. W. From kens@ActiveState.com Tue Jun 12 15:06:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id D28702BD01 for ; Tue, 12 Jun 2001 15:06:50 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5CI6ZA18096; Tue, 12 Jun 2001 11:06:35 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5CJ6YT13680; Tue, 12 Jun 2001 12:06:34 -0700 Date: Tue, 12 Jun 2001 12:06:34 -0700 (PDT) From: Ken Simpson To: Owen Taylor Cc: Havoc Pennington , , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Widgets are sent key presses before GTK+ checks for focus keys. If the > widget handles the key press in its event handler and returns TRUE, > then GTK+ will not check for tab/arrows. > > For instance, this is how GtkText prevents a tab key from tabbing out > of the GtkText widget. Hrm.. I guess the problem with Mozilla is that I need the keypress event to live on for a little while so that Mozilla can grab it. I can't just kill all the navigation keys -- Mozilla needs them so that it can farm them out to its command system. i.e., the order of operations should be: 1. Mozilla grabs ALL gdk events and processes them in its own handler (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) 2. Events are then farmed out to the widget from which they originated (an nsWindow pointer is stored in the user data of the event's any.window object). 3. The widget's key_press handler returns 0 for any keypress which is not something simple, like [A-Za-z0-9_-+] etc.. 4. (hopefully) The key_press event travels up the window hierarchy to the main Mozilla window, where it is ground through the Mozilla keybinding system and produces some result. The event then should _die_. The problem is that, between stages 3 and 4, gtk intercepts the key press and changes the focus. Yuck. I don't think the fix here is going to be easy... Ideas?? TTUL Ken -- New! ASPN - ActiveState Programmer Network Essential programming tools and information http://www.ActiveState.com/ASPN From andres_giraldo@yahoo.com Tue Jun 12 15:35:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11508.mail.yahoo.com (web11508.mail.yahoo.com [216.136.172.40]) by mail.gnome.org (Postfix) with SMTP id C3F962BB41 for ; Tue, 12 Jun 2001 15:35:45 -0400 (EDT) Message-ID: <20010612193544.53122.qmail@web11508.mail.yahoo.com> Received: from [208.221.130.25] by web11508.mail.yahoo.com; Tue, 12 Jun 2001 12:35:44 PDT Date: Tue, 12 Jun 2001 12:35:44 -0700 (PDT) From: "Andrés" Giraldo Subject: Re: drawing_area->window != NULL To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks for your help... Ok I've got it! The window is not realized yet, so I put the drawing code in the expose_event function, but... It only works if I connect the expose event signal to the drawing_area member, not if I connect it to the entire structure... why? This is using the entire structure (That's how I want it). It doesn't work... /*****************************************************/ typedef struct _GtkNewLabel GtkNewLabel; struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; }; static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (GTK_WIDGET (newlabel)); gtk_signal_connect(GTK_OBJECT (newlabel), "expose_event", GTK_SIGNAL_FUNC (on_gtk_newlabel_expose_event), &newlabel); } void on_gtk_newlabel_expose_event (GtkNewLabel *newlabel) { GdkGC *gc_back, *gc_fore; GdkDrawable *drawable; drawable = newlabel->drawing_area->window; gc_back = GetPen (NewColor (newlabel->back_red, newlabel->back_green, newlabel->back_blue), drawable); } GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } /*****************************************************/ And this is using the drawing_area member, It Works... static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (newlabel->drawing_area); gtk_signal_connect(GTK_OBJECT (newlabel->drawing_area), "expose_event", GTK_SIGNAL_FUNC (on_gtk_newlabel_expose_event), NULL); } void on_gtk_newlabel_expose_event (gpointer data) { GdkGC *gc_back, *gc_fore; GdkDrawable *drawable = GTK_WIDGET(data)->window; drawable = newlabel->drawing_area->window; gc_back = GetPen (NewColor (newlabel->back_red, newlabel->back_green, newlabel->back_blue), drawable); } So... what I'm doing wrong? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From pbd@op.net Tue Jun 12 15:36:56 2001 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 51FDF2DE46 for ; Tue, 12 Jun 2001 15:36:56 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-0e.ppp.op.net [209.152.206.14]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA17743; Tue, 12 Jun 2001 15:36:47 -0400 (EDT) Message-Id: <200106121936.PAA17743@renoir.op.net> To: Ken Simpson Cc: Owen Taylor , Havoc Pennington , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Tue, 12 Jun 2001 12:06:34 PDT." Date: Tue, 12 Jun 2001 15:38:21 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >i.e., the order of operations should be: > >1. Mozilla grabs ALL gdk events and processes them in its own handler > (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) > >2. Events are then farmed out to the widget from which they > originated (an nsWindow pointer is stored in the user data of the > event's any.window object). > >3. The widget's key_press handler returns 0 for any keypress which is not > something simple, like [A-Za-z0-9_-+] etc.. > >4. (hopefully) The key_press event travels up the window hierarchy to the > main Mozilla window, where it is ground through the Mozilla keybinding > system and produces some result. The event then should _die_. > >The problem is that, between stages 3 and 4, gtk intercepts the key press >and changes the focus. Yuck. I don't think the fix here is going to be >easy... use a key snooper instead of an event handler. --p From rwan@cs.mu.oz.au Tue Jun 12 23:02:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 4E2BD2E0CC for ; Tue, 12 Jun 2001 23:01:59 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id NAA10716 for ; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 0ADD275AA; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 0918AAC94 for ; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Date: Wed, 13 Jun 2001 13:01:54 +1000 (EST) From: Raymond Wan To: gtk-list@gnome.org Subject: Argument passing / 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, My GTK+ program is getting fairly large and until now, I've had one big global variable structure that has all the information I need. I was wondering if there is an alternative to this. The program I'm having seems to be in the call back functions, which I don't seem to entirely understand. For example, in a call back function such as this: void closeChildWindow (GtkWidget *widget, gpointer data) I've been passing ints from my program using GPOINTER_TO_INT and GINT_TO_POINTER. But, can I pass anything else, such as a C pointer to a structure or can I pass more than one argument? If so, how would I do this? Also, a separate question...does anyone know of a GTKTextView example (GTK 1.3) that is slightly more involved than the HTML GTK Reference under the section Text Widget Overview? Possibly using tags, marks, and iterators? Thank you! Ray From blizzard@redhat.com Tue Jun 12 15:37:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from face.0xdeadbeef.com (unknown [206.40.163.63]) by mail.gnome.org (Postfix) with ESMTP id 85B162D2C8 for ; Tue, 12 Jun 2001 15:37:57 -0400 (EDT) Received: from redhat.com (face.0xdeadbeef.com [127.0.0.1]) by face.0xdeadbeef.com (8.11.2/8.11.2) with ESMTP id f5CJbA628103; Tue, 12 Jun 2001 15:37:10 -0400 Message-ID: <3B266F66.3030500@redhat.com> Date: Tue, 12 Jun 2001 15:37:10 -0400 From: Christopher Blizzard User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2smp i686; en-US; rv:0.9.1+) Gecko/20010608 X-Accept-Language: en-us MIME-Version: 1.0 To: Ken Simpson Cc: Owen Taylor , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson wrote: >>Widgets are sent key presses before GTK+ checks for focus keys. If the >>widget handles the key press in its event handler and returns TRUE, >>then GTK+ will not check for tab/arrows. >> >>For instance, this is how GtkText prevents a tab key from tabbing out >>of the GtkText widget. >> > > Hrm.. I guess the problem with Mozilla is that I need the keypress event > to live on for a little while so that Mozilla can grab it. I can't just > kill all the navigation keys -- Mozilla needs them so that it can farm > them out to its command system. > > i.e., the order of operations should be: > > 1. Mozilla grabs ALL gdk events and processes them in its own handler > (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) > > 2. Events are then farmed out to the widget from which they > originated (an nsWindow pointer is stored in the user data of the > event's any.window object). > > 3. The widget's key_press handler returns 0 for any keypress which is not > something simple, like [A-Za-z0-9_-+] etc.. > > 4. (hopefully) The key_press event travels up the window hierarchy to the > main Mozilla window, where it is ground through the Mozilla keybinding > system and produces some result. The event then should _die_. > > The problem is that, between stages 3 and 4, gtk intercepts the key press > and changes the focus. Yuck. I don't think the fix here is going to be > easy... > > Ideas?? What is it that intercepts the key presses? Is it the gtkwindow class that is being used by the mozbox? Or is it being farmed all the way up to the toplevel? We might need to override the keypress handler for the mozbox class so that the default gtkwindow handler doesn't change focus on you like it sounds like is happening. --Chris From pbd@op.net Tue Jun 12 23:35:53 2001 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 7304F2E0B3 for ; Tue, 12 Jun 2001 23:35:53 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-29.ppp.op.net [209.152.206.41]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA23426; Tue, 12 Jun 2001 23:35:46 -0400 (EDT) Message-Id: <200106130335.XAA23426@renoir.op.net> To: Christopher Blizzard Cc: Ken Simpson , Owen Taylor , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Tue, 12 Jun 2001 15:37:10 EDT." <3B266F66.3030500@redhat.com> Date: Tue, 12 Jun 2001 23:37:25 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>Widgets are sent key presses before GTK+ checks for focus keys. If the >>>widget handles the key press in its event handler and returns TRUE, >>>then GTK+ will not check for tab/arrows. not true in GTK+ 1.2. you have to stop the signal emission as well. in GTK+ 1.2, the default handler is run regardless of the return status of other connected handlers. the docs for GTK+ 1.2 do not make this particularly clear. i believe that in GTK+ 1.3/2.0, this is no longer true, and things work the way the docs tend to suggest. its the default handler for key press events in a GtkWindow that controls the movement of focus between widgets in that window. the handler is executed unless you block the emission in the widget that currently has focus (i.e. the one that the window directs the events to). as i've mentioned, i find it easier to do all this stuff using a key snooper, which allows you to completely bypass all of GTK+'s builtin key handling. --p From otaylor@redhat.com Tue Jun 12 23:53:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 6DB6A2BEE0 for ; Tue, 12 Jun 2001 23:53:45 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 0D36C2422FE; Tue, 12 Jun 2001 23:53:44 -0400 (EDT) To: Paul Davis Cc: Christopher Blizzard , Ken Simpson , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: <200106130335.XAA23426@renoir.op.net> From: Owen Taylor Date: 12 Jun 2001 23:53:44 -0400 In-Reply-To: Paul Davis's message of "Tue, 12 Jun 2001 23:37:25 -0400" Message-ID: Lines: 80 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >>>Widgets are sent key presses before GTK+ checks for focus keys. If the > >>>widget handles the key press in its event handler and returns TRUE, > >>>then GTK+ will not check for tab/arrows. > > not true in GTK+ 1.2. you have to stop the signal emission as well. > > in GTK+ 1.2, the default handler is run regardless of the return > status of other connected handlers. the docs for GTK+ 1.2 do not make > this particularly clear. i believe that in GTK+ 1.3/2.0, this is no > longer true, and things work the way the docs tend to suggest. In this case, what was being discussed was the return value of the default handler, so stopping emission isn't necessary - if someone connects another signal handler using gtk_signal_connect_after() they mean to override the return value. > its the default handler for key press events in a GtkWindow that > controls the movement of focus between widgets in that window. the > handler is executed unless you block the emission in the widget that > currently has focus (i.e. the one that the window directs the events > to). This isn't quite right. In GTK+-1.2 - for every time a signal is run, up to three things may happen: 1) signal handlers run 2) the default handler runs 3) Signal handlers connected with gtk_signal_connect_after run. The return value from the signal is the return value from the last of these; so if 1) returns TRUE meaning "handled", 2) will still be run and override this unless gtk_signal_emit_stop_by_name() is called. In GTK+-2 a TRUE return immediately stops emission. However - this all only applies to a SINGLE signal emission - even in 1.2, if the result of sending the widget to the focus widget is TRUE, no further handling will be done. http://people.redhat.com/otaylor/tmp/key-handling.eps is a diagram of key handling in GTK+-1.2 which may help (or may further confuse) > as i've mentioned, i find it easier to do all this stuff using a key > snooper, which allows you to completely bypass all of GTK+'s builtin key handling is quite complicated enough without getting key snoopers involved! The idea of key snoopers was to handle hotkeys that would work in any window - like the hotkey to invoke the GLE widget tree debugger. If you have a particular GtkWindow, a connection to "key_press_event" on the toplevel already allows you to override all key handling behavior. Regards, Owen [ Actually the situation with Komodo is rather more complicated again - having GTK+ widgets inside mozilla is basically two inter-toolkit widget embeddings. GtkWindow Mozilla content area GtkMozBox holding GTK+ widgets (GtkMozBox derives from GtkWindow!) ] From ishamael@themes.org Wed Jun 13 01:33:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alpha.techcare.com (unknown [207.89.153.66]) by mail.gnome.org (Postfix) with SMTP id 233602CC93 for ; Wed, 13 Jun 2001 01:33:18 -0400 (EDT) Received: (qmail 19830 invoked from network); 13 Jun 2001 03:59:21 -0000 Received: from pm538-38.dialip.mich.net (HELO orodruin) (@198.108.161.96) by alpha.techcare.com with SMTP; 13 Jun 2001 03:59:21 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Charlie Schmidt" To: gtk-list@gnome.org Subject: Re: Argument passing / GTKTextView X-Mailer: Pronto v2.2.6 On linux/mysql Date: 13 Jun 2001 01:05:40 EDT Reply-To: "Charlie Schmidt" In-Reply-To: References: Message-Id: <20010613053318.233602CC93@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: - you can either use gtk_object_set_data() on the widget, to set associate a key string with a gpointer data element: gtk_object_set_data(GTK_OBJECT(widget),"struct",structure); then in the callback: structure = gtk_object_get_data(GTK_OBJECT(widget),"struct"); or pass a structure containing everything (gints,other structs, etc) From: Raymond Wan Subject: Argument passing / GTKTextView Date: Wed, 13 Jun 2001 13:01:54 +1000 (EST) > > Hi all, > > My GTK+ program is getting fairly large and until now, I've had > one big global variable structure that has all the information I need. I > was wondering if there is an alternative to this. > > The program I'm having seems to be in the call back functions, > which I don't seem to entirely understand. For example, in a call back > function such as this: > > void closeChildWindow (GtkWidget *widget, gpointer data) > > I've been passing ints from my program using GPOINTER_TO_INT and > GINT_TO_POINTER. But, can I pass anything else, such as a C pointer to a > structure or can I pass more than one argument? If so, how would I do > this? > > Also, a separate question...does anyone know of a GTKTextView > example (GTK 1.3) that is slightly more involved than the HTML GTK > Reference under the section Text Widget Overview? Possibly using tags, > marks, and iterators? > > Thank you! > > Ray > > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > -- Charlie Schmidt - From inodal@teleline.es Wed Jun 13 06:18:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id D0F302C9FE for ; Wed, 13 Jun 2001 06:18:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEV5VN03.V0O for ; Wed, 13 Jun 2001 12:16:35 +0200 Message-ID: <3B272F81.70EB1B7@teleline.es> Date: Wed, 13 Jun 2001 11:16:49 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: how to hide discrete toggle button not hidding the button completely (button->draw_indicator hide it completely) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to hide the discrete toggle button from a check button? I have add a pixmap to the button "gtk_container_add(GTK_CONTAINER(_boolean_button), _pixmap);" This pixmap changes its GdkPixmap according to the _boolean_button->active value (TRUE or FALSE), so I don't need the discrete toggle button's visual reference any more. Thanks, Ignacio Nodal From john.cupitt@ng-london.org.uk Wed Jun 13 07:49:43 2001 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 C05392DC63 for ; Wed, 13 Jun 2001 07:49:42 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNPC8; Wed, 13 Jun 2001 12:49:40 +0100 Message-ID: <3B27520B.B3902381@ng-london.org.uk> Date: Wed, 13 Jun 2001 12:44:11 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Raymond Wan Cc: gtk-list@gnome.org Subject: Re: Argument passing / GTKTextView 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Raymond Wan wrote: > My GTK+ program is getting fairly large and until now, I've had > one big global variable structure that has all the information I need. I > was wondering if there is an alternative to this. Hi Raymond, there are lots of ways to fix this. One of the easiest is to have a struct for every window you pop up. Allocate and fill the struct when you make one of the windows, pass the address of the struct to every callback from widgets in that window, and destroy the struct when the window is destroyed. Something like (untested, I just typed this in): struct Wombat { GtkWidget *window; GtkWidget *label; GtkWidget *button; int my_data; } static void wombat_clicked( GtkWidget *button, Wombat *wom ) { wom->my_data += 1; } static void wombat_destroy( GtkWidget *window, Wombat *wom ) { printf( "you've had %d wombats\n", wom->my_data ); g_free( wom ); } Wombat * wombat_new( void ) { Wombat *wom = g_new( Wombat, 1 ); wom->window = gtk_window_new( ... wom->button = gtk_button_new( ...etc. gtk_signal_connect( GTK_OBJECT( wom->button ), "clicked", GTK_SIGNAL_FUNC( wombat_click ), wom ); gtk_signal_connect( GTK_OBJECT( wom->window ), "destroy", GTK_SIGNAL_FUNC( wombat_destroy ), wom ); gtk_widget_show( wom->window ); } Next up, you could make your own widgets: there's a section in the tutorial about this: http://www.gtk.org/tutorial/sec-creatingacompositewidget.html This lets you group widgets together, and have them operate as one chunk. You can make your application as a big set of widgets which contain other widgets. It's easier then it sounds. Finally, you can go model/view, and split your app into things which model your data (but do no display), and widgets which hold no information themselves, but just give a view of the stuff in the model widgets. This is very nice and flexible, but harder work. HTH, John From charlet@ACT-Europe.FR Wed Jun 13 09:16:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dublin.ACT-Europe.FR (dublin.act-europe.fr [213.228.58.154]) by mail.gnome.org (Postfix) with ESMTP id EBD112DE86 for ; Wed, 13 Jun 2001 09:16:41 -0400 (EDT) Received: by dublin.ACT-Europe.FR (Postfix, from userid 525) id 419D65F640; Wed, 13 Jun 2001 14:45:56 +0200 (MET DST) Date: Wed, 13 Jun 2001 14:45:56 +0200 From: Arnaud Charlet To: gtk-list@gnome.org Subject: ANNOUNCE: GtkAda 1.2.12 Message-ID: <20010613144556.B20867@dublin.int.act-europe.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: GtkAda 1.2.12 release --------------------- We are happy to announce the availability of GtkAda 1.2.12. GtkAda is an Ada95 graphical toolkit based on Gtk+ version >= 1.2.2. It allows you to develop graphical applications in Ada95 using Gtk+. The primary download site is http://libre.act-europe.fr/GtkAda New features in 1.2.12 include - Version needed by GVD 1.2.0 - Update to GtkExtra 0.99.14, including a new 3D Plot widget. - The GtkAda.Canvas now provides zooming capabilities. It also draws curve links with Bezier splines instead of circles. For efficiency, the items in the canvas are no longer double-buffered. Use Buffered_Items if you want to keep the old behavior. Button_Press events are reported when an item is pressed and the event wasn't used to move the item around. - New function: Gtk.Widget.Set_Parent_Window. - Documentation updates Arnaud Charlet, for the GtkAda team From jedwards@inmet.gov.br Wed Jun 13 09:36:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from challenge.inmet.gov.br (unknown [200.252.242.89]) by mail.gnome.org (Postfix) with ESMTP id 892A22DEB4; Wed, 13 Jun 2001 09:36:48 -0400 (EDT) Received: from inmet.gov.br (localhost [127.0.0.1]) by challenge.inmet.gov.br (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id KAA06146; Wed, 13 Jun 2001 10:36:46 -0300 (EST) Message-ID: <3B276C6E.93918402@inmet.gov.br> Date: Wed, 13 Jun 2001 13:36:46 +0000 From: Jim Edwards X-Mailer: Mozilla 4.73C-SGI [en] (X11; U; IRIX64 6.5 IP25) X-Accept-Language: en MIME-Version: 1.0 To: gtk , gtk-perl Cc: glade Subject: human language support 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I´ve been lurking here and working with glade/gtk+ for a short while now and have a couple of questions: 1. Can someone point me to an example of, or document about, how to build a gtk+ gui with multi-language support. 2. I have an application in C with no gui and one in perl with a perl/Tk gui. I want to combine the two with a gtk+ gui - I have some experience with perl XS so I have an idea of what I´m getting into, but i wonder if anyone has tried to write callbacks in perl from a gtk+ mostly in C. It seems like that would be the right place to cross languages, but maybe some of what glade calls interface calls should also be done from perl? Thanks, Jim From flo.scandella@aon.at Wed Jun 13 03:31:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viemta06.chello.at (viemta06.chello.at [195.34.133.56]) by mail.gnome.org (Postfix) with ESMTP id 2243A2BDE2 for ; Wed, 13 Jun 2001 03:31:28 -0400 (EDT) Received: from spellcaster.tafelritter.org ([62.178.75.196]) by viemta06.chello.at (InterMail vK.4.03.02.00 201-232-124 license 6aea1bd1f01aef5a9a73363c16ebee43) with ESMTP id <20010613073126.LQMA6087.viemta06@spellcaster.tafelritter.org> for ; Wed, 13 Jun 2001 09:31:26 +0200 Subject: gtk-main From: Florian Scandella To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 13 Jun 2001 09:39:47 +0200 Message-Id: <992417987.1179.0.camel@Spellcaster> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi ! Is there a possibility to close the resources allocatet by gtk-main, without exiting the program ( gtk-exit ) ? It's not much ( 104 bytes ) but i hate it to have memory leaks in my programs :-) Another question : Can i call gtk_init twice ? thanx, flo From Roberto@libero.it Wed Jun 13 05:41:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mail.gnome.org (Postfix) with ESMTP id CA6CC2BA99 for ; Wed, 13 Jun 2001 05:41:12 -0400 (EDT) Received: from libero.it (151.25.51.251) by smtp1.libero.it (5.5.025) id 3AE980E700AA52D6 for gtk-list@gnome.org; Wed, 13 Jun 2001 11:41:11 +0200 Message-ID: <3B27356F.4070608@libero.it> Date: Wed, 13 Jun 2001 11:42:07 +0200 From: Roberto User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.18pre21 i686; en-US; rv:0.9; Debian/GNU) Gecko/20010520 X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: The size of a widget. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I know the size of a widget? Have you a little little example? Thank you Roberto From igurnebli@users.sourceforge.net Wed Jun 13 07:31:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dukas.upc.es (dukas.upc.es [147.83.2.62]) by mail.gnome.org (Postfix) with ESMTP id 2908F2E3A4 for ; Wed, 13 Jun 2001 07:31:16 -0400 (EDT) Received: from amadeus.upc.es (amadeus.upc.es [147.83.76.2]) by dukas.upc.es (8.10.1/8.10.1) with ESMTP id f5DBQ9201783 for ; Wed, 13 Jun 2001 13:26:10 +0200 (MET DST) Received: from morera.upc.es (morera.upc.es [147.83.76.38]) by amadeus.upc.es (8.9.1b+Sun/8.9.3) with ESMTP id NAA23657 for ; Wed, 13 Jun 2001 13:22:50 +0200 (MET DST) Subject: GL widget to ship with GTK From: Jordi Rovira i Bonet To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 13 Jun 2001 13:32:29 +0200 Message-Id: <992432041.3989.0.camel@morera> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I think it would be a good thing if the GtkGLArea widget shipped with the default GTK distribution, as in my oppinion, it has been tested a lot and is very used. I suppose that this is not the first time someone suggests this, but i haven't seen any discussion before about it. J From charlet@ACT-Europe.FR Wed Jun 13 10:05:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dublin.ACT-Europe.FR (dublin.act-europe.fr [213.228.58.154]) by mail.gnome.org (Postfix) with ESMTP id C6D812E3F0 for ; Wed, 13 Jun 2001 10:05:14 -0400 (EDT) Received: by dublin.ACT-Europe.FR (Postfix, from userid 525) id 58DC05F5F6; Wed, 13 Jun 2001 16:02:40 +0200 (MET DST) Date: Wed, 13 Jun 2001 16:02:40 +0200 From: Arnaud Charlet To: gtk-list@gnome.org Subject: [ANNOUNCE] Release 1.2.0 of the GNU Visual Debugger Message-ID: <20010613160240.B25371@dublin.int.act-europe.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: We are pleased to announce the availability of GVD, the GNU Visual Debugger, a general purpose graphical debugger front-end licensed under the GNU General Public License. Besides providing all the features of other debugger GUIs, GVD includes advanced data display and visualization capabilities. Furthermore, GVD allows the debugging of multi-process/multi-threaded applications in the same debugging session. GVD works with native as well as cross debuggers and can handle several languages in the same debugging session and the same application. Currently Ada, C and C++ are supported. GVD can run on a host different from the machine where the debugger is running and provides friendly support for cross-debuggers (VxWorks, Lynx, etc.). For instance, you can use Linux or Windows to debug an application running on a Power PC board with a debugger running on a Sun workstation. To build GVD we are using the GtkAda GUI technology. GVD comes with all the GtkAda benefits such as a pluggable look-and-feel, a set of very high-level widgets and the ability to have the same look-and-feel on all of your platforms. You can dowload GVD (sources and binaries for GNU/Linux x86, Solaris sparc and x86, Windows NT/2000, DEC Unix/Tru64, HP-UX, UnixWare, IRIX, AiX) and get more information at http://libre.act-europe.fr New features in GVD 1.2.0: - Under Windows, the special pathnames //cygdrive/x/ and //x/ are now recognized and converted into appropriate names. - The File->New Debugger dialog now provides the ability to replace the current debugger by default. - The "run" and "start" buttons now set automatically the name of the module under VxWorks. - The File->Attach Process menu now lists the tasks on the target when using Tornado VxWorks. - The --target option now allows multiple ':' characters so that you can specify machine:1234 as the machine (& port number). See the documentation for more details. - The file corresponding to the main procedure is now displayed when loading an Ada executable (rather than the procedure containing the elaboration calls). - The data window is now zoomable - The breakpoint editor has been enhanced, and can now set advanced properties like ignore_count, commands to execute when reaching the breakpoint, or conditions to activate the breakpoint - The handling of commands has been improved and is more reliable. Caching of commands has also been put in place giving better user feedback on slow machines. - New item in the source editor contextual menu: display dereferenced variable - New item in the source editor contextual menu: break on subprogram - The option "break on exceptions" has been implemented - It is possible to delete an exception by pressing the 'Delete' key in the Breakpoints Window. - The Tab key is now supported in the debugger window. If you are interested in participating in the GVD development, do not hesitate to contact us (mailto:gvd-devel@lists.act-europe.fr) Arnaud Charlet From hp@redhat.com Wed Jun 13 10:28:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 433232CA4E; Wed, 13 Jun 2001 10:28:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5DEUxK04825; Wed, 13 Jun 2001 10:30:59 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Jim Edwards Cc: gtk , gtk-perl , glade Subject: Re: human language support References: <3B276C6E.93918402@inmet.gov.br> From: Havoc Pennington Date: 13 Jun 2001 10:30:59 -0400 In-Reply-To: Jim Edwards's message of "Wed, 13 Jun 2001 13:36:46 +0000" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jim Edwards writes:=20 > 1. Can someone point me to an example of, or document about, how to > build a gtk+ gui with multi-language support. Just read the gettext info pages, GTK works the same as a non-GUI program basically. >=20 > 2. I have an application in C with no gui and one in perl with a perl/Tk > gui. I want to combine the two with a gtk+ gui - I have some experience > with perl XS so I have an idea of what I=B4m getting into, but i wonder if > anyone has tried to write callbacks in perl from a gtk+ mostly in C. > It seems like that would be the right place to cross languages, but > maybe some of what glade calls interface calls should also be done from > perl? I don't know about that one. ;-) Havoc From andres_giraldo@yahoo.com Wed Jun 13 13:39:23 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id 895972E102 for ; Wed, 13 Jun 2001 13:39:22 -0400 (EDT) Message-ID: <20010613173921.22186.qmail@web11502.mail.yahoo.com> Received: from [208.221.130.25] by web11502.mail.yahoo.com; Wed, 13 Jun 2001 10:39:21 PDT Date: Wed, 13 Jun 2001 10:39:21 -0700 (PDT) From: "Andrés" Giraldo Subject: Callbacks and Signals works with Classes? To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to create a class, this class defines a button, on it's clicked signal it calls a callback function that I want to put in the private part of the class, but it returns me... no matches converting function `on_button_clicked' to type `void (*) ()' clases.h:400: candidates are: void myclass::on_button_clicked () The problem is; GTK_SIGNAL_FUNC is type void (*), and my function is void... How can I call a funciton in the same class? class myclass { private: void on_button_clicked () { } public: ... gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), NULL); }; GTK Works with C++... am I right? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From pbd@op.net Wed Jun 13 14:12:43 2001 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 9BF112DD26 for ; Wed, 13 Jun 2001 14:12:42 -0400 (EDT) Received: from someip.ppp.op.net (d-bm5-01.ppp.op.net [209.152.194.193]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA28212; Wed, 13 Jun 2001 14:12:39 -0400 (EDT) Message-Id: <200106131812.OAA28212@renoir.op.net> To: "Andr s" Giraldo Cc: Gtk List Subject: Re: Callbacks and Signals works with Classes? In-reply-to: Your message of "Wed, 13 Jun 2001 10:39:21 PDT." <20010613173921.22186.qmail@web11502.mail.yahoo.com> Date: Wed, 13 Jun 2001 14:14:26 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >no matches converting function `on_button_clicked' >to type `void (*) ()' >clases.h:400: candidates are: void >myclass::on_button_clicked this is member function. C++ member functions are not, and never have been, interchangeable with regular C functions. this is a common confusion among relatively new C++ programmers (i suffered from it myself many years ago). to do what you want you need: class myclass { static void on_button_clicked (myclass *); }; gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this); the "static" keyword makes the member function into something equivalent to a regular C function. or better yet, use Gtk-- (though many people don't agree with me on that). --p From inodal@teleline.es Wed Jun 13 14:26:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id D69532D99E for ; Wed, 13 Jun 2001 14:26:18 -0400 (EDT) Received: from PIII500 ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with SMTP id GEVSGO02.OBP; Wed, 13 Jun 2001 20:24:24 +0200 Message-ID: <000701c0f436$1b58f540$0a01a8c0@PIII500> From: "Ignacio Nodal" To: =?iso-8859-1?Q?Andr=E9s_Giraldo?= Cc: "GTK-List" References: <20010613173921.22186.qmail@web11502.mail.yahoo.com> Subject: RE: Callbacks and Signals works with Classes? Date: Wed, 13 Jun 2001 19:24:23 +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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Andrés Giraldo To: Gtk List Sent: Wednesday, June 13, 2001 6:39 PM Subject: Callbacks and Signals works with Classes? > Hi! > > I'm trying to create a class, this class defines a > button, on it's clicked signal it calls a callback > function that I want to put in the private part of the > class, but it returns me... > > no matches converting function `on_button_clicked' > to type `void (*) ()' > clases.h:400: candidates are: void > myclass::on_button_clicked > () > GTK Works with C++... am I right? > Yeah, there is a wrapper called GTK-- written completely in C++, but GTK works fine by itself wit C++. I use to work with GTK & C++. The problem must have something to do with puting the function in the private part, because I use lots of callbacks in the classes I've created without problems. My callbacks are all in the public part, though. I cannot try now puting my functions in the private part and make them work. I'm not on linux at this moment, sorry. Regards, Ignacio Nodal From inodal@teleline.es Wed Jun 13 14:36:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp2.teleline.es (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id F0BB82E427 for ; Wed, 13 Jun 2001 14:36:34 -0400 (EDT) Received: from PIII500 ([213.97.141.171]) by tsmtppp2.teleline.es (Netscape Messaging Server 4.1) with SMTP id GEVSTT06.9J1 for ; Wed, 13 Jun 2001 20:32:17 +0200 Message-ID: <001101c0f437$356405a0$0a01a8c0@PIII500> From: "Ignacio Nodal" To: "GTK-List" References: <200106131812.OAA28212@renoir.op.net> Subject: RE: Callbacks and Signals works with Classes? Date: Wed, 13 Jun 2001 19:32:24 +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Paul Davis > this is member function. C++ member functions are not, and never have > been, interchangeable with regular C functions. this is a common > confusion among relatively new C++ programmers (i suffered from it > myself many years ago). Hey! Where was this email 2minutes ago when I sent mine?? ;))) So... I've been suffering this confusion also... > the "static" keyword makes the member function into something > equivalent to a regular C function. I've been using static callbacks all the time and thereby I haven't noticed the problem. Learning something new every day... ;) See you From andres_giraldo@yahoo.com Wed Jun 13 15:00:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11504.mail.yahoo.com (web11504.mail.yahoo.com [216.136.172.36]) by mail.gnome.org (Postfix) with SMTP id B5F6A2DE9A for ; Wed, 13 Jun 2001 15:00:49 -0400 (EDT) Message-ID: <20010613190048.47055.qmail@web11504.mail.yahoo.com> Received: from [208.221.130.25] by web11504.mail.yahoo.com; Wed, 13 Jun 2001 12:00:48 PDT Date: Wed, 13 Jun 2001 12:00:48 -0700 (PDT) From: "Andrés" Giraldo Subject: Re: Callbacks and Signals works with Classes? To: Gtk List In-Reply-To: <200106131812.OAA28212@renoir.op.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, thanks, but how I supposed to make request to the class members? I mean, I need the signal connect in the public part of the class, and the callback in the private class myclass { private: static void on_button_clicked (myclass *); public: gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this); }; So, if I declare a parameter for my callback function of type myclass *xxx; it returns that: xxx is of non-aggregate type `myclass *' and if I declare it as myclass xxx, its members values are different from reality I also tried putting this clausule in the connect signal function, but is the same if I put NULL in place, so what's still wrong? Thanks for your help! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From otaylor@redhat.com Wed Jun 13 15:06:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AE4802DB68 for ; Wed, 13 Jun 2001 15:06:24 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 507F6242312; Wed, 13 Jun 2001 15:06:24 -0400 (EDT) To: David Robin Cc: gtk-list@gnome.org Subject: Re: PanedBox Bug? References: <20010611233005.1B3A12E29B@mail.gnome.org> <3B25B533.97696368@st.com> From: Owen Taylor Date: 13 Jun 2001 15:06:24 -0400 In-Reply-To: David Robin's message of "Tue, 12 Jun 2001 08:22:43 +0200" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David Robin writes: > I Created a H-Paned Box with a notebook in each of the panels with gtk_panel_add. > When I hide the left notebook, the left panel goes hidden. But the right notebook doesnot takes the empty space, and the gutter stays visible. Is it the expected > behaviour? > The behaviour I expected was : when I 'kind of' close one of the panel, the other one fills all the space, and the gutter desappears because it is no more useful. > Then, If I show both notebooks again, the gutter reappears, at the same position it used to be. > > Is this a bug, or do I need to add some code in my app and make it by myself? Not really a bug, but a missing feature. (Present in the devel branch.) You'll need restructure your widgets instead of hiding one. (Keep an extra reference to the notebooks with gtk_object_ref() so the don't get destroyed when you remove them, remove them from the paned, add the notebook you want back.) Regards, Owen From donna@omartin.com Wed Jun 13 15:09:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from taka.swcp.com (taka.swcp.com [198.59.115.12]) by mail.gnome.org (Postfix) with ESMTP id 37DE42E450 for ; Wed, 13 Jun 2001 15:09:12 -0400 (EDT) Received: from diamond (1Cust34.tnt4.albuquerque.nm.da.uu.net [63.20.119.34]) by taka.swcp.com (8.10.0.Beta12/8.10.0.Beta12) with SMTP id f5DJBkg01014 for ; Wed, 13 Jun 2001 13:11:46 -0600 (MDT) Message-ID: <001e01c0f43c$424afe40$1400a8c0@diamond> Reply-To: "Donna Martin" From: "Donna Martin" To: References: <20010612193544.53122.qmail@web11508.mail.yahoo.com> Subject: Re: drawing_area->window != NULL Date: Wed, 13 Jun 2001 13:08:33 -0600 Organization: O'Martin Enterprises, Inc. 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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Your expose_event handler is of the wrong prototype. If you look at the RDP for GtkWidget you'll see the correct prototype: "expose-event" gboolean user_function (GtkWidget *widget, GdkEventExpose *event, gpointer user_data); The first field is supplied by GTK+ and is the widget causing the function to be invoked. Your data comes through the third field... In your second (working) piece of code, you attach the signal to the drawing area widget. When on_gtk_newlabel_expose_event is invoked, GTK+ Kindly supplies the widget that caused the function to be invoked as the first argument (i.e. your drawing area received an expose event). Your data would appear in the third parameter (which you don't have). So, by coincidence, it works when you send the same info that GTK+ is supplying :-) In looking back through the archives (because I'm behind and wanted to be sure no one else already answered this...) it looks as though Esteban Quijano Vincenzi addressed this quite well in his response to your newbie question on Monday.... It also looks like you're making great strides each day, so perhaps you already figured all this out! HTH, Donna ----- Original Message ----- From: "Andrés Giraldo" To: "Gtk List" Sent: Tuesday, June 12, 2001 1:35 PM Subject: Re: drawing_area->window != NULL > Thanks for your help... > > Ok I've got it! The window is not realized yet, so I > put the drawing code in the expose_event function, > but... > > It only works if I connect the expose event signal to > the drawing_area member, not if I connect it to the > entire structure... why? > > This is using the entire structure (That's how I want > it). It doesn't work... > > > /*****************************************************/ > > typedef struct _GtkNewLabel GtkNewLabel; > > struct _GtkNewLabel > { > GtkVBox vbox; > > GtkWidget *drawing_area; > }; > > static void gtk_newlabel_init (GtkNewLabel *newlabel) > { > GtkWidget *table; > > table = gtk_table_new (1, 1, TRUE); > gtk_container_add (GTK_CONTAINER (newlabel), > table); > gtk_widget_show (table); > > newlabel->drawing_area = gtk_drawing_area_new (); > gtk_table_attach_defaults (GTK_TABLE(table), > newlabel->drawing_area, 0, 1, 0, 1); > > gtk_widget_show (GTK_WIDGET (newlabel)); > > gtk_signal_connect(GTK_OBJECT (newlabel), > "expose_event", > GTK_SIGNAL_FUNC > (on_gtk_newlabel_expose_event), &newlabel); > } > > void on_gtk_newlabel_expose_event (GtkNewLabel > *newlabel) > { > GdkGC *gc_back, *gc_fore; > GdkDrawable *drawable; > > drawable = newlabel->drawing_area->window; > > gc_back = GetPen (NewColor (newlabel->back_red, > newlabel->back_green, > newlabel->back_blue), > drawable); > } > > > GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) > { > GdkGC *gc; > > gc = gdk_gc_new (drawable); > > gdk_gc_set_foreground (gc, c); > > return (gc); > } > > GdkColor *NewColor (long red, long green, long blue) > { > GdkColor *c = (GdkColor *) g_malloc (sizeof > (GdkColor)); > > c->red = red; > c->green = green; > c->blue = blue; > > gdk_color_alloc (gdk_colormap_get_system (), c); > > return (c); > } > > /*****************************************************/ > > And this is using the drawing_area member, It Works... > > > > static void gtk_newlabel_init (GtkNewLabel *newlabel) > { > GtkWidget *table; > > table = gtk_table_new (1, 1, TRUE); > gtk_container_add (GTK_CONTAINER (newlabel), > table); > gtk_widget_show (table); > > newlabel->drawing_area = gtk_drawing_area_new (); > gtk_table_attach_defaults (GTK_TABLE(table), > newlabel->drawing_area, 0, 1, 0, 1); > > gtk_widget_show (newlabel->drawing_area); > > gtk_signal_connect(GTK_OBJECT > (newlabel->drawing_area), "expose_event", > GTK_SIGNAL_FUNC > (on_gtk_newlabel_expose_event), NULL); > } > > void on_gtk_newlabel_expose_event (gpointer data) > { > GdkGC *gc_back, *gc_fore; > GdkDrawable *drawable = GTK_WIDGET(data)->window; > > drawable = newlabel->drawing_area->window; > > gc_back = GetPen (NewColor (newlabel->back_red, > newlabel->back_green, > newlabel->back_blue), > drawable); > } > > So... what I'm doing wrong? > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From rwalden@tripos.com Wed Jun 13 16:09:38 2001 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 400CB2BD8A for ; Wed, 13 Jun 2001 16:09:37 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA07204 for ; Wed, 13 Jun 2001 15:09:36 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma005689; Wed, 13 Jun 01 14:58:00 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id OAA50097; Wed, 13 Jun 2001 14:57:58 -0500 (CDT) Message-ID: <3B27C5C6.26891A9D@tripos.com> Date: Wed, 13 Jun 2001 14:57:58 -0500 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: pygtk , gtk-list@gnome.org Subject: Raising and lowering windows 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear List, It is possible to minimize (iconfiy) and restore windows programmatically in GTK? [for the pygtk list] Is this supported by pygtk? How? Thank you, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From kyi111@dreamwiz.com Wed Jun 13 22:54:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx-s0.dreamwiz.com (mx-s0.dreamwiz.com [211.174.54.135]) by mail.gnome.org (Postfix) with ESMTP id 761BE2BECF for ; Wed, 13 Jun 2001 22:54:17 -0400 (EDT) Received: from mail11.dreamwiz.com (mail11.dreamwiz.com [211.174.54.31]) by mx-s0.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5E2sFY86140 for ; Thu, 14 Jun 2001 11:54:15 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by mail11.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5E2s7c57363 for ; Thu, 14 Jun 2001 11:54:07 +0900 (KST) Message-Id: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> Date: Thu, 14 Jun 2001 11:54:07 +0900 (KST) From: =?EUC-KR?B?sei/68DPKHlvbmcgaWwua2ltKQ==?= Subject: glibconfig not find To: gtk-list@gnome.org Organization: X-Sender-IP: 211.219.11.9 X-Sender-ID: kyi111@dreamwiz.com X-Priority: 3 X-Mailer: DreamWiz Web-Mailer V1.31 X-DreamWiz-Data: receive_check=1;save=mail11.dreamwiz.com:kyi111:Sent:211; MIME-Version: 1.0 Content-Type: MULTIPART/ALTERNATIVE; BOUNDARY="0-1973929785-992487247=:57360" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --0-1973929785-992487247=:57360 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h please inform me ------------------------------------------------- DreamWiz Free Mail @ http://www.dreamwiz.com/ DreamSearch Click the world!!! http://search.dreamwiz.com/ --0-1973929785-992487247=:57360 Content-Type: TEXT/HTML; CHARSET=US-ASCII
please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message

usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h

please inform me




Your life on the net

DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!!  http://search.dreamwiz.com/


--0-1973929785-992487247=:57360-- From rodrigo@gnome-db.org Thu Jun 14 06:39:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from zubiri.gnome-db.org (100-MAD2-X33.libre.retevision.es [62.83.129.100]) by mail.gnome.org (Postfix) with ESMTP id 9300C2BDBB for ; Thu, 14 Jun 2001 06:39:38 -0400 (EDT) Received: from rodrigo by zubiri.gnome-db.org with local (Exim 3.22 #1 (Debian)) id 15AUWs-0000AR-00; Thu, 14 Jun 2001 12:39:10 +0200 Subject: Re: glibconfig not find From: Rodrigo Moya To: =?UTF-8?Q?=EA=B9=80=EC=9A=A9=EC=9D=BC=28yong?= "il.kim)" Cc: gtk-list@gnome.org In-Reply-To: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> References: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.10.99 (Preview Release) Date: 14 Jun 2001 12:39:09 +0200 Message-Id: <992515149.597.1.camel@zubiri> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 14 Jun 2001 11:54:07 +0900, =EA=B9=80=EC=9A=A9=EC=9D=BC(yong il.kim) wro= te: > please help me!! I am beginner GTK+ programming. when i compiled sample c= ode(hello.c), there are error message >=20 > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h >=20 when compiling, you must pass to gcc the output of: glib-config --cflags so: gcc -o my_program `glib-config --cflags` my_program.c cheers -- Rodrigo Moya http://www.gnome-db.org/ From john.cupitt@ng-london.org.uk Thu Jun 14 06:48:50 2001 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 14B5D2E58A for ; Thu, 14 Jun 2001 06:48:50 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNQQK; Thu, 14 Jun 2001 11:48:46 +0100 Message-ID: <3B289544.85433A20@ng-london.org.uk> Date: Thu, 14 Jun 2001 11:43:16 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?=B1=E8=BF=EB=C0=CF?= (yong il.kim) Cc: gtk-list@gnome.org Subject: Re: glibconfig not find References: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ąčżëŔĎ(yong il.kim) wrote: > please help me!! I am beginner GTK+ programming. when i compiled > sample code(hello.c), there are error message > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h Hello, is this the example from the tutorial? http://www.gtk.org/tutorial/ch-gettingstarted.html If that doesn't work, you probably have not installed gtk correctly. John From terop@fanta.modeemi.cs.tut.fi Wed Jun 13 16:45:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fanta.modeemi.cs.tut.fi (fanta.modeemi.cs.tut.fi [130.230.72.135]) by mail.gnome.org (Postfix) with ESMTP id 224052D45C for ; Wed, 13 Jun 2001 16:45:46 -0400 (EDT) Received: by fanta.modeemi.cs.tut.fi id XAA0000028796; Wed, 13 Jun 2001 23:45:30 +0300 (EET DST) To: "Andrés" Giraldo Cc: Gtk List Subject: Re: Callbacks and Signals works with Classes? References: <20010613190048.47055.qmail@web11504.mail.yahoo.com> From: Tero Pulkkinen Date: 13 Jun 2001 23:45:30 +0300 In-Reply-To: "Andrés" Giraldo's message of "Wed, 13 Jun 2001 12:00:48 -0700 (PDT)" Message-ID: Lines: 25 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Andrés" Giraldo writes: > Ok, thanks, but how I supposed to make request to the > class members? GtkObject has these methods called gtk_object_set_data() gtk_object_get_data() which lets you store additional pointers to the widget. This is how you can store a pointer of your C++ class to a widget and the connected callbacks can use the c++ methods. Like this: // init: GtkWidget *widget = gtk_button_new("test"); gtk_object_set_data(GTK_OBJECT(widget), "mycppobject", this); // callback: static void callback(GtkWidget *w) { MyCpp *obj = (MyCpp*)gtk_object_get_data(GTK_OBJECT(w), "mycppobject"); obj->DoIt(); } -- -- Tero Pulkkinen From skip@real-time.com Thu Jun 14 12:16:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 9270B2E54B for ; Thu, 14 Jun 2001 12:16:20 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5EGGDS00667; Thu, 14 Jun 2001 11:16:13 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15144.58187.954945.827693@beluga.mojam.com> Date: Thu, 14 Jun 2001 11:16:11 -0500 To: gtk-list@gnome.org Subject: version of libtool? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I notice that a couple gtk-related packages (gtk and pango) now require libtool 1.4. Others (atk 0.1 and glib) use their own versions. Will this create problems? How soon with those packages that install their own dump them in favor of libtool 1.4? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From otaylor@redhat.com Thu Jun 14 12:32:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0200D2DEB8 for ; Thu, 14 Jun 2001 12:32:18 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id A2144242313; Thu, 14 Jun 2001 12:32:17 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: version of libtool? References: <15144.58187.954945.827693@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 12:32:17 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 11:16:11 -0500" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I notice that a couple gtk-related packages (gtk and pango) now require > libtool 1.4. Others (atk 0.1 and glib) use their own versions. Will this > create problems? How soon with those packages that install their own dump > them in favor of libtool 1.4? Everything requires libtool 1.4 now. I'm not sure why you don't see this as being the case. Regards, Owen From skip@real-time.com Thu Jun 14 12:40:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 3E1AC2E645 for ; Thu, 14 Jun 2001 12:40:39 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5EGeVj23959; Thu, 14 Jun 2001 11:40:31 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15144.59647.117922.380294@beluga.mojam.com> Date: Thu, 14 Jun 2001 11:40:31 -0500 To: Owen Taylor Cc: gtk-list@gnome.org Subject: Re: version of libtool? In-Reply-To: References: <15144.58187.954945.827693@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen> Everything requires libtool 1.4 now. I'm not sure why you don't Owen> see this as being the case. glib's configure didn't seem to complain. No matter. I zapped the libtool rpm and installed libtool 1.4. FYI, it appears "make distclean" doesn't delete the various libtool-related symlinks the build process puts in the build directory or the various generated Makefile.in files. Is there some more brutal make target I should be using to get back to ground zero build-wise? Skip From otaylor@redhat.com Thu Jun 14 14:06:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EA63F2CEDC for ; Thu, 14 Jun 2001 14:06:44 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 9AF87242313; Thu, 14 Jun 2001 14:06:44 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: version of libtool? References: <15144.58187.954945.827693@beluga.mojam.com> <15144.59647.117922.380294@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 14:06:44 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 11:40:31 -0500" Message-ID: Lines: 29 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > Owen> Everything requires libtool 1.4 now. I'm not sure why you don't > Owen> see this as being the case. > > glib's configure didn't seem to complain. No matter. I zapped the libtool > rpm and installed libtool 1.4. If you are installing from CVS, you should always run autogen.sh every time you update. autogen.sh has the checks and complaints. If you are installing from tarballs, the version of libtool you have installed shouldn't matter. > FYI, it appears "make distclean" doesn't delete the various libtool-related > symlinks the build process puts in the build directory or the various > generated Makefile.in files. Is there some more brutal make target I should > be using to get back to ground zero build-wise? 'make maintainer-clear', though most of the time, the GTK+ developers would just blow away their checked out copy and get a fresh one from CVS if things got that screwed up. So it's not really tested, and problems may be revealed if you run it. Regards, Owen From dneary@eircom.net Thu Jun 14 14:07:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from brockman.tinet.ie (mail1.tinet.ie [159.134.237.20]) by mail.gnome.org (Postfix) with ESMTP id 702C92E6B3 for ; Thu, 14 Jun 2001 14:07:49 -0400 (EDT) Received: from p2.as2.prp.dublin.eircom.net ([159.134.170.2] helo=localhost.localdomain) by brockman.tinet.ie with esmtp (Exim 2.05 #23) id 15AbX2-0003A8-00; Thu, 14 Jun 2001 19:07:48 +0100 Received: (from dave@localhost) by localhost.localdomain (8.9.3/8.9.3) id WAA01143; Wed, 13 Jun 2001 22:53:50 +0100 Date: Wed, 13 Jun 2001 22:53:50 +0100 From: Dave Neary To: Roberto Cc: gtk-list@gnome.org Subject: Re: The size of a widget. Message-ID: <20010613225350.A944@eircom.net> References: <3B27356F.4070608@libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B27356F.4070608@libero.it>; from Roberto@libero.it on Wed, Jun 13, 2001 at 11:42:07AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Jun 13, 2001 at 11:42:07AM +0200, Roberto wrote: > How can I know the size of a widget? > Have you a little little example? There are two answers to this - he size, in memory, of a widget is given by sizeof(GtkWidget), and the dimensions of a widget are available in GtkWidget.allocation.(width|height). Cheers, Dave. -- .------------------------------. / David Neary, \ | E-Mail dneary@eircom.net | \ Phone +353-1-872-0654 / `------------------------------' From sarregui@cicese.mx Thu Jun 14 14:55:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 766392DF38 for ; Thu, 14 Jun 2001 14:55:13 -0400 (EDT) Received: from sismo.cicese.mx (sismo.cicese.mx [158.97.28.56]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f5EItBf21271 for ; Thu, 14 Jun 2001 11:55:11 -0700 (PDT) Received: from cicese.mx (pc-resnor.cicese.mx [158.97.30.133]) by sismo.cicese.mx (8.9.3+Sun/8.9.1) with ESMTP id LAA14256 for ; Thu, 14 Jun 2001 11:55:10 -0700 (PDT) Message-ID: <3B290901.53E9B9AE@cicese.mx> Date: Thu, 14 Jun 2001 11:57:05 -0700 From: Sergio Arregui Ojeda X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.18-rtl i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-List Subject: Realtime plot 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello. i'm new to this list and my question is this: i have to develop a system that has to plot data that is acquired trhough the serial port, i have done most of this part using the realtime plot demo that comes with extragtk, but i have a problem because it's a lot of data and my machine gets very busy while plotting, i think that this is 'cause the data does not get released, instead it keeps it in memory, and i want to know if theres is a way that this data can be freed (or deallocated) so this way it speed up things. I also have made another application that plots data in realtime that comes faster, and i have a problem when i try to plot more than one station (obviously the data comes from different station) because of the same problem. i'm new to programming in gtk, and this are the very first applications that i have made, so please anyone can help me? thank you -- Sergio Arregui Ojeda Departamento de Sismologia CICESE Tel (6) 174 50 50 ext 26524 From lestat.lioncourt@innocent.com Thu Jun 14 16:03:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-1-81.abo.wanadoo.fr [193.251.41.81]) by mail.gnome.org (Postfix) with ESMTP id DE3472CE82 for ; Thu, 14 Jun 2001 16:03:29 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 92BB1C0DE; Thu, 14 Jun 2001 22:03:31 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Thu, 14 Jun 2001 20:03:31 +0000 From: "David Goncalves" To: Cc: Subject: Re: glibconfig not find MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010614200331.92BB1C0DE@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h > > please inform me Just try to find the file 'glibconfig.h' in your disk and copy it to '/usr/include' From otaylor@redhat.com Thu Jun 14 16:16:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 412E82DF37 for ; Thu, 14 Jun 2001 16:16:44 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id DC3E5242313; Thu, 14 Jun 2001 16:16:43 -0400 (EDT) To: "David Goncalves" Cc: , Subject: Re: glibconfig not find References: <20010614200331.92BB1C0DE@transylvania> From: Owen Taylor Date: 14 Jun 2001 16:16:43 -0400 In-Reply-To: "David Goncalves"'s message of "Thu, 14 Jun 2001 20:03:31 +0000" Message-ID: Lines: 22 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David Goncalves" writes: > > please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message > > > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h > > > > please inform me > > Just try to find the file 'glibconfig.h' in your disk and copy it > to '/usr/include' Don't do this. *Please* What will happen, is that when you upgrade your GLib the old glibconfig will be left behind, and GLib will never work properly again. Use the glib-config script, as described in the FAQ. Regards, Owen From hp@redhat.com Thu Jun 14 16:17:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 511CB2E59F; Thu, 14 Jun 2001 16:17:23 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5EKHKc08634; Thu, 14 Jun 2001 16:17:20 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: gnome-announce-list@gnome.org, gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: New release of GTK+ libraries (1.3.6) From: Havoc Pennington Date: 14 Jun 2001 16:17:20 -0400 Message-ID: Lines: 171 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A new release of the development versions of GTK+ and associated libraries (GLib, Pango, Atk) is available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ The JPEG/PNG/TIFF libraries and pkg-config 0.7 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.7 version you need to build GTK 1.3.6) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://clisp.cons.org/~haible/packages-libiconv.html New all-in-one tarball ===== This release has an experimental all-in-one-tarball feature. The gtk+-all-1.3.6.tar.gz file contains all four GTK+ libraries (GLib, Pango, Atk, GTK+) and can be compiled with a single "configure; make; make install" sequence. Library Descriptions ===== GLib 1.3.6 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. http://www.gtk.org Pango 0.17 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. http://www.pango.org Atk 0.1 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. http://developer.gnome.org/projects/gap/ GTK+ 1.3.6 GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. http://www.gtk.org Notes ===== This release is meant for: * Those interested in the development of GTK+. * People planning to port to the upcoming GTK+-2.0 version of GTK+. Note: the API is mostly frozen at this point. Major API changes beyond the remaining open '2.0 API freeze' bugs in bugzilla are unlikely to occur before GTK+-2.0 is released. This is a an unstable preview release and should not be used in production. Only minimal testing has been done, and we expect that significant bugs and portability problems remain at this point. 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. 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 Source and binary packages of these libraries build against Red Hat 7.1 can be found at: ftp://ftp.gtk.org/pub/gtk/v1.3/binary/RedHat-7.1 The source RPMS can most likely be rebuilt and installed on other RPM-based Linux distributions. Overview of Changes in GLib 1.3.6 ================================= * Threads have a "return value" from g_thread_join * Removed ability to adjust thread stack size * Prefix warnings with progname/PID by default, change toggle for this to be an env variable G_MESSAGES_PREFIXED not a compile-time option * GMarkup speedups * GDate const, convenience fixups * Include test cases that headers are compilable by C++ compiler * Add ability to spawn processes with argv[0] != executable path. * g_strstr_len, g_strrstr, g_strrstr_len * Add length argument to g_utf8_strchr and g_utf8_strrchr. * Misc bug fixes Overview of Changes in Pango 0.17 ================================= * Build/bug fixes * Cursor motion is now by graphemes (logical editing units) rather than by characters * Optionally support jumping cursor instead of split cursor Overview of Changes in Atk 0.2 ================================= * Some API tweaks Overview of Changes in GTK+ 1.3.6 ================================= * Properly renders strikethrough text * win32 fixes * Added "scale" property to GtkTextTag and GtkCellRendererText to do relative font scaling * Added "format_value" signal to GtkScale to reformat value text * framebuffer fixes * Property support added to lots of widgets * Many GtkTreeView new features and API/implementation fixes * Lots of new_with_mnemonic() convenience functions * Change GtkImageMenuItem API to be more consistent/useful * Added lots of new stock items/icons * Rewrote GtkRange/GtkScale/GtkScrollbar, includes support for enabling/disabling extra scrollbar stepper arrows in gtkrc so NeXT themes won't need broken hacks * Convenience API for GtkRange similar to the one added to GtkSpinButton a while back * Make menubar/toolbar work properly with xthickness/ythickness of 1 or 0, and move some attributes from program settings to user settings. Allows nice 1-pixel-bevel themes. * Moved ::focus virtual function from GtkContainer to GtkWidget * Plenty of bug fixes From rsteinke@w-link.net Thu Jun 14 17:08:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 18B852DC1E for ; Thu, 14 Jun 2001 17:08:25 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15AePv-0001QX-00 for ; Thu, 14 Jun 2001 14:12:39 -0700 Date: Thu, 14 Jun 2001 14:12:39 -0700 To: gtk-list@gnome.org Subject: alpha channel in GdkPixbuf Message-ID: <3B2928C7.nail4891KSBC3@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to extract the alpha channel information from a GdkPixbuf (for example, writing it to an array or a grayscale pixmap)? Ron Steinke From rsteinke@w-link.net Thu Jun 14 17:10:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 4C7992E702 for ; Thu, 14 Jun 2001 17:10:22 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15AeRo-0001R1-00 for ; Thu, 14 Jun 2001 14:14:36 -0700 Date: Thu, 14 Jun 2001 14:14:36 -0700 To: gtk-list@gnome.org Subject: [set][get]_property Message-ID: <3B29293C.nail48P1VFB2V@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From examining the code, it looks like the [set,get]_property functions of GObject (and its descendents) only handle the properties of the object itself and not those of its ancestors. Is this true, and if so is there a reason for this? Ron Steinke From skip@real-time.com Thu Jun 14 17:21:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id B86CB2CC91 for ; Thu, 14 Jun 2001 17:21:06 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5ELKH629842; Thu, 14 Jun 2001 16:20:17 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15145.10895.215061.466398@beluga.mojam.com> Date: Thu, 14 Jun 2001 16:20:15 -0500 To: gtk-list@gnome.org Subject: trouble with pango build - incorrect -I flags X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib and atk built and installed okay, but after a successful autogen.sh in the pango directory "make CFLAGS=-g" says: make all-recursive make[1]: Entering directory `/home/skip/src/gtk/pango.cvs' Making all in pango make[2]: Entering directory `/home/skip/src/gtk/pango.cvs/pango' make all-recursive make[3]: Entering directory `/home/skip/src/gtk/pango.cvs/pango' Making all in mini-fribidi make[4]: Entering directory `/home/skip/src/gtk/pango.cvs/pango/mini-fribidi' source='fribidi_get_type.c' object='fribidi_get_type.lo' libtool=yes \ depfile='.deps/fribidi_get_type.Plo' tmpdepfile='.deps/fribidi_get_type.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I../.. -g -c -o fribidi_get_type.lo `test -f fribidi_get_type.c || echo './'`fribidi_get_type.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I../.. -g -c fribidi_get_type.c -MT fribidi_get_type.lo -MF .deps/fribidi_get_type.TPlo -MD -MP -fPIC -DPIC -o fribidi_get_type.o fribidi_get_type.c:26:18: glib.h: No such file or directory In file included from fribidi_get_type.c:27: ../../pango/pango-utils.h:23:18: glib.h: No such file or directory In file included from ../../pango/pango-font.h:29, from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-coverage.h:25:18: glib.h: No such file or directory In file included from ../../pango/pango-font.h:30, from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-types.h:25:18: glib.h: No such file or directory In file included from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-font.h:32:25: glib-object.h: No such file or directory In file included from fribidi_get_type.c:28: fribidi_types.h:27:18: glib.h: No such file or directory make[4]: *** [fribidi_get_type.lo] Error 1 make[4]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango/mini-fribidi' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/skip/src/gtk/pango.cvs' make: *** [all] Error 2 Is the pango build not using pkg-config? I just installed 0.7 and it seems to do the right things: beluga:skip% type -a pkg-config pkg-config is /usr/local/bin/pkg-config beluga:skip% pkg-config --version 0.7.0 beluga:skip% pkg-config --cflags glib-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include beluga:skip% pkg-config --cflags pango -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include The -I flags on the compile line don't look even remotely correct. There's no mention at all of /usr/local/include/glib-2.0. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From otaylor@redhat.com Thu Jun 14 17:31:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 447672BCB6 for ; Thu, 14 Jun 2001 17:31:29 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EC2A92422AD; Thu, 14 Jun 2001 17:31:28 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags References: <15145.10895.215061.466398@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 17:31:28 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 16:20:15 -0500" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib > and atk built and installed okay, but after a successful autogen.sh in the > pango directory "make CFLAGS=-g" says: ^^^^^^^^^^^^^^ > ../../pango/pango-utils.h:23:18: glib.h: No such file or directory This is your problem. 'CFLAGS="-g" ./autogen.sh' would be better, if you actually want to disable optimization... "-g" is in the default cflags, so the effect of this is to remove -O2. Setting CFLAGS while compiling will have undetermined effects, and it happens to include the glib include flags. It's not completely intentional to have things set up this way - it could probably be improved. But I don't necessarily expect setting CFLAGS at 'make' time to work. Regards, Owen From otaylor@redhat.com Thu Jun 14 17:33:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0BF992E705 for ; Thu, 14 Jun 2001 17:33:11 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id BE52B2422AD; Thu, 14 Jun 2001 17:33:10 -0400 (EDT) To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: [set][get]_property References: <3B29293C.nail48P1VFB2V@yggdrasil> From: Owen Taylor Date: 14 Jun 2001 17:33:10 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:14:36 -0700" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > >From examining the code, it looks like the [set,get]_property > functions of GObject (and its descendents) only handle the > properties of the object itself and not those of its > ancestors. Is this true, and if so is there a reason for this? Well, it would be a real pain if the code for gtkcheckbutton.c had to duplicate all the property setting/getting code for ToggleButton, Button, Widget, GtkObject, GObject.... In fact, many of those property setting calls probably are using private parts of the widget implementation which are not available to external code. I'm not sure if I'm quite answering your question, however... Regards, Owen From otaylor@redhat.com Thu Jun 14 17:35:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 417302E705 for ; Thu, 14 Jun 2001 17:35:22 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EE0152422AD; Thu, 14 Jun 2001 17:35:21 -0400 (EDT) To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: alpha channel in GdkPixbuf References: <3B2928C7.nail4891KSBC3@yggdrasil> From: Owen Taylor Date: 14 Jun 2001 17:35:21 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:12:39 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Is there any way to extract the alpha channel information from > a GdkPixbuf (for example, writing it to an array or a grayscale > pixmap)? The bytes of a GdkPixbuf are available as: guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf); The alpha value at x,y is: pixels[rowstride * y + x * 4 + 3]; Regards, Owen From hp@redhat.com Thu Jun 14 17:43:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5EC182E711 for ; Thu, 14 Jun 2001 17:43:54 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELhnF19819; Thu, 14 Jun 2001 17:43:49 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: alpha channel in GdkPixbuf References: <3B2928C7.nail4891KSBC3@yggdrasil> From: Havoc Pennington Date: 14 Jun 2001 17:43:49 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:12:39 -0700" Message-ID: Lines: 37 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Is there any way to extract the alpha channel information from > a GdkPixbuf (for example, writing it to an array or a grayscale > pixmap)? > You just iterate over the pixels in the pixbuf. They are arranged like so for a pixbuf with alpha: RGBA RGBA RGBA RGBA RGBA RGBA RGBA PPP | rowstride | | width | like so for one without: RGB RGB RGB RGB RGB RGB RGB RGB RGB PP | rowstride | | width | Each letter is a byte, R = red G = green B = blue A = alpha channel P = padding (rowstride - width bytes of padding at the end of each line, it's possible that rowstride == width if so then no pad bytes are present) So the red channel at row, column is something like: pixels[(row * rowstride) + column * bytes_per_pixel] Where a pixel is an RGB or RGBA group. Havoc From hp@redhat.com Thu Jun 14 17:45:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 43CBB2E71C for ; Thu, 14 Jun 2001 17:45:30 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELjPs19822; Thu, 14 Jun 2001 17:45:25 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: [set][get]_property References: <3B29293C.nail48P1VFB2V@yggdrasil> From: Havoc Pennington Date: 14 Jun 2001 17:45:25 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:14:36 -0700" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > >From examining the code, it looks like the [set,get]_property > functions of GObject (and its descendents) only handle the > properties of the object itself and not those of its > ancestors. Is this true, and if so is there a reason for this? > Sure, to avoid cut-and-paste - every widget subclass shouldn't have to handle the properties of GtkWidget, and chaining up would be kind of expensive since all the subclass set_property would do nothing. So set/get property aren't virtual functions in the normal sense. Havoc From hp@redhat.com Thu Jun 14 17:47:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 01B6C2E673 for ; Thu, 14 Jun 2001 17:47:34 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELlVc20905; Thu, 14 Jun 2001 17:47:31 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags References: <15145.10895.215061.466398@beluga.mojam.com> From: Havoc Pennington Date: 14 Jun 2001 17:47:31 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 16:20:15 -0500" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib > and atk built and installed okay, but after a successful autogen.sh in the > pango directory "make CFLAGS=-g" says: The default CFLAGS are: CFLAGS = -g -O2 -Wall -I/unst/include/glib-2.0 -I/unst/lib/glib-2.0/include You changed them to "-g" So don't do that then ;-) Havoc From king@eiffel.com Thu Jun 14 20:29:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 094682BBBA for ; Thu, 14 Jun 2001 20:29:51 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15AhUi-0001a5-00 for gtk-list@gnome.org; Thu, 14 Jun 2001 17:29:49 -0700 Message-ID: <18e601c0f533$5cacce60$750a000a@naples> From: "Ian King" To: Subject: Finding gtkwidget from GdkWindow Date: Thu, 14 Jun 2001 17:37:31 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I retrieve the gdkwindow that the mouse pointer is currently over (gdk_window_at_pointer), what is the easiest way to find the relative gtkWidget for which this gdkwindow is associated with. Thanks for your time Ian King From hp@redhat.com Thu Jun 14 21:20:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2DB772BD19 for ; Thu, 14 Jun 2001 21:20:56 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5F1Kod12711; Thu, 14 Jun 2001 21:20:50 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Finding gtkwidget from GdkWindow References: <18e601c0f533$5cacce60$750a000a@naples> From: Havoc Pennington Date: 14 Jun 2001 21:20:50 -0400 In-Reply-To: "Ian King"'s message of "Thu, 14 Jun 2001 17:37:31 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > If I retrieve the gdkwindow that the mouse pointer is currently over > (gdk_window_at_pointer), what is the easiest way to find the relative > gtkWidget for which this gdkwindow is associated with. > It's gdk_window_get_user_data (window). The user data on a window is always the widget it's associated with. If you're trying to get the widget someone clicked, remember that not all widgets have windows. Havoc From pavon@gallup.net Thu Jun 14 21:47:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ns.gallup.net (ns.gallup.net [207.188.139.6]) by mail.gnome.org (Postfix) with ESMTP id A7C372E212 for ; Thu, 14 Jun 2001 21:47:35 -0400 (EDT) Received: from localhost (pavon@localhost) by ns.gallup.net (8.8.7/8.8.7) with ESMTP id TAA13434 for ; Thu, 14 Jun 2001 19:47:34 -0600 Date: Thu, 14 Jun 2001 19:46:26 -0600 (MDT) From: "D. Jackson Peacock" To: gtk-list@gnome.org Subject: New Container Widget RFC 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am writing a new container widget that arranges it's widgets into columns, starting a new column when the last one fills up, simular to the small icon view in windows explorer. So far I have a working prototype and am ready to take what I've learned from it to make a more mature widget. Before I invest my time into this, though I have a few questions. First, does anyone know of an existing widget that does what I want? There's no point duplicating work here. I remember seeing a package of additional gtk widgets once but can't seem to find it now. Second, what interface do you feel would be best suited for this widget. I was originally thinking to have it extend off of the GtkBox class, but am also thinking that CList (or the new TreeModel interface in GTK+ 2.0) might also be a good interface to work off of. I haven't really looked into the TreeModel much yet, just discovered it today. Any opinions on this from people that know better than me? Also if you have any other comments concerning this, or want more infomation please let know. Thank you, jackson Daniel Jackson Peacock [pavon@jabber.org] Socorro, NM From skip@real-time.com Thu Jun 14 23:20:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id DA7BE2D61F for ; Thu, 14 Jun 2001 23:20:38 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5F3JB931656; Thu, 14 Jun 2001 22:19:11 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15145.32430.419036.281587@beluga.mojam.com> Date: Thu, 14 Jun 2001 22:19:10 -0500 To: Owen Taylor Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags In-Reply-To: References: <15145.10895.215061.466398@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen> Setting CFLAGS while compiling will have undetermined effects, and Owen> it happens to include the glib include flags. It's not completely Owen> intentional to have things set up this way - it could probably be Owen> improved. But I don't necessarily expect setting CFLAGS at 'make' Owen> time to work. Ah, okay. I always thought -I flags were supposed to go in CPPFLAGS. Skip From needles@industrialmusic.com Thu Jun 14 23:31:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from industrialmusic.com (unknown [216.101.163.50]) by mail.gnome.org (Postfix) with ESMTP id 5376F2D2E5 for ; Thu, 14 Jun 2001 23:31:27 -0400 (EDT) Received: (from needles@localhost) by industrialmusic.com (8.9.3/8.9.3) id UAA00498 for gtk-list@gnome.org; Thu, 14 Jun 2001 20:59:02 -0700 From: Kerry Message-Id: <200106150359.UAA00498@industrialmusic.com> Subject: Gtk 1.3.x text widget question To: gtk-list@gnome.org Date: Thu, 14 Jun 2001 20:59:02 -0700 (PDT) X-Mailer: ELM [version 2.5 PL3] 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've created a text view widget then filled it with text. I'm trying to figure out on what line the user clicked. I connected the widget to the "button-press-event" signal which gave the callback like I wanted. I just can't figure out what line the user clicked on. If I could get an iterator, it looks like I could call gtk_text_iter_get_line() function. I tried to call gtk_text_buffer_get_insert(), but that always gave me the same pointer no matter where I clicked. Can anyone help? Regards, Kerry From hp@redhat.com Fri Jun 15 00:16:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8708D2BE1F for ; Fri, 15 Jun 2001 00:16:51 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5F4G7s12803; Fri, 15 Jun 2001 00:16:07 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Kerry Cc: gtk-list@gnome.org Subject: Re: Gtk 1.3.x text widget question References: <200106150359.UAA00498@industrialmusic.com> From: Havoc Pennington Date: 15 Jun 2001 00:16:07 -0400 In-Reply-To: Kerry's message of "Thu, 14 Jun 2001 20:59:02 -0700 (PDT)" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Kerry writes: > > I've created a text view widget then filled it with text. I'm trying to > figure out on what line the user clicked. I connected the widget to the > "button-press-event" signal which gave the callback like I wanted. > I just can't figure out what line the user clicked on. If I could get > an iterator, it looks like I could call gtk_text_iter_get_line() function. > I tried to call gtk_text_buffer_get_insert(), but that always gave me > the same pointer no matter where I clicked. Can anyone help? > get_insert() gets the cursor (insertion point) which won't have moved when your button_press_event handler is called. If you want to track where the cursor is, use the mark_set signal on GtkTextBuffer and check whether the mark which was set is equal to gtk_text_buffer_get_insert(). (There are marks other than the insertion point.) If you don't care about the cursor, you want gtk_text_view_get_iter_at_location() to find out what text position the user clicked. Havoc From neil@fnxweb.com Fri Jun 15 04:02:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntsc0019.int.rdel.co.uk (banana.rdel.co.uk [194.128.85.8]) by mail.gnome.org (Postfix) with ESMTP id 7B47F2BAAA for ; Fri, 15 Jun 2001 04:02:53 -0400 (EDT) Received: from mail.uk.thalesgroup.com (lisc0021.int.rdel.co.uk) by ntsc0019.int.rdel.co.uk (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Fri, 15 Jun 2001 09:04:14 +0100 Received: from mail.uk.thalesgroup.com (localhost.localdomain [127.0.0.1]) by mail.uk.thalesgroup.com (8.11.0/8.11.0) with ESMTP id f5F82n004520 for ; Fri, 15 Jun 2001 09:02:49 +0100 Received: from ntscxch1.int.rdel.co.uk (ntscxch1.int.rdel.co.uk [172.21.100.149]) by mail.uk.thalesgroup.com (8.11.0/8.11.0) with ESMTP id f5F82m104509; Fri, 15 Jun 2001 09:02:48 +0100 Received: from fnxweb.com (sswc046.int.rdel.co.uk [130.141.44.135]) by ntscxch1.int.rdel.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id MC5L8LWZ; Fri, 15 Jun 2001 09:02:47 +0100 Message-ID: <3B29C125.EF386FA0@fnxweb.com> Date: Fri, 15 Jun 2001 09:02:45 +0100 From: Neil Bird Reply-To: GTK Mailing List Organization: Thales Sensors (but only on behalf of myself) X-Mailer: Mozilla 4.73 [en] (X11; U; SunOS 5.6 sun4m) X-Accept-Language: en MIME-Version: 1.0 To: "D. Jackson Peacock" Cc: GTK Mailing List Subject: Re: New Container Widget RFC 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "D. Jackson Peacock" wrote: > First, does anyone know of an existing widget that does what I want? > There's no point duplicating work here. I remember seeing a package of > additional gtk widgets once but can't seem to find it now. Seems like gtkextra is what you're half-remembering - http://gtkextra.sourceforge.net/. At first glance, it looks like it supplies a Gnome-free GtkIconList replacement for the gnome-icon-list (which is being deprecated?). Probably similar to what you want. Doesn't look like you can change the gravity, but I've not looked very hard. -- =====================- http://www.thalesgroup.com/ -===================== Neil Bird Principal Engineer | work - mailto:neil.bird@uk.thalesgroup.com | $> cd /pub personal - mailto:neil@fnxweb.com | $> more beer From skip@beluga.mojam.com Fri Jun 15 12:18:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 8406C2D31E for ; Fri, 15 Jun 2001 12:18:33 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5FGHWD30711; Fri, 15 Jun 2001 11:17:32 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15146.13593.375326.315166@beluga.mojam.com> Date: Fri, 15 Jun 2001 11:17:29 -0500 To: gtk-list@gnome.org Subject: Problems building cvs version of gtk X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm getting farther. I finally got cvs versions of glib, atk and pango all installed. Now I'm stuck trying to build gtk itself. After first encountering problems, I decided to start from scratch, so I zapped all text files except the CVS stuff and reloaded: find . -type f | egrep -v CVS | xargs rm cvs up . Then, following Owen Taylor's advice, I figured I'd skip the CFLAGS stuff for now: ./autogen.sh make Autogen.sh emitted some peculiar messages: I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. autoheader: error: shell error while sourcing /tmp/ahb0t8pA/traces.sh demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_BEGIN@' demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_END@' tests/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/faq/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/tutorial/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gdk-pixbuf/Makefile.am:94: libpixbufloader_xbm_la_LDFLAGS multiply defined in condition TRUE libpixbufloader_xbm_la_LDFLAGS (User, where = 94) = { TRUE => -version-info 1:0:0 -module } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_FALSE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { TRUE => $(builtin_objs) } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_TRUE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { BUILD_DYNAMIC_MODULES_FALSE TRUE => pixops/libpixops.la TRUE => $(builtin_objs) } automake: gdk-pixbuf/pixops/Makefile.am: Assembler source seen but `ASFLAGS' not defined in `configure.in' gdk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gdk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gtk/Makefile.am: CLEANFILES must be set with `=' before using `+=' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/stock-icons/Makefile.am: CLEANFILES must be set with `=' before using `+=' configure.in:25: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:97: warning: AC_CANONICAL_HOST invoked multiple times configure.in:101: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:158: warning: AC_COMPILE_IFELSE was called before AC_ISC_POSIX Forging ahead, I tried make: which started off fine, but eventually stumbled on some unsubstituted variables: ... make[3]: Entering directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' Making all in pixops make[4]: Entering directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf/pixops' source='pixops.c' object='pixops.lo' libtool=yes \ depfile='.deps/pixops.Plo' tmpdepfile='.deps/pixops.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c -o pixops.lo `test -f pixops.c || echo './'`pixops.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c pixops.c -MT pixops.lo -MF .deps/pixops.TPlo -MD -MP -fPIC -DPIC -o pixops.o pixops.c:827: warning: `scale_line_22_33' defined but not used mv -f pixops.o .libs/pixops.lo gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c pixops.c -MT pixops.lo -MF .deps/pixops.TPlo -MD -MP -o pixops.o >/dev/null 2>&1 mv -f .libs/pixops.lo pixops.lo /bin/sh ../../libtool --mode=compile @AS@ @ASFLAGS@ -c -o have_mmx.lo `test -f have_mmx.S || echo './'`have_mmx.S rm -f .libs/have_mmx.lo @AS@ @ASFLAGS@ -c have_mmx.S -fPIC -DPIC -o have_mmx.o ../../libtool: @AS@: command not found make[4]: *** [have_mmx.lo] Error 1 make[4]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf/pixops' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/skip/src/gtk/gtk+.cvs' make: *** [all] Error 2 My environment is: Linux Mandrake 8.0 gcc 2.96 libtool 1.4 automake 1.4g autoconf 2.50a aclocal 1.4g Any thoughts about the cause of the problem? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From king@eiffel.com Fri Jun 15 13:07:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id B33FF2CF1B for ; Fri, 15 Jun 2001 13:07:45 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15Ax4K-0007nG-00; Fri, 15 Jun 2001 10:07:36 -0700 Message-ID: <19c801c0f5be$c273e360$750a000a@naples> From: "Ian King" To: "Havoc Pennington" Cc: References: <18e601c0f533$5cacce60$750a000a@naples> Subject: Re: Finding gtkwidget from GdkWindow Date: Fri, 15 Jun 2001 10:15:21 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > "Ian King" writes: > > If I retrieve the gdkwindow that the mouse pointer is currently over > > (gdk_window_at_pointer), what is the easiest way to find the relative > > gtkWidget for which this gdkwindow is associated with. > > > > It's gdk_window_get_user_data (window). The user data on a window is > always the widget it's associated with. > In response to this, is there anyway to query the GdkWindow at position (X, Y)? Thanks for your time Ian King From lapenta_jm@yahoo.com Fri Jun 15 13:40:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web4703.mail.yahoo.com (web4703.mail.yahoo.com [216.115.105.203]) by mail.gnome.org (Postfix) with SMTP id AC8D62D554 for ; Fri, 15 Jun 2001 13:40:10 -0400 (EDT) Message-ID: <20010615174010.9772.qmail@web4703.mail.yahoo.com> Received: from [129.55.200.20] by web4703.mail.yahoo.com; Fri, 15 Jun 2001 10:40:10 PDT Date: Fri, 15 Jun 2001 10:40:10 -0700 (PDT) From: Jason LaPenta Subject: timer or idle function ? HOWTO ? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like to use the gtk_idle_add() function, but I'm not sure how to have widgets updated w/in the function. Does anybody have an example I could look at? Also, why does the "clicked" signal get sent when I call gtk_toggle_button_set_active()? Is there some widget or something that will send out signals periodically so I can update the screen ever 1second or so with new data? Thanks jason lapenta_jm@yahoo.com __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From pbd@op.net Fri Jun 15 13:56:49 2001 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 3FECD2BBB2 for ; Fri, 15 Jun 2001 13:56:49 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-08.ppp.op.net [209.152.194.104]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA15559; Fri, 15 Jun 2001 13:56:45 -0400 (EDT) Message-Id: <200106151756.NAA15559@renoir.op.net> To: Jason LaPenta Cc: gtk-list@gnome.org Subject: Re: timer or idle function ? HOWTO ? In-reply-to: Your message of "Fri, 15 Jun 2001 10:40:10 PDT." <20010615174010.9772.qmail@web4703.mail.yahoo.com> Date: Fri, 15 Jun 2001 13:59:01 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I would like to use the gtk_idle_add() function, >but I'm not sure how to have widgets updated w/in >the function. Does anybody have an example I >could look at? you need to pass pointers to widgets, then use them: gint my_idle_function (gpointer arg) { GtkWidget *w = (GtkWidget *) arg; gtk_widget_do_something (w, ...); return (should_be_called_again ? TRUE : FALSE); } >Also, why does the "clicked" signal get sent when >I call gtk_toggle_button_set_active()? because GTK+ is broken like that :) >Is there some widget or something that will send >out signals periodically so I can update the >screen ever 1second or so with new data? gint my_timeout (gpointer arg) { ... do something, perhaps with `arg' ... return (should_be_called_again ? TRUE : FALSE); } gtk_timeout_add (1000, my_timeout, some_argument_pointer); See the GTK+ tutorial for more details, then read the docs at gtk.org. --p From sarregui@cicese.mx Fri Jun 15 14:16:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 8AF472BC8D for ; Fri, 15 Jun 2001 14:16:07 -0400 (EDT) Received: from sismo.cicese.mx (sismo.cicese.mx [158.97.28.56]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f5FIG3f16398 for ; Fri, 15 Jun 2001 11:16:03 -0700 (PDT) Received: from cicese.mx (pc-resnor.cicese.mx [158.97.30.133]) by sismo.cicese.mx (8.9.3+Sun/8.9.1) with ESMTP id LAA17369 for ; Fri, 15 Jun 2001 11:16:02 -0700 (PDT) Message-ID: <3B2A5155.9DAB2A@cicese.mx> Date: Fri, 15 Jun 2001 11:17:57 -0700 From: Sergio Arregui Ojeda X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.18-rtl i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-List Subject: Help! 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: yesterday i posted this, and i still have trouble with this so i'm asking you guys for help i have to develop a system that has to plot data that is acquired trhough the serial port, i have done most of this part using the realtime plot demo that comes with extragtk, but i have a problem because it's a lot of data and my machine gets very busy while plotting, i think that this is 'cause the data does not get released, instead it keeps it in memory, and i want to know if theres is a way that this data can be freed (or deallocated) so this way it speed up things. I also have made another application that plots data in realtime that comes faster, and i have a problem when i try to plot more than one station (obviously the data comes from different station) because of the same problem. i'm new to programming in gtk, and this are the very first applications that i have made, so please anyone can help me?, what i want is a way to speed up the plotting without slowing my machine, and i'm asking for some techinques or ways to accomplish this thank you -- Sergio Arregui Ojeda Departamento de Sismologia CICESE Tel (6) 174 50 50 ext 26524 From Simon.Budig@unix-ag.org Thu Jun 14 13:23:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from harley.unix-ag.uni-siegen.de (harley.unix-ag.uni-siegen.de [141.99.42.44]) by mail.gnome.org (Postfix) with ESMTP id 85ACB2DED7 for ; Thu, 14 Jun 2001 13:23:28 -0400 (EDT) Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id TAA06366 for ; Thu, 14 Jun 2001 19:23:26 +0200 Received: (from simon@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id TAA163158 for gtk-list@gnome.org; Thu, 14 Jun 2001 19:23:26 +0200 Date: Thu, 14 Jun 2001 19:23:26 +0200 From: Simon Budig To: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? Message-ID: <20010614192325.A182508@vmax.unix-ag.uni-siegen.de> References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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 Sun, Jun 10, 2001 at 11:18:08PM -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington (hp@redhat.com) wrote: > Simon Budig writes: > > Is it possible to reduce the size of the GTK Library (we don't have > > unlimited resources) e.g. by removing some unused widgets? > > You can do a custom GTK build and remove a substantial number of the > widgets and some other features (e.g. unused image loaders and > language modules). Static linking will already strip a lot of unused > stuff of course. Static linking currently is not a solution, since we have multiple applications. So - how would I remove widgets from the Build? Simply deleting the files from the Makefile? > > Would you recommend to use GTK+ in it's current state? > > For embedded you should also consider simply using a small version of > X such as the one used for the iPAQ; framebuffer is somewhat smaller > but not hugely so, and its smaller size is achieved at the expense of > multiprocess support. Yeah - we consider this definitely. X11 is not too big and has a lot of advantages (for example generating synthetic events for a virtual keyboard). X11 would even enable to use GTK+ 1.2 so that we would have a rock solid api and the (as Sven mentioned) better GObject performance. > The primary advantage of GTK for embedded devices is that you get the > same GUI API as a full-fledged computer, and of course the > higher-level full-featured nature of that API; GTK will be larger than > something like FLTK, but will also be a good bit more powerful if you > can afford the size and need the GTK features or the similarity to the > non-embedded API. Tradeoffs, tradeoffs. ;-) Yeah - I tried some coding in FLTK yesterday and it is nice and straight- forward. But having only one callback and no signals available is - at least for me - a little bit strange... Bye, Simon -- Simon.Budig@unix-ag.org http://www.home.unix-ag.org/simon/ From frank@tone.jpl.nasa.gov Thu Jun 14 13:44:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from eis-msg-021.jpl.nasa.gov (eis-msg-021.jpl.nasa.gov [137.78.160.201]) by mail.gnome.org (Postfix) with ESMTP id BA0792CEDC for ; Thu, 14 Jun 2001 13:44:56 -0400 (EDT) Received: from tone.jpl.nasa.gov by eis-msg-021.jpl.nasa.gov with ESMTP for gtk-list@gnome.org; Thu, 14 Jun 2001 10:44:37 -0700 Received: from tone.jpl.nasa.gov (zorn [137.79.125.209]) by tone.jpl.nasa.gov (8.9.3+Sun/8.9.1) with ESMTP id KAA13912 for ; Thu, 14 Jun 2001 10:41:34 -0700 (PDT) Message-Id: <3B28F5E9.8F762326@tone.jpl.nasa.gov> Date: Thu, 14 Jun 2001 10:35:37 -0700 From: Frank Hartman X-Mailer: Mozilla 4.76C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: OpenGL and Gtk References: <20010614160208.668A82E648@mail.gnome.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am new to this list and gtk+. So far I haven't been able to find any info about OpenGL and Gtk+. I have a sample source code that includes gtkgl/gtkglarea.h and links with -lgtkgl but I don't have this and I'm not sure where to get it. Could someone give some info about opengl w/gtk? Thanks, Frank Hartman JPL/MER From hp@redhat.com Fri Jun 15 15:16:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id ECACD2C8B5 for ; Fri, 15 Jun 2001 15:16:48 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5FJGf028437; Fri, 15 Jun 2001 15:16:41 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> <20010614192325.A182508@vmax.unix-ag.uni-siegen.de> From: Havoc Pennington Date: 15 Jun 2001 15:16:41 -0400 In-Reply-To: Simon Budig's message of "Thu, 14 Jun 2001 19:23:26 +0200" Message-ID: Lines: 11 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Simon Budig writes: > Static linking currently is not a solution, since we have multiple > applications. So - how would I remove widgets from the Build? > Simply deleting the files from the Makefile? For many widgets that should work, yes. We'd kind of like to have a nicer way (such as a config file with a list of widgets to build) but haven't implemented it. Havoc From lapenta_jm@yahoo.com Fri Jun 15 15:19:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web4705.mail.yahoo.com (web4705.mail.yahoo.com [216.115.105.205]) by mail.gnome.org (Postfix) with SMTP id 1C6042E7B7 for ; Fri, 15 Jun 2001 15:19:00 -0400 (EDT) Message-ID: <20010615191859.4012.qmail@web4705.mail.yahoo.com> Received: from [129.55.200.20] by web4705.mail.yahoo.com; Fri, 15 Jun 2001 12:18:59 PDT Date: Fri, 15 Jun 2001 12:18:59 -0700 (PDT) From: Jason LaPenta Subject: dev widgets location : and scope widget To: gtk-list@gnome.org In-Reply-To: <200106151756.NAA15559@renoir.op.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like a scope widget, a graph that takes in an arbitrary stream of data and displays it over time. Is anybody working on one that I could add to? I looked at GtkCurve.. and what I want is too diferent I think to subclass from. Is there a place where people freely distribute widgets they are working on? Jason __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From jlof@mail.student.oulu.fi Fri Jun 15 17:05:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from oulu.fi (ousrvr.oulu.fi [130.231.240.1]) by mail.gnome.org (Postfix) with ESMTP id 6201B2BAE1 for ; Fri, 15 Jun 2001 17:05:01 -0400 (EDT) Received: from paju.oulu.fi (root@paju.oulu.fi [130.231.240.20]) by oulu.fi (8.8.5/8.8.5) with ESMTP id AAA28960; Sat, 16 Jun 2001 00:04:59 +0300 (EET DST) Received: from paju.oulu.fi (jlof@paju.oulu.fi [130.231.240.20]) by paju.oulu.fi (8.8.5/8.8.5) with ESMTP id AAA34415683; Sat, 16 Jun 2001 00:04:59 +0300 (EDT) Date: Sat, 16 Jun 2001 00:04:59 +0300 From: Janne Lof X-Sender: jlof@paju.oulu.fi To: Frank Hartman Cc: gtk-list@gnome.org Subject: Re: OpenGL and Gtk In-Reply-To: <3B28F5E9.8F762326@tone.jpl.nasa.gov> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On Thu, 14 Jun 2001, Frank Hartman wrote: > Hi, > > I am new to this list and gtk+. So far I haven't been able to find any > info about OpenGL and Gtk+. I have a sample source code that includes > gtkgl/gtkglarea.h and links with -lgtkgl but I don't have this and I'm > not sure where to get it. Could someone give some info about opengl > w/gtk? > Try http://www.student.oulu.fi/~jlof/gtkglarea/ > Thanks, > Frank Hartman > JPL/MER > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Janne Löf mail : jlof@mail.student.oulu.fi www : http://www.student.oulu.fi/~jlof/ From rwalden@tripos.com Fri Jun 15 17:09:04 2001 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 4C31B2D305 for ; Fri, 15 Jun 2001 17:09:03 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA23200 for ; Fri, 15 Jun 2001 16:09:03 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma021474; Fri, 15 Jun 01 15:56:22 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA71846 for ; Fri, 15 Jun 2001 15:56:20 -0500 (CDT) Message-ID: <3B2A7673.8E7BCE65@tripos.com> Date: Fri, 15 Jun 2001 15:56:19 -0500 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@gnome.org Subject: Minimize and Restore Windows References: <20010615191859.4012.qmail@web4705.mail.yahoo.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List, [Sorry, but I'm asking this again...] Does anyone know if GTK 1.2 has functionality to raise and lower (minimize) windows on the desktop programmatically? Thanks -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Jun 15 18:23:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1407F2CED9 for ; Fri, 15 Jun 2001 18:23:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5FMN2L12120; Fri, 15 Jun 2001 18:23:02 -0400 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: Minimize and Restore Windows References: <20010615191859.4012.qmail@web4705.mail.yahoo.com> <3B2A7673.8E7BCE65@tripos.com> From: Havoc Pennington Date: 15 Jun 2001 18:23:02 -0400 In-Reply-To: Ralph Walden's message of "Fri, 15 Jun 2001 15:56:19 -0500" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > > [Sorry, but I'm asking this again...] > > Does anyone know if GTK 1.2 has functionality to > raise and lower (minimize) windows on the desktop > programmatically? > To deiconify, call gdk_window_show (window_widget->window), to iconify you basically call XIconifyWindow(GDK_WINDOW_XID(window_widget->window)) I put the exact code in a mail to this list a few weeks or months ago, to raise above other windows gdk_window_raise (window_widget->window). Havoc From kyi111@dreamwiz.com Sat Jun 16 02:28:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx-s0.dreamwiz.com (mx-s0.dreamwiz.com [211.174.54.135]) by mail.gnome.org (Postfix) with ESMTP id 2DDE22CDD0 for ; Sat, 16 Jun 2001 02:28:07 -0400 (EDT) Received: from mail11.dreamwiz.com (mail11.dreamwiz.com [211.174.54.31]) by mx-s0.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5G6S0Y55136 for ; Sat, 16 Jun 2001 15:28:01 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by mail11.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5G6Rqc14899 for ; Sat, 16 Jun 2001 15:27:52 +0900 (KST) Message-Id: <200106160627.f5G6Rqc14899@mail11.dreamwiz.com> Date: Sat, 16 Jun 2001 15:27:52 +0900 (KST) From: =?EUC-KR?B?sei/68DPKHlvbmcgaWwua2ltKQ==?= Subject: I would like to change email address To: gtk-list@gnome.org Organization: X-Sender-IP: 211.219.11.9 X-Sender-ID: kyi111@dreamwiz.com X-Priority: 3 X-Mailer: DreamWiz Web-Mailer V1.31 X-DreamWiz-Data: receive_check=1;save=mail11.dreamwiz.com:kyi111:Sent:216; MIME-Version: 1.0 Content-Type: MULTIPART/ALTERNATIVE; BOUNDARY="0-708280116-992672872=:14879" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --0-708280116-992672872=:14879 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII I want to change e-mail address kyi111@dreamwiz.com --> kyi111@alphatelecom.co.kr Please help me ------------------------------------------------- DreamWiz Free Mail @ http://www.dreamwiz.com/ DreamSearch Click the world!!! http://search.dreamwiz.com/ --0-708280116-992672872=:14879 Content-Type: TEXT/HTML; CHARSET=US-ASCII
I want to change e-mail address

kyi111@dreamwiz.com --> kyi111@alphatelecom.co.kr

Please help me




Your life on the net

DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!!  http://search.dreamwiz.com/


--0-708280116-992672872=:14879-- From mitch@dhcpassigned.uk.sun.com Sat Jun 16 07:02:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prserv.net (out1.prserv.net [32.97.166.31]) by mail.gnome.org (Postfix) with ESMTP id 630F92D92A for ; Sat, 16 Jun 2001 07:02:55 -0400 (EDT) Received: from dhcpassigned.uk.sun.com (slip139-92-214-110.por.uk.prserv.net[139.92.214.110]) by prserv.net (out1) with ESMTP id <2001061611025320105l5i48e>; Sat, 16 Jun 2001 11:02:53 +0000 Received: (from mitch@localhost) by dhcpassigned.uk.sun.com (8.11.1/8.11.1) id f5GB4Fm03855; Sat, 16 Jun 2001 12:04:15 +0100 Date: Sat, 16 Jun 2001 12:04:15 +0100 (BST) From: X-X-Sender: Reply-To: To: Subject: Help with popup/popdown with pointer grab. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm writing a small app that should automatically deiconify a window and warp the pointer to its location for text input. However everytime i try and grab the pointer it fails ! If i manually deiconify thru my window manager then the grab succeeds. This leads me to believe that the deiconifying functions in gtk/gdk are not ICCM compliant and don't set the WM_STATE properly, or am i doing something wrong in my code ? I have appended my short example with all superfuolous code taken out. The window should popup and popdown every 2 seconds in this test example and grab the pointer when it is deiconized. Can anyone help please ? Thanx Dave % gcc `gtk-config --cflags` main.c -o main `gtk-config --libs` #include #include GtkWidget *window; GtkWidget *button; static void gdk_window_iconify (GdkWindow * win) { g_return_if_fail (win != NULL); XIconifyWindow (GDK_WINDOW_XDISPLAY (win), GDK_WINDOW_XWINDOW (win), 0); } static gint toggle_popup () { static gint iconized = 1; if (iconized) { /* Popup window and grab pointer */ gdk_window_show(window->window); gdk_window_raise(window->window); if (gdk_pointer_grab (window->window, FALSE, GDK_POINTER_MOTION_MASK, window->window, NULL, GDK_CURRENT_TIME)==0) printf("grab succeeded\n"); else printf("grab failed\n"); } else { /* Iconize window, release grab */ gdk_pointer_ungrab (GDK_CURRENT_TIME); gdk_window_iconify (window->window); } iconized=!iconized; return TRUE; } int main (int argc, char *argv[]) { 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 ("Hello World"); gtk_container_add (GTK_CONTAINER (window), button); gtk_timeout_add (2 * 1000, toggle_popup, NULL); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (gtk_exit), NULL); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return (0); } From hp@redhat.com Sat Jun 16 11:12:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id E89672BC09 for ; Sat, 16 Jun 2001 11:12:20 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5GFCC825728; Sat, 16 Jun 2001 11:12:12 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: Subject: Re: Help with popup/popdown with pointer grab. References: From: Havoc Pennington Date: 16 Jun 2001 11:12:11 -0400 In-Reply-To: 's message of "Sat, 16 Jun 2001 12:04:15 +0100 (BST)" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > /* Popup window and grab pointer */ > gdk_window_show(window->window); > gdk_window_raise(window->window); > if (gdk_pointer_grab (window->window, > FALSE, GDK_POINTER_MOTION_MASK, > window->window, NULL, GDK_CURRENT_TIME)==0) > printf("grab succeeded\n"); > else This is a race condition. The window manager gets a request to deiconify, and then will map your window. However, the window is probably still unmapped when you do the grab. Remember that X is asynchronous. If gdk_pointer_grab() is returning GrabNotViewable then this is almost certainly the problem. Havoc From mitch@dhcpassigned.uk.sun.com Sat Jun 16 11:30:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prserv.net (out4.prserv.net [32.97.166.34]) by mail.gnome.org (Postfix) with ESMTP id 4D4392DFA8 for ; Sat, 16 Jun 2001 11:25:59 -0400 (EDT) Received: from dhcpassigned.uk.sun.com (slip139-92-214-176.por.uk.prserv.net[139.92.214.176]) by prserv.net (out4) with ESMTP id <2001061615255720402ikmu9e>; Sat, 16 Jun 2001 15:25:57 +0000 Received: (from mitch@localhost) by dhcpassigned.uk.sun.com (8.11.1/8.11.1) id f5GFS5i04640; Sat, 16 Jun 2001 16:28:05 +0100 Date: Sat, 16 Jun 2001 16:28:04 +0100 (BST) From: X-X-Sender: Reply-To: To: Cc: Havoc Pennington Subject: Re: Help with popup/popdown with pointer grab. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Havoc, However even putting gdk_flush()'es before the grab doesn't solve the problem. What is the solution then ? How can i wait till window is mapped ? Thanx Mitch -------- Original Message -------- Subject: Re: Help with popup/popdown with pointer grab. Date: 16 Jun 2001 11:12:11 -0400 From: Havoc Pennington To: CC: References: writes: > /* Popup window and grab pointer */ > gdk_window_show(window->window); > gdk_window_raise(window->window); > if (gdk_pointer_grab (window->window, > FALSE, GDK_POINTER_MOTION_MASK, > window->window, NULL, GDK_CURRENT_TIME)==0) > printf("grab succeeded\n"); > else This is a race condition. The window manager gets a request to deiconify, and then will map your window. However, the window is probably still unmapped when you do the grab. Remember that X is asynchronous. If gdk_pointer_grab() is returning GrabNotViewable then this is almost certainly the problem. Havoc _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From jmullen3@nc.rr.com Fri Jun 15 16:56:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail2.nc.rr.com (fe2.southeast.rr.com [24.93.67.49]) by mail.gnome.org (Postfix) with ESMTP id 7971D2DDE9 for ; Fri, 15 Jun 2001 16:56:26 -0400 (EDT) Received: from nc.rr.com ([66.57.30.183]) by mail2.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 15 Jun 2001 16:56:26 -0400 From: Jeff Mullen Reply-To: jmullen3@nc.rr.com Date: Fri, 15 Jun 2001 16:59:01 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: gtk-list@gnome.org Subject: GTK- tutorial MIME-Version: 1.0 Message-Id: <01061516590100.01266@nc.rr.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Greetings, DISCLAIMER: I hope this is the right mailing list... I am trying to learn gtk-- and downloaded a tutorial from the gtkmm.sourceforge.net website. I have typed in the second example in which you press a button to print "Hello World" in the terminal window. However, the code does not compile. Here is the code from the tutorial // button.cc #include #include void hello() { cout << "Hello World" << endl; } main() { Gtk::Button button("Hello World"); button.clicked.connect(slot(&hello)); } The first error I got was "libsigc++ : no such file or directory". So I went to the website and downloaded libsigc++-1.0.1. I ran the configure, make, make check and make install with no problems. I then made a symbolic link ln -s /usr/include/sigc++-config.h /usr/include/sig++/libsigc++ (because this is what I think a FAQ was trying to tell me, I am not sure). Well, now the error (at compile time) is button.cc: In function `int main()': button.cc:18: implicit declaration of function `int slot(...)' button.cc:18: no matching function for call to `Gtk::EmitProxySignal0::connect (int)' /usr/include/gtk--/proxy.h:96: candidates are: class SigC::Connection Gtk::ProxySignal0::connect(const SigC::Slot0 &) The compile command I am issuing is: g++ button.cc -o button `gtkmm-config --cflags --libs` I am at a loss for why this example is not compiling correctly. Can anyone point me in the right direction? --jeff From raphi2@caramail.com Fri Jun 15 23:39:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.caramail.com (mail.caramail.com [195.68.99.70]) by mail.gnome.org (Postfix) with ESMTP id 9F24F2CD27 for ; Fri, 15 Jun 2001 23:39:30 -0400 (EDT) Received: from caramail.com (www34.caramail.com [195.68.99.119]) by mail.caramail.com (8.8.8/8.8.8) with SMTP id FAA14076 for gtk-list@gnome.org; Sat, 16 Jun 2001 05:39:29 +0200 (DST) Posted-Date: Sat, 16 Jun 2001 05:39:29 +0200 (DST) From: raphy7002@caramail.com To: gtk-list@gnome.org Message-ID: <992662769008580@caramail.com> X-Mailer: Caramail - www.caramail.com X-Originating-IP: [163.5.255.8] Mime-Version: 1.0 Subject: GTK + SDL Date: Sat, 16 Jun 2001 05:39:29 GMT+1 Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_008580992662769_ID" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_Caramail_008580992662769_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I'm currently developping a GTK application and I need using SDL to improve my application. I saw an example of GTK + SDL program on www.libsdl.org but this example doesn't help me a lot. In fact I would like to "include" a little SDL window in a big GTK window. (by example to be able to play movies in my GTK application) There are a lot of newsgroups about this problem, but nobody seems to have a real answer to this question. Thanks for your help, Raph ______________________________________________________ Bo=EEte aux lettres - Caramail - http://www.caramail.com --=_NextPart_Caramail_008580992662769_ID-- From pbd@op.net Sat Jun 16 12:41:49 2001 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 B24F92E027 for ; Sat, 16 Jun 2001 12:41:49 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-1e.ppp.op.net [209.152.206.30]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA24914; Sat, 16 Jun 2001 12:41:47 -0400 (EDT) Message-Id: <200106161641.MAA24914@renoir.op.net> To: jmullen3@nc.rr.com Cc: gtk-list@gnome.org Subject: Re: GTK- tutorial In-reply-to: Your message of "Fri, 15 Jun 2001 16:59:01 EDT." <01061516590100.01266@nc.rr.com> Date: Sat, 16 Jun 2001 12:41:31 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >DISCLAIMER: I hope this is the right mailing list... wrong list. try gtkmm-main@lists.sourceforge.net >The first error I got was "libsigc++ : no such file or directory". So I went i've been using libsgic++ for a long time, and i've never used such a header file. try >button.cc:18: implicit declaration of function `int slot(...)' either use SigC::slot or "using namespace SigC" at some appropriate scope. --p From jfbenck@home.nl Sat Jun 16 12:44:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from CP102461-A.home.nl (cp102461-a.landg1.lb.nl.home.com [213.51.21.239]) by mail.gnome.org (Postfix) with ESMTP id EA5B32D21F for ; Sat, 16 Jun 2001 12:44:14 -0400 (EDT) Received: (from jeroen@localhost) by CP102461-A.home.nl (8.11.0/8.11.0) id f5GGjpe02226; Sat, 16 Jun 2001 18:45:51 +0200 X-Authentication-Warning: CP102461-A.home.nl: jeroen set sender to jfbenck@home.nl using -f Subject: Re: GTK + SDL From: Jeroen Benckhuijsen To: raphy7002@caramail.com Cc: gtk-list@gnome.org In-Reply-To: <992662769008580@caramail.com> References: <992662769008580@caramail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.10.99 (Preview Release) Date: 16 Jun 2001 18:45:51 +0200 Message-Id: <992709951.1341.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 16 Jun 2001 05:39:29 +0000, raphy7002@caramail.com wrote: > Hello, >=20 > I'm currently developping a GTK application > and I need using SDL to improve my application. >=20 > I saw an example of GTK + SDL program on www.libsdl.org > but this example doesn't help me a lot. >=20 > In fact I would like to "include" a little SDL window in a=20 > big GTK window. (by example to be able to play movies in my=20 > GTK application) >=20 > There are a lot of newsgroups about this problem, but=20 > nobody seems to have a real answer to this question. >=20 > Thanks for your help, >=20 > Raph > =20 > ______________________________________________________ > Bo=EEte aux lettres - Caramail - http://www.caramail.com >=20 AFAIK, there is a Gtk widget which includes a SDL Window. Thought it was simly called GtkSDL. Haven't used it however, so i don't know anything about it.....=20 -- Jeroen Benckhuijsen Software Engineer Phoenix Software From hp@redhat.com Sat Jun 16 17:57:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 60C1B2E9B5 for ; Sat, 16 Jun 2001 17:57:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5GLuuE25996; Sat, 16 Jun 2001 17:56:56 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: Subject: Re: Help with popup/popdown with pointer grab. References: From: Havoc Pennington Date: 16 Jun 2001 17:56:56 -0400 In-Reply-To: 's message of "Sat, 16 Jun 2001 16:28:04 +0100 (BST)" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > > However even putting gdk_flush()'es before the grab > doesn't solve the problem. What is the solution then ? > How can i wait till window is mapped ? > A flush doesn't help - that ensures your show request has gone to the server, but not that the window manager has processed it and actually mapped the window. If it's a toplevel window, I believe you may get a map_event signal on it when it's actually mapped. Note that then you have a race condition if you depend on the grab existing, because it won't exist for a brief moment after you map... but I don't think you can do anything about that. One possibility is to have a GtkInvisible offscreen which you use for grabs that's never unmapped. Depending on what you're doing that may or may not work. Havoc From smurf@CSUA.Berkeley.EDU Sat Jun 16 20:23:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by mail.gnome.org (Postfix) with ESMTP id 521802BAE9 for ; Sat, 16 Jun 2001 20:23:26 -0400 (EDT) Received: (from smurf@localhost) by soda.csua.berkeley.edu (8.11.1/8.11.1) id f5H0NJe40539; Sat, 16 Jun 2001 17:23:19 -0700 (PDT) (envelope-from smurf) Date: Sat, 16 Jun 2001 17:23:19 -0700 From: Scott MacFiggen To: raphy7002@caramail.com Cc: gtk-list@gnome.org Subject: Re: GTK + SDL Message-ID: <20010616172319.A39429@CSUA.Berkeley.EDU> References: <992662769008580@caramail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <992662769008580@caramail.com>; from raphy7002@caramail.com on Sat, Jun 16, 2001 at 05:39:29AM +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, Jun 16, 2001 at 05:39:29AM +0000, raphy7002@caramail.com wrote: > Hello, > > I'm currently developping a GTK application > and I need using SDL to improve my application. > > I saw an example of GTK + SDL program on www.libsdl.org > but this example doesn't help me a lot. > > In fact I would like to "include" a little SDL window in a > big GTK window. (by example to be able to play movies in my > GTK application) The only real solution to this that I can see is to draw another GTK window in the bigger window and pass that windowid to SDL. You need a GtkWidget that has an Xwindow associated with to to pass to SDL (not all Widgets have x-windows, like frames don't). I use a drawing area inside of a frame for my SDL/GTK application. -Scott From omega@temple-baptist.com Sat Jun 16 21:33:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id B17D02E168 for ; Sat, 16 Jun 2001 21:33:01 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id VAA27415 for ; Sat, 16 Jun 2001 21:33:01 -0400 Received: from mail3.aracnet.com (mail3.aracnet.com [216.99.193.38]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5H1Vfb17694 for ; Sat, 16 Jun 2001 21:31:41 -0400 Received: from alpha.temple-baptist.com (temple-baptist.com [216.99.217.68]) by mail3.aracnet.com (8.11.4/8.11.0) with ESMTP id f5H1WuU28005; Sat, 16 Jun 2001 18:32:56 -0700 Received: from localhost (localhost [127.0.0.1]) by alpha.temple-baptist.com (8.11.0/8.8.7) with ESMTP id f5H1X5l29119; Sat, 16 Jun 2001 18:33:05 -0700 Date: Sat, 16 Jun 2001 18:33:05 -0700 (PDT) From: Erik Walthinsen To: Cc: Subject: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Parapraxis (author, paranormal.sourceforge.net) has converted his visualization plugin over to GObject, and has been hanging out in #gstreamer, since I'm just now wrapping up a conversion of GStreamer itself to GObject (more on that in another mail), and he's porting his plugin to GStreamer. He did some profiling of his code, and found that 26% of the CPU time was in g_type_instance_is_a(). Since that's a pretty complex function, I had no idea how to optimize it. But then I looked at the code that calls it, the _G_TYPE_CIT macro, which is the core of G_TYPE_CHECK_INSTANCE_TYPE. I turns out that a really obvious optimization was ignored: #define _G_TYPE_CIT(ip, gt) (g_type_instance_is_a ((GTypeInstance*) ip, gt)) The goal is to determine if the object instance *ip is of type gt. g_type_instance_is_a() goes through a really long list of things to determine if the object is really an interface, or a derived object, or any of the other myriad of possibilities that make the type system actually *useful*. The optimization that was missed is that in many/most cases, the code will be checking a object against its own type. That means that the GType gt will be equal to the 'immediate' type of the object, not a parent type, or any of that. The 'immediate' type of the object is accessible via the g_class pointer that is the first 4 bytes of *every* instance of any type (GTypeInstance). The g_class pointer goes to a structure that has the GType of that object. Therefore we can simply compare the 'immediate' type of the object directly against the type in question: #define _G_TYPE_CIT(ip, gt) \ ( (((GTypeInstance*)ip)->g_class->g_type == (gt)) ? TRUE : \ g_type_instance_is_a ((GTypeInstance*)ip, gt)) That way the only time g_type_instance_is_a() is called is when the comparison is between an object and its parent class, or some similar case. All other cases are two indirections and a compare. Parapraxis found that this reduced the number of calls in his code from 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by g_type_instance_is_a went from 26% to *not measurable*. This won't be quite as dramatic in something like a Gtk+ application, where more checks will be done between an object and one of its parent classes, but I would still expect *at least* a 50% reduction. I'm convinced that similar optimizations could be made to several of the other macros in this file, potentially reducing object type checking time to almost nothing. Parapraxis wondered if multithreading has any impact on this, and I believe it does not. The object is not capable of changing its type, ever, afaik. The GType being compared will almost always come from a _get_type() function that also cannot ever change the GType value. The only reason for the READER_LOCK in g_type_instance_is_a() is to avoid someone else mangling the GLists that are walked through to find the TypeNode in question, afaict. Anyway, if no one can find any other problems with this code, I would like to see it make its way into glib CVS. I have GNOME CVS write access, so if whoever wants me to, I can commit it myself, after posting a full unidiff on the list for confirmation that I'm doing it right. Erik Walthinsen - System Administrator __ / \ GStreamer - The only way to stream! | | M E G A ***** http://gstreamer.net/ ***** _\ /_ From rbultje@ronald.bitfreak.net Sun Jun 17 06:42:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 02DEE2DE88 for ; Sun, 17 Jun 2001 06:42:21 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f5HBPKF01761; Sun, 17 Jun 2001 13:25:21 +0200 (CEST) From: "Ronald Bultje" To: "Scott MacFiggen" Cc: Subject: RE: GTK + SDL Date: Sun, 17 Jun 2001 12:48:32 +0200 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 V5.00.2919.6700 In-Reply-To: <20010616172319.A39429@CSUA.Berkeley.EDU> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Scott, >I use a drawing area inside of a frame for my SDL/GTK application. I personally use an eventbox because the only goal of an eventbox is to have a X-window associated with it - which is all you'd need. The eventbox is the "most simple" widget for this - isn't a drawing box far too complicated for this goal? Might make a difference of 0,00000001% in performance ;-). Regards, Ronald From timj@gtk.org Sun Jun 17 07:34:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 2AB212BEDC for ; Sun, 17 Jun 2001 07:34:17 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id HAA05792 for ; Sun, 17 Jun 2001 07:34:16 -0400 Received: from hmbg-3e36c350.pool.mediaWays.net (hmbg-3e36c350.pool.mediaWays.net [62.54.195.80]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HBWub04484 for ; Sun, 17 Jun 2001 07:32:56 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HBZFQ2018719; Sun, 17 Jun 2001 13:35:15 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HBZ5S32536; Sun, 17 Jun 2001 13:35:05 +0200 Date: Sun, 17 Jun 2001 13:35:05 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Erik Walthinsen Cc: gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 16 Jun 2001, Erik Walthinsen wrote: > Parapraxis (author, paranormal.sourceforge.net) has converted his > visualization plugin over to GObject, and has been hanging out in > #gstreamer, since I'm just now wrapping up a conversion of GStreamer > itself to GObject (more on that in another mail), and he's porting his > plugin to GStreamer. > > He did some profiling of his code, and found that 26% of the CPU time was > in g_type_instance_is_a(). Since that's a pretty complex function, I had > no idea how to optimize it. But then I looked at the code that calls it, > the _G_TYPE_CIT macro, which is the core of G_TYPE_CHECK_INSTANCE_TYPE. > I turns out that a really obvious optimization was ignored: > > #define _G_TYPE_CIT(ip, gt) (g_type_instance_is_a ((GTypeInstance*) ip, gt)) > > The goal is to determine if the object instance *ip is of type gt. > g_type_instance_is_a() goes through a really long list of things to > determine if the object is really an interface, or a derived object, or > any of the other myriad of possibilities that make the type system > actually *useful*. > > The optimization that was missed is that in many/most cases, the code will > be checking a object against its own type. That means that the GType gt > will be equal to the 'immediate' type of the object, not a parent type, or > any of that. > > The 'immediate' type of the object is accessible via the g_class pointer > that is the first 4 bytes of *every* instance of any type (GTypeInstance). > The g_class pointer goes to a structure that has the GType of that object. > Therefore we can simply compare the 'immediate' type of the object > directly against the type in question: > > #define _G_TYPE_CIT(ip, gt) \ > ( (((GTypeInstance*)ip)->g_class->g_type == (gt)) ? TRUE : \ > g_type_instance_is_a ((GTypeInstance*)ip, gt)) > > That way the only time g_type_instance_is_a() is called is when the > comparison is between an object and its parent class, or some similar > case. All other cases are two indirections and a compare. there's one problem with the above macro, that is, (ip) is evaluated twice, if its anything else than a constant (say a function call, returning an object), this macro implementation is potentially harmfull. > Parapraxis found that this reduced the number of calls in his code from > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > g_type_instance_is_a went from 26% to *not measurable*. ok, that is quite alarming indeed. > This won't be > quite as dramatic in something like a Gtk+ application, where more checks > will be done between an object and one of its parent classes, but I would > still expect *at least* a 50% reduction. i'd second that. > I'm convinced that similar optimizations could be made to several of the > other macros in this file, potentially reducing object type checking time > to almost nothing. feel free to post more suggestions liek this to gtk-devel-list@gnome.org. > Parapraxis wondered if multithreading has any impact on this, and I > believe it does not. The object is not capable of changing its type, > ever, afaik. The GType being compared will almost always come from a > _get_type() function that also cannot ever change the GType value. The > only reason for the READER_LOCK in g_type_instance_is_a() is to avoid > someone else mangling the GLists that are walked through to find the > TypeNode in question, afaict. mostly right. though, using g_type_instance_is_a() has another advantage, e.g. consider: #define ID_NOT_IN_TYPE_SYSTEM (255) static guint id = ID_NOT_IN_TYPE_SYSTEM; static guint *id_p = &id; { /*your version*/_G_TYPE_CIT (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* succeeds */ g_type_instance_is_a (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* fails, ID_NOT_IN_TYPE_SYSTEM is not registered */ } however, considering the speed advatage you report, it might be worth lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, for the supposedly pathological case that the instance is broken in that its class contains a non-registered type-id, _and_ this non-registered type id is being checked for, it returns a false TRUE. we still need to get around the double evaluation of the (ip) arg of _G_TYPE_CIT() though, so we'd have to implement it via an auxillary static inline function. the same kind of optimization can be implemented for the class type-checking macro btw. > Anyway, if no one can find any other problems with this code, I would > like to see it make its way into glib CVS. I have GNOME CVS write access, > so if whoever wants me to, I can commit it myself, after posting a full > unidiff on the list for confirmation that I'm doing it right. > > Erik Walthinsen - System Administrator --- ciaoTJ From otaylor@redhat.com Sun Jun 17 08:32:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id E423E2BCB1 for ; Sun, 17 Jun 2001 08:32:44 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id IAA08423 for ; Sun, 17 Jun 2001 08:32:44 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id F0E39242315; Sun, 17 Jun 2001 08:32:43 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 08:32:43 -0400 In-Reply-To: Tim Janik's message of "Sun, 17 Jun 2001 13:35:05 +0200 (CEST)" Message-ID: Lines: 77 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Tim Janik writes: > On Sat, 16 Jun 2001, Erik Walthinsen wrote: > > > Parapraxis found that this reduced the number of calls in his code from > > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > > g_type_instance_is_a went from 26% to *not measurable*. > > ok, that is quite alarming indeed. > > > This won't be > > quite as dramatic in something like a Gtk+ application, where more checks > > will be done between an object and one of its parent classes, but I would > > still expect *at least* a 50% reduction. > > i'd second that. I'm not sure I would. When I did profiling for GtkObject, a huge number of checks were from gtk_object_ref(), gtk_signal_emit() and such, so the really big win was: #define GTK_IS_OBJECT_CLASS(klass) ( \ (klass) != NULL && \ GTK_FUNDAMENTAL_TYPE (((GtkObjectClass*) (klass))->type) == GTK_TYPE_OBJECT \ ) Of course, GDK and Pango have flatter inheritance trees than GTK+, so, checking against the object type is probably a lot more common than it used to be. But trying to second guess this is completely pointless. Someone needs to add a few lines of instrumentation, run testgtk and report the results. > > Parapraxis wondered if multithreading has any impact on this, and I > > believe it does not. The object is not capable of changing its type, > > ever, afaik. The GType being compared will almost always come from a > > _get_type() function that also cannot ever change the GType value. The > > only reason for the READER_LOCK in g_type_instance_is_a() is to avoid > > someone else mangling the GLists that are walked through to find the > > TypeNode in question, afaict. > > mostly right. though, using g_type_instance_is_a() has another advantage, > e.g. consider: > > #define ID_NOT_IN_TYPE_SYSTEM (255) > static guint id = ID_NOT_IN_TYPE_SYSTEM; > static guint *id_p = &id; > { > /*your version*/_G_TYPE_CIT (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* succeeds */ > g_type_instance_is_a (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* fails, > ID_NOT_IN_TYPE_SYSTEM is not > registered */ > } This (to me) completely doesn't matter. g_type_instance_is_a() is virtually always called through BLAH_IS_FOO(), and in that case, the ID is going to be in the type system. > however, considering the speed advatage you report, it might be worth > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > for the supposedly pathological case that the instance is broken in that > its class contains a non-registered type-id, _and_ this non-registered > type id is being checked for, it returns a false TRUE. > > we still need to get around the double evaluation of the (ip) arg of > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > static inline function. > the same kind of optimization can be implemented for the class > type-checking macro btw. It's interesting to note that macros such as GTK_OBJECT() have double evaluated for a long time, and nobody has ever noticed/complained. Regards, Owen From timj@gtk.org Sun Jun 17 08:38:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id E8E052DC7F for ; Sun, 17 Jun 2001 08:38:40 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id IAA08824; Sun, 17 Jun 2001 08:38:40 -0400 Received: from hmbg-3e36c52a.pool.mediaWays.net (hmbg-3e36c52a.pool.mediaWays.net [62.54.197.42]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HCbKb06521; Sun, 17 Jun 2001 08:37:20 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HCdfQ2020460; Sun, 17 Jun 2001 14:39:41 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HCdfK10035; Sun, 17 Jun 2001 14:39:41 +0200 Date: Sun, 17 Jun 2001 14:39:41 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Owen Taylor Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 17 Jun 2001, Owen Taylor wrote: > Tim Janik writes: > > however, considering the speed advatage you report, it might be worth > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > for the supposedly pathological case that the instance is broken in that > > its class contains a non-registered type-id, _and_ this non-registered > > type id is being checked for, it returns a false TRUE. > > > > we still need to get around the double evaluation of the (ip) arg of > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > static inline function. > > the same kind of optimization can be implemented for the class > > type-checking macro btw. > > It's interesting to note that macros such as GTK_OBJECT() have double > evaluated for a long time, and nobody has ever noticed/complained. that's why i said "potentially" harmfull ;) i'm sure you agree that we still need to avoid doubleeval, right? > > Regards, > Owen > > --- ciaoTJ From otaylor@redhat.com Sun Jun 17 08:42:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A6B472E2EB for ; Sun, 17 Jun 2001 08:42:29 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 10628242315; Sun, 17 Jun 2001 08:42:29 -0400 (EDT) To: "Ronald Bultje" Cc: "Scott MacFiggen" , Subject: Re: GTK + SDL References: From: Owen Taylor Date: 17 Jun 2001 08:42:28 -0400 In-Reply-To: "Ronald Bultje"'s message of "Sun, 17 Jun 2001 12:48:32 +0200" Message-ID: Lines: 22 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ronald Bultje" writes: > Hi Scott, > > >I use a drawing area inside of a frame for my SDL/GTK application. > > I personally use an eventbox because the only goal of an eventbox is > to have a X-window associated with it - which is all you'd need. The > eventbox is the "most simple" widget for this - isn't a drawing box > far too complicated for this goal? > Might make a difference of 0,00000001% in performance ;-). Not that it matters at all, but actually, GtkDrawingArea is a simpler widget than GtkEventBox. GtkEventBox is a _container_ with a window, so has code for handling a child widget. GtkDrawingArea, on the other hand, is just a widget with a window that the app can draw on. Regards, Owen From otaylor@redhat.com Sun Jun 17 08:53:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id BC2A52DC70 for ; Sun, 17 Jun 2001 08:53:28 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id IAA09469 for ; Sun, 17 Jun 2001 08:53:28 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 23812242315; Sun, 17 Jun 2001 08:53:28 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 08:53:28 -0400 In-Reply-To: Tim Janik's message of "Sun, 17 Jun 2001 14:39:41 +0200 (CEST)" Message-ID: Lines: 52 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Tim Janik writes: > On 17 Jun 2001, Owen Taylor wrote: > > > Tim Janik writes: > > > > however, considering the speed advatage you report, it might be worth > > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > > for the supposedly pathological case that the instance is broken in that > > > its class contains a non-registered type-id, _and_ this non-registered > > > type id is being checked for, it returns a false TRUE. > > > > > > we still need to get around the double evaluation of the (ip) arg of > > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > > static inline function. > > > the same kind of optimization can be implemented for the class > > > type-checking macro btw. > > > > It's interesting to note that macros such as GTK_OBJECT() have double > > evaluated for a long time, and nobody has ever noticed/complained. > > that's why i said "potentially" harmfull ;) > i'm sure you agree that we still need to avoid doubleeval, right? I'm not sure. Considering that inline functions in C or statement expressions aren't portable, and I think GObject should probably perform portably, it's conceivable that the danger is worth it. I think it was worth it for the GTK_OBJECT() macro. It would certainly be good to avoid double evals for cast macros if at all possible. I've certainly written: GTK_ADJUSTMENT (gtk_adjustment_new (...)); Once or twice. Double evals are less harmful for BLAH_IS_FOO() as compared to BLAH_FOO(), because the worst that can happen with a double eval in BLAH_IS_FOO() is a bit of inefficiency - a memory leak can't happen because the instance pointer isn't returned. And aren't very likely to write something along the lines: if (PANGO_IS_LAYOUT (gtk_label_get_layout (label)) layout = gtk_label_get_layout (label); But any time a double eval of a macro can be avoided, the better, of course. Regards, Owen From timj@gtk.org Sun Jun 17 09:04:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id C2FE62E196 for ; Sun, 17 Jun 2001 09:04:56 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id JAA09879; Sun, 17 Jun 2001 09:04:56 -0400 Received: from hmbg-3e36c52a.pool.mediaWays.net (hmbg-3e36c52a.pool.mediaWays.net [62.54.197.42]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HD3ab07066; Sun, 17 Jun 2001 09:03:36 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HD5xQ2020973; Sun, 17 Jun 2001 15:05:59 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HD5w218222; Sun, 17 Jun 2001 15:05:58 +0200 Date: Sun, 17 Jun 2001 15:05:58 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Owen Taylor Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 17 Jun 2001, Owen Taylor wrote: > Tim Janik writes: > > > On 17 Jun 2001, Owen Taylor wrote: > > > > > Tim Janik writes: > > > > > > however, considering the speed advatage you report, it might be worth > > > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > > > for the supposedly pathological case that the instance is broken in that > > > > its class contains a non-registered type-id, _and_ this non-registered > > > > type id is being checked for, it returns a false TRUE. > > > > > > > > we still need to get around the double evaluation of the (ip) arg of > > > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > > > static inline function. > > > > the same kind of optimization can be implemented for the class > > > > type-checking macro btw. > > > > > > It's interesting to note that macros such as GTK_OBJECT() have double > > > evaluated for a long time, and nobody has ever noticed/complained. > > > > that's why i said "potentially" harmfull ;) > > i'm sure you agree that we still need to avoid doubleeval, right? > > I'm not sure. Considering that inline functions in C or statement > expressions aren't portable, and I think GObject should probably > perform portably, it's conceivable that the danger is worth it. > I think it was worth it for the GTK_OBJECT() macro. i don't think there's much to worry about compilers that can't inline nowadays. glib ensures that static inline at least works on such systems by providing a non-static linkable version, if static inline isn't supported. so worst-case scenario is that for inline-incapable compilers an extra function call is performed. > > Regards, > Owen > --- ciaoTJ From denisoider@mail.ru Sun Jun 17 13:26:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx7.port.ru (mx7.port.ru [194.67.23.44]) by mail.gnome.org (Postfix) with ESMTP id 7577B2DE4F for ; Sun, 17 Jun 2001 13:26:35 -0400 (EDT) Received: from f8.int ([10.0.0.76] helo=f8.mail.ru) by mx7.port.ru with esmtp (Exim 3.14 #1) id 15BgJm-0002X6-00 for gtk-list@gnome.org; Sun, 17 Jun 2001 21:26:34 +0400 Received: from mail by f8.mail.ru with local (Exim 3.14 #2) id 15BgJm-000OQ3-00 for gtk-list@gnome.org; Sun, 17 Jun 2001 21:26:34 +0400 Received: from [212.45.15.120] by win.mail.port.ru with HTTP; Sun, 17 Jun 2001 17:26:34 +0000 (GMT) From: "Bar Den" To: gtk-list@gnome.org Subject: Widget blinking? Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: unknown via proxy [212.45.15.120] Reply-To: "Bar Den" Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Date: Sun, 17 Jun 2001 21:26:34 +0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I use gtk-1.2.8, the problem is when you move mouse cursor over different widgets, sometimes they blink. What is wrong with it, is it a bug? From otaylor@redhat.com Sun Jun 17 13:40:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 41F9C2CAD7 for ; Sun, 17 Jun 2001 13:40:26 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id NAA26978 for ; Sun, 17 Jun 2001 13:40:25 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id AA0EE242315; Sun, 17 Jun 2001 13:40:25 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 13:40:25 -0400 In-Reply-To: Owen Taylor's message of "17 Jun 2001 08:32:43 -0400" Message-ID: Lines: 100 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen Taylor writes: > Tim Janik writes: > > > On Sat, 16 Jun 2001, Erik Walthinsen wrote: > > > > > Parapraxis found that this reduced the number of calls in his code from > > > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > > > g_type_instance_is_a went from 26% to *not measurable*. > > > > ok, that is quite alarming indeed. > > > > > This won't be > > > quite as dramatic in something like a Gtk+ application, where more checks > > > will be done between an object and one of its parent classes, but I would > > > still expect *at least* a 50% reduction. > > > > i'd second that. > > I'm not sure I would. When I did profiling for GtkObject, a huge > number of checks were from gtk_object_ref(), gtk_signal_emit() > and such, so the really big win was: > > #define GTK_IS_OBJECT_CLASS(klass) ( \ > (klass) != NULL && \ > GTK_FUNDAMENTAL_TYPE (((GtkObjectClass*) (klass))->type) == GTK_TYPE_OBJECT \ > ) > > Of course, GDK and Pango have flatter inheritance trees than GTK+, > so, checking against the object type is probably a lot more > common than it used to be. > > But trying to second guess this is completely pointless. Someone > needs to add a few lines of instrumentation, run testgtk and > report the results. Did some checking - patch follows for anybody who wants to try for themselves. For the various tests in testgtk for the type of the object were between 7 and 33% of the total number of BLAH_IS_FOO checks. (Around 15% was typical) G_IS_OBJECT() checks were between 16% and 80% of the total number of checks. (Around 40% was typical) Obviously, it varies a _lot_ depending on what is going on. Regards, Owen Index: gtype.c =================================================================== RCS file: /cvs/gnome/glib/gobject/gtype.c,v retrieving revision 1.27 diff -u -r1.27 gtype.c --- gtype.c 2001/05/10 13:58:40 1.27 +++ gtype.c 2001/06/17 17:35:05 @@ -2479,15 +2479,40 @@ return type; } +static int total = 0; +static int same = 0; +static int gobject = 0; + +void print_perc (void) +{ + g_print ("Percentage of checks 'a is a': %.2f (%d/%d)\n", + 100 * (double)same / total, same, total); + g_print ("Percentage of checks 'a is gobject': %.2f (%d/%d)\n", + 100 * (double)gobject / total, gobject, total); +} + gboolean g_type_instance_is_a (GTypeInstance *type_instance, GType iface_type) { TypeNode *node, *iface; gboolean check; + static gboolean init = FALSE; if (!type_instance || !type_instance->g_class) return FALSE; + + if (!init) + { + init = TRUE; + g_atexit (print_perc); + } + + total++; + if (type_instance->g_class->g_type == iface_type) + same++; + if (G_TYPE_OBJECT == iface_type) + gobject++; G_READ_LOCK (&type_rw_lock); node = lookup_type_node_L (type_instance->g_class->g_type); From ishamael@themes.org Sun Jun 17 15:14:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alpha.techcare.com (unknown [207.89.153.66]) by mail.gnome.org (Postfix) with SMTP id 453B62BEEB for ; Sun, 17 Jun 2001 15:14:12 -0400 (EDT) Received: (qmail 4373 invoked from network); 17 Jun 2001 17:52:47 -0000 Received: from pm538-22.dialip.mich.net (HELO orodruin) (@198.108.161.80) by alpha.techcare.com with SMTP; 17 Jun 2001 17:52:47 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Charlie Schmidt" To: gtk-list@gnome.org Subject: GtkCList & GtkScrolledWindow X-Mailer: Pronto v2.2.6 On linux/mysql Date: 17 Jun 2001 14:57:24 EDT Reply-To: "Charlie Schmidt" Message-Id: <20010617191412.453B62BEEB@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: - im not a big fan of GtkCList, it takes a long long time to insert a lot of rows, but i suppose its all we have, right? so. i was wondering, is there a way to get the CList to request space for X rows, so the ScrolledWindow its in adjusts the scroll bar correctly, or a way to manually set the values in a ScrollBar so it adjusts? this way (at least, in my mind) i could insert the first 20 or so rows that would be required for display, and set the scroll bar so it looks like there are however many inserted, and then thread an insert function to append the rest of the rows. or, alternatively, can anyone tell me that the new GtkTreeView widget is significantly better for inserting, say, 10000-50000 rows all at once? ive tested it a bit in Gtk+-1.3.6, and wasnt very impressed (in fact, it seemed much much slower than GtkCList even). thanks. -- Charlie Schmidt - From hp@redhat.com Sun Jun 17 15:48:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 25FC82DC3A for ; Sun, 17 Jun 2001 15:48:15 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5HJm1432688; Sun, 17 Jun 2001 15:48:01 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Charlie Schmidt" Cc: gtk-list@gnome.org Subject: Re: GtkCList & GtkScrolledWindow References: <20010617191412.453B62BEEB@mail.gnome.org> From: Havoc Pennington Date: 17 Jun 2001 15:48:01 -0400 In-Reply-To: "Charlie Schmidt"'s message of "17 Jun 2001 14:57:24 EDT" Message-ID: Lines: 37 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Charlie Schmidt" writes: > im not a big fan of GtkCList, it takes a long long time to insert a lot > of rows, but i suppose its all we have, right? It's actually pretty fast, i.e. it's not doing a lot of work per-row. It's just that this operation is inherently O(n). You aren't going to get it to scale beyond that. > this way (at least, in my mind) i could insert the first 20 or so rows > that would be required for display, and set the scroll bar so it looks > like there are however many inserted, and then thread an insert function > to append the rest of the rows. > > or, alternatively, can anyone tell me that the new GtkTreeView widget is > significantly better for inserting, say, 10000-50000 rows all at once? > ive tested it a bit in Gtk+-1.3.6, and wasnt very impressed (in fact, it > seemed much much slower than GtkCList even). > It is much slower than the CList. However, there are two things we can do. a) You can write a custom model. So if you already have your row data, you don't actually need to "insert" it. The only issue is how long it takes GtkTreeView to compute the display. b) For computing the display, we can do it incrementally as for GtkTextView. Try putting a lot of text in the text view to see how it works. Basically you compute the onscreen display first and go ahead and show it, and do the rest in the background. Web browsers do this same thing as data streams in. Those two things should remove the O(n) issue, getting stuff onscreen becomes constant-time-ish. Havoc From bloodso@yahoo.com Sun Jun 17 17:09:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bigred.192.168.1.2 (24129136hfc79.tampabay.rr.com [24.129.136.79]) by mail.gnome.org (Postfix) with ESMTP id D28F12BB2D for ; Sun, 17 Jun 2001 17:09:39 -0400 (EDT) Received: from bigred (localhost.localdomain [127.0.0.1]) by bigred.192.168.1.2 (Postfix) with SMTP id 6D56C2A938 for ; Sun, 17 Jun 2001 17:15:09 -0400 (EDT) From: Chris Date: Sun, 17 Jun 2001 17:15:09 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: gtk-list@gnome.org Subject: drawing area in scrolled window MIME-Version: 1.0 Message-Id: <01061717150900.32534@bigred> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I am having trouble using a drawing area in a scrolled window. I am unable to scroll the drawing area. I have tried using a callback for the viewport in the scrolled window to set the vertical and horizontal adjustments for the size of the drawing area but that does not seem to work. Is it possible to scroll a drawing area with a scrolled window or will I have to use vertical and horizontal scrollbars? TIA, Chris From hp@redhat.com Sun Jun 17 20:03:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B45D42E298 for ; Sun, 17 Jun 2001 20:03:14 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5I02xT00323; Sun, 17 Jun 2001 20:02:59 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Chris Cc: gtk-list@gnome.org Subject: Re: drawing area in scrolled window References: <01061717150900.32534@bigred> From: Havoc Pennington Date: 17 Jun 2001 20:02:59 -0400 In-Reply-To: Chris's message of "Sun, 17 Jun 2001 17:15:09 -0400" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris writes: > Hello. I am having trouble using a drawing area in a scrolled window. I am > unable to scroll the drawing area. I have tried using a callback for the > viewport in the scrolled window to set the vertical and horizontal > adjustments for the size of the drawing area but that does not seem to work. > Is it possible to scroll a drawing area with a scrolled window or will I have > to use vertical and horizontal scrollbars? > It should work, you have to be sure to use gtk_scrolled_window_add_with_viewport(). Havoc From mseisdedos@cirsa.com Mon Jun 18 03:17:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id 774582BB09 for ; Mon, 18 Jun 2001 03:17:18 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A6F.0027F745; Mon, 18 Jun 2001 09:16:32 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Mon, 18 Jun 2001 09:16:43 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4821@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: icon visible Date: Mon, 18 Jun 2001 09:16:42 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a toolbar with both icons, and label in each button, if i press no sensitive button i get two different situations: a) gtk stock icons, like clear, cut, paste....., works ok: both icon an label get insensitive, b) buttons with my own icons, the lagel gets insensitive but icons remains sensitive. Any body knows why???? From thierry.herbreteau@trium-rd.com Mon Jun 18 04:17:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relais-int8.globalintranet.net (mailgate.globalintranet.net [194.206.181.244]) by mail.gnome.org (Postfix) with ESMTP id 7EFA92CC93 for ; Mon, 18 Jun 2001 04:17:15 -0400 (EDT) Received: from mitsu5.mef-rd.com ([10.255.7.37]) by relais-int8.globalintranet.net (Netscape Messaging Server 4.15) with SMTP id GF49NI00.C2B; Mon, 18 Jun 2001 10:16:30 +0200 Received: from trium-rd.com by mitsu5.mef-rd.com (SMI-8.6/SMI-SVR4) id KAA12961; Mon, 18 Jun 2001 10:15:46 +0200 Message-ID: <3B2DB930.F3A49A0E@trium-rd.com> Date: Mon, 18 Jun 2001 10:17:52 +0200 From: Thierry Herbreteau Reply-To: thierry.herbreteau@trium-rd.com Organization: Mitsubishi Electric Telecom Europe X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en,fr MIME-Version: 1.0 To: Sven Neumann Cc: Simon Budig , gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sven Neumann wrote: > Actually we need something like GTK+-Embedded but at the moment I don't > see anyone pushing it and we are lacking the resources to do a general > solution at the moment. Hi Sven, I've heard about something developped on the Ipaq called Familiar. I don't know it very much but it seems to be based on GTK+. Do you have any information on it ? What kind of solution is it ? Bye, Thierry. From john.cupitt@ng-london.org.uk Mon Jun 18 07:43:52 2001 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 1925D2E192 for ; Mon, 18 Jun 2001 07:40:44 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN4RN; Mon, 18 Jun 2001 12:40:43 +0100 Message-ID: <3B2DE76D.9C9E6B4D@ng-london.org.uk> Date: Mon, 18 Jun 2001 12:35:09 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Sergio Arregui Ojeda Cc: GTK-List Subject: Re: Help! References: <3B2A5155.9DAB2A@cicese.mx> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sergio Arregui Ojeda wrote: > i have to develop a system that has to plot data that is acquired > trhough the serial port, i have done most of this part using > the realtime plot demo that comes with extragtk, but i have a problem > because it's a lot of data and my machine gets very busy > while plotting, i think that this is 'cause the data does not > get released, instead it keeps it in memory, and i want to know > if theres is a way that this data can be freed (or deallocated) > so this way it speed up things. Hi Sergio, memory should be freed up; if it's not getting freed, you have a bug somewhere. Maybe you're not _unref()ing stuff you should be unrefing? You could try a leak checker to try to track the problem down. memprof is nice and very easy to use: http://people.redhat.com/otaylor/memprof/ Run your program with no input first, and nail the easy leaks. Then start adding more data and see where new leaks appear. If you want something more sophisticated, you could download a trial version of purify: http://www.rational.com (100MB download, solaris/irix/hp-ux only, 15 days only). HTH, John From hp@redhat.com Mon Jun 18 10:24:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B18372BAB6 for ; Mon, 18 Jun 2001 10:24:21 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IENcr01382; Mon, 18 Jun 2001 10:23:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Monserrat Seisdedos =?iso-8859-1?q?Nu=F1ez?= Cc: "gtk (E-mail)" Subject: Re: icon visible References: <01294F3FC12BD41183BD00D0B7176A1D4D4821@srvexch> From: Havoc Pennington Date: 18 Jun 2001 10:23:38 -0400 In-Reply-To: Monserrat Seisdedos =?iso-8859-1?q?Nu=F1ez's?= message of "Mon, 18 Jun 2001 09:16:42 +0200" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Monserrat Seisdedos Nu=F1ez writes: > I have a toolbar with both icons, and label in each button, if i press no > sensitive button i get two different situations: > a) gtk stock icons, like clear, cut, paste....., works ok: both icon > an label get insensitive,=20 > b) buttons with my own icons, the lagel gets insensitive but icons > remains sensitive. > Any body knows why???? >=20 (Assuming GTK 1.3.6) You have to use GtkIconSet if you want the insensitive effect.=20 Register your icons with the stock system, the "Main application window" demo in gtk-demo has an example. Havoc From rwalden@tripos.com Mon Jun 18 10:57:00 2001 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 CC6FF2D41B for ; Mon, 18 Jun 2001 10:56:58 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id JAA26940 for ; Mon, 18 Jun 2001 09:56:52 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma023635; Mon, 18 Jun 01 09:42:28 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id JAA91630 for ; Mon, 18 Jun 2001 09:42:01 -0500 (CDT) Message-ID: <3B2E1338.3C18A969@tripos.com> Date: Mon, 18 Jun 2001 09:42:00 -0500 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@gnome.org Subject: MDI Interface 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to create a Multiple Document Interface (MDI) (a-la MSWord ) with GTK+? I haven't seen any examples like this, so I am wondering.... -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From andres_giraldo@yahoo.com Mon Jun 18 11:34:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11507.mail.yahoo.com (web11507.mail.yahoo.com [216.136.172.39]) by mail.gnome.org (Postfix) with SMTP id C59672BA98 for ; Mon, 18 Jun 2001 11:34:33 -0400 (EDT) Message-ID: <20010618153433.39415.qmail@web11507.mail.yahoo.com> Received: from [209.205.77.166] by web11507.mail.yahoo.com; Mon, 18 Jun 2001 08:34:33 PDT Date: Mon, 18 Jun 2001 08:34:33 -0700 (PDT) From: "Andrés" Giraldo Subject: gtk_widget_destroy To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm creating a window from a nother window, something like a message box, but when I want to unload this window; should I use gtk_widget_destroy? Because I'm connecting this signal to a button clicked event: gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", GTK_SIGNAL_FUNC (on_btnClose_clicked), NULL) // callback function void on_btnClose_clicked (GtkButton *button, gpointer data) { GtkWidget *window = (GtkWidget *)data; gtk_widget_destory (window); } /*********** It doesn't work, Gtk tells me that window is not an Gtk Widget... There's another way to unload a window or what I'm doing wrong... Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From alexl@redhat.com Mon Jun 18 12:18:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 8DB522BB23 for ; Mon, 18 Jun 2001 12:18:25 -0400 (EDT) Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [207.175.42.156]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id MAA26707; Mon, 18 Jun 2001 12:18:25 -0400 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id f5IGINP23616; Mon, 18 Jun 2001 12:18:23 -0400 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 18 Jun 2001 12:18:23 -0400 (EDT) From: Alex Larsson X-X-Sender: To: Tim Janik Cc: Owen Taylor , Erik Walthinsen , , Gtk+ Developers , Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sun, 17 Jun 2001, Tim Janik wrote: > > I'm not sure. Considering that inline functions in C or statement > > expressions aren't portable, and I think GObject should probably > > perform portably, it's conceivable that the danger is worth it. > > I think it was worth it for the GTK_OBJECT() macro. > > i don't think there's much to worry about compilers that can't inline > nowadays. glib ensures that static inline at least works on such systems > by providing a non-static linkable version, if static inline isn't supported. > so worst-case scenario is that for inline-incapable compilers an extra > function call is performed. I'd like to point out here that GCC produces better code for macros than inline functions. This will continue to be true in GCC 3.0, and in the future until the tree inliner is ported from the c++ compiler to the c compiler. / Alex From sven@gimp.org Mon Jun 18 12:35:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 905A82E3DF for ; Mon, 18 Jun 2001 12:35:19 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15C1t1-00010y-00; Mon, 18 Jun 2001 18:28:23 +0200 To: "AndrXs" Giraldo Cc: Gtk List Subject: Re: gtk_widget_destroy References: <20010618153433.39415.qmail@web11507.mail.yahoo.com> From: Sven Neumann Date: 18 Jun 2001 18:28:23 +0200 In-Reply-To: <20010618153433.39415.qmail@web11507.mail.yahoo.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "AndrXs" Giraldo writes: > I'm creating a window from a nother window, something > like a message box, but when I want to unload this > window; > > should I use gtk_widget_destroy? > > Because I'm connecting this signal to a button clicked > event: > > gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", > GTK_SIGNAL_FUNC > (on_btnClose_clicked), NULL) > > > // callback function > > void on_btnClose_clicked (GtkButton *button, gpointer > data) > { > GtkWidget *window = (GtkWidget *)data; > > gtk_widget_destory (window); > } > you did not pass the window pointer when connecting your signal. How is this supposed to work ?? Salut, Sven From king@eiffel.com Mon Jun 18 13:42:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 0911C2BB19 for ; Mon, 18 Jun 2001 13:42:27 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C32f-0001oj-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 10:42:25 -0700 Message-ID: <1fe701c0f81f$2752db30$750a000a@naples> From: "Ian King" To: Subject: Scrolled window in ctree Date: Mon, 18 Jun 2001 10:50:25 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone know why the horizontal scrollbar for ctree (scrolled_window_add_with_viewport) is not viewable at all. I also get size allocation warnings everytime I use the ctree? I need to fix this as ctrees are used for our visual debugger. Thanks for your time IEK From rsteinke@w-link.net Mon Jun 18 14:26:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 86F882E00E for ; Mon, 18 Jun 2001 14:26:11 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15C3nZ-0002s8-00 for ; Mon, 18 Jun 2001 11:30:53 -0700 Date: Mon, 18 Jun 2001 11:30:53 -0700 To: gtk-list@gnome.org Subject: Trouble setting GdkEventMask Message-ID: <3B2E48DD.nail8HY11LXHW@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm trying to connect to the key-press-event of a wigdet derived from GtkDrawingArea. It has a window, and I'm using gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to the GdkEventMask for the widget. Nonetheless, the signal isn't being emitted (it's not even showing up in the default function for the event signal in the derived widget). What am I forgetting? I'm using gtk 1.3, if that matters. Ron Steinke From hp@redhat.com Mon Jun 18 14:34:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5413B2DEE8 for ; Mon, 18 Jun 2001 14:30:36 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IIULW01615; Mon, 18 Jun 2001 14:30:21 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Scrolled window in ctree References: <1fe701c0f81f$2752db30$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 14:30:21 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 10:50:25 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > Does anyone know why the horizontal scrollbar for ctree > (scrolled_window_add_with_viewport) is not viewable at all. I also get size > allocation warnings everytime I use the ctree? I need to fix this as ctrees > are used for our visual debugger. > > Thanks for your time > Don't use add_with_viewport(), that's only for widgets without "native" scroll support. Just use gtk_container_add(). Havoc From skip@beluga.mojam.com Mon Jun 18 14:36:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 927752E011 for ; Mon, 18 Jun 2001 14:36:28 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5IIYuV09781; Mon, 18 Jun 2001 13:34:56 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15150.18895.379738.456168@beluga.mojam.com> Date: Mon, 18 Jun 2001 13:34:55 -0500 To: gtk-list@gnome.org, pygtk@daa.com.au Subject: can I watch all signals being emitted? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: For debugging and tutorial purposes, is it possible to easily see all signal emissions (or all signal emissions by a particular object)? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From george@clipper.ens.fr Mon Jun 18 11:48:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 25C7F2BDE9 for ; Mon, 18 Jun 2001 11:48:28 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA17639 for ; Mon, 18 Jun 2001 11:48:27 -0400 Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5IFlAb00790 for ; Mon, 18 Jun 2001 11:47:10 -0400 Received: from chaland.ens.fr (chaland.ens.fr [129.199.129.3]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f5IFmK663604 for ; Mon, 18 Jun 2001 17:48:20 +0200 (CEST) Date: Mon, 18 Jun 2001 17:48:20 +0200 (CEST) Received: from (george@localhost) by chaland.ens.fr (8.9.2/jb-1.1) Message-Id: <200106181548.RAA08305@chaland.ens.fr> From: george@clipper.ens.fr (Nicolas George) References: <3B2E1338.3C18A969@tripos.com> Subject: Re: MDI Interface Newsgroups: ens.mailing-lists.gtk.general X-Newsreader: Flrn (0.4.0 - 07/99) To: gtk-list@redhat.com In-Reply-To: <3B2E1338.3C18A969@tripos.com> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden, dans le message <3B2E1338.3C18A969@tripos.com> a écrit : > Is it possible to create a Multiple Document Interface (MDI) > (a-la MSWord ) with GTK+? No, this is not possible. These interfaces are Evil. How do you make them work with multiple virtual desktops? You should use several toplevel windows instead. From king@eiffel.com Mon Jun 18 16:29:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 8CE2C2BB38 for ; Mon, 18 Jun 2001 16:29:12 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C5e0-0004Jj-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 13:29:08 -0700 Message-ID: <211901c0f836$71f778a0$750a000a@naples> From: "Ian King" To: Subject: Visual types Date: Mon, 18 Jun 2001 13:37:08 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: What are the main disadvantages for using a pseudo color visual for all applications written in gtk. Is it that high color images will look all messed up or are their other disadvantages? Thanks for your time. Ian King From pbd@op.net Mon Jun 18 16:32:07 2001 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 72C122DB68 for ; Mon, 18 Jun 2001 16:32:07 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-15.ppp.op.net [209.152.194.117]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA27022; Mon, 18 Jun 2001 16:32:00 -0400 (EDT) Message-Id: <200106182032.QAA27022@renoir.op.net> To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask In-reply-to: Your message of "Mon, 18 Jun 2001 11:30:53 PDT." <3B2E48DD.nail8HY11LXHW@yggdrasil> Date: Mon, 18 Jun 2001 16:31:57 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > I'm trying to connect to the key-press-event of a wigdet >derived from GtkDrawingArea. It has a window, and I'm using >gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to >the GdkEventMask for the widget. Nonetheless, the signal >isn't being emitted (it's not even showing up in the >default function for the event signal in the derived >widget). What am I forgetting? I'm using gtk 1.3, if >that matters. did you set the CAN_FOCUS flag? otherwise, the widget will never receive keyboard focus (i think) ... From hp@redhat.com Mon Jun 18 16:32:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2E3042DB68 for ; Mon, 18 Jun 2001 16:32:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IKVrk01651; Mon, 18 Jun 2001 16:31:53 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <3B2E48DD.nail8HY11LXHW@yggdrasil> From: Havoc Pennington Date: 18 Jun 2001 16:31:53 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 11:30:53 -0700" Message-ID: Lines: 16 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > I'm trying to connect to the key-press-event of a wigdet > derived from GtkDrawingArea. It has a window, and I'm using > gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to > the GdkEventMask for the widget. Nonetheless, the signal > isn't being emitted (it's not even showing up in the > default function for the event signal in the derived > widget). What am I forgetting? I'm using gtk 1.3, if > that matters. > You need the drawing area to have key focus. Set GTK_CAN_FOCUS flag, gtk_widget_grab_focus() on button press, etc. Havoc From king@eiffel.com Mon Jun 18 17:15:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 9917C2D2E6 for ; Mon, 18 Jun 2001 17:15:11 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C6MY-0003Wk-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 14:15:10 -0700 Message-ID: <215f01c0f83c$e0394630$750a000a@naples> From: "Ian King" To: Subject: Default buttons Date: Mon, 18 Jun 2001 14:23:10 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I change the border size of a button that has been set with the flag GTK_CAN_DEFAULT. Thanks Ian King From hp@redhat.com Mon Jun 18 17:50:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 685872DC09 for ; Mon, 18 Jun 2001 17:50:12 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ILnpG01675; Mon, 18 Jun 2001 17:49:51 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Visual types References: <211901c0f836$71f778a0$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 17:49:51 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 13:37:08 -0700" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > What are the main disadvantages for using a pseudo color visual for all > applications written in gtk. Is it that high color images will look all > messed up or are their other disadvantages? > There's just no real point using a visual other than the default, ever. Unless your app is written specifically for certain hardware such as an SGI. (The only exception is to use the GdkRGB visual for drawables where you'll draw RGB data, but in GTK 2 this isn't even necessary.) Havoc From raphi2@caramail.com Mon Jun 18 17:54:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail2.caramail.com (mail2.caramail.com [195.68.99.69]) by mail.gnome.org (Postfix) with ESMTP id 2A7C52E1B4 for ; Mon, 18 Jun 2001 17:54:43 -0400 (EDT) Received: from caramail.com (www35.caramail.com [195.68.99.214]) by mail2.caramail.com (8.8.8/8.8.8) with SMTP id XAA28311; Mon, 18 Jun 2001 23:54:42 +0200 (DST) Posted-Date: Mon, 18 Jun 2001 23:54:42 +0200 (DST) From: raphi2 raph To: gtk-list@gnome.org Cc: otaylor@redhat.com Message-ID: <992901282019158@caramail.com> X-Mailer: Caramail - www.caramail.com X-Originating-IP: [163.5.255.8] Mime-Version: 1.0 Subject: GTK / SDL bis Date: Mon, 18 Jun 2001 23:54:42 GMT+1 Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_019158992901282_ID" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_Caramail_019158992901282_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Here is my problem again: I'm currently developping a GTK application and I need using SDL to improve my application. I saw an example of GTK + SDL program on www.libsdl.org but this example doesn't help me a lot. In fact I would like to "include" a little SDL window in a big GTK window. (by example to be able to play movies in my GTK application) I tried to resolve my problem with your advices :) but I have still problems. here is the part of my program with problems: SDL_Thread *thread; GtkWidget *drawing_area; Window xwin; gtk_sess *sess =3D (gtk_sess *)data; sess->new =3D gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize(sess->new, 460, 500); // gtk_widget_show (sess->new); sess->fixed =3D gtk_fixed_new(); gtk_widget_ref (sess->fixed); gtk_widget_show (sess->fixed); gtk_container_add(GTK_CONTAINER(sess->new), sess->fixed); drawing_area =3D gtk_drawing_area_new(); gtk_widget_set_usize(drawing_area, 100, 100); gtk_fixed_put(GTK_FIXED(sess->fixed), drawing_area, 400, 400); gtk_widget_realize(drawing_area); gtk_widget_show(drawing_area); { char SDL_windowhack[32]; sprintf(SDL_windowhack,"SDL_WINDOWID=3D-543170384", GDK_WINDOW_XWINDOW(drawing_area->window)); putenv(SDL_windowhack); } screen =3D SDL_SetVideoMode(100, 100, 0, 0); thread =3D SDL_CreateThread(play_film, sess); if (thread =3D=3D NULL) printf("Probleme avec la thread\n"); // gtk_timeout_add(5, animation, sess); I do the SDL_Init before this in an init function. Do you see something wrong in this code ? Thanks a lot for help Raph _________________________________________________________ Le journal des abonn=E9s Caramail - http://www.carazine.com --=_NextPart_Caramail_019158992901282_ID-- From king@eiffel.com Mon Jun 18 19:47:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 306EF2BCA3 for ; Mon, 18 Jun 2001 19:47:17 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C8jj-0003dD-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 16:47:15 -0700 Message-ID: <220801c0f852$1ffee8a0$750a000a@naples> From: "Ian King" To: Subject: Popup windows Date: Mon, 18 Jun 2001 16:55:17 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I have a widget within a popup window, such as a text field, the text field doesn't seem to get the focus. If I then change the window to be a top level window, then the text field works perfectly. Does anyone know why this is? Thanks for your time Ian King From king@eiffel.com Mon Jun 18 20:08:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id EACB12BCBB for ; Mon, 18 Jun 2001 20:08:40 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C94Q-00079D-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 17:08:38 -0700 Message-ID: <221a01c0f855$1c8aa210$750a000a@naples> From: "Ian King" To: References: <220801c0f852$1ffee8a0$750a000a@naples> Subject: Re: Popup windows Date: Mon, 18 Jun 2001 17:16:39 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: In follow up to the previous message, it seems that the key events are not passed through for a popup window, but are for a top level window. Is there a reason for this? Thanks Ian King ----- Original Message ----- From: "Ian King" To: Sent: Monday, June 18, 2001 4:55 PM Subject: Popup windows > When I have a widget within a popup window, such as a text field, the text > field doesn't seem to get the focus. If I then change the window to be a > top level window, then the text field works perfectly. Does anyone know why > this is? > > Thanks for your time > > Ian King > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From hp@redhat.com Mon Jun 18 20:27:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1592D2DD26 for ; Mon, 18 Jun 2001 20:27:56 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J0RfZ01824; Mon, 18 Jun 2001 20:27:41 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Popup windows References: <220801c0f852$1ffee8a0$750a000a@naples> <221a01c0f855$1c8aa210$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 20:27:41 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 17:16:39 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > In follow up to the previous message, it seems that the key events are not > passed through for a popup window, but are for a top level window. Is there > a reason for this? > Yes, GTK_WINDOW_POPUP windows are not known to the window manager. So the window manager won't ever give them focus. You shouldn't use GTK_WINDOW_POPUP for windows that require focus, only for things like tooltips and menus. Havoc From king@eiffel.com Mon Jun 18 20:40:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id DF1F12DBE0 for ; Mon, 18 Jun 2001 20:40:40 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C9ZO-0003dt-00; Mon, 18 Jun 2001 17:40:38 -0700 Message-ID: <224b01c0f859$94870bb0$750a000a@naples> From: "Ian King" To: "Havoc Pennington" Cc: References: <220801c0f852$1ffee8a0$750a000a@naples><221a01c0f855$1c8aa210$750a000a@naples> Subject: Re: Popup windows Date: Mon, 18 Jun 2001 17:48:39 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to create a window with no decorations, that allows widgets inside it to behave as they do with a normal top level window. Can I create a top level window that 1) Has no decorations and only shows the client area. 2) Cannot be moved or resized by the user (I guess this is done by changing the window policy). I need this for things such as a code autocomplete window that pops up when you enter a keyboard accelerator and this brings up a list of possibilities for you to choose from. Thanks for your time. Ian King ----- Original Message ----- From: "Havoc Pennington" To: "Ian King" Cc: Sent: Monday, June 18, 2001 5:27 PM Subject: Re: Popup windows > > "Ian King" writes: > > In follow up to the previous message, it seems that the key events are not > > passed through for a popup window, but are for a top level window. Is there > > a reason for this? > > > > Yes, GTK_WINDOW_POPUP windows are not known to the window manager. So > the window manager won't ever give them focus. > > You shouldn't use GTK_WINDOW_POPUP for windows that require focus, > only for things like tooltips and menus. > > Havoc > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From rsteinke@w-link.net Mon Jun 18 21:13:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id DC3E52BCA3 for ; Mon, 18 Jun 2001 21:13:21 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CA9d-0003vj-00; Mon, 18 Jun 2001 18:18:05 -0700 Date: Mon, 18 Jun 2001 18:18:05 -0700 To: pbd@Op.Net, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2EA84D.nailBN41M8KO5@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> In-Reply-To: <200106182032.QAA27022@renoir.op.net> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: Paul Davis > > > I'm trying to connect to the key-press-event of a wigdet > >derived from GtkDrawingArea. It has a window, and I'm using > >gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to > >the GdkEventMask for the widget. Nonetheless, the signal > >isn't being emitted (it's not even showing up in the > >default function for the event signal in the derived > >widget). What am I forgetting? I'm using gtk 1.3, if > >that matters. > > did you set the CAN_FOCUS flag? otherwise, the widget will never > receive keyboard focus (i think) ... > I was missing that, so thanks. However, I changed that, and it still doesn't work. What else is missing? Ron Steinke From james@daa.com.au Mon Jun 18 21:18:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from quoll.daa.com.au (quoll.daa.com.au [203.17.251.129]) by mail.gnome.org (Postfix) with ESMTP id 871FC2E1F0 for ; Mon, 18 Jun 2001 21:18:32 -0400 (EDT) Received: from james.daa.com.au (james.daa.com.au [203.17.251.193]) by quoll.daa.com.au (Postfix) with ESMTP id E2ACDC0A4; Tue, 19 Jun 2001 09:18:27 +0800 (WST) Date: Tue, 19 Jun 2001 09:18:26 +0800 (WST) From: James Henstridge To: Skip Montanaro Cc: , Subject: Re: [pygtk] can I watch all signals being emitted? In-Reply-To: <15150.18895.379738.456168@beluga.mojam.com> Message-ID: X-message-flag: ALL YOUR BASE ARE BELONG TO US Reply-By: Sat 01 Jan 2000 00:00:00 +800 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, 18 Jun 2001, Skip Montanaro wrote: > > For debugging and tutorial purposes, is it possible to easily see all signal > emissions (or all signal emissions by a particular object)? There are some debug flags for the GType system, but at the moment the gobject module hard codes this to 0 (no flags). For now, you could change the line in gobjectmodule.c: g_type_init(0); to: g_type_init(G_TYPE_DEBUG_SIGNALS); I haven't really looked at making this configurable, as they were talking about changing this interface a little on gtk-devel-list James. -- Email: james@daa.com.au WWW: http://www.daa.com.au/~james/ From hp@redhat.com Mon Jun 18 22:26:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 3365A2C81E for ; Mon, 18 Jun 2001 22:26:10 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J2PtQ01909; Mon, 18 Jun 2001 22:25:55 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: pbd@Op.Net, gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> From: Havoc Pennington Date: 18 Jun 2001 22:25:55 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 18:18:05 -0700" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > > I was missing that, so thanks. However, I changed that, > and it still doesn't work. What else is missing? > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus indication if any. GTK 2.0 has default implementations that do this in GtkWidget. Havoc From hp@redhat.com Mon Jun 18 22:29:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 61DDA2DB51 for ; Mon, 18 Jun 2001 22:29:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J2Sht01912; Mon, 18 Jun 2001 22:28:43 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Popup windows References: <220801c0f852$1ffee8a0$750a000a@naples> <221a01c0f855$1c8aa210$750a000a@naples> <224b01c0f859$94870bb0$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 22:28:43 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 17:48:39 -0700" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > I want to create a window with no decorations, that allows widgets inside it > to behave as they do with a normal top level window. > > Can I create a top level window that > > 1) Has no decorations and only shows the client area. > 2) Cannot be moved or resized by the user (I guess this is done by changing > the window policy). > gdk_window_set_decorations (window->window, 0) to disable decorations, gtk_window_set_policy() to turn off resizing, disabling movement is impossible due to the way window management and X work. gdk_window_set_functions() in principle lets you disable movement but AFAIK most window managers ignore that hint. Havoc From cschadl@satan.org.uk Tue Jun 19 00:20:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ryoko.2y.net (235dul123.chartermi.net [206.11.235.123]) by mail.gnome.org (Postfix) with ESMTP id 5912F2BBAE for ; Tue, 19 Jun 2001 00:20:07 -0400 (EDT) Received: from ryoko.leet.org (lain [192.168.0.2]) by ryoko.2y.net (8.11.1/8.11.1) with SMTP id f5JHisi22533 for ; Tue, 19 Jun 2001 12:44:55 -0500 (CDT) (envelope-from cschadl@satan.org.uk) Date: Mon, 18 Jun 2001 23:21:11 -0500 From: Chris Schadl To: gtk-list@gnome.org Subject: Widgets not showing up Message-ID: <20010618232111.A24006@lain.leet.org> Reply-To: cschadl@satan.org.uk Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="AWniW0JNca5xppdA" Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.1.1 Lines: 159 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --AWniW0JNca5xppdA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit I've written a simple UI with a menubar, a hpaned window with a ctree and a clist packed into either side, and a status bar at the bottom of the window. Unfortunatley, only the hpaned container and its child widgets are displayed; the menubar and the status bar are not. Is there something wrong with my code that would cause this? I've writen simmilar interfaces that have worked just fine in the past, but this one has me stumped. --AWniW0JNca5xppdA Content-Type: text/x-c; charset=us-ascii Content-Disposition: attachment; filename="paned-test.c" #include #include void cb_delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { g_print("A delete_event occured.\n"); gtk_main_quit(); } void cb_clist_selection_made(GtkWidget *clist, gint row, gint column, GdkEventButton *event, gpointer data) { gchar *text; gtk_clist_get_text(GTK_CLIST(clist), row, column, &text); printf("%s was selected", text); } GtkWidget *create_main_window(void) { GtkWidget *window; GtkWidget *mainbox; GtkWidget *paned; GtkWidget *vbox; GtkWidget *scrolled_window; GtkWidget *scrolled2; GtkWidget *clist; GtkWidget *ctree; GtkWidget *entry; GtkWidget *status_bar; /* Menubar stuff */ GtkAccelGroup *group; GtkItemFactory *itemfactory; gint nmenu_items; GtkWidget *app_menubar; static GtkItemFactoryEntry menu_items[] = { { "/_File", "F", NULL, 0, "" }, { "/File/File", NULL, NULL, 0, "" }, { "/File/sep1", NULL, NULL, 0, "<Separator>" }, { "/File/_Quit", "<control>Q", gtk_main_quit, 0, "<Item>" } }; static gchar *clist_titles[] = { "Name", "Size" }; /* Containers */ window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize(GTK_WIDGET(window), 640, 480); gtk_window_set_title(GTK_WINDOW(window), "Paned window test"); gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(cb_delete_event), NULL); mainbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); paned = gtk_hpaned_new(); gtk_paned_set_position(GTK_PANED(paned), 200); gtk_container_add(GTK_CONTAINER(window), paned); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); scrolled_window = gtk_scrolled_window_new(NULL, NULL); gtk_container_add(GTK_CONTAINER(window), scrolled_window); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); scrolled2 = gtk_scrolled_window_new(NULL, NULL); gtk_container_add(GTK_CONTAINER(window), scrolled2); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled2), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); /* Widgets */ group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), group); nmenu_items = (sizeof (menu_items) / sizeof (menu_items[0])); itemfactory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "<main>", group); gtk_item_factory_create_items(itemfactory, nmenu_items, menu_items, NULL); app_menubar = gtk_item_factory_get_widget(itemfactory, "<main>"); clist = gtk_clist_new_with_titles(2, clist_titles); gtk_clist_set_shadow_type(GTK_CLIST(clist), GTK_SHADOW_ETCHED_IN); gtk_signal_connect(GTK_OBJECT(clist), "select_row", GTK_SIGNAL_FUNC(cb_clist_selection_made), GTK_CLIST(clist)); ctree = gtk_ctree_new(1,1); entry = gtk_entry_new(); status_bar = gtk_statusbar_new(); /* Pack widgets */ gtk_box_pack_start(GTK_BOX(mainbox), app_menubar, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(mainbox), paned, TRUE, TRUE, 0); gtk_box_pack_end(GTK_BOX(mainbox), status_bar, TRUE, FALSE, 0); gtk_paned_add1(GTK_PANED(paned), vbox); gtk_paned_add2(GTK_PANED(paned), scrolled_window); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), scrolled2, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(scrolled2), ctree); gtk_container_add(GTK_CONTAINER(scrolled_window), clist); /* Okay, all done. */ return(window); } int main(int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = create_main_window(); gtk_widget_show_all(window); gtk_main(); return 0; } --AWniW0JNca5xppdA-- From damon@ximian.com Tue Jun 19 00:42:08 2001 Return-Path: <damon@ximian.com> Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id 380F92CC57 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 00:42:08 -0400 (EDT) Received: from ximian.com (IDENT:damon@karuna.ximian.com [141.154.95.114]) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id AAA25961; Tue, 19 Jun 2001 00:42:06 -0400 Message-ID: <3B2ED7B9.63248AE6@ximian.com> Date: Tue, 19 Jun 2001 00:40:25 -0400 From: Damon Chaplin <damon@ximian.com> X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: cschadl@satan.org.uk Cc: gtk-list@gnome.org Subject: Re: Widgets not showing up References: <20010618232111.A24006@lain.leet.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Chris Schadl wrote: > > I've written a simple UI with a menubar, a hpaned window with a ctree and a > clist packed into either side, and a status bar at the bottom of the > window. Unfortunatley, only the hpaned container and its child widgets are > displayed; the menubar and the status bar are not. Is there something > wrong with my code that would cause this? I've writen simmilar interfaces > that have worked just fine in the past, but this one has me stumped. mainbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); ^^^^^^^^ Did you mean mainbox there? vbox hasn't been created yet! paned = gtk_hpaned_new(); gtk_paned_set_position(GTK_PANED(paned), 200); gtk_container_add(GTK_CONTAINER(window), paned); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); Why are you adding all these to window? A window can only have one child. (Didn't GTK+ complain about this?) Damon From rsteinke@w-link.net Tue Jun 19 00:57:45 2001 Return-Path: <rsteinke@w-link.net> Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 61E002E4F3 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 00:57:44 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CDen-0004T2-00; Mon, 18 Jun 2001 22:02:29 -0700 Date: Mon, 18 Jun 2001 22:02:29 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2EDCE5.nailD7J11VO0N@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> In-Reply-To: <y5wvglt434c.fsf@icon.labs.redhat.com> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke <rsteinke@w-link.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > From: Havoc Pennington <hp@redhat.com> > > Ron Steinke <rsteinke@w-link.net> writes: > > > > I was missing that, so thanks. However, I changed that, > > and it still doesn't work. What else is missing? > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > indication if any. GTK 2.0 has default implementations that do this in > GtkWidget. > But I am using 2.0 (really, 1.3, CVS within the last month or so), so this can't be it either. Ron Steinke From hp@redhat.com Tue Jun 19 02:10:44 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 39FCE2E4F7 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 02:10:44 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J6ATH01993; Tue, 19 Jun 2001 02:10:29 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke <rsteinke@w-link.net> Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 02:10:29 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 22:02:29 -0700" Message-ID: <y5w1yoh3sq2.fsf@icon.labs.redhat.com> Lines: 25 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ron Steinke <rsteinke@w-link.net> writes: > > From: Havoc Pennington <hp@redhat.com> > > > > Ron Steinke <rsteinke@w-link.net> writes: > > > > > > I was missing that, so thanks. However, I changed that, > > > and it still doesn't work. What else is missing? > > > > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > > indication if any. GTK 2.0 has default implementations that do this in > > GtkWidget. > > > > But I am using 2.0 (really, 1.3, CVS within the last month > or so), so this can't be it either. > I'm assuming you actually focus the drawing area (via tab key, or gtk_widget_grab_focus() on button press, or something?) Havoc From rbultje@ronald.bitfreak.net Tue Jun 19 03:24:21 2001 Return-Path: <rbultje@ronald.bitfreak.net> Delivered-To: gtk-list@gnome.org Received: from smtp8.xs4all.nl (smtp8.xs4all.nl [194.109.127.134]) by mail.gnome.org (Postfix) with ESMTP id 3F5D42E413 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 03:24:21 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp8.xs4all.nl (8.9.3/8.9.3) with ESMTP id JAA27822; Tue, 19 Jun 2001 09:24:18 +0200 (CEST) Message-ID: <3B2EFADF.2020404@ronald.bitfreak.net> Date: Tue, 19 Jun 2001 09:10:23 +0200 From: Ronald Bultje <rbultje@ronald.bitfreak.net> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us MIME-Version: 1.0 To: raphi2 raph <raphi2@caramail.com> Cc: gtk-list@gnome.org, otaylor@redhat.com Subject: Re: GTK / SDL bis References: <992901282019158@caramail.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> raphi2 raph wrote: >sprintf(SDL_windowhack,"SDL_WINDOWID=-543170384", > GDK_WINDOW_XWINDOW(drawing_area->window)); > ?????? How about: sprintf(SDL_windowhack,"SDL_WINDOWID=%d", GDK_WINDOW_XWINDOW(drawing_area->window)); Regards, Ronald From smanikandan_76@yahoo.com Tue Jun 19 05:18:38 2001 Return-Path: <smanikandan_76@yahoo.com> 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 1FB352DC01 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:17:58 -0400 (EDT) Received: from unknown (HELO vrpc) (192.122.174.191) by smtp.mail.vip.sc5.yahoo.com with SMTP; 19 Jun 2001 09:17:56 -0000 X-Apparently-From: <smanikandan?76@yahoo.com> Message-ID: <03ad01c0f8a0$c6d3f7d0$bfae7ac0@cisco.com> From: "S.Manikandan" <smanikandan_76@yahoo.com> To: <gtk-list@gnome.org> Subject: Configuration problems Date: Tue, 19 Jun 2001 14:48:15 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_03AA_01C0F8CE.DF4534E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> This is a multi-part message in MIME format. ------=_NextPart_000_03AA_01C0F8CE.DF4534E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , Iam newbie to gtk+ (gnome),i basically wanted to compile gnome,i = used CVS to download the latest sources.i was able to compile glib, but = gtk+ is giving problems,the environment is Solaris 2.6(SUN Sparc u-60) cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh = --prefix=3D/home/sw/gnu/gnome aclocal: /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated = macro `AM_PATH_AUDIOFILE' aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: 10: duplicated macro = `AM_PATH_ESD' gdk-pixbuf/pixops/Makefile.am:8: variable `GLIB_LIBS' not defined loading cache ./config.cache ./configure: syntax error at line 637: `AM_INIT_AUTOMAKE' unexpected Now type 'make' to compile Gtk+. cdsl2:/home/sw/gnu/gnome/src/gtk+>exit Thanks for ur help, Mani. ------=_NextPart_000_03AA_01C0F8CE.DF4534E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>    Iam newbie to gtk+ = (gnome),i=20 basically wanted to compile gnome,i used CVS to download the latest = sources.i=20 was able to compile glib, but gtk+ is giving problems,the environment is = Solaris=20 2.6(SUN Sparc u-60)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = size=3D2>cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh=20 --prefix=3D/home/sw/gnu/gnome<BR>aclocal:=20 /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated macro=20 `AM_PATH_AUDIOFILE'<BR>aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: = 10:=20 duplicated macro `AM_PATH_ESD'<BR>gdk-pixbuf/pixops/Makefile.am:8: = variable=20 `GLIB_LIBS' not defined<BR>loading cache ./config.cache<BR>./configure: = syntax=20 error at line 637: `AM_INIT_AUTOMAKE' unexpected</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Now type 'make' to compile=20 Gtk+.<BR>cdsl2:/home/sw/gnu/gnome/src/gtk+>exit</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for ur help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Mani.</FONT></DIV> <DIV><FONT face=3DArial = size=3D2></FONT> </DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_03AA_01C0F8CE.DF4534E0-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From rwan@cs.mu.oz.au Tue Jun 19 05:52:46 2001 Return-Path: <rwan@cs.mu.oz.au> Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 00AF32CF1C for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:52:41 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id TAA04369 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:52:38 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id B351075AA; Tue, 19 Jun 2001 19:52:37 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 7EFA3AC94 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:52:37 +1000 (EST) Date: Tue, 19 Jun 2001 19:52:37 +1000 (EST) From: Raymond Wan <rwan@cs.mu.oz.au> Reply-To: Raymond Wan <rwan@cs.mu.oz.au> To: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: <y5wsnh2aka7.fsf@icon.labs.redhat.com> Message-ID: <Pine.LNX.3.96.1010619194207.24080A-100000@vike.cs.mu.OZ.AU> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Havoc (or anyone else who knows the answer :) ), About the 1.3.6 release, On 14 Jun 2001, Havoc Pennington wrote: > The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this > release. These are available at: Do I need all three JPEG/PNG/TIFF installed or just one? In either case, does anyone know if I have to have root access to install them? I guess this is related to a question I asked a week ago; I followed the posted instructions and 1.3.5 installed fine, but 1.3.6 doesn't seem as easy. Without them, I only get part way through the GTK installation (GLib, Pango, Atk installed fine). Before I try again, I just want to do a quick check that I can install the above without root access... Thank you! Ray From okuno@blackbird.msr.mei.co.jp Tue Jun 19 07:25:56 2001 Return-Path: <okuno@blackbird.msr.mei.co.jp> Delivered-To: gtk-list@gnome.org Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.25]) by mail.gnome.org (Postfix) with ESMTP id 730EA2BB41 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 07:25:55 -0400 (EDT) Received: by bulls.mei.co.jp (8.11.3/3.7W) with ESMTP id f5JBPrX02247 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 20:25:53 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id UAA29394 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 20:25:51 +0900 (JST) Received: from blackbird.msr.mei.co.jp by msr.mei.co.jp (SMI-8.6/SMI-4.1) id UAA09067; Tue, 19 Jun 2001 20:24:24 +0900 Received: by blackbird.msr.mei.co.jp (Postfix, from userid 2235) id CBBADFB9; Tue, 19 Jun 2001 20:25:52 +0900 (JST) To: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: Your message of "14 Jun 2001 16:17:20 -0400". <y5wsnh2aka7.fsf@icon.labs.redhat.com> From: okuno@msr.mei.co.jp (Katsuhiro Okuno) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22PL4] 2000-05/28(Sun) Message-Id: <20010619112552.CBBADFB9@blackbird.msr.mei.co.jp> Date: Tue, 19 Jun 2001 20:25:52 +0900 (JST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm under Red Hat Linux 7.1 because of the libtool error. --------------------------------------------------------------------- /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' Fatal configuration error. See the libtool docs for more information. --------------------------------------------------------------------- But, I can compile it from pkgconfig-0.7.0.tar.gz without using RPM packaging system. (./configure, make, make install) Why? | A new release of the development versions of GTK+ and associated | libraries (GLib, Pango, Atk) is available at: | | ftp://ftp.gtk.org/pub/gtk/v1.3/ | | The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this | release. These are available at: From bruces@petech.ac.za Tue Jun 19 08:01:38 2001 Return-Path: <bruces@petech.ac.za> Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.37.151.38]) by mail.gnome.org (Postfix) with ESMTP id 979EA2E2A0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:01:35 -0400 (EDT) Received: from what (what.petech.ac.za [10.11.2.62]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id OAA07712 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:01:31 +0200 Message-ID: <01c301c0f8b7$e222a9c0$3e020b0a@petech.ac.za> From: "Bruce A. Smith" <bruces@petech.ac.za> To: <gtk-list@gnome.org> Subject: GTK+ Binding for Visual Basic Date: Tue, 19 Jun 2001 14:03:41 +0200 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.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Does anyone know if there is a VB or VB.Net binding for GTK+, either existing or in the works? Bruce Smith BI Developer/Internet Service Administrator Computer Services Port Elizabeth Technikon Tel: (041) 504-3649 Fax: (041) 504-3189 From bruces@mail.petech.ac.za Tue Jun 19 08:18:53 2001 Return-Path: <bruces@mail.petech.ac.za> Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.37.151.38]) by mail.gnome.org (Postfix) with ESMTP id 2D9AE2E54F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:18:03 -0400 (EDT) Received: from what (what.petech.ac.za [10.11.2.62]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id OAA08240 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:17:58 +0200 Message-ID: <01d901c0f8ba$2ee5ee00$3e020b0a@petech.ac.za> From: "Bruce A. Smith" <bruces@mail.petech.ac.za> To: <gtk-list@gnome.org> Subject: GTK+ Binding for Visual Basic Date: Tue, 19 Jun 2001 14:20:09 +0200 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.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Does anyone know if there is a VB or VB.Net binding for GTK+, either existing or in the works? Bruce Smith BI Developer/Internet Service Administrator Computer Services Port Elizabeth Technikon Tel: (041) 504-3649 Fax: (041) 504-3189 From mshanmug@cisco.com Tue Jun 19 05:07:53 2001 Return-Path: <mshanmug@cisco.com> Delivered-To: gtk-list@gnome.org Received: from cisco.com (desh.cisco.com [192.122.173.43]) by mail.gnome.org (Postfix) with ESMTP id 195E12BB45 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:07:52 -0400 (EDT) Received: from vrpc ([192.122.174.191]) by cisco.com (8.8.8-Cisco List Logging/8.8.8) with SMTP id OAA29164 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:37:23 +0530 (IST) Message-ID: <039001c0f89f$5ce20a20$bfae7ac0@cisco.com> From: "S.Manikandan" <mshanmug@cisco.com> To: <gtk-list@gnome.org> Subject: Configuration problems Date: Tue, 19 Jun 2001 14:38:09 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_038D_01C0F8CD.761E8670" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> This is a multi-part message in MIME format. ------=_NextPart_000_038D_01C0F8CD.761E8670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , Iam newbie to gtk+ (gnome),i basically wanted to compile gnome,i = used CVS to download the latest sources.i was able to compile glib, but = gtk+ is giving problems,the environment is Solaris 2.6(SUN Sparc u-60) cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh = --prefix=3D/home/sw/gnu/gnome aclocal: /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated = macro `AM_PATH_AUDIOFILE' aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: 10: duplicated macro = `AM_PATH_ESD' gdk-pixbuf/pixops/Makefile.am:8: variable `GLIB_LIBS' not defined loading cache ./config.cache ./configure: syntax error at line 637: `AM_INIT_AUTOMAKE' unexpected Now type 'make' to compile Gtk+. cdsl2:/home/sw/gnu/gnome/src/gtk+>exit Thanks for ur help, Mani. ------=_NextPart_000_038D_01C0F8CD.761E8670 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>    Iam newbie to gtk+ = (gnome),i=20 basically wanted to compile gnome,i used CVS to download the latest = sources.i=20 was able to compile glib, but gtk+ is giving problems,the environment is = Solaris=20 2.6(SUN Sparc u-60)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = size=3D2>cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh=20 --prefix=3D/home/sw/gnu/gnome<BR>aclocal:=20 /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated macro=20 `AM_PATH_AUDIOFILE'<BR>aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: = 10:=20 duplicated macro `AM_PATH_ESD'<BR>gdk-pixbuf/pixops/Makefile.am:8: = variable=20 `GLIB_LIBS' not defined<BR>loading cache ./config.cache<BR>./configure: = syntax=20 error at line 637: `AM_INIT_AUTOMAKE' unexpected</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Now type 'make' to compile=20 Gtk+.<BR>cdsl2:/home/sw/gnu/gnome/src/gtk+>exit</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for ur help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Mani.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_038D_01C0F8CD.761E8670-- From otaylor@redhat.com Tue Jun 19 08:28:07 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B6D892E827 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:26:18 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 3372D242315; Tue, 19 Jun 2001 08:26:18 -0400 (EDT) To: okuno@msr.mei.co.jp (Katsuhiro Okuno) Cc: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) References: <20010619112552.CBBADFB9@blackbird.msr.mei.co.jp> From: Owen Taylor <otaylor@redhat.com> Date: 19 Jun 2001 08:26:18 -0400 In-Reply-To: okuno@msr.mei.co.jp's message of "Tue, 19 Jun 2001 20:25:52 +0900 (JST)" Message-ID: <ybeelsg4pw5.fsf@fresnel.labs.redhat.com> Lines: 27 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> okuno@msr.mei.co.jp (Katsuhiro Okuno) writes: > I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm > under Red Hat Linux 7.1 because of the libtool error. > > --------------------------------------------------------------------- > /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la > libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' > Fatal configuration error. See the libtool docs for more information. > --------------------------------------------------------------------- The spec file uses %configure which in turn calls libtoolize. But the libtool on your system is older than that in the package, and this causes problems. You can: - change the specfile not to use %configure - Edit the definition of %configure in /usr/lib/rpm/macros not to run libtoolize - Install newer libtool packages http://people.redhat.com/otaylor/libtool-rpms/ Regards, Owen From timj@gtk.org Tue Jun 19 08:37:46 2001 Return-Path: <timj@gtk.org> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id CA7C92D14D for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:37:45 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id IAA20844; Tue, 19 Jun 2001 08:37:45 -0400 Received: from hmbg-3e36c6d9.pool.mediaWays.net (hmbg-3e36c6d9.pool.mediaWays.net [62.54.198.217]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JCaSb30676; Tue, 19 Jun 2001 08:36:28 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JCd7Q2022431; Tue, 19 Jun 2001 14:39:07 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5JCcu516606; Tue, 19 Jun 2001 14:38:56 +0200 Date: Tue, 19 Jun 2001 14:38:56 +0200 (CEST) From: Tim Janik <timj@gtk.org> X-Sender: timj@birgrave.birnet.private To: Alex Larsson <alexl@redhat.com> Cc: Owen Taylor <otaylor@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <Pine.LNX.4.33.0106181216290.6187-100000@devserv.devel.redhat.com> Message-ID: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On Mon, 18 Jun 2001, Alex Larsson wrote: > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > I'm not sure. Considering that inline functions in C or statement > > > expressions aren't portable, and I think GObject should probably > > > perform portably, it's conceivable that the danger is worth it. > > > I think it was worth it for the GTK_OBJECT() macro. > > > > i don't think there's much to worry about compilers that can't inline > > nowadays. glib ensures that static inline at least works on such systems > > by providing a non-static linkable version, if static inline isn't supported. > > so worst-case scenario is that for inline-incapable compilers an extra > > function call is performed. > > I'd like to point out here that GCC produces better code for macros than > inline functions. This will continue to be true in GCC 3.0, and in the > future until the tree inliner is ported from the c++ compiler to the c > compiler. well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, if that produces better code than using static inline instead, feel free to provide a gcc-special cased patch, once we have the static inlines ;) > > / Alex > --- ciaoTJ From okuno@blackbird.msr.mei.co.jp Tue Jun 19 08:43:38 2001 Return-Path: <okuno@blackbird.msr.mei.co.jp> Delivered-To: gtk-list@gnome.org Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.25]) by mail.gnome.org (Postfix) with ESMTP id 30D1F2E551 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:43:37 -0400 (EDT) Received: by bulls.mei.co.jp (8.11.3/3.7W) with ESMTP id f5JChYX03666; Tue, 19 Jun 2001 21:43:35 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id VAA02345; Tue, 19 Jun 2001 21:43:33 +0900 (JST) Received: from blackbird.msr.mei.co.jp by msr.mei.co.jp (SMI-8.6/SMI-4.1) id VAA10212; Tue, 19 Jun 2001 21:42:07 +0900 Received: by blackbird.msr.mei.co.jp (Postfix, from userid 2235) id 7A2DDFB9; Tue, 19 Jun 2001 21:43:34 +0900 (JST) To: otaylor@redhat.com Cc: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: Your message of "19 Jun 2001 08:26:18 -0400". <ybeelsg4pw5.fsf@fresnel.labs.redhat.com> From: okuno@msr.mei.co.jp (Katsuhiro Okuno) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22PL4] 2000-05/28(Sun) Message-Id: <20010619124334.7A2DDFB9@blackbird.msr.mei.co.jp> Date: Tue, 19 Jun 2001 21:43:34 +0900 (JST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I updated automake & libtool, so I could solve the problem. Thank you for your advice. | > I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm | > under Red Hat Linux 7.1 because of the libtool error. | > | > --------------------------------------------------------------------- | > /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la | > libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' | > Fatal configuration error. See the libtool docs for more information. | > --------------------------------------------------------------------- | | The spec file uses %configure which in turn calls libtoolize. But | the libtool on your system is older than that in the package, | and this causes problems. | | You can: | | - change the specfile not to use %configure | - Edit the definition of %configure in /usr/lib/rpm/macros not | to run libtoolize | - Install newer libtool packages | http://people.redhat.com/otaylor/libtool-rpms/ | | Regards, | Owen From markus.kuehni@trilab.ch Tue Jun 19 08:43:38 2001 Return-Path: <markus.kuehni@trilab.ch> Delivered-To: gtk-list@gnome.org Received: from mta1n.bluewin.ch (mta1n.bluewin.ch [195.186.1.210]) by mail.gnome.org (Postfix) with ESMTP id 6F4152E554 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:43:38 -0400 (EDT) Received: from vpower (195.186.130.224) by mta1n.bluewin.ch (Bluewin AG MX engine 5.5.031) id 3B2F46B000000373 for gtk-list@gnome.org; Tue, 19 Jun 2001 14:43:37 +0200 From: =?iso-8859-1?Q?Markus_K=FChni?= <markus.kuehni@trilab.ch> To: <gtk-list@gnome.org> Subject: Delta between GTK+ and Gnome Date: Tue, 19 Jun 2001 14:45:05 +0200 Message-ID: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> 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 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? What I already know (tested on Gnome 1.4): - a GTK+/wxGTK app will adapt to themes/styles - a GTK+/wxGTK app will support copy paste (I plan to use wxWindows/wxGTK) Thanks for all help, Mark From otaylor@redhat.com Tue Jun 19 09:05:15 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 8C2AC2E5A5 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:05:15 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id JAA25078; Tue, 19 Jun 2001 09:05:15 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EF2FD242315; Tue, 19 Jun 2001 09:05:14 -0400 (EDT) To: Tim Janik <timj@gtk.org> Cc: Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> From: Owen Taylor <otaylor@redhat.com> Date: 19 Jun 2001 09:05:14 -0400 In-Reply-To: Tim Janik's message of "Tue, 19 Jun 2001 14:38:56 +0200 (CEST)" Message-ID: <ybe66ds4o39.fsf@fresnel.labs.redhat.com> Lines: 30 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Tim Janik <timj@gtk.org> writes: > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > expressions aren't portable, and I think GObject should probably > > > > perform portably, it's conceivable that the danger is worth it. > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > i don't think there's much to worry about compilers that can't inline > > > nowadays. glib ensures that static inline at least works on such systems > > > by providing a non-static linkable version, if static inline isn't supported. > > > so worst-case scenario is that for inline-incapable compilers an extra > > > function call is performed. > > > > I'd like to point out here that GCC produces better code for macros than > > inline functions. This will continue to be true in GCC 3.0, and in the > > future until the tree inliner is ported from the c++ compiler to the c > > compiler. > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > if that produces better code than using static inline instead, feel > free to provide a gcc-special cased patch, once we have the static inlines ;) 'static inline' is, of course, very much a GCC extension. Owen From andres_giraldo@yahoo.com Tue Jun 19 09:38:47 2001 Return-Path: <andres_giraldo@yahoo.com> Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id 119832CA0E for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:38:33 -0400 (EDT) Message-ID: <20010619133832.32971.qmail@web11502.mail.yahoo.com> Received: from [209.205.77.166] by web11502.mail.yahoo.com; Tue, 19 Jun 2001 06:38:32 PDT Date: Tue, 19 Jun 2001 06:38:32 -0700 (PDT) From: "Andrés" Giraldo <andres_giraldo@yahoo.com> Subject: A Modal Window To: Gtk List <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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi! I need to call a window that shows 2 options in buttons, yes or no, and I need to wait for that answer, something like a vbModal in MS-Visual Basic... A window that waits until it's unloaded How can I do this? Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From timj@gtk.org Tue Jun 19 09:47:49 2001 Return-Path: <timj@gtk.org> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 6E1DA2E11D for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:47:39 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id JAA00601; Tue, 19 Jun 2001 09:47:39 -0400 Received: from hmbg-3e36c6d9.pool.mediaWays.net (hmbg-3e36c6d9.pool.mediaWays.net [62.54.198.217]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JDkMb04418; Tue, 19 Jun 2001 09:46:22 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JDn3Q2024345; Tue, 19 Jun 2001 15:49:03 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5JDn3312003; Tue, 19 Jun 2001 15:49:03 +0200 Date: Tue, 19 Jun 2001 15:49:02 +0200 (CEST) From: Tim Janik <timj@gtk.org> X-Sender: timj@birgrave.birnet.private To: Owen Taylor <otaylor@redhat.com> Cc: Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <ybe66ds4o39.fsf@fresnel.labs.redhat.com> Message-ID: <Pine.LNX.4.21.0106191547090.11924-100000@birgrave.birnet.private> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On 19 Jun 2001, Owen Taylor wrote: > > Tim Janik <timj@gtk.org> writes: > > > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > > expressions aren't portable, and I think GObject should probably > > > > > perform portably, it's conceivable that the danger is worth it. > > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > > > i don't think there's much to worry about compilers that can't inline > > > > nowadays. glib ensures that static inline at least works on such systems > > > > by providing a non-static linkable version, if static inline isn't supported. > > > > so worst-case scenario is that for inline-incapable compilers an extra > > > > function call is performed. > > > > > > I'd like to point out here that GCC produces better code for macros than > > > inline functions. This will continue to be true in GCC 3.0, and in the > > > future until the tree inliner is ported from the c++ compiler to the c > > > compiler. > > > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > > if that produces better code than using static inline instead, feel > > free to provide a gcc-special cased patch, once we have the static inlines ;) > > 'static inline' is, of course, very much a GCC extension. huh? that'd be new to me, "extern inline" is, but "static inline" should be handled by any compiler that's capable of handling inline functions. > > Owen > --- ciaoTJ From Sander.Vesik@Sun.COM Tue Jun 19 10:05:51 2001 Return-Path: <Sander.Vesik@Sun.COM> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 5F6C42DE95 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:05:51 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id KAA06296; Tue, 19 Jun 2001 10:05:50 -0400 Received: from patan.sun.com (patan.Sun.COM [192.18.98.43]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JE4Yb06603; Tue, 19 Jun 2001 10:04:35 -0400 Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA11805; Tue, 19 Jun 2001 08:05:42 -0600 (MDT) Received: from blossom (blossom [129.156.238.67]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.1p1) with ESMTP id PAA04783; Tue, 19 Jun 2001 15:05:43 +0100 (BST) Date: Tue, 19 Jun 2001 15:05:43 +0100 (BST) From: Sander Vesik <Sander.Vesik@Sun.COM> X-Sender: sv117949@blossom To: Tim Janik <timj@gtk.org> Cc: Owen Taylor <otaylor@redhat.com>, Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <Pine.LNX.4.21.0106191547090.11924-100000@birgrave.birnet.private> Message-ID: <Pine.GSO.4.10.10106191458140.4596-100000@blossom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On Tue, 19 Jun 2001, Tim Janik wrote: > On 19 Jun 2001, Owen Taylor wrote: > > huh? that'd be new to me, "extern inline" is, but "static inline" should > be handled by any compiler that's capable of handling inline functions. > One would hope. It's unfortunately not the case though. On the other side of the coin: * compilers are allowed to totally inline any static function * it doesn't really make any sense to use anything but static scope for inline functions (making 'static inline' redundant) * I fail to see what an 'extern inline' would be, esp. in a world where the only toolchain doing link time optimisations died out long ago > > > > Owen > > > > --- > ciaoTJ > Sander One day a tortoise will learn to fly -- Terry Pratchett, 'Small Gods' From rsteinke@w-link.net Tue Jun 19 10:26:39 2001 Return-Path: <rsteinke@w-link.net> Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 3226B2D2C3 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:26:39 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CMXP-0005oz-00; Tue, 19 Jun 2001 07:31:27 -0700 Date: Tue, 19 Jun 2001 07:31:27 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2F623F.nailH6K1ZB6VV@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> <y5w1yoh3sq2.fsf@icon.labs.redhat.com> In-Reply-To: <y5w1yoh3sq2.fsf@icon.labs.redhat.com> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke <rsteinke@w-link.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > From: Havoc Pennington <hp@redhat.com> > Ron Steinke <rsteinke@w-link.net> writes: > > > From: Havoc Pennington <hp@redhat.com> > > > Ron Steinke <rsteinke@w-link.net> writes: > > > > > > > > I was missing that, so thanks. However, I changed that, > > > > and it still doesn't work. What else is missing? > > > > > > > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > > > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > > > indication if any. GTK 2.0 has default implementations that do this in > > > GtkWidget. > > > > > > > But I am using 2.0 (really, 1.3, CVS within the last month > > or so), so this can't be it either. > > > > I'm assuming you actually focus the drawing area (via tab key, or > gtk_widget_grab_focus() on button press, or something?) That was it. Thanks. Perhaps a short lecture on the way focus works in GTK is in order? Ron Steinke From skip@beluga.mojam.com Tue Jun 19 10:39:49 2001 Return-Path: <skip@beluga.mojam.com> Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id EE2B52E58F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:39:48 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5JEddb03921; Tue, 19 Jun 2001 09:39:39 -0500 From: Skip Montanaro <skip@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15151.25642.289448.283702@beluga.mojam.com> Date: Tue, 19 Jun 2001 09:39:38 -0500 To: James Henstridge <james@daa.com.au> Cc: <gtk-list@gnome.org>, <pygtk@daa.com.au> Subject: Re: [pygtk] can I watch all signals being emitted? In-Reply-To: <Pine.LNX.4.33.0106190906310.21072-100000@james.daa.com.au> References: <15150.18895.379738.456168@beluga.mojam.com> <Pine.LNX.4.33.0106190906310.21072-100000@james.daa.com.au> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> James> g_type_init(G_TYPE_DEBUG_SIGNALS); Thanks, this is just what I need. I'll whip up some configurability for my own needs. Skip From corsepiu@faw.uni-ulm.de Tue Jun 19 11:16:46 2001 Return-Path: <corsepiu@faw.uni-ulm.de> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id CAEF32DB78 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:16:46 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA27297 for <gtk-list@lacrosse.redhat.com>; Tue, 19 Jun 2001 11:16:46 -0400 Received: from www.faw.uni-ulm.de (www.faw.uni-ulm.de [134.60.100.4]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f5JFFSb17064 for <gtk-list@redhat.com>; Tue, 19 Jun 2001 11:15:29 -0400 Received: (qmail 17758 invoked from network); 19 Jun 2001 15:16:41 -0000 Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (134.60.101.174) by www-intern.faw.uni-ulm.de with SMTP; 19 Jun 2001 15:16:41 -0000 Received: (qmail 4006 invoked by uid 0); 19 Jun 2001 15:16:38 -0000 Received: from dialin13.faw.uni-ulm.de (HELO faw.uni-ulm.de) (corsepiu@172.18.1.13) by mailserv.faw.uni-ulm.de with SMTP; 19 Jun 2001 15:16:38 -0000 Message-ID: <3B2F6CCC.68CE885E@faw.uni-ulm.de> Date: Tue, 19 Jun 2001 17:16:28 +0200 From: Ralf Corsepius <corsepiu@faw.uni-ulm.de> Reply-To: corsepiu@faw.uni-ulm.de Organization: Ralf Corsepius X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.4-4GB-SMP i686) X-Accept-Language: de-DE, en MIME-Version: 1.0 To: Owen Taylor <otaylor@redhat.com> Cc: Tim Janik <timj@gtk.org>, Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> <ybe66ds4o39.fsf@fresnel.labs.redhat.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Owen Taylor wrote: > > Tim Janik <timj@gtk.org> writes: > > > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > > expressions aren't portable, and I think GObject should probably > > > > > perform portably, it's conceivable that the danger is worth it. > > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > > > i don't think there's much to worry about compilers that can't inline > > > > nowadays. glib ensures that static inline at least works on such systems > > > > by providing a non-static linkable version, if static inline isn't supported. > > > > so worst-case scenario is that for inline-incapable compilers an extra > > > > function call is performed. > > > > > > I'd like to point out here that GCC produces better code for macros than > > > inline functions. This will continue to be true in GCC 3.0, and in the > > > future until the tree inliner is ported from the c++ compiler to the c > > > compiler. > > > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > > if that produces better code than using static inline instead, feel > > free to provide a gcc-special cased patch, once we have the static inlines ;) > > 'static inline' is, of course, very much a GCC extension. No, but you're right, it is non-portable. However, you know how to write portability macros, don't you? Ralf From hp@redhat.com Tue Jun 19 11:57:22 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A16F32D2D1 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:57:22 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JFv6H02331; Tue, 19 Jun 2001 11:57:06 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke <rsteinke@w-link.net> Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> <y5w1yoh3sq2.fsf@icon.labs.redhat.com> <3B2F623F.nailH6K1ZB6VV@yggdrasil> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 11:57:06 -0400 In-Reply-To: Ron Steinke's message of "Tue, 19 Jun 2001 07:31:27 -0700" Message-ID: <y5wbsnkh38t.fsf@icon.labs.redhat.com> Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ron Steinke <rsteinke@w-link.net> writes: > That was it. Thanks. Perhaps a short lecture on the way focus works > in GTK is in order? > Well, it isn't really that complicated from this standpoint - if you want your widget to get focus you set GTK_CAN_FOCUS, then whenever you get the focus (normally from tab key or a mnemonic, or widgets can implement button_press handlers), then you will get key events. The more complicated issues are: - how GTK decides on the tab order (GtkWidget::focus method) - the overall key event handling (Owen has a diagram somewhere) Basically, key events go first to the focus widget, if not used there they go to the toplevel window. If you want "global" hotkeys, then you want to connect to key_press_event on the toplevel, rather than on a child widget. Havoc From hp@redhat.com Tue Jun 19 12:04:01 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 381A82DBF0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 12:04:01 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JG3i602338; Tue, 19 Jun 2001 12:03:44 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Markus =?iso-8859-1?q?K=FChni?= <markus.kuehni@trilab.ch> Cc: <gtk-list@gnome.org> Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 12:03:44 -0400 In-Reply-To: Markus =?iso-8859-1?q?K=FChni's?= message of "Tue, 19 Jun 2001 14:45:05 +0200" Message-ID: <y5w7ky8h2xr.fsf@icon.labs.redhat.com> Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Markus K=FChni <markus.kuehni@trilab.ch> writes: >=20 > If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? >=20 For GTK 1.2, you are missing GnomeCanvas, GnomeDialog, stock icons.=20 Also unless you use gdk-pixbuf you're missing image loading. For GTK 2.0, you are missing GnomeCanvas but there's a libgnomecanvas separate from other gnome libs. For both GTK's you are missing session management. Those are the things I would personally consider interesting, other people will post more opinions no doubt. ;-) Havoc From Valdis.Kletnieks@vt.edu Tue Jun 19 13:51:36 2001 Return-Path: <Valdis.Kletnieks@vt.edu> 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 DA2342E621 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 13:51:35 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5JHpSg07250; Tue, 19 Jun 2001 13:51:28 -0400 Message-Id: <200106191751.f5JHpSg07250@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: Havoc Pennington <hp@redhat.com> Cc: Ian King <king@eiffel.com>, gtk-list@gnome.org Subject: Re: Visual types In-Reply-To: Your message of "Mon, 18 Jun 2001 17:49:51 EDT." <y5wzob5jw5c.fsf@icon.labs.redhat.com> 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[<!v4-0bVIpaxF#-) %9#a9h6JXI|T|8o6t\V?kGl]Q!1V]GtNliUtz:3},0"hkPeBuu%E,j(:\iOX-P,t7lRR# References: <211901c0f836$71f778a0$750a000a@naples> <y5wzob5jw5c.fsf@icon.labs.redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-989886808P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 19 Jun 2001 13:51:28 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> --==_Exmh_-989886808P Content-Type: text/plain; charset=us-ascii On Mon, 18 Jun 2001 17:49:51 EDT, Havoc Pennington said: > There's just no real point using a visual other than the default, > ever. Unless your app is written specifically for certain hardware > such as an SGI. > > (The only exception is to use the GdkRGB visual for drawables where > you'll draw RGB data, but in GTK 2 this isn't even necessary.) The other exception is where your default visual is 24 bit, but you are trying to optimize for speed, and thus want to use a 8 or 16 bit visual. There was a review of XFree86 4.1.0, which showed this effect: http://www.thedukeofurl.org/reviews/misc/xfree86410/4.shtml Look at the XBench results for 16 and 32 bit. And of course, if you're trying to use X-over-ssh or lbxproxy or just remote display of an X window, and are pumping all the pixmaps over an actual wire, cutting 60% of your network traffic by ysing an 8-bit visual rather than 24-bit may be *really* crucial... -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-989886808P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOy+RIHAt5Vm009ewEQK1bQCg8NDjHPiy4+MWNaHIzFzPgfL5ht4AoK7a Wb5okkD3TF7t2xdV5OF9IFkG =hN3+ -----END PGP SIGNATURE----- --==_Exmh_-989886808P-- From rbultje@ronald.bitfreak.net Tue Jun 19 14:11:37 2001 Return-Path: <rbultje@ronald.bitfreak.net> Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 5C9BD2BB95 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:11:37 -0400 (EDT) Received: from [192.168.0.45] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5JIsIF21849; Tue, 19 Jun 2001 20:54:18 +0200 (CEST) Subject: Re: Delta between GTK+ and Gnome From: Ronald Bultje <rbultje@ronald.bitfreak.net> To: Havoc Pennington <hp@redhat.com> Cc: Markus =?ISO-8859-1?Q?K=FChni?= <markus.kuehni@trilab.ch>, gtk-list@gnome.org In-Reply-To: <y5w7ky8h2xr.fsf@icon.labs.redhat.com> References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 19 Jun 2001 20:11:28 +0200 Message-Id: <992974289.755.2.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On 19 Jun 2001 12:03:44 -0400, Havoc Pennington wrote: > Markus Kühni <markus.kuehni@trilab.ch> writes: > > > > If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? > > > > For GTK 1.2, you are missing GnomeCanvas, GnomeDialog, stock icons. > Also unless you use gdk-pixbuf you're missing image loading. Side-note: I thought gdk-pixbuf depends on Gnome so you're missing it anyway? > Those are the things I would personally consider interesting, other > people will post more opinions no doubt. ;-) Uniform style. The fact that every "New document" button in a toolbar looks the same in each and every app, and the same for "save", "load", "cut", "copy" and so on. That's what makes Gnome so attractive imho, most users (if not all) really appreciate having a uniform style throughout the whole graphical interface they use. Regards, Ronald -- - .-. - /V\ | Ronald Bultje <rbultje@ronald.bitfreak.net> - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From sven@gimp.org Tue Jun 19 14:35:46 2001 Return-Path: <sven@gimp.org> Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id A69872BD9F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:35:46 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15CQEs-00087s-00; Tue, 19 Jun 2001 20:28:34 +0200 To: Ronald Bultje <rbultje@ronald.bitfreak.net> Cc: gtk-list@gnome.org Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> <992974289.755.2.camel@tux> From: Sven Neumann <sven@gimp.org> Date: 19 Jun 2001 20:28:34 +0200 In-Reply-To: <992974289.755.2.camel@tux> Message-ID: <yfxwv68uxwt.fsf@gimp.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, Ronald Bultje <rbultje@ronald.bitfreak.net> writes: > Side-note: I thought gdk-pixbuf depends on Gnome so you're missing it > anyway? who told you that? It's plain wrong. Salut, Sven From deekshit.mantampady@wipro.com Tue Jun 19 15:03:32 2001 Return-Path: <deekshit.mantampady@wipro.com> 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 E1ED42CF0A for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:03:30 -0400 (EDT) Received: from m2hub.mail.wipro.com (m2hub.wipro.com [164.164.27.50]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with ESMTP id f5K0gBZ19556 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 00:42:11 GMT Received: from m2vwall2.wipro.com ([164.164.27.52]) by m2hub.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GF6Y0M00.SNG for <gtk-list@gnome.org>; Wed, 20 Jun 2001 00:27:58 +0530 Received: from wipro.com ([192.168.22.180]) by sarovar.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GF69PQ00.8R6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:43:02 +0530 Message-ID: <3B2F2499.2803AA34@wipro.com> Date: Tue, 19 Jun 2001 03:08:25 -0700 From: Deekshit Mantampady <deekshit.mantampady@wipro.com> X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: GTK List <gtk-list@gnome.org> Subject: Run time errors..... 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, I installed the development version of gtk(1.3.5), with the corresponding development version of glib. After that I tried to compile the frame.c file, which is available with the gtk1.3.5 pakage (Path : gtk+-1.3.5\exapmles\frame\frame.c), using the Make file, which I have pased at the end. The compiltaion was success. But while executing, it gave me the following run-time errors. I don't know how to solve the problem. I tested the same before installing the gtk 1.3.5. using the Makefile, whic was there in the same folder of frame.c. It was working fine. I installed this version of gtk only to use the GdkGC, which was not properly implemented in the stable version(The only member of the GdkGC class is glong dummy_var, which I think doesn't do anything. Can anybody help me to solve the problem. I am using Redhat 6.2 version of Linux. -------------------- Makefile ----------------------------- PKG_CONFIG_PATH=/root CC = gcc frame: frame.c $(CC) `pkg-config --cflags gtk+-2.0` frame.c -o frame \ `pkg-config --libs gtk+-2.0` clean: rm -f *.o frame -------------------------------------------------------- -------------------------- Error--------------------------- Gtk-Message: YOU ARE USING THE DEVEL BRANCH 1.3.x OF GTK+ WHICH IS CURRENTLY UNDER HEAVY DEVELOPMENT AND FREQUENTLY INTRODUCES INSTABILITIES. if you don't know why you are getting this, you probably want to use the stable branch which can be retrived from ftp://ftp.gtk.org/pub/gtk/v1.2/ or via CVS with cvs checkout -r glib-1-2 glib; cvs checkout -r gtk-1-2 gtk+ ** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" ** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed ** CRITICAL **: file pango-context.c: line 666 (fallback_engine_shape): assertion `font != NUL L' failed ** ERROR **: file shape.c: line 57 (pango_shape): assertion failed: (glyphs->num_glyphs > 0)ab orting... Trace/breakpoint trap (core dumped) From hp@redhat.com Tue Jun 19 15:39:05 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 74FEE2D3B5 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:39:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JJchn02420; Tue, 19 Jun 2001 15:38:43 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje <rbultje@ronald.bitfreak.net> Cc: Markus =?iso-8859-1?q?K=FChni?= <markus.kuehni@trilab.ch>, gtk-list@gnome.org Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> <992974289.755.2.camel@tux> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 15:38:43 -0400 In-Reply-To: Ronald Bultje's message of "19 Jun 2001 20:11:28 +0200" Message-ID: <y5wg0cwfef0.fsf@icon.labs.redhat.com> Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ronald Bultje <rbultje@ronald.bitfreak.net> writes: > Uniform style. The fact that every "New document" button in a toolbar > looks the same in each and every app, and the same for "save", "load", > "cut", "copy" and so on. > That's what makes Gnome so attractive imho, most users (if not all) > really appreciate having a uniform style throughout the whole graphical > interface they use. > This is what I meant by "stock icons," for GTK 2 it's in GTK. Havoc From jan_teubel@gmx.net Tue Jun 19 16:36:29 2001 Return-Path: <jan_teubel@gmx.net> Delivered-To: gtk-list@gnome.org Received: from einhorn.in-berlin.de (einhorn.colt.in-berlin.de [213.61.118.8]) by mail.gnome.org (Postfix) with ESMTP id 7FD032DF87 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:36:28 -0400 (EDT) Received: from gmx.net (DialIN077.colt.vr.in-berlin.de [213.61.119.205]) (authenticated (0 bits)) by einhorn.in-berlin.de (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id f5JKaRP27383 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 22:36:27 +0200 X-Envelope-From: jan_teubel@gmx.net X-Envelope-To: <gtk-list@gnome.org> X-Authentication-Warning: einhorn.in-berlin.de: Host DialIN077.colt.vr.in-berlin.de [213.61.119.205] claimed to be gmx.net Message-ID: <3B2FB7BA.6060304@gmx.net> Date: Tue, 19 Jun 2001 22:36:10 +0200 From: "J. Teubel" <jan_teubel@gmx.net> User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Compiling Gtk+ 1.3.6 on Debian 2.2r3 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hello, I try to compile Gtk+ 1.3.6 on Debian 2.2r3. I downloaded the all-in-one package. gdkdrawable-x11.c complains that Xft.h is not found on my system. I searched trough my entire harddisk, this file is nowhere. xlib dev is installed and all the other libs needed for compiling. I also searched through debian.org and google but nothing helps me. What's wrong? Thanks for your help, Jan From wolfgang@contre.com Tue Jun 19 16:46:42 2001 Return-Path: <wolfgang@contre.com> Delivered-To: gtk-list@gnome.org Received: from cogito.cam.org (cogito.cam.org [198.168.100.2]) by mail.gnome.org (Postfix) with ESMTP id 422E02BEB0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:42 -0400 (EDT) Received: from dialup-98-44-84-199.hip.cam.org (root@dialup-98-44-84-199.hip.cam.org [199.84.44.98]) by cogito.cam.org (8.11.0/8.11.0.Beta1) with ESMTP id f5JKkeE08275 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:40 -0400 Received: from debian.home (wolfgang@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JKkbCA000800 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:39 -0400 Date: Tue, 19 Jun 2001 16:46:37 -0400 Message-ID: <85ithskxjm.wl@debian.home> From: Wolfgang Sourdeau <wolfgang@contre.com> To: gtk-list@gnome.org Subject: Re: Compiling Gtk+ 1.3.6 on Debian 2.2r3 Mail-Followup-To: "J. Teubel" <jan_teubel@gmx.net>, gtk-list@gnome.org Mail-Reply-To: wolfgang@contre.com In-Reply-To: <3B2FB7BA.6060304@gmx.net> References: <3B2FB7BA.6060304@gmx.net> User-Agent: Wanderlust/2.5.8 (Smooth) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.0.103 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > gdkdrawable-x11.c complains that Xft.h is not found on my system. I > searched trough my entire harddisk, this file is nowhere. xlib dev is > installed and all the other libs needed for compiling. I also searched > through debian.org and google but nothing helps me. Xft.h is part of XFree 4 which is currently only available in Debian unstable (or maybe testing as well). W. From king@eiffel.com Tue Jun 19 17:35:49 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id E2C2B2BC88 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 17:35:47 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CT9k-0000QW-00 for gtk-list@gnome.org; Tue, 19 Jun 2001 14:35:28 -0700 Message-ID: <245f01c0f907$e760ec30$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Changing focus from one window to another Date: Tue, 19 Jun 2001 14:36:30 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, I have a program that has two top level windows, one with a button, one with a text entry in it. It is set up so that when I click the button, the focus is set to the text entry in the other window using gtk_widget_set_focus(entry_widget). However, the window containing the entry widget doesn't receive the focus. Am I doing something wrong? Thanks for your time. Ian King From bachn@LESTERELECTRICAL.com Tue Jun 19 17:49:50 2001 Return-Path: <bachn@LESTERELECTRICAL.com> Delivered-To: gtk-list@gnome.org Received: from nt_le.Lesterelectrical.com (h216-170-003-037.adsl.navix.net [216.170.3.37]) by mail.gnome.org (Postfix) with ESMTP id 8D1B62CFED for <gtk-list@gnome.org>; Tue, 19 Jun 2001 17:49:49 -0400 (EDT) Received: by NT_LE with Internet Mail Service (5.5.2448.0) id <JHS81VR1>; Tue, 19 Jun 2001 16:49:50 -0500 Message-ID: <A1393E9B8AE3D111AA970008C724A20B945953@NT_LE> From: Bach Ngo <bachn@LESTERELECTRICAL.com> To: "'gtk-list@gnome.org'" <gtk-list@gnome.org> Subject: How can I make a gtk window become active at starting up? Date: Tue, 19 Jun 2001 16:49:48 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, When I run a gtk application from an xterm, that gtk application window is not active but the xterm window. I have to click on the title bar of the gtk applicatio window to make it become active. Please help me to solve that. Bach Ngo From hp@redhat.com Tue Jun 19 18:25:24 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4458C2BCB6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:25:24 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JMP0M02692; Tue, 19 Jun 2001 18:25:00 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Changing focus from one window to another References: <245f01c0f907$e760ec30$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 18:25:00 -0400 In-Reply-To: "Ian King"'s message of "Tue, 19 Jun 2001 14:36:30 -0700" Message-ID: <y5wwv68ds5f.fsf@icon.labs.redhat.com> Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > > I have a program that has two top level windows, one with a button, one with > a text entry in it. It is set up so that when I click the button, the focus > is set to the text entry in the other window using > gtk_widget_set_focus(entry_widget). However, the window containing the > entry widget doesn't receive the focus. Am I doing something wrong? > GTK can't change the focus between toplevel windows, only the window manager can do that. (You can try calling XSetInputFocus() as a low-level hack, but if the user is using focus-follows-mouse or something it won't work out very well.) Havoc From hp@redhat.com Tue Jun 19 18:26:04 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 30B1C2BCB6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:26:04 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JMPld02695; Tue, 19 Jun 2001 18:25:47 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Bach Ngo <bachn@LESTERELECTRICAL.com> Cc: "'gtk-list@gnome.org'" <gtk-list@gnome.org> Subject: Re: How can I make a gtk window become active at starting up? References: <A1393E9B8AE3D111AA970008C724A20B945953@NT_LE> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 18:25:47 -0400 In-Reply-To: Bach Ngo's message of "Tue, 19 Jun 2001 16:49:48 -0500" Message-ID: <y5wsngwds44.fsf@icon.labs.redhat.com> Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Bach Ngo <bachn@LESTERELECTRICAL.com> writes: > > When I run a gtk application from an xterm, that gtk application window is > not active but the xterm window. I have to click on the title bar of the > gtk applicatio window to make it become active. > > Please help me to solve that. > Get a window manager that focuses windows when they're created. Or configure your existing WM to do that if possible. Havoc From king@eiffel.com Tue Jun 19 18:33:29 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id A437F2D2B8 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:33:28 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CU3m-00024S-00; Tue, 19 Jun 2001 15:33:22 -0700 Message-ID: <25bb01c0f90f$fd965f50$750a000a@naples> From: "Ian King" <king@eiffel.com> To: "Havoc Pennington" <hp@redhat.com> Cc: <gtk-list@gnome.org> References: <245f01c0f907$e760ec30$750a000a@naples> <y5wwv68ds5f.fsf@icon.labs.redhat.com> Subject: Re: Changing focus from one window to another Date: Tue, 19 Jun 2001 15:34:22 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > > "Ian King" <king@eiffel.com> writes: > > > > I have a program that has two top level windows, one with a button, one with > > a text entry in it. It is set up so that when I click the button, the focus > > is set to the text entry in the other window using > > gtk_widget_set_focus(entry_widget). However, the window containing the > > entry widget doesn't receive the focus. Am I doing something wrong? > > > > GTK can't change the focus between toplevel windows, only the window > manager can do that. > > (You can try calling XSetInputFocus() as a low-level hack, but > if the user is using focus-follows-mouse or something it won't work > out very well.) > > Havoc Does that mean the gtk_widget_set_focus (window) will never work? If so, then an autocomplete window that comes up when you are typing code would then surely be impossible to implement, or is there another way? Thanks Ian King From hp@redhat.com Tue Jun 19 19:36:26 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7FFA52CE82 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:36:19 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JNa2c02835; Tue, 19 Jun 2001 19:36:02 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Changing focus from one window to another References: <245f01c0f907$e760ec30$750a000a@naples> <y5wwv68ds5f.fsf@icon.labs.redhat.com> <25bb01c0f90f$fd965f50$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 19:36:01 -0400 In-Reply-To: "Ian King"'s message of "Tue, 19 Jun 2001 15:34:22 -0700" Message-ID: <y5wbsnkdov2.fsf@icon.labs.redhat.com> Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > Does that mean the gtk_widget_set_focus (window) will never work? If so, > then an autocomplete window that comes up when you are typing code would > then surely be impossible to implement, or is there another way? > gtk_widget_set_focus() does something else, not what you are hoping for here. It's a semi-internal function. gdk_keyboard_grab(), or just getting the keypresses on your editor widget and updating the complete widget appropriately, would be two ways to do this. Havoc From vicki@dialupnet.com Wed Jun 20 12:31:47 2001 Return-Path: <vicki@dialupnet.com> Delivered-To: gtk-list@gnome.org Received: from opus (user-24-214-88-99.knology.net [24.214.88.99]) by mail.gnome.org (Postfix) with ESMTP id A54182DF69 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 12:31:46 -0400 (EDT) Received: from localhost (IDENT:vicki@localhost [127.0.0.1]) by opus (8.11.0/8.11.0) with ESMTP id f5KGV6610324 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 11:31:06 -0500 Date: Wed, 20 Jun 2001 11:31:03 -0500 (CDT) From: Vicki Stanfield <vicki@dialupnet.com> To: GTK-List <gtk-list@gnome.org> Subject: Getting widgets children Message-ID: <Pine.LNX.4.33.0106201129430.10314-100000@opus> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I know that I can get the parent of a widget, but if I have only the parent widget, can I get the children? I need to unrealize most of the widgets to change the window. Have a good day! - -Vicki +-----------------------------------------------------------------+ | E-mail: vicki@thepenguin.org | | My public key - http://www.thepenguin.org/vicki/key.txt | | My Linux page - http://www.thepenguin.org | +-----------------------------------------------------------------+ **The best things in life aren't things. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7MM/KvFwCsl/kaSARApmCAJ9tZkTki6f24cQEUk+BOiblFPaGfwCeNXJu eD4hRaosxJ9aZxTmRXBYKgo= =ivw0 -----END PGP SIGNATURE----- From john.cupitt@ng-london.org.uk Wed Jun 20 12:43:20 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 3B9762D1BA for <gtk-list@gnome.org>; Wed, 20 Jun 2001 12:43:20 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNYWF; Wed, 20 Jun 2001 17:43:19 +0100 Message-ID: <3B30D159.66D593F4@ng-london.org.uk> Date: Wed, 20 Jun 2001 17:37:45 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Vicki Stanfield <vicki@dialupnet.com> Cc: GTK-List <gtk-list@gnome.org> Subject: Re: Getting widgets children References: <Pine.LNX.4.33.0106201129430.10314-100000@opus> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Vicki Stanfield wrote: > I know that I can get the parent of a widget, but if I have only the > parent widget, can I get the children? I need to unrealize most of the > widgets to change the window. Hi, if it's a subclass of container, you can loop over widget->children. Something like: /* Set a name for a widget and all its children. */ void set_name( GtkWidget *widget, const char *name ) { gtk_widget_set_name( widget, name ); if( GTK_IS_CONTAINER( widget ) ) gtk_container_foreach( GTK_CONTAINER( widget ), (GtkCallback) set_name, (char *) name ); } You can do a for(;;) loop as well (slightly less clean): if( GTK_IS_CONTAINER( widget ) ) { GSList *p; for( p = GTK_CONTAINER( widget )->children; p; p = p->next ) { GtkWidget *child = GTK_WIDGET( p->data ); ... } } That's what I do anyway. John From netlu@visto.com Wed Jun 20 13:59:54 2001 Return-Path: <netlu@visto.com> Delivered-To: gtk-list@gnome.org Received: from qmail5.visto.com (unknown [209.185.20.135]) by mail.gnome.org (Postfix) with SMTP id D16CD2BACE for <gtk-list@gnome.org>; Wed, 20 Jun 2001 13:59:53 -0400 (EDT) Received: (qmail 27577 invoked by alias); Received: from unknown (HELO mps2) (206.79.140.175) by 0 with SMTP; 20 Jun 2001 10:59:43 -0700 Reply-To: netlu@visto.com From: "Louis Lu" <netlu@visto.com> Subject: memory map io function Date: Wed, 20 Jun 2001 10:59:43 -0700 X-Mailer: Visto To: gtk-list@gnome.org MIME-Version: 1.0 X-Mailer: Visto Server Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <20010620175953.D16CD2BACE@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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi: I just wondering whether or not anyone who has the experiences on memo= ry map io function before?=20 My code is as following: int *base; unsigned int fd; fd =3D open("dev/mem", O_RDWR); base =3D mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800= 000); =20 (and I tried to write a value to a certian register of vga) *(int *)(base+0x60000/4) =3D 0x30f027f; munmap(base, 0x800000); close(fd); The compile is ok, but when I runt it, I got segmentation fault (core dum= p). I bassically need to write around 13 of them and I have even tried to cha= nge the size from 0x800000 to 0x8fffffff. I still got core dump though. So, I appreciate it if there is anyone who can teach me how to correct my= problem here. =20 Louis _________________________________________________________________________= __ Visit http://www.visto.com/info, your free web-based communications cente= r. Visto.com. Life on the Dot. From king@eiffel.com Wed Jun 20 15:41:01 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id B8E8D2DF72 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 15:41:00 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CnqV-0006Sr-00 for gtk-list@gnome.org; Wed, 20 Jun 2001 12:40:59 -0700 Message-ID: <01b101c0f9c1$13f3c100$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Widget size Date: Wed, 20 Jun 2001 12:42:02 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I have a small example of a button within a hbox. The hbox has, say a height of 100 pixels, the button has a minimum height of 25 pixels. When the button is in the hbox, it also has an allocated height of 100 pixels. When I take it out of the hbox, its allocated height is 25 pixels, however when I put the button back in the hbox (this is all done on-screen), the allocated height is still 25. Why is this and how do I get the allocation to update immediately. Thanks for your time Ian King From david.robin@st.com Wed Jun 20 16:08:10 2001 Return-Path: <david.robin@st.com> Delivered-To: gtk-list@gnome.org Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mail.gnome.org (Postfix) with ESMTP id 2A3B82E776 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:07:02 -0400 (EDT) Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id 7686348D0 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 20:07:01 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id A07BC4B09; Wed, 20 Jun 2001 20:07:04 +0000 (GMT) Received: from eux100.sgp.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 65AC8184E for <gtk-list@gnome.org>; Wed, 20 Jun 2001 20:07:04 +0000 (GMT) Received: from st.com (fenix.nvg.sgp.st.com [164.129.227.19]) by eux100.sgp.st.com (8.8.6 (PHNE_17190)/8.8.6) with ESMTP id WAA01635 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:07:00 +0200 (METDST) Message-ID: <3B310384.5FFF5E0F@st.com> Date: Wed, 20 Jun 2001 22:11:48 +0200 From: David Robin <david.robin@st.com> X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: to score threads? 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> As I was looking for bug-killing technics through the mailing-list archives, I found this: http://mail.gnome.org/archives/gtk-list/2001-June/msg00173.html This thread resolved all the problems I had for long weeks. It has info I found in no other ressources. So it made me think that maybe it would be a good idea to allow the M.L. archive users to vote for threads (slashdot style). With this feature, If a thread has a very high score, it will certainly mean that its contents give informations that were not in the other gtk online ressources. Therefore, this scoring system would give to gtk documentation maintainers indications on how to improve their effort. David. From brandon@ovnet.com Wed Jun 20 16:25:29 2001 Return-Path: <brandon@ovnet.com> Delivered-To: gtk-list@gnome.org Received: from riker.mountain.net (smtp.mountain.net [66.118.64.15]) by mail.gnome.org (Postfix) with ESMTP id 222972CEEA for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:25:29 -0400 (EDT) Received: from ovnet.com ([198.77.41.138]) by riker.mountain.net (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id net; Wed, 20 Jun 2001 16:22:45 -0400 Message-ID: <3B3107CD.6010606@ovnet.com> Date: Wed, 20 Jun 2001 16:30:05 -0400 From: Brandon McCombs <brandon@ovnet.com> User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5 i686; en-US; m18) Gecko/20001107 Netscape6/6.0 X-Accept-Language: en MIME-Version: 1.0 To: Sven Neumann <sven@gimp.org> Cc: AndrXs Giraldo <andres_giraldo@yahoo.com>, Gtk List <gtk-list@gnome.org> Subject: Re: gtk_widget_destroy References: <20010618153433.39415.qmail@web11507.mail.yahoo.com> <yfxsngxbvmg.fsf@gimp.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Sven Neumann wrote: > Hi, > > "AndrXs" Giraldo <andres_giraldo@yahoo.com> writes: > > >> I'm creating a window from a nother window, something >> like a message box, but when I want to unload this >> window; >> >> should I use gtk_widget_destroy? >> >> Because I'm connecting this signal to a button clicked >> event: >> >> gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", >> GTK_SIGNAL_FUNC >> (on_btnClose_clicked), NULL) >> >> >> // callback function >> >> void on_btnClose_clicked (GtkButton *button, gpointer >> data) >> { >> GtkWidget *window = (GtkWidget *)data; >> >> gtk_widget_destory (window); >> } >> > > > you did not pass the window pointer when connecting > your signal. How is this supposed to work ?? true however he also didn't spell gtk_widget_destroy correctly....he needs to fix that typo as well. From otaylor@redhat.com Wed Jun 20 16:42:27 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id D7E332E665 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:42:27 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 5E110242319; Wed, 20 Jun 2001 16:42:27 -0400 (EDT) To: David Robin <david.robin@st.com> Cc: gtk-list@gnome.org Subject: Re: to score threads? References: <3B310384.5FFF5E0F@st.com> From: Owen Taylor <otaylor@redhat.com> Date: 20 Jun 2001 16:42:27 -0400 In-Reply-To: David Robin's message of "Wed, 20 Jun 2001 22:11:48 +0200" Message-ID: <ybe8zimkhn0.fsf@fresnel.labs.redhat.com> Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> David Robin <david.robin@st.com> writes: > As I was looking for bug-killing technics through the mailing-list > archives, I found this: > > http://mail.gnome.org/archives/gtk-list/2001-June/msg00173.html > > This thread resolved all the problems I had for long weeks. It has info > I found in no other ressources. > So it made me think that maybe it would be a good idea to allow the M.L. > archive users to vote for threads (slashdot style). > With this feature, If a thread has a very high score, it will certainly > mean that its contents give informations that were not in the other gtk > online ressources. > Therefore, this scoring system would give to gtk documentation > maintainers indications on how to improve their effort. If you find something interesting in the archives, why don't you submit an entry to the FAQ (send it to trog@gtk.org) that summarizes it. You can include a link to the mailing list thread in the entry. Regards, Owen From king@eiffel.com Wed Jun 20 18:21:00 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 8905A2E0DB for <gtk-list@gnome.org>; Wed, 20 Jun 2001 18:20:59 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CqLG-0000ub-00 for gtk-list@gnome.org; Wed, 20 Jun 2001 15:20:54 -0700 Message-ID: <025901c0f9d7$6b9e5f80$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Fw: Widget size Date: Wed, 20 Jun 2001 15:21:58 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> In response to my previous message, how do I tell gtk to automatically recompute all of the widget allocations immediately, will gtk_widget_draw (hbox) do this, or is there some other function I can use? The allocation of the button does update but not immediately, it is usually updated within 100 ms. Thanks for your time, I would love to fix this `bug'. Ian King ----- Original Message ----- From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Sent: Wednesday, June 20, 2001 12:42 PM Subject: Widget size > I have a small example of a button within a hbox. The hbox has, say a > height of 100 pixels, the button has a minimum height of 25 pixels. When > the button is in the hbox, it also has an allocated height of 100 pixels. > When I take it out of the hbox, its allocated height is 25 pixels, however > when I put the button back in the hbox (this is all done on-screen), the > allocated height is still 25. Why is this and how do I get the allocation > to update immediately. > > Thanks for your time > > Ian King > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From uckelman@scylla.ellipsis.cx Wed Jun 20 22:14:35 2001 Return-Path: <uckelman@scylla.ellipsis.cx> Delivered-To: gtk-list@gnome.org Received: from scylla.ellipsis.cx (unknown [64.109.29.58]) by mail.gnome.org (Postfix) with SMTP id 6AB792BAB4 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:14:34 -0400 (EDT) Received: (qmail 22596 invoked by uid 500); 21 Jun 2001 02:14:34 -0000 Message-ID: <20010621021434.22594.qmail@scylla.ellipsis.cx> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: viewports, anchored icons From: Joel Uckelman <uckelman@nomic.net> Reply-To: uckelman@nomic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 20 Jun 2001 21:14:34 -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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I've been working on a graphical system for playing wargames by email, and I've run up against a problem that has me stumped. What I want to do is anchor certain small windows (the playing pieces) to a pixmap (the game board) in a large scrolling window such that the pieces follow the map when it's scrolled---even out of the viewport, if need be. The effect I want is something similar to the way it looks when selected areas are scrolled in and out of the viewport in Gimp. I know this can be done somehow; I'd be grateful for suggestions as to how I should go about it. Thanks! -- J. From hp@redhat.com Wed Jun 20 22:33:09 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 70D232BAB1 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:33:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5L2X5j00851; Wed, 20 Jun 2001 22:33:05 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Fw: Widget size References: <025901c0f9d7$6b9e5f80$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 20 Jun 2001 22:33:05 -0400 In-Reply-To: "Ian King"'s message of "Wed, 20 Jun 2001 15:21:58 -0700" Message-ID: <y5wofripnoe.fsf@icon.labs.redhat.com> Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > In response to my previous message, how do I tell gtk to automatically > recompute all of the widget allocations immediately, will gtk_widget_draw > (hbox) do this, or is there some other function I can use? The allocation > of the button does update but not immediately, it is usually updated within > 100 ms. > It would probably break GTK to try and do this, and be really slow. Sizes are recomputed in an idle handler. There's probably an easier way to do whatever you are trying to do. Havoc From lsetia78@yahoo.com Thu Jun 21 02:56:12 2001 Return-Path: <lsetia78@yahoo.com> 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 4514B2BB13 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 02:56:12 -0400 (EDT) Received: from unknown (HELO yahoo.com) (203.200.123.129) by smtp.mail.vip.sc5.yahoo.com with SMTP; 21 Jun 2001 06:56:10 -0000 X-Apparently-From: <lsetia78@yahoo.com> Message-ID: <3B3199C5.2010601@yahoo.com> Date: Thu, 21 Jun 2001 12:22:53 +0530 From: Lokesh Setia <lsetia78@yahoo.com> User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; rv:0.9.1) Gecko/20010607 Netscape6/6.1b1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Allocating a lot of colors 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hello, I'm writing a Image processing application, in which I need to show intermediate results of my calculations as an image in a window, nothing more. First of all, I will like to ask whether drawing_area widget with a backing pixmap is the best choice for this? I will have to call gdk_draw_point{s}( ) in this case I guess Second, when the image changes (it does after every 50 msec), colors may need to be allocated/deallocated. Doing gdk_colormap_alloc_color() in a loop seems to be a grossly inefficient way of doing this. Is there any other option? BTW, since the application is only meant for internal use, I do not have to make it work for 8-bit displays if it helps in any way :) Regards, Lokesh _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From mtnweb@mac.com Thu Jun 21 02:56:46 2001 Return-Path: <mtnweb@mac.com> Delivered-To: gtk-list@gnome.org Received: from smtp.commspeed.net (unknown [216.19.50.6]) by mail.gnome.org (Postfix) with SMTP id 433992BB13 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 02:56:45 -0400 (EDT) Received: (qmail 86640 invoked from network); 21 Jun 2001 06:56:18 -0000 Received: from unknown (HELO ?63.169.80.58?) (63.169.80.58) by 0 with SMTP; 21 Jun 2001 06:56:18 -0000 User-Agent: Microsoft-Entourage/9.0.1.3108 Date: Wed, 20 Jun 2001 23:56:43 -0700 Subject: Error compiling Glib 1.2.10 From: Terry Lynch <mtnweb@mac.com> To: gtk list <gtk-list@gnome.org> Message-ID: <B756E8BA.20DC%mtnweb@mac.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I got the following error compiling Glib. I need to install Glib, then GTK+, so I can use BasiliskII (Macintosh Emulator), but I got stuck here. Configure worked okay--no warnings. Then I typed 'make' and got this error after a few minutes of making. /bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c giounix.c cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c giounix.c -o giounix.o giounix.c:1317: bad macro argument list cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make[2]: *** [giounix.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 Thanks, Terry From john.cupitt@ng-london.org.uk Thu Jun 21 07:39:57 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 3FD6A2BD56 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 07:39:57 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNZ6L; Thu, 21 Jun 2001 12:39:56 +0100 Message-ID: <3B31DBBD.E9DE880F@ng-london.org.uk> Date: Thu, 21 Jun 2001 12:34:21 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Lokesh Setia <lsetia78@yahoo.com> Cc: gtk-list@gnome.org Subject: Re: Allocating a lot of colors References: <3B3199C5.2010601@yahoo.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Lokesh Setia wrote: > First of all, I will like to ask whether drawing_area widget with a > backing pixmap is the best choice for this? Hi Lokesh, the way to do this by hand is to use gdk_rgb_*(). Take a look at testrgb.c in the gtk source area. gdk_rgb_*() does all the horrible X stuff for you: it finds an appropriate visual, opens a shared memory area (if possible), and takes care of all the dithering that might be necessary to get nice looking colour. You just make a big RGB array, and call gdk_draw_rgb_image(). It's pretty quick too: I get 10 Mpixels/sec on my (modest) system, so you should be OK for your 50ms timeslot. If you want something higher level, then gdk-pixbuf is your baby. It adds things like rescale and image load and save. > I will have to call > gdk_draw_point{s}( ) in this case I guess. > Second, when the image changes (it does after every 50 msec), colors may > need to be allocated/deallocated. Doing gdk_colormap_alloc_color() in a > loop seems to be a grossly inefficient way of doing this. Is there any > other option? /me falls over This will be rather slow :-) John From john.cupitt@ng-london.org.uk Thu Jun 21 07:55:35 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 1A8772BB31 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 07:55:35 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNZ7P; Thu, 21 Jun 2001 12:55:33 +0100 Message-ID: <3B31DF66.5A49E31D@ng-london.org.uk> Date: Thu, 21 Jun 2001 12:49:58 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: netlu@visto.com Cc: gtk-list@gnome.org Subject: Re: memory map io function References: <20010620175953.D16CD2BACE@mail.gnome.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Louis Lu wrote: > I just wondering whether or not anyone who has the experiences on memory map io function before? > > My code is as following: > int *base; > unsigned int fd; > fd = open("dev/mem", O_RDWR); > base = mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800000); > > (and I tried to write a value to a certian register of vga) > > *(int *)(base+0x60000/4) = 0x30f027f; > munmap(base, 0x800000); > close(fd); > > The compile is ok, but when I runt it, I got segmentation fault (core dump). Hi Louis, I guess it's a permission thing. Are you running this as root? Add some checks to the results of open() and mmap(), and see where its failing, and what error you get from the system. if( (fd = open( "/dev/mem", O_RDWR )) == -1 ) { fprintf( stderr, "open /dev/mem failed: %s\n", strerror( errno ) ); exit( -1 ); } if( (base = mmap( ... )) == (void *) -1 ) { fprintf( stderr, "mmap failed: %s\n", strerror( errno ) ); exit( -1 ); } etc. This sounds incredibly dangerous :-) You are in extreme danger of toasting your system. Good luck, John From Esteban.Quijano@artinsoft.com Tue Jun 19 11:08:14 2001 Return-Path: <Esteban.Quijano@artinsoft.com> Delivered-To: gtk-list@gnome.org Received: from freedom-srv.intranet (unknown [196.40.21.166]) by mail.gnome.org (Postfix) with ESMTP id 5AC092D412 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:07:52 -0400 (EDT) Received: by FREEDOM-SRV with Internet Mail Service (5.5.2653.19) id <M8F7QHF3>; Tue, 19 Jun 2001 08:59:39 -0600 Message-ID: <C3AF23EBD276D411B0D500B0D020E68074A42B@FREEDOM-SRV> From: Esteban Quijano Vincenzi <Esteban.Quijano@artinsoft.com> To: gtk-list@gnome.org Subject: RE: A Modal Window Date: Tue, 19 Jun 2001 08:59:38 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0F8D0.7623AF30" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> 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_01C0F8D0.7623AF30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, there are two ways for doing this: 1) Call gtk_main() again so you enter in a second event loop. When you = press an "ok" or "cancel" button just call gtk_main_quit(). You will return = to the main event loop. 2) Do something like this: =20 while (exit_modal !=3D TRUE) gtk_main_iteration(); and in your callback function do exit_modal =3D TRUE somewhere Esteban Quijano Vincenzi. Quality Assurance - Intel project Artinsoft corp. -----Original Message----- From: Andr=E9s" Giraldo [mailto:andres_giraldo@yahoo.com] Sent: Tuesday, June 19, 2001 7:39 AM To: Gtk List Subject: A Modal Window Hi! I need to call a window that shows 2 options in buttons, yes or no, and I need to wait for that answer, something like a vbModal in MS-Visual Basic... A window that waits until it's unloaded How can I do this? Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C0F8D0.7623AF30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2653.12"> <TITLE>RE: A Modal Window

Hi, there are two ways for doing this:
1) Call gtk_main() again so you enter in a second = event loop. When you press an "ok" or "cancel" = button just call gtk_main_quit(). You will return to the main event = loop.

2) Do something like this:
  
   while (exit_modal !=3D TRUE) = gtk_main_iteration();

and in your callback function do exit_modal =3D TRUE = somewhere

Esteban Quijano Vincenzi.
Quality Assurance - Intel project
Artinsoft corp.


-----Original Message-----
From: Andr=E9s" Giraldo [mailto:andres_giraldo@yahoo.com= ]
Sent: Tuesday, June 19, 2001 7:39 AM
To: Gtk List
Subject: A Modal Window


Hi!

I need to call a window that shows 2 options = in
buttons, yes or no, and I need to wait for = that
answer, something like a vbModal in MS-Visual = Basic...

A window that waits until it's unloaded

How can I do this?

Thanks!

__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and = more.
http://buzz.yahoo.com/

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

------_=_NextPart_001_01C0F8D0.7623AF30-- From dermot@glade.perl.connectfree.co.uk Wed Jun 20 02:21:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 422982D394; Wed, 20 Jun 2001 02:21:55 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id CAA08055; Wed, 20 Jun 2001 02:21:54 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5K6Keb29913; Wed, 20 Jun 2001 02:20:40 -0400 Received: from higrade.botwrights.farm (ppp-121.ispgas04.minx.net.uk [212.85.246.121]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id HAA12947; Wed, 20 Jun 2001 07:54:47 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id HAA01154; Wed, 20 Jun 2001 07:21:44 +0100 Message-ID: <3B3040F8.6FDF5F86@glade.perl.connectfree.co.uk> Date: Wed, 20 Jun 2001 07:21:44 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: [Glade-devel] ANNOUNCE: Glade-Perl 0.58 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I am terribly sorry about this but I quoted an out-of date URL for my module on CPAN. The correct directory URL is: ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but it is better to go to your local mirror. Apologies aganin, Dermot From dermot@glade.perl.connectfree.co.uk Wed Jun 20 02:06:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 02D4F2BB47; Wed, 20 Jun 2001 02:06:51 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id CAA06701; Wed, 20 Jun 2001 02:06:51 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5K65ab29002; Wed, 20 Jun 2001 02:05:37 -0400 Received: from higrade.botwrights.farm (ppp-121.ispgas04.minx.net.uk [212.85.246.121]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id HAA12426; Wed, 20 Jun 2001 07:39:26 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id HAA01096; Wed, 20 Jun 2001 07:06:20 +0100 Message-ID: <3B303D5C.BF231640@glade.perl.connectfree.co.uk> Date: Wed, 20 Jun 2001 07:06:20 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: ANNOUNCE: Glade-Perl 0.58 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I have just uploaded perl module Glade-Perl-0.58.tar.gz to CPAN ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/Glade/ Until it is mirrored around the world it is available on my websites. http://www.glade.perl.connectfree.co.uk/index.html http://freespace.virgin.net/dermot.musgrove/computers/perl/index.html Glade-Perl generates perl source code from a Glade file - Glade is Damon Chaplin's beautiful Gtk+/Gnome UI builder. Glade-Perl can display the UI as it is built and/or generate source code and it can be called directly from Glade's 'Build' button. It can also generate code to use libglade if you prefer. Regards, Dermot snipped from the Changelog: ------------------------------------------------------------ Fri Apr 13 01:01:22 BST 2001 - Dermot Musgrove - Version 0.58 - Mimimum requirements increased to Gtk-Perl-0.7000 and gnome-libs-1.2.0 These have been around for a year or more now and fix many problems. - All packages - Extensive tidying of options handling with a new data structure. Old format options files will be read as before but project options will be saved in the new hierarchically nested structure. - The options handling and diagnostics utilities have been moved to Glade::PerlRun so that you can use them in your own apps. - PerlUI - some variables updated for Gtk-Perl-0.7004 and later. - Some changes to generated comments and source code. - glade2perl - removed redundant 'use English' call New, more meaningful 'set_by' value and New (2nd) arg to specify verbosity in glade2perl call eg. 'glade2perl Project.glade 2' Simplified usage so that a separate Glade::PerlGenerate->options() call is not needed and the options can be specified to Form_from_File() Also, undefined glade_filename causes most recently used file stored in your user options file to run. - PerlRun->reload_any_altered_modules() is a new sub for app testing to reload any modules that have been edited. This idea is from Stas Bekman and gives you the ability to edit and reload any signal handlers and support modules without closing down the app and restarting it. This is not possible if you regenerate the UI module and reload it. Your app will crash in flames if you try this. Simply call '__PACKAGE__->reload_any_altered_modules;' in a handler for any widget/signal you like (I usually use a Refresh button). - PerlGenerate->Form_from_Glade_File() amended to call two new subs parse_form() and build_form() to allow use in future Glade::Helper app. - PerlGenerate->about_Form() fixed to use proper pixmap option - PerlGenerate->Form_from_Proto() now only generates subclass for simple AUTOLOAD style runs. - PerlRun->load_translations() amended to look for .mo files in several possible places if a catalog path is not specified. - An extra form element is now returned from generated UI constructor so that you can call $form->{'TOPLEVEL'} in any signal handler to get a toplevel form widget - ie. use $form->{'TOPLEVEL'}->get_filename() to get the file name entered in a fileselection dialog from the 'on_ok_button_clicked' signal handler. - PerlUI->my_gtk_perl_can_do() now also checks for particular versions that are known to be flawed in certain ways. - FAQ split into 3 files - all old FAQs are available on the website. FAQ - Frequently asked questions (general) FAQ.i18n - FAQs relating to internationalisation (I18N) issues. FAQ.old - FAQs relating to old/flawed software versions - PerlSource->perl_about() generates `gnome-config --version` call in Gnome about_Form() sub in App/SubApp. If the gnome-libs-devel RPM is not installed the gnome-libs version number will not be reported. - PerlSource now generates lines in app_run to load translations. - Glade-Perl.spec file based on one from George, the mp3 organiser. This one works I think and allows RPM builds from the tarball by calling eg. 'rpm -ta Glade-Perl-0.58.tar.gz'. - PerlUI->new_accelerator() - accelerator key now defaults to ''. PerlUIExtra->new_GtkPixmapMenuItem() also defaults key to '' PerlProject->use_Glade_Project() now escapes double quotes in author. Thanks for bug reports for the above reports to Joe "Markus" Clark. ------------------------------------------------------------ From Valdis.Kletnieks@vt.edu Thu Jun 21 10:13:32 2001 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 B0AD62C89A for ; Thu, 21 Jun 2001 10:13:32 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5LEDVg15478; Thu, 21 Jun 2001 10:13:31 -0400 Message-Id: <200106211413.f5LEDVg15478@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: netlu@visto.com Cc: gtk-list@gnome.org Subject: Re: memory map io function In-Reply-To: Your message of "Wed, 20 Jun 2001 10:59:43 PDT." <20010620175953.D16CD2BACE@mail.gnome.org> 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_1738061022P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 21 Jun 2001 10:13:30 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1738061022P Content-Type: text/plain; charset=us-ascii On Wed, 20 Jun 2001 10:59:43 PDT, Louis Lu said: > Hi: > > I just wondering whether or not anyone who has the experiences on memory map io function before? > > My code is as following: > int *base; > unsigned int fd; > fd = open("dev/mem", O_RDWR); > base = mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800000); Note that 0x80000 and 0xd8000000 are *VIRTUAL* addresses. This *WILL* screw you to the wall. Also, you're missing a MAP_FIXED - Very Bad Juju will result. Also, you're confusing two meanings of "memory mapped". The 'mmap()' system call creates a mapping between *virtual addresses* that possibly belong to different processes. Memory Mapped I/O means "instead of using an IN or OUT opcode to write data to/from an I/O port, the device is set up to look like memory. So storing to a specific memory location becomes an OUTput, and reading it becomes an INput, and so on". This is an Incredibly Bad Thing to do from user-land - in particular, you're quite likely to get hosed by virtual/physical address mapping (hint - what happens if the virtual page gets paged out? You didn't lock it anyplace ;), and a whole host of other things that can go wrong. The Better Way to implement this would be with a device driver - you would open /dev/yourdev, and issue read() and write() and ioctl() as needed. Inside the kernel, the (for example) write() call would go into the device driver, which would then check the buffer location/size, sanity-check all the other paramaters to write(), lock the pages in memory so the VM manager doesn't move them around, set an internal lock so other read()/write() to that device block until this operation finishes, and then finally move data from the user buffer to the I/O address(es). Depending on the hardware design, you may be able to get away with an strcpy() (if the card provides address space for an entire buffer) or you may need a loop like this: char *dest = (char *) 0x800ffff; /* or whatever address */ for (i=buflen;i;i--) *dest = *userbuf++; /* *NO* ++ on dest */ Many such cards have restrictions that you have to write only bytes, or only 4/8/16 bytes at a time, or that writes have to be aligned, etc. Your device driver will also have to deal with error conditions, the existence of read-only and write-only status/control bits, and so on. I won't get into issues like cache coherency (what happens when the data that's in the memory-mapped I/O card doesn't match what your CPU has in its L1/L2 cache), how to make it work right on a SMP system, and so on. You may wish to ask the card vendor if they have a device driver for your system already.... -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_1738061022P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzIBCnAt5Vm009ewEQLAtgCePd0O3JYjwRTalZ2Z61V79PH9iuwAoNTV CkDJVZPgDtzFhrESQKx/o0UD =NTzH -----END PGP SIGNATURE----- --==_Exmh_1738061022P-- From topper@virginia.edu Thu Jun 21 18:34:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id D60442BEF2 for ; Thu, 21 Jun 2001 18:34:33 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab00554; 21 Jun 2001 18:34 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id SAA22362; Thu, 21 Jun 2001 18:34:32 -0400 (EDT) Message-ID: <3B32755F.4D700ACA@virginia.edu> Date: Thu, 21 Jun 2001 18:29:51 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > "David J. Topper" writes: > > > > I mean a window, they are GtkWindows, not popups. I'm using them to get > > parameters for items created on the fly (eg., length, width, height) and > > I don't want the "windows" to drop in back when I accidentally move the > > mouse off them. > > > > I don't understand why they're moving to the back - is your window > manager using focus-follows-mouse and raise-on-focus? Exactly right. This is a problem in other applications too. But I've seen some get around it (eg., KDEs desktop background color selector). It at least won't drop behind the calling application. Something like that would be fine ... but I'm not sure how to do it. Maybe a callback for the window in question ... to check if it's raised or lowered ... or of that status has changed? Then just always raise it? I'm guessing here. DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From topper@virginia.edu Thu Jun 21 19:39:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id ADA482CC04 for ; Thu, 21 Jun 2001 19:39:47 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa15818; 21 Jun 2001 19:39 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA04840 for ; Thu, 21 Jun 2001 19:39:46 -0400 (EDT) Message-ID: <3B3284A8.1133DCE3@virginia.edu> Date: Thu, 21 Jun 2001 19:35:05 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Signal help needed (gtk_signal_new?) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I've gotten some feedback on this, but still need help. From what I gather, signals are specific to types. So a gtk adjustment, for example, has two signals associated with it: "changed" and "value changed". Fine. I've been looking for another kind of signal, perhaps rarely used, or something I surely won't use in my program. The best name I can think of for it is "activate." I bascially want to trigger signals from one adjustment, to a tree of connected adjustments. But I can find no such signal. So I thought I'd hack up a new one, just getting all the relevant info as follows: for (i=1;i<128;i++) { sig_info = gtk_signal_query(i); if (strcmp(sig_info->signal_name, "changed") == 0) { /* I'd insert mine here */ continue; } } since I was unable to find a GtkType for an adjustment, and hence unable to use gtk_signal_lookup(). But even if I capture the relevant info for "changed" I can't use it to create a new signal. The arguments for gtk_signal_new() are elusive to me. I'd basically like to create something very similar to the "value_changed" and "changed" signals, named "activate." It would be the equivalent of a pulse that gets sent whenever the value changes from 0-1 or 1-0. Thanks, DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From hp@redhat.com Thu Jun 21 21:51:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 345402BA85 for ; Thu, 21 Jun 2001 21:51:11 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5M1pFB28323; Thu, 21 Jun 2001 21:51:15 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> <3B32755F.4D700ACA@virginia.edu> From: Havoc Pennington Date: 21 Jun 2001 21:51:15 -0400 In-Reply-To: "David J. Topper"'s message of "Thu, 21 Jun 2001 18:29:51 -0400" Message-ID: Lines: 29 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > I don't understand why they're moving to the back - is your window > > manager using focus-follows-mouse and raise-on-focus? > > Exactly right. This is a problem in other applications too. But I've seen > some get around it (eg., KDEs desktop background color selector). It at > least won't drop behind the calling application. Something like that would > be fine ... but I'm not sure how to do it. Perhaps they set the TRANSIENT_FOR hint (gtk_window_set_transient_for()), many WM's will keep transients on top of their parents. > Maybe a callback for the window in question ... to check if it's raised or > lowered ... or of that status has changed? Then just always raise > it? That would produce a nice flicker effect, and maybe even an infinite loop as you fought with the window manager. ;-) You generally don't want to get into "try to undo what the WM is doing" mode, better to just rethink the GUI or live with the problem or something. My opinion is that the focus-follows-mouse/raise-on-focus combination is a somewhat broken window management policy, but I'm sure reasonable people will disagree. Havoc From jean-michel.rouet@philips.com Fri Jun 22 08:03:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gw-nl4.philips.com (gw-nl4.philips.com [212.153.190.6]) by mail.gnome.org (Postfix) with ESMTP id 0A57D2D61F for ; Fri, 22 Jun 2001 08:03:27 -0400 (EDT) Received: from smtpscan-nl3.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl4.philips.com with ESMTP id OAA12092 for ; Fri, 22 Jun 2001 14:03:20 +0200 (MEST) (envelope-from jean-michel.rouet@philips.com) From: jean-michel.rouet@philips.com Received: from smtpscan-nl3.philips.com(130.139.36.23) by gw-nl4.philips.com via mwrap (4.0a) id xma012086; Fri, 22 Jun 01 14:03:20 +0200 Received: from smtprelay-nl1.philips.com (localhost [127.0.0.1]) by smtpscan-nl3.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA10990 for ; Fri, 22 Jun 2001 14:03:17 +0200 (MET DST) Received: from notessmtp-nl1.philips.com (notessmtp-nl1.philips.com [130.139.36.10]) by smtprelay-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA12296 for ; Fri, 22 Jun 2001 14:03:15 +0200 (MET DST) Received: from EMLMS01.DIAMOND.PHILIPS.COM (emlms01sv1.diamond.philips.com [130.143.165.213]) by notessmtp-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA26383 for ; Fri, 22 Jun 2001 14:02:44 +0200 (MET DST) Received: by EMLMS01.DIAMOND.PHILIPS.COM (Soft-Switch LMS 4.0) with snapi via EMEA1 id 0056900018720401; Fri, 22 Jun 2001 14:16:38 +0200 To: Subject: Graph data structures Message-ID: <0056900018720401000002L012*@MHS> Date: Fri, 22 Jun 2001 14:16:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="MEMO 06/22/01 13:35:58" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear gtk-list :-) Although I've been looking through google and also over this mailing list archive, I've not found what I was looking for. My question is: is there anywhere a free and efficient graph data structure handling library that I can use in plain C. I thought that glib was the answer, but unfortunately it seems to only provide a support for trees (binary and n-way) but not for graphs. Is there an ongoing project in glib to add this kind of data type ? Does any body know an other free library that might provide such a data= type ? JM --=20 Jean-Michel Rouet (PhD) | Tel : +33 147 28 36 13 Philips Research LEP | Fax : +33 147 28 36 05 51, rue Carnot | email : Jean-Michel.Rouet@philips= .com BP 301 - 92156 Suresnes Cedex = From skip@beluga.mojam.com Fri Jun 22 13:38:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 376F92E318 for ; Fri, 22 Jun 2001 13:38:01 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MHato25605; Fri, 22 Jun 2001 12:36:55 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.33329.825838.235400@beluga.mojam.com> Date: Fri, 22 Jun 2001 12:36:49 -0500 To: gtk-list@gnome.org Subject: The g_object_{set,get} class of functions seem strange X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: In trying to figure out how I can get a list of property names for an object, I came across the g_object_set and g_object_get functions and their _valist versions. Their signatures seem rather bizarre to me. The get functions are declared to return void while the set functions are declared to return a gpointer. How does g_object_get return values to its caller (g_object_get_valist does something weird with its var_args argument)? Why doesn't it just allocate an array of gpointers and return them? Why does g_object_set need to return its first argument to its caller? -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Fri Jun 22 14:08:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 867B22BBA9 for ; Fri, 22 Jun 2001 14:08:43 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MI8cD30052; Fri, 22 Jun 2001 14:08:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: The g_object_{set,get} class of functions seem strange References: <15155.33329.825838.235400@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 14:08:38 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 12:36:49 -0500" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > In trying to figure out how I can get a list of property names for an > object, I came across the g_object_set and g_object_get functions and their > _valist versions. Their signatures seem rather bizarre to me. The get > functions are declared to return void while the set functions are declared > to return a gpointer. How does g_object_get return values to its caller > (g_object_get_valist does something weird with its var_args argument)? Why > doesn't it just allocate an array of gpointers and return them? Why does > g_object_set need to return its first argument to its caller? > The return value is a conspiracy by Tim to confuse people. ;-) Well, it is to support some kind of bizarre coding style: g_object_set (object, "child_object", g_object_set (object2, "foo", 10, NULL), NULL); Basically my recommendation is to pretend it returns void. g_object_get() works like this, say "foo" is an integer property: int val; g_object_get (object, "foo", &val, NULL); To get a list of properties that exist for an object you'd use something like g_object_class_list_properties(). Havoc From skip@beluga.mojam.com Fri Jun 22 14:28:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id BDA7F2BC8C for ; Fri, 22 Jun 2001 14:28:33 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MIR6C01085; Fri, 22 Jun 2001 13:27:06 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.36344.42598.420023@beluga.mojam.com> Date: Fri, 22 Jun 2001 13:27:04 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: The g_object_{set,get} class of functions seem strange In-Reply-To: References: <15155.33329.825838.235400@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc, Thanks for the explanation of the get/set oddities. You also wrote: Havoc> To get a list of properties that exist for an object you'd use Havoc> something like g_object_class_list_properties(). Thanks for the pointer. I imagine that will do the trick. It must be a brand new function. I had to "cvs up" to find it. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From weigelt@metux.de Fri Jun 22 15:03:44 2001 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 0F4312E2CE for ; Fri, 22 Jun 2001 15:03:42 -0400 (EDT) Received: from nibiru.oberonhq.net (nibiru.oberonhq.net [194.122.210.42]) by annwfn.erfurt.thur.de (8.11.4/8.10.1) with ESMTP id f5MJ39V27424 for ; Fri, 22 Jun 2001 21:03:10 +0200 Received: from metux.de (oberonhq@localhost [127.0.0.1]) by nibiru.oberonhq.net (8.9.3/8.9.3) with ESMTP id VAA08533 for ; Fri, 22 Jun 2001 21:03:08 +0200 Message-ID: <3B33966B.56E8E790@metux.de> Date: Fri, 22 Jun 2001 21:03:07 +0200 From: Enrico Weigelt Reply-To: weigelt@nibiru.thur.de Organization: meTUX IT services X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.4.0 i686) X-Accept-Language: en, de-DE MIME-Version: 1.0 To: GTK Mailing List Subject: garbage collection 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: has anyone thought about integrating an garbage collector in glib/gtk ? this would reduce the chance of broken pointers and wasted memory dramatically. ~-n _____________________________________ meTUX IT + Communication Services Enrico Weigelt www: www.metux.de email: weigelt@metux.de phone: +49 36207 51833 cellphone: +49 174 7066481 _____________________________________ From Valdis.Kletnieks@vt.edu Fri Jun 22 15:14:02 2001 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 C75302BD90 for ; Fri, 22 Jun 2001 15:14:01 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5MJDrg29837; Fri, 22 Jun 2001 15:13:53 -0400 Message-Id: <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: weigelt@nibiru.thur.de Cc: GTK Mailing List Subject: Re: garbage collection In-Reply-To: Your message of "Fri, 22 Jun 2001 21:03:07 +0200." <3B33966B.56E8E790@metux.de> 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_-1931908673P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 22 Jun 2001 15:13:53 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1931908673P Content-Type: text/plain; charset=us-ascii On Fri, 22 Jun 2001 21:03:07 +0200, Enrico Weigelt said: > has anyone thought about integrating an garbage collector > in glib/gtk ? Has anybody thought about the difficulties of implementing a garbage collector for C, when the user is free to do malloc()/free() and alias pointers to each other when the GC code isn't in control? > this would reduce the chance of broken pointers and wasted > memory dramatically. Not really. Remember that memory would *STILL* get wasted even with a garbage collector, if there isn't something imposing rules. If the programmer doesn't call free(), the memory won't get freed with a garbage collector, because there will still be a reference (the pointer that wasn't free()ed). Garbage collectors, in general, really blow major chunks unless you're coding in a Lisp or Java type language where it's *ENFORCED*. But that wouldn't be C/C++. -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-1931908673P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzOY8XAt5Vm009ewEQKsfgCgjo5QxPhCEtAxe+JYUmxV4bi9trkAn1rL IkVScosrNV5LJdZctXk/VFxp =/tID -----END PGP SIGNATURE----- --==_Exmh_-1931908673P-- From king@eiffel.com Fri Jun 22 15:18:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 15B0E2DFCA for ; Fri, 22 Jun 2001 15:18:56 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15DWSE-0002k8-00 for gtk-list@gnome.org; Fri, 22 Jun 2001 12:18:54 -0700 Message-ID: <085001c0fb50$58c3b430$750a000a@naples> From: "Ian King" To: Subject: Prelight problems Date: Fri, 22 Jun 2001 12:20:06 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone else have prelight problems on buttons with no relief set? It seems that in some circumstances they do not function correctly an d buttons are lit when the mouse is nowhere near the widget itself. Does anyone know of a fix for this? Thanks for your time Ian King From otaylor@redhat.com Fri Jun 22 15:23:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id F2A0B2E29C for ; Fri, 22 Jun 2001 15:23:20 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id D367124231A; Fri, 22 Jun 2001 15:23:19 -0400 (EDT) To: weigelt@nibiru.thur.de Cc: GTK Mailing List Subject: Re: garbage collection References: <3B33966B.56E8E790@metux.de> From: Owen Taylor Date: 22 Jun 2001 15:23:19 -0400 In-Reply-To: Enrico Weigelt's message of "Fri, 22 Jun 2001 21:03:07 +0200" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Enrico Weigelt writes: > has anyone thought about integrating an garbage collector > in glib/gtk ? > > this would reduce the chance of broken pointers and wasted > memory dramatically. Yes, its been discussed. If you hunt through the gtk-devel-list archives, you'll find a post from Havoc Pennington where he discusses some experiments he made using the Boehm GC. The trouble with depending on a garbage collector is one of integrating with other software which doesn't use a garbage collector, or uses an incompatible garbage collector. For that reason, it's not practical at the present time to depend on one for GTK+. Regards, Owen From skip@beluga.mojam.com Fri Jun 22 15:54:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id DA2372BAE9 for ; Fri, 22 Jun 2001 15:54:20 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MJqoD17173; Fri, 22 Jun 2001 14:52:50 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.41490.155957.939096@beluga.mojam.com> Date: Fri, 22 Jun 2001 14:52:50 -0500 To: Valdis.Kletnieks@vt.edu Cc: weigelt@nibiru.thur.de, GTK Mailing List Subject: Re: garbage collection In-Reply-To: <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> References: <3B33966B.56E8E790@metux.de> <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Valdis> Not really. Remember that memory would *STILL* get wasted even Valdis> with a garbage collector, if there isn't something imposing Valdis> rules. If the programmer doesn't call free(), the memory won't Valdis> get freed with a garbage collector, because there will still be Valdis> a reference (the pointer that wasn't free()ed). On the other hand, coupling garbage collection of containers with the current reference counting scheme might make sense if it can be pulled off. Python is reference counted. In 2.0 a garbage collector was added to reclaim circular garbage. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From iain@trna.ximian.com Fri Jun 22 16:18:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id 738B72BAFB for ; Fri, 22 Jun 2001 16:18:50 -0400 (EDT) Received: from localhost (iain@localhost) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id QAA17248; Fri, 22 Jun 2001 16:18:01 -0400 Date: Fri, 22 Jun 2001 16:18:00 -0400 (EDT) From: Iain Holmes To: raphi2 raph Cc: gtk-list@gnome.org, otaylor@redhat.com Subject: Re: GTK / SDL bis In-Reply-To: <992901282019158@caramail.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > In fact I would like to "include" a little SDL window in a > big GTK window. (by example to be able to play movies in my > GTK application) Okay, you can do it with the hack below, but you have to do the putenv hack *before* you call SDL_Init. Also from what I understood about SDL you can only have one window per process, at least only one window embedded in a GTK window as the putenv hack is global.=20 I dunno if it's possible with threads to get more than one SDL window into a GTK one, but it's possibly the ugliest hack I've seen yet. Plus when you start trying to do this stuff with bonobo controls, then you have fun about waiting for windows to be realised before calling sdlinit. iain >=20 >=20 >=20 > I tried to resolve my problem with your advices :) but I > have still problems. here is the part of my program with > problems: >=20 >=20 > SDL_Thread *thread; > GtkWidget=09*drawing_area; > Window=09xwin; >=20 > gtk_sess *sess =3D (gtk_sess *)data; >=20 > sess->new =3D gtk_window_new(GTK_WINDOW_TOPLEVEL); > gtk_widget_set_usize(sess->new, 460, 500); > // gtk_widget_show (sess->new); >=20 > sess->fixed =3D gtk_fixed_new(); > gtk_widget_ref (sess->fixed); > gtk_widget_show (sess->fixed); > gtk_container_add(GTK_CONTAINER(sess->new), sess->fixed); >=20 > drawing_area =3D gtk_drawing_area_new(); > gtk_widget_set_usize(drawing_area, 100, 100); > gtk_fixed_put(GTK_FIXED(sess->fixed), drawing_area, 400, > 400); > gtk_widget_realize(drawing_area); > gtk_widget_show(drawing_area); >=20 >=20 > { char SDL_windowhack[32]; > sprintf(SDL_windowhack,"SDL_WINDOWID=3D-543170384", > =09 GDK_WINDOW_XWINDOW(drawing_area->window)); > putenv(SDL_windowhack); > } >=20 > screen =3D SDL_SetVideoMode(100, 100, 0, 0); > thread =3D SDL_CreateThread(play_film, sess); > if (thread =3D=3D NULL) > printf("Probleme avec la thread\n"); > // gtk_timeout_add(5, animation, sess); >=20 >=20 > I do the SDL_Init before this in an init function. >=20 > Do you see something wrong in this code ? >=20 > Thanks a lot for help >=20 > Raph > _________________________________________________________ > Le journal des abonn=E9s Caramail - http://www.carazine.com >=20 >=20 From jurkech@shadow.sk Fri Jun 22 16:26:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from main.alternet.sk (gts-gw.alternet.sk [62.168.107.43]) by mail.gnome.org (Postfix) with ESMTP id 77A622CA07 for ; Fri, 22 Jun 2001 16:26:05 -0400 (EDT) Received: from shadow.sk (roman@jurkech.alternet.sk [194.145.136.133]) by main.alternet.sk (8.9.3/8.9.3) with ESMTP id WAA03658 for ; Fri, 22 Jun 2001 22:26:02 +0200 Message-ID: <3B33A9F6.998293EC@shadow.sk> Date: Fri, 22 Jun 2001 22:26:30 +0200 From: jurkech@shadow.sk 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: Custom font when locale is not iso-8859-1 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i found a strange behavior of gtk when using locale settings for a non iso-8859-1 language. In my case I specify LC_CTYPE=sk_SK so I'm able to use Slovak keyboard. But when I do this, gtk will read /etc/gtk/gtkrc.sk which is linked to /etc/gtk/gtkrc.iso-8859-2. This contains specifications for fonts to use. But whatever font is set in $HOME/.gtkrc it will not be used at all. I'm not sure if this is meant to be this way but I hope not. I think the system should be working like this: First of all gtk should be concerned with LC_MESSAGES only! Any other LC_XXX settings are not important because they have no connection with fonts that gtk uses. In my case I have only LC_CTYPE secified cuz I just need to use Slovak keyboard but everything else I expect in English. Still, gtk will go for /etc/gtkrc.sk for no real reason. If LC_MESSAGES is set to a non iso-8859-1 setting then gtk will verify that custom font specified by user is of the same charset. If it's not then gtk would try to get the same font with the required charset. And only if this fails it would use the font specified in /etc/gtkrc.xy Roman From skip@beluga.mojam.com Fri Jun 22 16:43:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 35FEC2BDF1 for ; Fri, 22 Jun 2001 16:43:52 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MKh5721603; Fri, 22 Jun 2001 15:43:06 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.44504.705944.498691@beluga.mojam.com> Date: Fri, 22 Jun 2001 15:43:04 -0500 To: gtk-list@gnome.org Subject: autogen.sh not expanding some variables X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After running autogen.sh on the gtk+ cvs source, I am left with a top-level Makefile containing the following unexpanded variables: host_alias = @host_alias@ AS = @AS@ DLLTOOL = @DLLTOOL@ GENCAT = @GENCAT@ GT_NO = @GT_NO@ GT_YES = @GT_YES@ INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@ OBJDUMP = @OBJDUMP@ l = @l@ When I try to make, I get an error message about not being able to find @AS@. I zapped all my files and updated from CVS again, but encounter the same problem. Autogen.sh's output is not perfectly clean, but I have no clue what the problem might be. Its output is: I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. autoheader: error: shell error while sourcing /tmp/ahR6lLVI/traces.sh configure.in: 89: required file `./config.h.in' not found demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_BEGIN@' demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_END@' tests/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/faq/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/tutorial/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gdk-pixbuf/Makefile.am:94: libpixbufloader_xbm_la_LDFLAGS multiply defined in condition TRUE libpixbufloader_xbm_la_LDFLAGS (User, where = 94) = { TRUE => -version-info 1:0:0 -module } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_FALSE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { TRUE => $(builtin_objs) } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_TRUE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { BUILD_DYNAMIC_MODULES_FALSE TRUE => pixops/libpixops.la TRUE => $(builtin_objs) } automake: gdk-pixbuf/pixops/Makefile.am: Assembler source seen but `ASFLAGS' not defined in `configure.in' gdk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gdk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gtk/Makefile.am: CLEANFILES must be set with `=' before using `+=' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/stock-icons/Makefile.am: CLEANFILES must be set with `=' before using `+=' configure.in:25: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:97: warning: AC_CANONICAL_HOST invoked multiple times configure.in:101: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:158: warning: AC_COMPILE_IFELSE was called before AC_ISC_POSIX ... bunch of configure messages elided ... configure: creating ./config.status ... bunch of config.status messages elided ... config.status: error: cannot find input file: config.h.in Now type 'make' to compile Gtk+. I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. Any ideas what my problem is? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From celston@corky.sapien.net Fri Jun 22 16:59:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from corky.sapien.net (corky.sapien.net [208.224.15.95]) by mail.gnome.org (Postfix) with ESMTP id 8A7662BCB2 for ; Fri, 22 Jun 2001 16:59:02 -0400 (EDT) Received: from localhost (celston@localhost) by corky.sapien.net (8.11.2/8.11.2) with ESMTP id f5MKx1W32666 for ; Fri, 22 Jun 2001 16:59:01 -0400 Date: Fri, 22 Jun 2001 16:59:01 -0400 (EDT) From: Chris Elston To: Subject: First post with a Question... 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, my name is Chris. This is my first post to this list so be gentle. :) I'm working with Gtk-Perl but I'm pretty sure this idea applies to all versions of Gtk. I'm trying to design a GTree stucture so that if I right click a tree item, a menu comes up. I'm able to get the menu to come up easy, but the problem is that Gtk (at least in perl) has mapped the middle mouse button to expanding subtrees and the right to collapsing them. I want to be able to turn off this added "feature" so that when a subtree is right clicked, only my menu comes up. Any suggestions? -- Chris Elston celston@corky.sapien.net --------------------------------- Nucleus Communications Web Script Programmer From hp@redhat.com Fri Jun 22 17:31:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1FA5E2BB2D for ; Fri, 22 Jun 2001 17:31:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MLV7N14107; Fri, 22 Jun 2001 17:31:07 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables References: <15155.44504.705944.498691@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 17:31:07 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 15:43:04 -0500" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > After running autogen.sh on the gtk+ cvs source, I am left with a top-level > Makefile containing the following unexpanded variables: > Are you using some weird CVS automake/autoconf? Havoc From skip@beluga.mojam.com Fri Jun 22 17:56:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id D238B2BB2D for ; Fri, 22 Jun 2001 17:56:11 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MLtr822007; Fri, 22 Jun 2001 16:55:53 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.48873.299898.869595@beluga.mojam.com> Date: Fri, 22 Jun 2001 16:55:53 -0500 To: Havoc Pennington Cc: skip@pobox.com (Skip Montanaro), gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables In-Reply-To: References: <15155.44504.705944.498691@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> After running autogen.sh on the gtk+ cvs source, I am left with a >> top-level Makefile containing the following unexpanded variables: Havoc> Are you using some weird CVS automake/autoconf? Not that I'm aware of. As I mentioned: I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. Looking at the names in "cvs log README" for automake, I don't see anything "Release-1-4g", however, so maybe I am. I'll try using "Release-1-4-p1", which I've seen mentioned places. *sigh* Skip From hp@redhat.com Fri Jun 22 18:06:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 476DF2DB54 for ; Fri, 22 Jun 2001 18:06:36 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MM6c714122; Fri, 22 Jun 2001 18:06:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables References: <15155.44504.705944.498691@beluga.mojam.com> <15155.48873.299898.869595@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 18:06:37 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 16:55:53 -0500" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > >> After running autogen.sh on the gtk+ cvs source, I am left with a > >> top-level Makefile containing the following unexpanded variables: > > Havoc> Are you using some weird CVS automake/autoconf? > > Not that I'm aware of. As I mentioned: > > I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. > > Looking at the names in "cvs log README" for automake, I don't see anything > "Release-1-4g", however, so maybe I am. I'll try using "Release-1-4-p1", > which I've seen mentioned places. > Yep, you're using weird CVS stuff. Not expected to work. ;-) Havoc From skip@beluga.mojam.com Fri Jun 22 18:20:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 9D3F82DB8B for ; Fri, 22 Jun 2001 18:20:53 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MMKYG03936; Fri, 22 Jun 2001 17:20:34 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.50350.415823.279988@beluga.mojam.com> Date: Fri, 22 Jun 2001 17:20:30 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables In-Reply-To: References: <15155.44504.705944.498691@beluga.mojam.com> <15155.48873.299898.869595@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc> Yep, you're using weird CVS stuff. Not expected to work. ;-) I have the damndest time trying to keep all these build tools straight. Would someone please send me (off-list) the version numbers of automake, autoconf and libtool they are using to build the current CVS gtk/glib stuff? Thx, Skip From netlu@visto.com Fri Jun 22 22:30:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from qmail1.visto.com (unknown [209.185.20.131]) by mail.gnome.org (Postfix) with SMTP id 834892BBC0 for ; Fri, 22 Jun 2001 22:30:57 -0400 (EDT) Received: (qmail 4340 invoked by alias); Received: from unknown (HELO mps3) (206.79.140.175) by 0 with SMTP; 22 Jun 2001 19:30:44 -0700 Reply-To: netlu@visto.com From: "Louis Lu" Subject: font size change on buttons Date: Fri, 22 Jun 2001 19:27:42 -0700 X-Mailer: Visto To: gtk-list@gnome.org MIME-Version: 1.0 X-Mailer: Visto Server Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <20010623023057.834892BBC0@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi: I created a dialog box with 4 push buttons on it and I would like the label (on the button)to have a bigger font=20 size. Could any one tell me how to do this in my program? Thanks for your help and time. Louis _________________________________________________________________________= __ Visit http://www.visto.com/info, your free web-based communications cente= r. Visto.com. Life on the Dot. From reinhard.mueller@bytewise.at Thu Jun 21 18:37:30 2001 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 DC0C02E213 for ; Thu, 21 Jun 2001 18:37:29 -0400 (EDT) Received: (qmail 12570 invoked from network); 21 Jun 2001 22:37:28 -0000 Received: from n802p023.adsl.highway.telekom.at (HELO bytewise.at) ([62.47.44.55]) (envelope-sender ) by qmail2.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 21 Jun 2001 22:37:28 -0000 Message-ID: <3B32797C.4080207@bytewise.at> Date: Fri, 22 Jun 2001 00:47:24 +0200 From: Reinhard Mueller Organization: GNU Enterprise User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: de, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Logging functions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, is there a reason why there are the functions g_error g_critical g_warning g_message but not g_info g_debug ? Something like #define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) #ifdef G_DEBUG #define g_debug(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) #else #define g_debug(...) #endif could be helpful. Just an idea. :) -- Reinhard Mueller GNU Enterprise project http://www.gnue.org From S.Geerken@ping.de Sat Jun 23 10:38:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lilly.ping.de (lilly.ping.de [62.72.90.2]) by mail.gnome.org (Postfix) with SMTP id 635BA2D00B for ; Sat, 23 Jun 2001 10:38:56 -0400 (EDT) Received: (qmail 30863 invoked from network); 23 Jun 2001 14:38:53 -0000 Received: (ofmipd 62.72.92.20); 23 Jun 2001 14:38:31 -0000 Received: by sg.local via sendmail from stdin id (Debian Smail3.2.0.102) for gtk-list@gnome.org; Sat, 23 Jun 2001 16:43:38 +0200 (CEST) Date: 23 Jun 2001 16:43:38 +0200 Message-ID: <20010623164338.A2551@sg.local> From: "Sebastian Geerken" Mail-Followup-To: "Sebastian Geerken" , gtk-list@gnome.org To: gtk-list@gnome.org Subject: long menus 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, are there plans, or already implementations (I haven't looked yet at 1.3) on how to let the user control large menus which don't fit on the screen, e.g. by scrolling? Or does this depend on themes? I'm currently using a workaround, connecting the "select" signal of all menu items to this (unfinished) function: void justify_menu_item (GtkWidget *widget) { int y, h, mx, my, sh; y = widget->allocation.y; h = widget->allocation.height; gdk_window_get_geometry (widget->parent->parent->window, &mx, &my, NULL, NULL, NULL); sh = gdk_screen_height (); if (y + my < 0) gdk_window_move (widget->parent->parent->window, mx, - y + 1); else if (y + my > sh - h) gdk_window_move (widget->parent->parent->window, mx, sh - h - y - 1); } It works for me, but is really a bit hackish. Are there pitfalls why it may not work under certain circumstances? Sebastian From otaylor@redhat.com Sat Jun 23 10:59:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 3796D2BB3D for ; Sat, 23 Jun 2001 10:59:30 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 61F54242319; Sat, 23 Jun 2001 10:59:26 -0400 (EDT) To: "Sebastian Geerken" Cc: gtk-list@gnome.org Subject: Re: long menus References: <20010623164338.A2551@sg.local> From: Owen Taylor Date: 23 Jun 2001 10:59:26 -0400 In-Reply-To: "Sebastian Geerken"'s message of "23 Jun 2001 16:43:38 +0200" Message-ID: Lines: 40 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Sebastian Geerken" writes: > Hi, > > are there plans, or already implementations (I haven't looked yet at > 1.3) on how to let the user control large menus which don't fit on the > screen, e.g. by scrolling? Yes, scrolling menus hav been added in GTK+-1.3 Or does this depend on themes? I'm > currently using a workaround, connecting the "select" signal of all > menu items to this (unfinished) function: > > void justify_menu_item (GtkWidget *widget) > { > int y, h, mx, my, sh; > > y = widget->allocation.y; > h = widget->allocation.height; > gdk_window_get_geometry (widget->parent->parent->window, > &mx, &my, NULL, NULL, NULL); > sh = gdk_screen_height (); > > if (y + my < 0) > gdk_window_move (widget->parent->parent->window, mx, - y + 1); > else if (y + my > sh - h) > gdk_window_move (widget->parent->parent->window, mx, sh - h - y - 1); > } > > It works for me, but is really a bit hackish. Are there pitfalls why > it may not work under certain circumstances? You can find a workaround hack in the GNOME panel - I don't know how general it is. Other people have used netscape-bookmarks style continuation submenus. Regards, Owen From daniel.elstner@gmx.net Sat Jun 23 13:14:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by mail.gnome.org (Postfix) with SMTP id 0B62E2BA98 for ; Sat, 23 Jun 2001 13:14:45 -0400 (EDT) Received: (qmail 14006 invoked by uid 0); 23 Jun 2001 17:14:39 -0000 Received: from 217-9-43-124.lsd.berlikomm.net (HELO server.daniel.homenet) (217.9.43.124) by mail.gmx.net (mail06) with SMTP; 23 Jun 2001 17:14:39 -0000 Received: from master.daniel.homenet (master.daniel.homenet [192.168.1.1]) by server.daniel.homenet (8.9.3/8.9.3) with ESMTP id TAA13619 for ; Sat, 23 Jun 2001 19:11:17 +0200 Received: from master (localhost [127.0.0.1]) by master.daniel.homenet (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with SMTP id f5NHFo029704 for ; Sat, 23 Jun 2001 19:15:51 +0200 X-Authentication-Warning: master.daniel.homenet: Host localhost [127.0.0.1] claimed to be master Date: Sat, 23 Jun 2001 19:15:50 +0200 From: Daniel Elstner To: gtk-list@gnome.org Subject: [PATCH] glib.h + gcc-3.0 + -pedantic Message-Id: <20010623191550.67f9183e.daniel@master.daniel.homenet> X-Mailer: Sylpheed version 0.5.0pre1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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. --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, gcc 3.0 gives me a bunch of annoying warnings when compiling with the -pedantic option, because there are several macros (e.g. g_error) which are either too new (c99) or GNU extensions. I cannot compile with -std=c99 since that doesn't work with C++. With the attached patch (for glib-1.2.10) things are fine (at least for me). The changes are a check for __STRICT_ANSI__ triggering fallback to the function implementations, and an extra check for __GNUC__ detecting wether inlining va_arg functions is possible. It compiles fine with `g++ -ansi -pedantic -O2 -W -Wall -Winline'. Is the patch ok for you to apply? Regards, --Daniel --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88 Content-Type: application/octet-stream; name="glib.h.patch" Content-Disposition: attachment; filename="glib.h.patch" Content-Transfer-Encoding: base64 LS0tIGdsaWIuaC5vcmlnCVN1biBKdW4gMTcgMTg6Mzg6MjAgMjAwMQorKysgZ2xpYi5oCVNhdCBK dW4gMjMgMTg6MDU6MjMgMjAwMQpAQCAtMTMwNCw3ICsxMzA0LDcgQEAKICNkZWZpbmUJZ193YXJu aW5nKC4uLikJZ19sb2cgKEdfTE9HX0RPTUFJTiwgICAgICAgICBcCiAJCQkgICAgICAgR19MT0df TEVWRUxfV0FSTklORywgIFwKIAkJCSAgICAgICBfX1ZBX0FSR1NfXykKLSNlbGlmIGRlZmluZWQg KF9fR05VQ19fKQorI2VsaWYgZGVmaW5lZCAoX19HTlVDX18pICYmICFkZWZpbmVkIChfX1NUUklD VF9BTlNJX18pCiAjZGVmaW5lCWdfZXJyb3IoZm9ybWF0Li4uKQlnX2xvZyAoR19MT0dfRE9NQUlO LCAgICAgICAgIFwKIAkJCQkgICAgICAgR19MT0dfTEVWRUxfRVJST1IsICAgIFwKIAkJCQkgICAg ICAgZm9ybWF0KQpAQCAtMTMxNyw4ICsxMzE3LDEzIEBACiAjZGVmaW5lCWdfd2FybmluZyhmb3Jt YXQuLi4pCWdfbG9nIChHX0xPR19ET01BSU4sICAgICAgICAgXAogCQkJCSAgICAgICBHX0xPR19M RVZFTF9XQVJOSU5HLCAgXAogCQkJCSAgICAgICBmb3JtYXQpCi0jZWxzZQkvKiAhX19HTlVDX18g Ki8KLXN0YXRpYyB2b2lkCisjZWxzZQkvKiAhX19HTlVDX18gfHwgX19TVFJJQ1RfQU5TSV9fICov CisjICBpZiAoX19HTlVDX18pCisjICAgIGRlZmluZSBHX1ZBX0lOTElORSBpbmxpbmUKKyMgIGVs c2UKKyMgICAgZGVmaW5lIEdfVkFfSU5MSU5FCisjICBlbmRpZgorc3RhdGljIEdfVkFfSU5MSU5F IHZvaWQKIGdfZXJyb3IgKGNvbnN0IGdjaGFyICpmb3JtYXQsCiAJIC4uLikKIHsKQEAgLTEzMjcs NyArMTMzMiw3IEBACiAgIGdfbG9ndiAoR19MT0dfRE9NQUlOLCBHX0xPR19MRVZFTF9FUlJPUiwg Zm9ybWF0LCBhcmdzKTsKICAgdmFfZW5kIChhcmdzKTsKIH0KLXN0YXRpYyB2b2lkCitzdGF0aWMg R19WQV9JTkxJTkUgdm9pZAogZ19tZXNzYWdlIChjb25zdCBnY2hhciAqZm9ybWF0LAogCSAgIC4u LikKIHsKQEAgLTEzMzYsNyArMTM0MSw3IEBACiAgIGdfbG9ndiAoR19MT0dfRE9NQUlOLCBHX0xP R19MRVZFTF9NRVNTQUdFLCBmb3JtYXQsIGFyZ3MpOwogICB2YV9lbmQgKGFyZ3MpOwogfQotc3Rh dGljIHZvaWQKK3N0YXRpYyBHX1ZBX0lOTElORSB2b2lkCiBnX3dhcm5pbmcgKGNvbnN0IGdjaGFy ICpmb3JtYXQsCiAJICAgLi4uKQogewo= --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88-- From otaylor@redhat.com Sat Jun 23 13:47:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EC03C2BF9C for ; Sat, 23 Jun 2001 13:47:25 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 982B0242319; Sat, 23 Jun 2001 13:47:25 -0400 (EDT) To: Daniel Elstner Cc: gtk-list@gnome.org, gtk-devel-list@gtk.org Subject: Re: [PATCH] glib.h + gcc-3.0 + -pedantic References: <20010623191550.67f9183e.daniel@master.daniel.homenet> From: Owen Taylor Date: 23 Jun 2001 13:47:25 -0400 In-Reply-To: Daniel Elstner's message of "Sat, 23 Jun 2001 19:15:50 +0200" Message-ID: Lines: 43 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Daniel Elstner writes: > Hi, > > gcc 3.0 gives me a bunch of annoying warnings when compiling > with the -pedantic option, because there are several macros > (e.g. g_error) which are either too new (c99) or GNU extensions. > > I cannot compile with -std=c99 since that doesn't work with C++. > With the attached patch (for glib-1.2.10) things are fine (at > least for me). > > The changes are a check for __STRICT_ANSI__ triggering fallback > to the function implementations, and an extra check for __GNUC__ > detecting wether inlining va_arg functions is possible. It > compiles fine with `g++ -ansi -pedantic -O2 -W -Wall -Winline'. > > Is the patch ok for you to apply? [ see the README in GTK+ for information about submitting patches, in general patches should go to bugzilla.gnome.org, and/or gtk-devel-list ] Considering that the function implementations are much inferior to the macro implementations, I don't consider this patch appropriate. A possibly better way of going about this that was suggested is to use: #pragma GCC system_header For the glib header files - this turns off a lot of warnings. After all, GLib _does_ turn off the GCC extensions when compiling on something other than GCC, so there's no point in being told about them when compiling some project that uses GLib. You might want to experiment with this. Regards, Owen From daniel.elstner@gmx.net Sat Jun 23 15:22:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by mail.gnome.org (Postfix) with SMTP id 536C72C865 for ; Sat, 23 Jun 2001 15:22:38 -0400 (EDT) Received: (qmail 19763 invoked by uid 0); 23 Jun 2001 19:22:36 -0000 Received: from 217-9-43-124.lsd.berlikomm.net (HELO server.daniel.homenet) (217.9.43.124) by mail.gmx.net (mp005-rz3) with SMTP; 23 Jun 2001 19:22:36 -0000 Received: from master.daniel.homenet (master.daniel.homenet [192.168.1.1]) by server.daniel.homenet (8.9.3/8.9.3) with ESMTP id VAA14001; Sat, 23 Jun 2001 21:18:47 +0200 Received: from master (localhost [127.0.0.1]) by master.daniel.homenet (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with SMTP id f5NJNu018040; Sat, 23 Jun 2001 21:23:56 +0200 X-Authentication-Warning: master.daniel.homenet: Host localhost [127.0.0.1] claimed to be master Date: Sat, 23 Jun 2001 21:23:55 +0200 From: Daniel Elstner To: Owen Taylor Cc: gtk-list@gnome.org, gtk-devel-list@gtk.org Subject: Re: [PATCH] glib.h + gcc-3.0 + -pedantic Message-Id: <20010623212355.0a90bb46.daniel@master.daniel.homenet> In-Reply-To: References: <20010623191550.67f9183e.daniel@master.daniel.homenet> X-Mailer: Sylpheed version 0.5.0pre1 (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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 23 Jun 2001 13:47:25 -0400 Owen Taylor wrote: > A possibly better way of going about this that was suggested > is to use: > > #pragma GCC system_header > > For the glib header files - this turns off a lot of warnings. > After all, GLib _does_ turn off the GCC extensions when > compiling on something other than GCC, so there's no > point in being told about them when compiling some project > that uses GLib. > > You might want to experiment with this. That was also suggested by a gcc team member. I just thought you wouldn't like entirely disabling any warnings. But you're right - glib is mature enough to use this approach. Regards, --Daniel From popeofpop@softhome.net Sun Jun 24 09:30:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by mail.gnome.org (Postfix) with SMTP id B2C762CF0B for ; Sun, 24 Jun 2001 09:30:34 -0400 (EDT) Received: (qmail 27751 invoked by uid 417); 24 Jun 2001 13:33:51 -0000 Received: from port101.ds1-vbr.adsl.cybercity.dk (HELO livingroom) (212.242.58.40) by i-softhome-tango with SMTP; 24 Jun 2001 13:33:51 -0000 From: "Chris Hansen" To: Subject: Icons Date: Sun, 24 Jun 2001 15:31:18 +0200 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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to put an icon in the titlebar of the window with GTk? I'm working on a Windows machine and I know there aren't icons in some window managers on XFree, but Windows uses icons so I thought it could be done with GTk rather than Windows API. Best regards Chris Hansen From george@clipper.ens.fr Sun Jun 24 14:57:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id D9EBF2BEB8 for ; Sun, 24 Jun 2001 14:57:19 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id OAA12330 for ; Sun, 24 Jun 2001 14:57:19 -0400 Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5OIuCb08259 for ; Sun, 24 Jun 2001 14:56:12 -0400 Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f5OIvHp53635 for ; Sun, 24 Jun 2001 20:57:17 +0200 (CEST) Received: from (george@localhost) by clipper.ens.fr (8.9.2/jb-1.1) Date: Sun, 24 Jun 2001 20:57:17 +0200 From: Nicolas George To: gtk-list@redhat.com Subject: gdk-pixbuf: partial image loading Message-ID: <20010624205717.A9739@clipper.ens.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible, with gdk pixbuf, tu partially load an image? By that, I mean to get a pixbuf with only a sub-image or a shrinked image, without loading all in memory. This would be really useful in order to load parts of huges high resolution images, or scaled to fit on the screen, without filling the memory. From rbultje@ronald.bitfreak.net Sun Jun 24 16:19:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id E3EC62E07C for ; Sun, 24 Jun 2001 16:14:43 -0400 (EDT) Received: from [192.168.0.126] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5OKuuF05538 for ; Sun, 24 Jun 2001 22:56:56 +0200 (CEST) Subject: render texts to a buffer/drawable From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 24 Jun 2001 22:14:32 +0200 Message-Id: <993413682.26475.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi people, does Gtk or any other lib offer the option to render texts to a drawable or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it would work something like some_function(char *font, char *text) (font being the font as provided by the gtk-font-selection-dialog (-courier-new-bla--bla-*-*-*-*-) and text being the string to be rendered) and render the text to a gdk-pixbuf :-) I tried gimp until now but I didn't get any further than #include and add `gimp-config --cflags` to my LDFLAGS, after which the application complained about a missing reference to PLUG_IN_INFO (although I did have a GimpPlugInInfo PLUG_IN_INFO = { NULL, NULL, NULL, NULL}; in my application) so I'm probably doing something wrong there... Anyway, any help on going from GtkFontSelectionDialog to a text rendered in a GdkPixbuf would be appreciated. Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From dermot@glade.perl.connectfree.co.uk Sat Jun 23 11:52:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 5DD862BAB6; Sat, 23 Jun 2001 11:52:18 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA06514; Sat, 23 Jun 2001 11:52:18 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5NFp9b02505; Sat, 23 Jun 2001 11:51:09 -0400 Received: from higrade.botwrights.farm (ppp-1-157.cvx1.telinco.net [212.1.136.157]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id RAA04102; Sat, 23 Jun 2001 17:25:31 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id QAA01200; Sat, 23 Jun 2001 16:51:58 +0100 Message-ID: <3B34B95E.9FDB558B@glade.perl.connectfree.co.uk> Date: Sat, 23 Jun 2001 16:44:30 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: ANNOUNCE: Glade-Perl 0.59 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, This is especially for all perl 5.6 users - I am sorry if you had problems with a missing DESTROY() sub. I have just uploaded perl module Glade-Perl-0.59.tar.gz to CPAN ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but please your local mirror (see ftp://ftp.cpan.org/pub/perl/CPAN/MIRRORED.BY) Until it is mirrored around the world it is available on my website. http://www.glade.perl.connectfree.co.uk/index.html Glade-Perl generates perl source code from a Glade file - Glade is Damon Chaplin's beautiful Gtk+/Gnome UI builder. Glade-Perl can display the UI as it is built and/or generate source code and it can be called directly from Glade's 'Build' button. It can also generate code to use libglade if you prefer. Regards, Dermot snipped from the Changelog: ------------------------------------------------------------ Wed Jun 20 14:48:25 BST 2001 Dermot Musgrove - Version 0.59 - All modules now have empty DESTROY() sub as perl 5.6 demands. PerlRun->AUTOLOAD() also caters for (ignores) AUTOLOADED DESTROY() call. PerlRun perldoc corrected to lose warnings in pod2man. Thanks to Jim Edwards for the super-fast reports and patches. - PerlRun->lookup_widget() is a new method that accesses a window or a form's widget by name. It prints an error if the widget does not exist. e.g. my $widget = $window->lookup_widget('clist1'); OR my $form = $window->FORM; # or use $form in signal handlers my $widget = $form->lookup_widget('clist1'); - Glade-Perl will now create skeleton documentation files if they do not already exist. These default to directory 'Documentation' files called COPYING, Changelog, FAQ, INSTALL, NEWS, README, ROADMAP and TODO If you don't want to generate the doc files add a line to site or project options file: 0 - Glade-Perl will now create skeleton distribution files if they do not already exist. These default to - Makefile.PL, MANIFEST.SKIP, Project.spec and test.pl - so you should be able to call: 'perl Makefile.PL; make manifest; make dist;' and then either 'rpm -ta Project-0.01.tar.gz' to build a RPM or the normal perl methods of 'make test' and 'make install'. This is all at a very early stage and will probably fail in many cases but you should, at least, have some files to edit :) If you don't want to generate the dist files add a line to site or project options file: 0 ------------------------------------------------------------ From uckelman@scylla.ellipsis.cx Mon Jun 25 01:15:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from scylla.ellipsis.cx (unknown [64.109.29.58]) by mail.gnome.org (Postfix) with SMTP id A95D92BB38 for ; Mon, 25 Jun 2001 01:15:51 -0400 (EDT) Received: (qmail 13911 invoked by uid 500); 25 Jun 2001 05:15:51 -0000 Message-ID: <20010625051551.13909.qmail@scylla.ellipsis.cx> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: copying pixmaps From: Joel Uckelman Reply-To: uckelman@nomic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 25 Jun 2001 00:15:51 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I writing something for which I need two separate copies of the same GdkPixmap--one of which will be drawn to, while the other is used to restore areas of the first to their initial state. Since the XPMs I'm loading to make GdkPixmaps have the potential to be rather large, it would be nice if I could load them once and then make copies in memory instead of calling gdk_pixmap_create_from_xpm twice. I presume there is some simple way to do this, but I don't see any copy functions. Is there a way to get the dimensions of a GdkPixmap after creating it from an arbitrarily-sized XPM? If I could do that my problem would be solved, since I could create a blank GdkPixmap of the appropriate size and use gdk_draw_pixmap to copy from one to the other. Any help would be greatly appreciated. -- J. From backes@hlrwm.rhrk.uni-kl.de Mon Jun 25 01:53:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 766CA2BE1F; Mon, 25 Jun 2001 01:53:33 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id BAA17503; Mon, 25 Jun 2001 01:53:32 -0400 Received: from mail.uni-kl.de (mail.uni-kl.de [131.246.137.52]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5P5qQb10515; Mon, 25 Jun 2001 01:52:27 -0400 Received: from hlrwm.rhrk.uni-kl.de (IDENT:root@hlrwm.rhrk.uni-kl.de [131.246.91.18]) by mail.uni-kl.de (8.11.0/8.11.0) with ESMTP id f5P5rJC28224; Mon, 25 Jun 2001 07:53:19 +0200 (MET DST) Received: (from backes@localhost) by hlrwm.rhrk.uni-kl.de (8.11.0/8.11.0) id f5P5rJO21223; Mon, 25 Jun 2001 07:53:19 +0200 Message-ID: X-Mailer: XFMail 1.5.0 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3B34B95E.9FDB558B@glade.perl.connectfree.co.uk> Date: Mon, 25 Jun 2001 07:53:19 +0200 (CEST) X-Face: B^`ajbarE`qo`-u#R^.)e]6sO?X)FpoEm\>*T:H~b&S;U/h$2>my}Otw5$+BDxh}t0TGU?> O8Bg0/jQW@P"eyp}2UMkA!lMX2QmrZYW\F,OpP{/s{lA5aG'0LRc*>n"HM@#M~r8Ub9yV"0$^i~hKq P-d7Vz;y7FPh{XfvuQA]k&X+CDlg"*Y~{x`}U7Q:;l?U8C,K\-GR~>||pI/R+HBWyaCz1Tx]5 Reply-To: Joachim Backes Organization: University of Kaiserslautern, Computer Center [Supercomputing division] From: Joachim Backes To: Dermot Musgrove Subject: RE: ANNOUNCE: Glade-Perl 0.59 Cc: glade-devel , "gtk-perl-list@redhat.com" , "gtk-list@redhat.com" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 23-Jun-2001 Dermot Musgrove wrote: > Hi all, > > This is especially for all perl 5.6 users - I am sorry if you had > problems with a missing DESTROY() sub. > > I have just uploaded perl module Glade-Perl-0.59.tar.gz to CPAN > ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but please Hi, Dermot, address seems to be : ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Glade/ ^^^ ftp> cd /CPAN/modules/by-module/Glade/ 550 CPAN/modules/by-module/Glade/: No such file or directory ftp> cd /pub/CPAN/modules/by-module/Glade/ 250 CWD command successful. Regards Joachim Backes -- Joachim Backes | Univ. of Kaiserslautern Computer Center, High Performance Computing | Phone: +49-631-205-2438 D-67653 Kaiserslautern, PO Box 3049, Germany | Fax: +49-631-205-3056 ---------------------------------------------+------------------------ WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html From hoshem@mel.comcen.com.au Mon Jun 25 06:25:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id A9FE82CF34 for ; Mon, 25 Jun 2001 06:25:56 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id GAA18548 for ; Mon, 25 Jun 2001 06:25:56 -0400 Received: from BuffyRox.localdomain (modem031.mnementh.comcen.com.au [203.23.238.90]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5PAOlb24792 for ; Mon, 25 Jun 2001 06:24:48 -0400 Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5PAg8N02457; Mon, 25 Jun 2001 20:42:08 +1000 Date: Mon, 25 Jun 2001 20:42:07 +1000 From: Helmethead To: Nicolas George Cc: gtk-list@redhat.com Subject: Re: gdk-pixbuf: partial image loading Message-ID: <20010625204207.A2445@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Nicolas George , gtk-list@redhat.com References: <20010624205717.A9739@clipper.ens.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010624205717.A9739@clipper.ens.fr>; from nicolas.george@ens.fr on Sun, Jun 24, 2001 at 08:57:17PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sun, Jun 24, 2001 at 08:57:17PM +0200, Nicolas George wrote: > Is it possible, with gdk pixbuf, tu partially load an image? By that, I > mean to get a pixbuf with only a sub-image or a shrinked image, without > loading all in memory. This would be really useful in order to load parts > of huges high resolution images, or scaled to fit on the screen, without > filling the memory. You would have to load the whole image in memory, then scale or crop it as you like (gdk-pixbuf comes with functions for this). From hoshem@mel.comcen.com.au Mon Jun 25 06:48:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem031.mnementh.comcen.com.au [203.23.238.90]) by mail.gnome.org (Postfix) with ESMTP id F2F1E2BAB6 for ; Mon, 25 Jun 2001 06:48:15 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5PB4UF02544; Mon, 25 Jun 2001 21:04:30 +1000 Date: Mon, 25 Jun 2001 21:04:30 +1000 From: Helmethead To: Joel Uckelman Cc: gtk-list@gnome.org Subject: Re: copying pixmaps Message-ID: <20010625210430.A2463@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Joel Uckelman , gtk-list@gnome.org References: <20010625051551.13909.qmail@scylla.ellipsis.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010625051551.13909.qmail@scylla.ellipsis.cx>; from uckelman@nomic.net on Mon, Jun 25, 2001 at 12:15:51AM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 25, 2001 at 12:15:51AM -0500, Joel Uckelman wrote: > Hi, > > I writing something for which I need two separate copies of the same > GdkPixmap--one of which will be drawn to, while the other is used to > restore areas of the first to their initial state. Since the XPMs I'm > loading to make GdkPixmaps have the potential to be rather large, it would > be nice if I could load them once and then make copies in memory instead of > calling gdk_pixmap_create_from_xpm twice. I presume there is some simple > way to do this, but I don't see any copy functions. > > Is there a way to get the dimensions of a GdkPixmap after creating it from > an arbitrarily-sized XPM? If I could do that my problem would be solved, > since I could create a blank GdkPixmap of the appropriate size and use > gdk_draw_pixmap to copy from one to the other. > > Any help would be greatly appreciated. You can pass -1 to the width and height arguments of gdk_draw_pixmap, and the entire pixmap will be copied From craig.emery@3glab.com Mon Jun 25 06:50:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 8E6602DEEF for ; Mon, 25 Jun 2001 06:50:16 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15ETwb-0002Oe-00 for gtk-list@gnome.org; Mon, 25 Jun 2001 11:50:13 +0100 Message-ID: <3B371746.4050506@3glab.com> Date: Mon, 25 Jun 2001 11:49:42 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010624 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: A Modal Window References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15ETwb-0002Oe-00*OV0fWc8N5go* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Esteban Quijano Vincenzi wrote: > Hi, there are two ways for doing this: > 1) Call gtk_main() again so you enter in a second event loop. When you > press an "ok" or "cancel" button just call gtk_main_quit(). You will > return to the main event loop. > > 2) Do something like this: > > while (exit_modal != TRUE) gtk_main_iteration(); > > and in your callback function do exit_modal = TRUE somewhere > > Esteban Quijano Vincenzi. > This is good enough but not great. I understand that other windows in your application can still be raised on top of your modal window. I asked about this (kinda) recently and Havoc pointed me at gtk_grab_add () / gtk_grab_remove ()which you should call AS WELL as gtk_main (). See the FAQ at http://www.gtk.org/faq/#AEN556 for more info. Craig. From john.cupitt@ng-london.org.uk Mon Jun 25 07:14:21 2001 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 1AA0F2DBEE for ; Mon, 25 Jun 2001 07:14:21 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN9JQ; Mon, 25 Jun 2001 12:14:18 +0100 Message-ID: <3B371BB8.5453B91A@ng-london.org.uk> Date: Mon, 25 Jun 2001 12:08:40 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ronald Bultje Cc: GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje wrote: > does Gtk or any other lib offer the option to render texts to a drawable > or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it > would work something like some_function(char *font, char *text) (font > being the font as provided by the gtk-font-selection-dialog > (-courier-new-bla--bla-*-*-*-*-) and text being the string to be > rendered) and render the text to a gdk-pixbuf :-) Hi Ronald, you can do this with a bunch of gdk: - gdk_font_load() the font you want - gdk_text_extents() to work out how big your string will be (in pixels) - gdk_pixmap_new() to make a pixmap large enough to hold rendered text - make a black/white GC to render with - clear the pixmap to the background colour - gdk_draw_string() to draw the text into the pixmap - gdk_image_get() to read the image from the server as a GdkImage* - malloc yor RGB buffer, and unpack the GdkImage into that About 4 pages of code :-( I believe this is what gimp does (or it did last time I looked). I'm sure you can link against freetype or something and do the rendering on the client side, but I've not tried that. John From john.cupitt@ng-london.org.uk Mon Jun 25 07:29:24 2001 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 C51662DD79 for ; Mon, 25 Jun 2001 07:29:23 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN9LD; Mon, 25 Jun 2001 12:29:22 +0100 Message-ID: <3B371F40.FC078870@ng-london.org.uk> Date: Mon, 25 Jun 2001 12:23:44 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: Signal help needed (gtk_signal_new?) References: <3B3284A8.1133DCE3@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" wrote: > But even if I capture the relevant info for "changed" I can't use it to > create a new signal. The arguments for gtk_signal_new() are elusive to > me. I'd basically like to create something very similar to the > "value_changed" and "changed" signals, named "activate." It would be > the equivalent of a pulse that gets sent whenever the value changes from > 0-1 or 1-0. Hi David, take a look at the source for gtkadjustment, you can copy out the bits you need. You need to: - make a new class, inheriting from GtkData - have a member for your signal - haev a static array of signal ids in your implementation - build the signal in _class_init with gtk_signal_new() - attach the signal to your class with gtk_object_class_add_signals() - provide a function which emits your signal from an instance John From celston@corky.sapien.net Mon Jun 25 09:30:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from corky.sapien.net (corky.sapien.net [208.224.15.95]) by mail.gnome.org (Postfix) with ESMTP id CBAB72DC4E for ; Mon, 25 Jun 2001 09:30:54 -0400 (EDT) Received: from localhost (celston@localhost) by corky.sapien.net (8.11.2/8.11.2) with ESMTP id f5PDUrR08194 for ; Mon, 25 Jun 2001 09:30:53 -0400 Date: Mon, 25 Jun 2001 09:30:53 -0400 (EDT) From: Chris Elston To: Subject: Re: First post with a Question... In-Reply-To: <20010622141436.1a6c5e8c.golubenkoj@columbiafunds.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sorry, still very new at working with Gtk. What do you mean by bind? What I'm doing currently is using the "signal_connect" function to the "button_press_event". I was originally using the signal_connect to the "select" event. I have recently commented that out and am using the button_press_event. Still no progress. There isn't a way to just "turn it off"? Any more help? Chris On Fri, 22 Jun 2001, John Golubenko wrote: > Do you think you can bind this button to do whatever you want? This maybe a solution. > > On Fri, 22 Jun 2001 16:59:01 -0400 (EDT) > "Chris Elston" wrote: > > > Hey, my name is Chris. This is my first post to this list so be gentle. > > :) > > > > I'm working with Gtk-Perl but I'm pretty sure this idea applies to all > > versions of Gtk. I'm trying to design a GTree stucture so that if I right > > click a tree item, a menu comes up. I'm able to get the menu to come up > > easy, but the problem is that Gtk (at least in perl) has mapped the middle > > mouse button to expanding subtrees and the right to collapsing them. I > > want to be able to turn off this added "feature" so that when a subtree is > > right clicked, only my menu comes up. Any suggestions? > > > > -- > > > > Chris Elston > > celston@corky.sapien.net > > --------------------------------- > > Nucleus Communications > > Web Script Programmer > > > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. > > -- Chris Elston celston@corky.sapien.net --------------------------------- Nucleus Communications Web Script Programmer From otaylor@redhat.com Mon Jun 25 10:23:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 1108F2DDE3 for ; Mon, 25 Jun 2001 10:23:46 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id KAA32708 for ; Mon, 25 Jun 2001 10:23:45 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id ED5C624231B; Mon, 25 Jun 2001 10:23:44 -0400 (EDT) To: Nicolas George Cc: gtk-list@redhat.com Subject: Re: gdk-pixbuf: partial image loading References: <20010624205717.A9739@clipper.ens.fr> From: Owen Taylor Date: 25 Jun 2001 10:23:44 -0400 In-Reply-To: Nicolas George's message of "Sun, 24 Jun 2001 20:57:17 +0200" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Nicolas George writes: > Is it possible, with gdk pixbuf, tu partially load an image? By that, I > mean to get a pixbuf with only a sub-image or a shrinked image, without > loading all in memory. This would be really useful in order to load parts > of huges high resolution images, or scaled to fit on the screen, without > filling the memory. No, not possible currently. It's in bugzilla as a RFE: http://bugzilla.gnome.org/show_bug.cgi?id=53726 Whether this is useful or not depends a lot on the format - for a lot of formats, this doesn't buy you anything, but for, say, thumbnailing JPEGs, it can be a big win. Regards, Owen From hp@redhat.com Mon Jun 25 10:26:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id BCA112E42C for ; Mon, 25 Jun 2001 10:26:39 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5PEQWN21639; Mon, 25 Jun 2001 10:26:32 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: uckelman@nomic.net Cc: gtk-list@gnome.org Subject: Re: copying pixmaps References: <20010625051551.13909.qmail@scylla.ellipsis.cx> From: Havoc Pennington Date: 25 Jun 2001 10:26:32 -0400 In-Reply-To: Joel Uckelman's message of "Mon, 25 Jun 2001 00:15:51 -0500" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Joel Uckelman writes: > Is there a way to get the dimensions of a GdkPixmap after creating it from > an arbitrarily-sized XPM? If I could do that my problem would be solved, > since I could create a blank GdkPixmap of the appropriate size and use > gdk_draw_pixmap to copy from one to the other. gdk_drawable_get_size(). The way you copy a pixmap is to just draw it to another pixmap, as you say. Havoc From zb197@yahoo.com Mon Jun 25 13:20:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11605.mail.yahoo.com (web11605.mail.yahoo.com [216.136.172.57]) by mail.gnome.org (Postfix) with SMTP id 369412C90D for ; Mon, 25 Jun 2001 13:20:06 -0400 (EDT) Message-ID: <20010625172005.58660.qmail@web11605.mail.yahoo.com> Received: from [65.200.176.160] by web11605.mail.yahoo.com; Mon, 25 Jun 2001 10:20:05 PDT Date: Mon, 25 Jun 2001 10:20:05 -0700 (PDT) From: ZB Subject: writing to GUI from 2+ threads 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am trying to write to the GUI from more than one thread and it works with LINUX but not win32. I made a stub program by modifying the threaded hello world program (http://www.gtk.org/faq/#AEN462) from the gtk site. The program creates a window and then starts a thread and i modified the thread to show a second window. In LINUX, it works great. In win32.. the second window freezes halfway shown and the app gets stuck. (for win32.. i am using the DLLs posted 12/26 at http://user.sgic.fi/~tml/gimp/win32/downloads.html) I also downloaded the 1.3.6 GTK and compiled the latest DLLs for windows. The same problem still persists and the window remains half shown. I am always using gdk_thread_enter and leave within my thread. My question is how do you write to the GUI from more than one thread? I thought that the gdk_thread_enter and leave should do the trick. Is this a bug? I did a little reseach in the forums and found that you can call the gtk_add_timeout function to get the window to show. Is this the best way? Is there something cleaner? I can post my stub if that will help. I also tried running a backtrace from gdb when it froze and it told me that it could access the memory when i typed 'bt'. Thanks, Zev. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From rbultje@ronald.bitfreak.net Mon Jun 25 17:28:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id B44BA2BA83 for ; Mon, 25 Jun 2001 17:28:39 -0400 (EDT) Received: from [192.168.0.98] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5PMAhF19656; Tue, 26 Jun 2001 00:10:44 +0200 (CEST) Subject: Re: render texts to a buffer/drawable From: Ronald Bultje To: John Cupitt Cc: GTK Mailing List In-Reply-To: <3B371BB8.5453B91A@ng-london.org.uk> References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Jun 2001 23:28:38 +0200 Message-Id: <993504519.1645.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi John, On 25 Jun 2001 12:08:40 +0100, John Cupitt wrote: > - gdk_font_load() the font you want > - gdk_text_extents() to work out how big your string will be (in pixels) > - gdk_pixmap_new() to make a pixmap large enough to hold rendered text > - make a black/white GC to render with > - clear the pixmap to the background colour > - gdk_draw_string() to draw the text into the pixmap > - gdk_image_get() to read the image from the server as a GdkImage* > - malloc yor RGB buffer, and unpack the GdkImage into that Thanks for the tips, I feel like I'm almost there. Basically, I do see the text, there's just two problem, the color of the text is changing all the time and I'm not sure how to get the background transparent. > About 4 pages of code :-( I believe this is what gimp does (or it did > last time I looked). Not that bad, actually.... I'll give the code as I got it now: GdkColor color; GdkGC *gc; GdkPixmap *pixmap; GdkPixbuf *image; gdouble colors[3]; int w,h,x,y; GdkFont *font; guchar *data; char *text; guint32 pixel; //some initializing [...] color.red = (guint16)(options->colors[0]*65535.0); color.green = (guint16)(options->colors[1]*65535.0); color.blue = (guint16)(options->colors[2]*65535.0); font = gdk_font_load(options->font); w = gdk_text_width(font, text, strlen(text)); h = gdk_text_height(font, text, strlen(text)); pixmap = gdk_pixmap_new(NULL, w, h, 24); gc = gdk_gc_new(pixmap); gdk_gc_set_foreground(gc, &color); gdk_draw_string(pixmap, font, gc, 0, h, text); image = gdk_image_get(pixmap, 0,0,w,h); data = malloc(sizeof(guchar)*w*h*4); for (y=0;yimage = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, 1, 8, w, h, w*4, NULL, NULL); (and here I unref it all) The outcome pixbuf has an alpha of 255 everywhere because I'm not sure how to find out whether it should be transparent at that pixel or not. Second problem is, as I said, that the text of both the background (which makes sense because it's just a random data background) and the text changes everytime I create the pixmap. Is there an error in my "calculate-color-from-data"? And do you have an idea on how to see transparency? My idea is to read the background color (just do a gdk_draw_rectangle() with different colors) and if the background color matches the color in the GdkPixbuf, we have transparency - but maybe there's a better way? Anyway, thanks a lot for all the help for now, I'm almost there :-). Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From iainmf2000@yahoo.com Mon Jun 25 21:36:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web12505.mail.yahoo.com (web12505.mail.yahoo.com [216.136.173.197]) by mail.gnome.org (Postfix) with SMTP id 9F8FE2D46B for ; Mon, 25 Jun 2001 21:36:09 -0400 (EDT) Message-ID: <20010626013608.41493.qmail@web12505.mail.yahoo.com> Received: from [62.7.94.163] by web12505.mail.yahoo.com; Mon, 25 Jun 2001 18:36:08 PDT Date: Mon, 25 Jun 2001 18:36:08 -0700 (PDT) From: Iain Subject: configure on Win9x 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi. I'm trying to configure glib, but when I try to make it, it fails. When I look at the log for configure, I get the following error messages: configure:3741: checking for wctype.h configure:3748: C:/cygwin/bin/gcc -E conftest.c >/dev/null 2>conftest.out configure:3744: wctype.h: No such file or directory /cygdrive/c/glib/obj/configure:3886: undefined reference to `iswalnum' configure: In function `main': configure:5366: too many arguments to function `pthread_getspecific' configure: failed program was: #line 5363 "configure" configure:5426: warning: unused variable `tval' configure: failed program was: #line 5421 "configure" [end snippets] I have tried building with both cygwin and djgpp, and yes, I am using GNU make. Either there are errors in the configure file, or it won't compile with the two compilers I'm using. Why not? Thanks. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From hp@redhat.com Mon Jun 25 23:46:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8788E2BAB4 for ; Mon, 25 Jun 2001 23:46:04 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5Q3jvo08654; Mon, 25 Jun 2001 23:45:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> From: Havoc Pennington Date: 25 Jun 2001 23:45:52 -0400 In-Reply-To: Ronald Bultje's message of "25 Jun 2001 23:28:38 +0200" Message-ID: Lines: 26 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > pixmap = gdk_pixmap_new(NULL, w, h, 24); Not sure if you are trying to be portable across machines, but this could easily fail, not all X servers have 24-bit. > for (y=0;y { > for (x=0;x { > pixel = gdk_image_get_pixel(image,x,y); > data[(y*w+x)*4] = pixel/(256^3); > data[(y*w+x)*4+1] = (pixel/(256^2))%256; > data[(y*w+x)*4+2] = (pixel/256)%(256^2); > data[(y*w+x)*4+3] = 255; > } > } Here you're assuming far more than you reasonably can about the image format. gdk_pixbuf_get_from_drawable() does this for you and handles all the image formats and bit depths. Havoc From paul@paulandjamie.com Tue Jun 26 00:06:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from usbizmap.com (unknown [198.145.120.15]) by mail.gnome.org (Postfix) with ESMTP id C4C562BAB1 for ; Tue, 26 Jun 2001 00:06:30 -0400 (EDT) Received: from production [63.165.229.33] by usbizmap.com [198.145.120.19] with SMTP (MDaemon.v3.5.0.R) for ; Mon, 25 Jun 2001 21:21:19 -0700 Message-ID: <000d01c0fdf5$9524b6c0$21e5a53f@production> From: "Paul Singleton" To: Subject: very basic question about glib Date: Mon, 25 Jun 2001 21:07:56 -0700 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.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-MDRemoteIP: 63.165.229.33 X-Return-Path: paul@paulandjamie.com X-MDaemon-Deliver-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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. As you'll soon see, I'm a newbie. I installed Caldera eDesktop 2.4 and I think it's really cool. Seeking to free myself from the grips of Microsoft, I'm trying to find Windows-equivalent tools for Linux. The first one was an ftp app. I found gFTP. gFTP uses gtk+ so I needed to install glib1.2.8 and gtk1.2.8. Sounded easy enough. Seeking to learn, I avoided the rpms and went for the source. I downloaded everything. I extracted each of the three archives into their own folders under home/paul/desktop and followed instructions: glib says to go into the directory, type './configure' then 'make' then 'make install' that was easy enough. But when I went to do the same for gtk, it said it couldn't find a new enough version of glib!!! Well that made me upset, cause I don't know my way around linux, and the instructions didn't work. [by the way I've gotten past all this by using rpms but I'm none the wiser] My question: how do i remove COMPLETELY an old version of glib (or anything else for that matter) so that I know I don't have two or more versions of a library on my system. For instance, I found that I could use ./configure --prefix=/usr/ and glib would be installed over the top of the old version in /usr/lib instead of usr/local/lib. When I tried that, it still didn't seem to work. That lead me to my question. If I knew where to wipe out libraries and where they are being pointed to, etc, I would feel much more comfortable. I'm quite capable in DOS and of course Windows, so new venture is exciting but frustrating. I thank you much for your help--- and patience. -=Paul =Paul From pbd@op.net Tue Jun 26 00:29:12 2001 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 E61242CEB5 for ; Tue, 26 Jun 2001 00:29:11 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-0f.ppp.op.net [209.152.206.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id AAA14047; Tue, 26 Jun 2001 00:29:03 -0400 (EDT) Message-Id: <200106260429.AAA14047@renoir.op.net> To: "Paul Singleton" Cc: gtk-list@gnome.org Subject: Re: very basic question about glib In-reply-to: Your message of "Mon, 25 Jun 2001 21:07:56 PDT." <000d01c0fdf5$9524b6c0$21e5a53f@production> Date: Tue, 26 Jun 2001 00:29:00 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >that was easy enough. But when I went to do the same for gtk, it said it >couldn't find a new enough version of glib!!! Well that made me upset, cause >I don't know my way around linux, and the instructions didn't work. What exactly was the error message you got when you tried this? --p From zoey@xenonbase.net Tue Jun 26 00:50:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from host31.hostingcheck.com (host31.hostingcheck.com [209.239.36.147]) by mail.gnome.org (Postfix) with ESMTP id AD1C42BB20 for ; Tue, 26 Jun 2001 00:50:05 -0400 (EDT) Received: from xenonbase.net (co3007127-a.thorn1.nsw.optushome.com.au [203.164.22.188]) by host31.hostingcheck.com (8.10.2/8.10.2) with ESMTP id f5Q4o4917699 for ; Tue, 26 Jun 2001 00:50:04 -0400 Message-ID: <3B390317.7E82B4DA@xenonbase.net> Date: Tue, 26 Jun 2001 14:48:07 -0700 From: Zoey X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@gnome.org" Subject: Diff versions? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I recently downloaded GTK and installed it - the library first and the other stuff second. However, it persists in telling me the library version is an earlier one to the one I just installed. Any suggestions on how to fix the conflict? (I'm running Corel linux) zoey@xenonbase.net From pranjal@lgsi.co.in Tue Jun 26 01:14:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from polaris.lgsi.co.in (unknown [202.54.13.206]) by mail.gnome.org (Postfix) with ESMTP id CEDD82CE3E for ; Tue, 26 Jun 2001 01:14:01 -0400 (EDT) Received: from pranjal ([202.54.13.195]) by polaris.lgsi.co.in (Netscape Messaging Server 4.15) with ESMTP id GFIUUT00.O70 for ; Tue, 26 Jun 2001 10:50:53 +0530 From: "Pranjal Saikia" To: Subject: Latest version of GTK+, GLIB and Pango !! Date: Tue, 26 Jun 2001 11:29:13 +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.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <20010626050002.04DCD2D368@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi !! I wanted to know the latest versions of GTK+, Glib and Pango. Actually I wanted to run my application with Frame Buffer enabled. Please help to proceed. Please let me know, the availability of these packages. Regards Pranjal From rwan@cs.mu.oz.au Tue Jun 26 01:20:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 6DC372DB86 for ; Tue, 26 Jun 2001 01:18:49 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id PAA25242; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 0C65375AA; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 0BB7AAC94; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Date: Tue, 26 Jun 2001 15:17:27 +1000 (EST) From: Raymond Wan To: Pranjal Saikia Cc: gtk-list@gnome.org Subject: Re: Latest version of GTK+, GLIB and Pango !! 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, 26 Jun 2001, Pranjal Saikia wrote: > I wanted to know the latest versions of GTK+, Glib and Pango. Actually I > wanted to run my application with Frame Buffer enabled. Please help to > proceed. Please let me know, the availability of these packages. Hi, Take a look at: http://www.gtk.org/ for more information. In particular, take a look at: http://www.gtk.org/download/ to obtain the latest versions. You probably want the latest stable release of 1.2.X . Ray From deepika.sikri@wipro.com Tue Jun 26 02:36:59 2001 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 A182A2BB36 for ; Tue, 26 Jun 2001 02:36:55 -0400 (EDT) Received: from ecvwall11.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id f5QGuFj16098 for ; Tue, 26 Jun 2001 11:56:15 -0500 (GMT) Received: from deepika ([192.168.42.222]) by itplmail.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GFIY9Y00.QF7 for ; Tue, 26 Jun 2001 12:04:46 +0530 Message-ID: <008a01c0fda5$5ea3d400$de2aa8c0@wipro.com> From: "Deepika Sikri" To: Subject: Newbie question Date: Tue, 26 Jun 2001 00:03:45 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------InterScan_NT_MIME_Boundary" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----=_NextPart_000_0087_01C0FDD3.77EFB9A0" ------=_NextPart_000_0087_01C0FDD3.77EFB9A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm working on a project for making a UI in GTK+ and we need to display = the thumbnail images when URL's is specified.The screen shud be able = have multiple images(thumbnail). I'm a Newbie in this and just wanted to ask whether we can achieve it = thru GTK+ and pls if u can do send me pointers of where i can get info = for doing so which might be helpful.Any help will be appreciated ! Thanks, Deepika ------=_NextPart_000_0087_01C0FDD3.77EFB9A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
 
Hi,
 
 I'm working on a project for making a UI in = GTK+ and we=20 need to display the thumbnail images when URL's is specified.The screen = shud be=20 able have multiple images(thumbnail).
 
I'm a Newbie in this and just wanted to ask whether=20 we can achieve it thru GTK+ and pls if u can = do send me=20 pointers of where i can get info for doing so which might be helpful.Any = help=20 will be appreciated !
 
Thanks,
Deepika
 
 
------=_NextPart_000_0087_01C0FDD3.77EFB9A0-- --------------InterScan_NT_MIME_Boundary Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" The Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@wipro.com --------------InterScan_NT_MIME_Boundary-- From mseisdedos@cirsa.com Tue Jun 26 03:09:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id 8ED202CA7C for ; Tue, 26 Jun 2001 03:09:38 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A77.002746B5; Tue, 26 Jun 2001 09:09:00 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Tue, 26 Jun 2001 09:09:53 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4839@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: RV: Undeliverable message Date: Tue, 26 Jun 2001 09:09:52 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Hello every body: > > a core always happens to me when i close a window. I have a > button, when i > click it, a new window with a canvas and a plot is opened, i > can click the > button every time i want, but if i close one of the windows > and then try to > click the button to get another plot i get a gnome coredump. > I think is something related to register different objects > with the same > name, or something like that. > Thanks in advance > > > From sven@gimp.org Tue Jun 26 03:12:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A3B.dip.t-dialin.net [217.80.26.59]) by mail.gnome.org (Postfix) with ESMTP id 33E432DF28 for ; Tue, 26 Jun 2001 03:12:55 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15EmuJ-0001Q3-00 for ; Tue, 26 Jun 2001 09:05:07 +0200 To: gtk-list@gnome.org Subject: Re: Latest version of GTK+, GLIB and Pango !! References: From: Sven Neumann Date: 26 Jun 2001 09:05:07 +0200 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Raymond Wan writes: > > I wanted to know the latest versions of GTK+, Glib and Pango. Actually I > > wanted to run my application with Frame Buffer enabled. Please help to > > proceed. Please let me know, the availability of these packages. > > Take a look at: http://www.gtk.org/ for more information. In > particular, take a look at: http://www.gtk.org/download/ to obtain the > latest versions. You probably want the latest stable release of 1.2.X . he/she probably wants to use the unstable branch since the intention is to use the framebuffer device. You will find the unstable version at the same place but beware that this is unstable development software. Another place to grab the latest packages from is http://www.directfb.org/ where you will find a hardware accelerated version of GTK+ for the Linux framebuffer. Of course the same warning applies here: this is unstable development stuff. You have been warned. Salut, Sven From brandon@ovnet.com Tue Jun 26 03:23:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from riker.mountain.net (smtp.mountain.net [66.118.64.15]) by mail.gnome.org (Postfix) with ESMTP id 7437E2BF1E for ; Tue, 26 Jun 2001 03:23:52 -0400 (EDT) Received: from ovnet.com ([198.77.41.116]) by riker.mountain.net (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id net; Tue, 26 Jun 2001 03:21:00 -0400 Message-ID: <3B38399C.66AA057B@ovnet.com> Date: Tue, 26 Jun 2001 03:28:28 -0400 From: Brandon McCombs X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: ru,en MIME-Version: 1.0 To: Paul Singleton Cc: gtk-list@gnome.org Subject: Re: very basic question about glib References: <000d01c0fdf5$9524b6c0$21e5a53f@production> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Singleton wrote: > > Hello. As you'll soon see, I'm a newbie. I installed Caldera eDesktop 2.4 > and I think it's really cool. > > Seeking to free myself from the grips of Microsoft, I'm trying to find > Windows-equivalent tools for Linux. The first one was an ftp app. I found > gFTP. > > gFTP uses gtk+ so I needed to install glib1.2.8 and gtk1.2.8. Sounded easy > enough. Seeking to learn, I avoided the rpms and went for the source. I > downloaded everything. > > I extracted each of the three archives into their own folders under > home/paul/desktop and followed instructions: > glib says to go into the directory, type './configure' then 'make' then > 'make install' > > that was easy enough. But when I went to do the same for gtk, it said it > couldn't find a new enough version of glib!!! Well that made me upset, cause > I don't know my way around linux, and the instructions didn't work. > run /sbin/ldconfig as root and then run ./configure for gtk From rbultje@ronald.bitfreak.net Tue Jun 26 03:30:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id 1E1412BD47 for ; Tue, 26 Jun 2001 03:30:09 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id JAA21064; Tue, 26 Jun 2001 09:30:05 +0200 (CEST) Message-ID: <3B3836A8.50305@ronald.bitfreak.net> Date: Tue, 26 Jun 2001 09:15:52 +0200 From: Ronald Bultje User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us MIME-Version: 1.0 To: Havoc Pennington Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: >Ronald Bultje writes: > >> pixmap = gdk_pixmap_new(NULL, w, h, 24); >> > >Not sure if you are trying to be portable across machines, but this >could easily fail, not all X servers have 24-bit. > Uhm... Never thought about that, really :-) Is there any way to get a 24-bit drawable form the server on non-24-bit X-servers? Is it possible at all to have 24-bit drawables on non-24-bit X-servers? Or would I haev to use something else (client-side) for this? (like freetype, as John suggested). >> for (y=0;y> { >> for (x=0;x> { >> pixel = gdk_image_get_pixel(image,x,y); >> data[(y*w+x)*4] = pixel/(256^3); >> data[(y*w+x)*4+1] = (pixel/(256^2))%256; >> data[(y*w+x)*4+2] = (pixel/256)%(256^2); >> data[(y*w+x)*4+3] = 255; >> } >> } >> > >Here you're assuming far more than you reasonably can about the image >format. > >gdk_pixbuf_get_from_drawable() does this for you and handles all the >image formats and bit depths. > The problem I encountered with gdk_pixbuf_from_drawable is that it needed a colormap. However, trying to get a colormap from the pixmap resulted in an error that it could not get a colormap from a pixmap.... Or should I use gdk_colormap_get_system() (which could be different from the colormap of the pixmap...)? Regards, Ronald From switk@yahoo.com Tue Jun 26 06:14:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx03.cluster1.charter.net (dc-mx03.cluster0.hsacorp.net [209.225.8.13]) by mail.gnome.org (Postfix) with ESMTP id 0D5192C858 for ; Tue, 26 Jun 2001 06:14:21 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx03.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 5709764; Tue, 26 Jun 2001 06:20:28 -0400 Subject: Re: very basic question about glib From: Stephen Witkop To: Paul Singleton Cc: gtk-list@gnome.org In-Reply-To: <000d01c0fdf5$9524b6c0$21e5a53f@production> References: <000d01c0fdf5$9524b6c0$21e5a53f@production> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 26 Jun 2001 06:14:16 -0400 Message-Id: <993550460.816.1.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 25 Jun 2001 21:07:56 -0700, Paul Singleton wrote: > > that was easy enough. But when I went to do the same for gtk, it said it > couldn't find a new enough version of glib!!! Well that made me upset, cause > I don't know my way around linux, and the instructions didn't work. > > [by the way I've gotten past all this by using rpms but I'm none the wiser] > > My question: how do i remove COMPLETELY an old version of glib (or anything > else for that matter) so that I know I don't have two or more versions of a > library on my system. For instance, I found that I could use > ./configure --prefix=/usr/ and glib would be installed over the top of the > old version in /usr/lib instead of usr/local/lib. When I tried that, it > still didn't seem to work. That lead me to my question. > You should remove the old rpm packages for gtk+ and glib before you build the new ones. The rpms that Caldera packages might put things in different places than a 'make install' after configuring for '--prefix=/usr', most likely the glib-config and gtk-config scripts. Stephen From wilhelmi@ira.uka.de Tue Jun 26 06:29:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from iraun1.uka.de (iraun1.uka.de [129.13.10.90]) by mail.gnome.org (Postfix) with ESMTP id 217912E52C for ; Tue, 26 Jun 2001 06:29:05 -0400 (EDT) Received: from i80fs2.ira.uka.de by iraun1 (PP) with ESMTP; Tue, 26 Jun 2001 12:22:46 +0200 Received: from ira.uka.de (actually i81pc4) by i8fs1 (PP) with ESMTP; Tue, 26 Jun 2001 12:22:54 +0200 Message-ID: <3B386274.C0CD993B@ira.uka.de> Date: Tue, 26 Jun 2001 12:22:44 +0200 From: Sebastian Wilhelmi Organization: IRF Uni Karlsruhe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17 i586) X-Accept-Language: en MIME-Version: 1.0 To: ZB Cc: gtk-list@gnome.org Subject: Re: writing to GUI from 2+ threads References: <20010625172005.58660.qmail@web11605.mail.yahoo.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > I am trying to write to the GUI from more than one > thread and it works with LINUX but not win32. I made a > stub program by modifying the threaded hello world > program (http://www.gtk.org/faq/#AEN462) from the gtk > site. The program creates a window and then starts a > thread and i modified the thread to show a second > window. In LINUX, it works great. In win32.. the > second window freezes halfway shown and the app gets > stuck. > (for win32.. i am using the DLLs posted 12/26 at > http://user.sgic.fi/~tml/gimp/win32/downloads.html) > I also downloaded the 1.3.6 GTK and compiled the > latest DLLs for windows. The same problem still > persists and the window remains half shown. > I am always using gdk_thread_enter and leave within my > thread. There might be a deadlock in GTK+ for win32. You can find out by compiling the test program with -DG_ERRORCHECK_MUTEXES. If that really confirms, that there is a deadlock, I would also compile GLib and GTK+ with -DG_ERRORCHECK_MUTEXES to find out where that deadlock is. Bye, Sebastian -- Sebastian Wilhelmi mailto:wilhelmi@ira.uka.de http://goethe.ira.uka.de/~wilhelmi From andrej.prsa@guest.arnes.si Tue Jun 26 07:36:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id 2C4612D31A for ; Tue, 26 Jun 2001 07:36:58 -0400 (EDT) Received: from arnes.si (ar10-169i.dial-up.arnes.si [194.249.12.169]) by razor.arnes.si (Postfix) with SMTP id 35EBBE5F5; Tue, 26 Jun 2001 13:34:04 +0200 (MET DST) Date: Tue, 26 Jun 2001 13:36:00 +0200 From: Andrej Prsa To: "Paul Singleton" Cc: gtk-list@gnome.org Subject: Re: very basic question about glib Message-Id: <20010626133600.6366e238.andrej.prsa@guest.arnes.si> In-Reply-To: <000d01c0fdf5$9524b6c0$21e5a53f@production> References: <000d01c0fdf5$9524b6c0$21e5a53f@production> Organization: University of Astrophysics X-Mailer: Sylpheed version 0.4.99 (GTK+ 1.2.9; 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello! > My question: how do i remove COMPLETELY an old version of glib (or anything > else for that matter) so that I know I don't have two or more versions of a > library on my system. If you installed it from tarball (.tar.gz), you should type "make clean" to clear the package from installed directory, or "make distclean" to delete everything except the source (all .o files, executables, ...). Afterwards you can make them again by "make" and install them by "make install". If you installed the package from rpm (eg. rpm -Uvh rpm-name.rpm), you may query it for its name with "rpm -q rpm_name" (eg. rpm -q gtk+) and delete it with "rpm -e rpm_name (eg. rpm -e gtk+). That does the trick thoroughly. ;) > If I knew where to wipe out libraries and where they are being pointed to, > etc, I would feel much more comfortable. I'm quite capable in DOS and of > course Windows, so new venture is exciting but frustrating. Use /sbin/ldconfig. Bye! Andrej From john.cupitt@ng-london.org.uk Tue Jun 26 07:48:30 2001 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 83D782BD08 for ; Tue, 26 Jun 2001 07:48:30 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQ3ALW; Tue, 26 Jun 2001 12:48:29 +0100 Message-ID: <3B38753A.5DAF5550@ng-london.org.uk> Date: Tue, 26 Jun 2001 12:42:50 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ronald Bultje Cc: GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ronald, Ronald Bultje wrote: > color.red = (guint16)(options->colors[0]*65535.0); > color.green = (guint16)(options->colors[1]*65535.0); > color.blue = (guint16)(options->colors[2]*65535.0); In my app, I use a 1 bit pixmap (bitmap), since every server supports that (and there's less data to copy from the server to the client). Just use 0x0 for the background, and 0x1 for the foreground. > w = gdk_text_width(font, text, strlen(text)); > h = gdk_text_height(font, text, strlen(text)); I use text_extents, I think it's a little quicker. > pixmap = gdk_pixmap_new(NULL, w, h, 24); You can bitdepth 1 here I think. > gc = gdk_gc_new(pixmap); > gdk_gc_set_foreground(gc, &color); > gdk_draw_string(pixmap, font, gc, 0, h, text); I think you need to clear the background before you render the text ... draw a filled rectangle in the background colour. > image = gdk_image_get(pixmap, 0,0,w,h); > data = malloc(sizeof(guchar)*w*h*4); > > for (y=0;y { > for (x=0;x { > pixel = gdk_image_get_pixel(image,x,y); > data[(y*w+x)*4] = pixel/(256^3); > data[(y*w+x)*4+1] = (pixel/(256^2))%256; > data[(y*w+x)*4+2] = (pixel/256)%(256^2); > data[(y*w+x)*4+3] = 255; > } > } I think this will be slow and unreliable :-( For 1 bit XImages, you can unpack yourself pretty easily (this is Xlib, you'll need to change the names for gdk): -- static void unpack_image( XImage *xim, unsigned char *msk ) { int x, y, b, i; unsigned char *p, q; for( i = 0, y = 0; y < xim->height; y++ ) { p = (unsigned char *) xim->data + y * xim->bytes_per_line; q = *p++; for( b = 0, x = 0; x < xim->width; x++, b++, i++ ) { if( b == 8 ) { b = 0; q = *p++; } if( xim->bitmap_bit_order == LSBFirst ) { if( q & 0x1 ) msk[i] = 255; else msk[i] = 0; q = q >> 1; } else { if( q & 0x80 ) msk[i] = 255; else msk[i] = 0; q = q << 1; } } } } -- I'm sure there are things to handle these conversions for you in the newer pixbuf libraries ... I hacked this a while ago. Something else you might consider is anti-aliasing ... gimp 1.1 asks for a font twice the size required, then does a 2x2 block average. Not the best way to anti-alias, but very easy, and it does look better. I guess you should consider using XRender really (is this wrapped by gdk yet? not sure). Good luck, John From timo.savola@iki.fi Sun Jun 24 18:14:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp-2.hut.fi (smtp-2.hut.fi [130.233.228.92]) by mail.gnome.org (Postfix) with ESMTP id 93D742BC88 for ; Sun, 24 Jun 2001 18:14:11 -0400 (EDT) Received: from smtp.hut.fi (timo@cc-dialin1-3.hut.fi [130.233.251.3]) by smtp-2.hut.fi (8.9.3/8.9.3) with SMTP id BAA34774; Mon, 25 Jun 2001 01:14:08 +0300 (EEST) Date: Mon, 25 Jun 2001 01:16:35 +0300 From: Timo Savola To: Reinhard Mueller Cc: gtk-list@gnome.org Subject: Re: Logging functions Message-ID: <20010625011635.A7126@whiz-bang> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 0.6.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > is there a reason why there are the functions > g_error > g_critical > g_warning > g_message > but not > g_info > g_debug > ? I've been wondering about the same thing. > #define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) > > #ifdef G_DEBUG > #define g_debug(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) > #else > #define g_debug(...) > #endif Here's what I use to extend GLib: #ifdef NDEBUG # define debug(msg) # define debugf(fmt, args...) #else # ifdef __GNUC__ # define debug(msg) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d %s: " msg, \ __FILE__, __LINE__, __PRETTY_FUNCTION__) # define debugf(fmt, args...) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d %s: " fmt, \ __FILE__, __LINE__, __PRETTY_FUNCTION__, ##args) # else # define debug(msg) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d: " msg, \ __FILE__, __LINE__) # define debugf(fmt, args...) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d: " fmt, \ __FILE__, __LINE__, ##args) # endif #endif Tell me how I can merge the debug(msg) and debugf(fmt, args...) macros. :) Timo Savola From Valdis.Kletnieks@vt.edu Tue Jun 26 10:29:00 2001 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 C66472BDF9 for ; Tue, 26 Jun 2001 10:28:59 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5QESqg31417; Tue, 26 Jun 2001 10:28:53 -0400 Message-Id: <200106261428.f5QESqg31417@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable In-Reply-To: Your message of "Mon, 25 Jun 2001 23:28:38 +0200." <993504519.1645.0.camel@tux> 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[ <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-369087844P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 26 Jun 2001 10:28:52 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-369087844P Content-Type: text/plain; charset=us-ascii On Mon, 25 Jun 2001 23:28:38 +0200, Ronald Bultje said: You're missing at least one error check here: > pixmap = gdk_pixmap_new(NULL, w, h, 24); /* This can lose if the X server doesn't have 24-bit visuals */ if (!pixmap) { sprintf(stderr,"Whoops gdk_pixmap_new blew chunks!"); return; } /* OK.. We got a pixmap, use it */ > gc = gdk_gc_new(pixmap); /Valdis --==_Exmh_-369087844P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzicJHAt5Vm009ewEQJiWACgt15rGCPnd9rBBCqcetDk94TB8L4An1tm EUXvhKxioeGYYshaxaaL4vlN =rLUp -----END PGP SIGNATURE----- --==_Exmh_-369087844P-- From hp@redhat.com Tue Jun 26 12:40:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2CFB22E644 for ; Tue, 26 Jun 2001 12:39:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5QGcvO09050; Tue, 26 Jun 2001 12:38:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> <3B3836A8.50305@ronald.bitfreak.net> From: Havoc Pennington Date: 26 Jun 2001 12:38:57 -0400 In-Reply-To: Ronald Bultje's message of "Tue, 26 Jun 2001 09:15:52 +0200" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > Uhm... Never thought about that, really :-) > Is there any way to get a 24-bit drawable form the server on > non-24-bit X-servers? > > Is it possible at all to have 24-bit drawables on non-24-bit > X-servers? Nope and nope. Server-side objects such as images and pixmaps are raw-to-the-hardware. If the hardware lacks 24-bit mode you have no 24-bit available. However as John points out, you could use a bitmap. All X servers support 1-bit pixmaps (bitmaps). > Or would I haev to use something else (client-side) for this? (like > freetype, as John suggested). That's a cleaner solution, yes. > The problem I encountered with gdk_pixbuf_from_drawable is that it > needed a colormap. For 1-bit, you would call gdk_colormap_new() using a 1-bit visual obtained with gdk_visual_get_best_with_depth(). Otherwise you need to know the colormap used to allocate the color you used to render text to the pixmap. Havoc From lestat.lioncourt@innocent.com Tue Jun 26 18:25:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-5-115.abo.wanadoo.fr [193.252.11.115]) by mail.gnome.org (Postfix) with ESMTP id 1277A2E706 for ; Tue, 26 Jun 2001 18:24:09 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id C0238BFA4 for ; Wed, 27 Jun 2001 00:24:02 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Tue, 26 Jun 2001 22:24:02 +0000 From: "David Goncalves" To: Subject: gtk_clist_remove : bug or undocumented feature ;) MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010626222402.C0238BFA4@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm currently experiencing a strange reaction from a gtk_clist. I have a gtk_clist configured with GTK_SELECTION_BROWSE and when i use gtk_clist_remove to remove the LAST row, an invisible row stay in the list and is unusable... If anyone knows about this reaction... thanks. From ardm2@cam.ac.uk Tue Jun 26 13:56:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yellow.csi.cam.ac.uk (yellow.csi.cam.ac.uk [131.111.8.67]) by mail.gnome.org (Postfix) with ESMTP id AB6922CF1F for ; Tue, 26 Jun 2001 13:56:51 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] helo=ardm2 ident=alex) by yellow.csi.cam.ac.uk with smtp (Exim 3.22 #1) id 15Ex51-0001sf-00 for gtk-list@gnome.org; Tue, 26 Jun 2001 18:56:51 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Alexandre Mathy To: gtk-list@gnome.org Subject: stacking pixmaps Date: Tue, 26 Jun 2001 18:58:59 +0000 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01062618585902.27164@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi.. I'm building an inteface for which I need stackable pixmaps.. Now I have read that this can't be achieved using a gtk_pixmap, and that I'd have to use Gdk stuff instead. However, these pixmaps need to be able to recieve click events etc... Is there an easy way to achieve this? cheers, Alex Mathy From dermot@glade.perl.connectfree.co.uk Tue Jun 26 20:37:42 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 77AD22E723; Tue, 26 Jun 2001 20:37:29 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id UAA26010; Tue, 26 Jun 2001 20:37:28 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5R0aPb04012; Tue, 26 Jun 2001 20:36:26 -0400 Received: from higrade.botwrights.farm (ppp-1-50.cvx6.telinco.net [212.1.156.50]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id CAA19226; Wed, 27 Jun 2001 02:11:18 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id BAA00992; Wed, 27 Jun 2001 01:35:50 +0100 Message-ID: <3B391642.55ED3F98@glade.perl.connectfree.co.uk> Date: Wed, 27 Jun 2001 00:09:54 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: Joachim Backes Cc: glade-devel , "gtk-perl-list@redhat.com" , "gtk-list@redhat.com" Subject: Re: ANNOUNCE: Glade-Perl 0.59 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Joachim Backes wrote: > [...] > address seems to be : ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Glade/ > ^^^ Thanks Joachim - sorry to anyone who got lost. Regards, Dermot From zoey@xenonbase.net Wed Jun 27 03:46:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from host31.hostingcheck.com (host31.hostingcheck.com [209.239.36.147]) by mail.gnome.org (Postfix) with ESMTP id 559032BEA5 for ; Wed, 27 Jun 2001 03:46:52 -0400 (EDT) Received: from xenonbase.net (co3007127-a.thorn1.nsw.optushome.com.au [203.164.22.188]) by host31.hostingcheck.com (8.10.2/8.10.2) with ESMTP id f5R7kno29994 for ; Wed, 27 Jun 2001 03:46:50 -0400 Message-ID: <3B3A7DFE.EA659075@xenonbase.net> Date: Wed, 27 Jun 2001 17:44:46 -0700 From: Zoey X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@gnome.org" Subject: Backtrack on Diff. Versions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Running ./configure, I got the following message just after I'd installed glib 1.2.10 cheking for GLIB - version >= 1.2.8... *** 'glib-config --version' returned 1.2.10, but GLIB (1.2.6) *** was found! If glib-config was correct, then it is best *** to remove the old version of GLIB. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH environment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If glib-config was wrong, set the environment variable GLIB_CONFIG *** to point to the correct copy of glib-config, and remove the fil config.cache *** before re-running configure On useing rpm, I tried. However, it too gave me an error message. I -think- that might be because Corel is based on debian?? Thanks for all the replies! (and the patience. ;)) Zoey. From rbultje@ronald.bitfreak.net Wed Jun 27 04:35:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id EF3122CB80 for ; Wed, 27 Jun 2001 04:35:00 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id KAA12370; Wed, 27 Jun 2001 10:34:57 +0200 (CEST) Message-ID: <3B399AAC.1060907@ronald.bitfreak.net> Date: Wed, 27 Jun 2001 10:34:52 +0200 From: Ronald Bultje Organization: Textinfo Technologies User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: nl, nl-be, en MIME-Version: 1.0 To: Zoey Cc: "gtk-list@gnome.org" Subject: Re: Backtrack on Diff. Versions problem. References: <3B3A7DFE.EA659075@xenonbase.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Zoey wrote: >Running ./configure, I got the following message just after I'd >installed glib 1.2.10 > >cheking for GLIB - version >= 1.2.8... >*** 'glib-config --version' returned 1.2.10, but GLIB (1.2.6) >*** was found! If glib-config was correct, then it is best >*** to remove the old version of GLIB. You may also be able to fix the >error >*** by modifying your LD_LIBRARY_PATH environment variable, or by >editing >*** /etc/ld.so.conf. Make sure you have run ldconfig if that is >*** required on your system. >*** If glib-config was wrong, set the environment variable GLIB_CONFIG >*** to point to the correct copy of glib-config, and remove the fil >config.cache >*** before re-running configure > Remove /usr/include/glib.h and/or /usr/include/glib/glib.h. don't remove /usr/include/glib-1.2/anything, that's 1.2.10 :-) Ronald From linuxfun@163.com Wed Jun 27 06:14:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp4.163.com (unknown [202.108.44.226]) by mail.gnome.org (Postfix) with ESMTP id DFB512DC6B for ; Wed, 27 Jun 2001 06:14:38 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp4.163.com (Postfix) with SMTP id 15F911D2EDB9C for ; Wed, 27 Jun 2001 17:38:39 +0800 (CST) Message-ID: <001c01c0feed$430577f0$8002a8c0@SHECA.COM> From: "linuxfun" To: Subject: test Date: Wed, 27 Jun 2001 17:40:53 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01C0FF30.50639330" 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.5 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_0019_01C0FF30.50639330 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 dGVzdA0K ------=_NextPart_000_0019_01C0FF30.50639330 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj50ZXN0PC9GT05UPjwvRElWPjwv Qk9EWT48L0hUTUw+DQo= ------=_NextPart_000_0019_01C0FF30.50639330-- From ardm2@cam.ac.uk Wed Jun 27 07:31:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from orange.csi.cam.ac.uk (orange.csi.cam.ac.uk [131.111.8.77]) by mail.gnome.org (Postfix) with ESMTP id 055CF2E7C2 for ; Wed, 27 Jun 2001 07:30:41 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by orange.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FDWq-0005P4-00 for gtk-list@gnome.org; Wed, 27 Jun 2001 12:30:40 +0100 Subject: mouse motion redraws From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 27 Jun 2001 12:33:09 +0000 Message-Id: <993645192.2364.1.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm currently writing an app in which pixmaps (Gdk, not Gtk)in a GtkDrawingArea can be dragged by using the mouse.To achieve this, I connect to the usual mouse signals. My problem is that the motion of the pixmaps is sluggish. The weird thing is, if I run the program at the same time I run "Dia" (gtk drawing program), the motion of my program all of a sudden becomes acceptable. I've looked through "Dia'"s source, but cannot find what it's doing. Cheers, Alex Mathy here's the code: gtk_signal_connect (GTK_OBJECT (canvas), "motion_notify_event", GTK_SIGNAL_FUNC (canvas_motion_notify_event), NULL); gtk_signal_connect (GTK_OBJECT (canvas), "button_press_event", GTK_SIGNAL_FUNC (canvas_button_press_event), NULL); gtk_signal_connect (GTK_OBJECT (canvas), "button_release_event", GTK_SIGNAL_FUNC (canvas_button_release_event), NULL); gtk_widget_set_events (GTK_WIDGET (canvas), GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_BUTTON_RELEASE_MASK ); . . . gint canvas_button_press_event (GtkWidget *widget, GdkEventButton *event) { if (event->button == 1){ int i; for (i=0;i<*(compCount);i++){ circObj* component; component=getComponent(components,i); if (isInComponent(component,event->x,event->y)==TRUE){ //start dragging! selectedObj=component; dragging=TRUE; xInObj=event->x-component->x; yInObj=event->y-component->y; selectedType=SELECTED_COMPONENT; gtk_timeout_remove(threadid); return TRUE; } else { } } } return TRUE; } gint canvas_button_release_event (GtkWidget *widget, GdkEventButton *event) { if (event->button == 1){ if (dragging==TRUE){ dragging=FALSE; threadid=gtk_timeout_add(DELAY,circuitLoop,canvas); //snap to grid: } } return TRUE; } gint canvas_motion_notify_event (GtkWidget *widget, GdkEventMotion *event) { int x, y; GdkModifierType state; if (event->is_hint) { gdk_window_get_pointer (event->window, &x, &y, &state); } else { x = event->x; y = event->y; state = event->state; } if (state & GDK_BUTTON1_MASK){ if (dragging==TRUE){ if (selectedType=SELECTED_COMPONENT){ circObj* component=(circObj*)selectedObj; component->x=event->x - xInObj; component->y=event->y - yInObj; redrawCanvas(canvas); } } } return TRUE; } From john.cupitt@ng-london.org.uk Wed Jun 27 07:38:17 2001 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 E718B2E7CD for ; Wed, 27 Jun 2001 07:38:06 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WJ1Q; Wed, 27 Jun 2001 12:38:06 +0100 Message-ID: <3B39C44C.6BB97EF2@ng-london.org.uk> Date: Wed, 27 Jun 2001 12:32:28 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: stacking pixmaps References: <01062618585902.27164@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy wrote: > I'm building an inteface for which I need stackable pixmaps.. > Now I have read that this can't be achieved using a gtk_pixmap, > and that I'd have to use Gdk stuff instead. > However, these pixmaps need to be able to recieve click events etc... I think the gtk_canvas widget does what you want: http://www.atai.org/gtk-canvas/ I don't know if this is the most recent version. It's a port of GnomeCanvas back to plain gtk, so you can just look up the GnomeCanvas docs. HTH, John From kodis@jagunet.com Wed Jun 27 08:35:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from skydiver.jaguNET.com (skydiver.jaguNET.com [209.133.192.8]) by mail.gnome.org (Postfix) with ESMTP id 9950C2E80D for ; Wed, 27 Jun 2001 08:34:03 -0400 (EDT) Received: from kodis.jagunet.com (kodis.jaguNET.com [209.133.192.48]) by skydiver.jaguNET.com (8.9.3/jag-2.6) with ESMTP id IAA13861 for ; Wed, 27 Jun 2001 08:33:40 -0400 (EDT) Received: (from kodis@localhost) by kodis.jagunet.com (8.11.2/8.11.2) id f5RCWsO02304 for gtk-list@gnome.org; Wed, 27 Jun 2001 08:32:54 -0400 X-Authentication-Warning: papa.jagunet.com: kodis set sender to kodis@jagunet.com using -f Date: Wed, 27 Jun 2001 08:32:53 -0400 From: John Kodis To: gtk-list@gnome.org Subject: Re: gtk_clist_remove : bug or undocumented feature ;) Message-ID: <20010627083253.A2262@papa.jagunet.com> Mail-Followup-To: John Kodis , gtk-list@gnome.org References: <20010626222402.C0238BFA4@transylvania> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010626222402.C0238BFA4@transylvania>; from lestat.lioncourt@innocent.com on Tue, Jun 26, 2001 at 10:24:02PM +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 26, 2001 at 10:24:02PM +0000, David Goncalves wrote: > I'm currently experiencing a strange reaction from a gtk_clist. > I have a gtk_clist configured with GTK_SELECTION_BROWSE and > when i use gtk_clist_remove to remove the LAST row, an invisible > row stay in the list and is unusable... It could be that the unusable last row is just blank space left in the clist's enclosing window. Try setting the policy of the window that holds the clist to allow-shrink and auto-shrink using the gtk_window_set_policy() routine. -- John Kodis. From pbd@op.net Wed Jun 27 09:28:01 2001 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 761392BBBA for ; Wed, 27 Jun 2001 09:28:01 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-07.ppp.op.net [209.152.194.103]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA27351 for ; Wed, 27 Jun 2001 09:27:59 -0400 (EDT) Message-Id: <200106271327.JAA27351@renoir.op.net> To: gtk-list@gnome.org Subject: Re: stacking pixmaps In-reply-to: Your message of "Wed, 27 Jun 2001 12:32:28 BST." <3B39C44C.6BB97EF2@ng-london.org.uk> Date: Wed, 27 Jun 2001 09:28:15 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I think the gtk_canvas widget does what you want: > > http://www.atai.org/gtk-canvas/ > >I don't know if this is the most recent version. It's a port of >GnomeCanvas back to plain gtk, so you can just look up the GnomeCanvas >docs. At the cost of repeating myself, the GtkCanvas is perhaps the most useful and most powerful widget available under Gtk. Is there *any* way we can shame/cajole/bribe/convict/persuade the GTK+ team to remove it from GNOME and follow the example of the back-port by including it in GTK+ 1.3/2.0 ? --p From hp@redhat.com Wed Jun 27 10:26:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A8B882E2DA for ; Wed, 27 Jun 2001 10:26:46 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5REQaa18318; Wed, 27 Jun 2001 10:26:36 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> From: Havoc Pennington Date: 27 Jun 2001 10:26:36 -0400 In-Reply-To: Paul Davis's message of "Wed, 27 Jun 2001 09:28:15 -0400" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > At the cost of repeating myself, the GtkCanvas is perhaps the most > useful and most powerful widget available under Gtk. Is there *any* > way we can shame/cajole/bribe/convict/persuade the GTK+ team to remove > it from GNOME and follow the example of the back-port by including it > in GTK+ 1.3/2.0 ? > libgnomecanvas is in a separate library for GNOME 2, not dependent on any other libs except GTK (and libart). We don't want to move it to GTK with a rename, instead we want to wait until we add a vector graphics API and then have a canvas widget that uses that. Havoc From bonjour@ime.unicamp.br Wed Jun 27 12:12:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pretoria.ime.unicamp.br (pretoria.ime.unicamp.br [143.106.22.7]) by mail.gnome.org (Postfix) with ESMTP id A9C332DCF5 for ; Wed, 27 Jun 2001 12:12:23 -0400 (EDT) Received: from goiania.ime.unicamp.br (goiania.ime.unicamp.br [143.106.96.188]) by pretoria.ime.unicamp.br (8.9.0/8.9.0) with ESMTP id NAA14778 for ; Wed, 27 Jun 2001 13:12:58 -0300 (EST) Date: Wed, 27 Jun 2001 12:56:21 -0300 (EST) From: Filipe Bonjour To: GTK List Subject: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm just starting programming with GTK, and I'm having problems with events. Specifically, I'm writing a program (using GTK/Gnome built by Glade) to visualize data in 2D/3D using a GtkGlArea widget (a subclass of GtkDrawingArea). In short, I have several drawing options, and I want to send the GtkGlArea widget an expose event when the user changes any of these options. I have tried things like: gtk_signal_emit_by_name(glarea, "expose_event"); gtk_signal_emit_by_name(glarea, "expose-event"); (which cause a SIGSEGV) and gtk_signal_emit(glarea, 32); gtk_signal_emit(glarea, GDK_EXPOSE); gtk_signal_emit(glarea, gtk_signal_lookup("expose_event", GTK_TYPE_GL_AREA)); gtk_signal_emit(glarea, gtk_signal_lookup("expose-event", GTK_TYPE_GL_AREA)); which are at best ignored. So I have a few questions... 1) Where are the signal numbers and names defined? I couldn't find them anywhere. For gtk_signal_emit I find it hard to believe that we are expected to give an actual number, I thought there would be some defined symbols, such as "#define GTK_SIGNAL_EXPOSE 32" or something. 2) I guess I could create a bogus event and call the signal-handling routine directly, but that's ugly and I'm pretty sure there's a better and more elegant way. How? Any help would be very appreciated, TIA, Fil +-----------------------------------------------------------------------+ | Dr. Fil Bonjour | Fil Bonjour | | UNICAMP, IMECC, DMA - Room 328 | Rua Alberto de Salvo 53 | | 13081-970 Campinas SP Brazil | 13084-670 Campinas SP Brazil | | Phone: (++55.19) 3788.60.44 | Phone: (+55.19) 3289.77.84 | | Fax: (++55.19) 3289.14.66 | | | Email: bonjour@ime.unicamp.br | Email: fbonjour@uol.com.br | | http://www.ime.unicamp.br/~bonjour| | +-----------------------------------------------------------------------+ From ardm2@cam.ac.uk Wed Jun 27 12:35:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from red.csi.cam.ac.uk (red.csi.cam.ac.uk [131.111.8.70]) by mail.gnome.org (Postfix) with ESMTP id 906F42E196 for ; Wed, 27 Jun 2001 12:35:47 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by red.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FII6-0000Px-00 for gtk-list@gnome.org; Wed, 27 Jun 2001 17:35:46 +0100 Subject: gnome/gtkcanvas From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 27 Jun 2001 17:38:17 +0000 Message-Id: <993663497.11889.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey.. Ok so I've decided to go with gnomecanvas. I'm having trouble drawing images to the canvas though... Here's the code: GdkImlibImage *Image = gdk_imlib_load_image ("mypng.png"); /* create a new canvas */ gtk_widget_push_visual (gdk_imlib_get_visual ()); gtk_widget_push_colormap (gdk_imlib_get_colormap ()); canvas = gnome_canvas_new(); gtk_widget_pop_visual(); gtk_widget_pop_colormap(); . . . . gnome_canvas_item_new (gnome_canvas_root(canvas), gnome_canvas_image_get_type (), "image", Image, "x", 0, "y", 0, "width",(double)Image->rgb_width, "height", (double)Image->rgb_height, NULL); The image does not display, i.e. the canvas remains empty except for non-image objects I draw to it... What am I doing wrong? Cheers, Alex Mathy From emonsler@beamreachnetworks.com Wed Jun 27 12:48:02 2001 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 6B1102E86C for ; Wed, 27 Jun 2001 12:48:02 -0400 (EDT) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.40]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J50PXXM7; Wed, 27 Jun 2001 09:46:53 -0700 Message-ID: <3B3A0EFD.7E89282C@beamreachnetworks.com> Date: Wed, 27 Jun 2001 09:51:09 -0700 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > libgnomecanvas is in a separate library for GNOME 2, not dependent on > any other libs except GTK (and libart). What is the libgnomecanvas license? IIRC, GNOME is GPL, vs. the LGPL of GTK. (I tried to check the license from the gnome.org site, but there were lots of references to "free" software and FSF links, but no license info immediately available) It's not just size that keeps everyone from using the GNOME libs. Eric From hp@redhat.com Wed Jun 27 13:31:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4EF302CF3A for ; Wed, 27 Jun 2001 13:31:44 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5RHVOC18397; Wed, 27 Jun 2001 13:31:24 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Eric M. Monsler" Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> <3B3A0EFD.7E89282C@beamreachnetworks.com> From: Havoc Pennington Date: 27 Jun 2001 13:31:24 -0400 In-Reply-To: "Eric M. Monsler"'s message of "Wed, 27 Jun 2001 09:51:09 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Eric M. Monsler" writes: > What is the libgnomecanvas license? > > IIRC, GNOME is GPL, vs. the LGPL of GTK. No, this is completely untrue - GNOME libraries have always been LGPL. > It's not just size that keeps everyone from using the GNOME libs. It's also suckiness for much of libgnomeui - but with libgnomecanvas split out, neither size nor suckiness should be an issue for using the canvas. Havoc From emonsler@beamreachnetworks.com Wed Jun 27 13:38:00 2001 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 BA2252CC8D for ; Wed, 27 Jun 2001 13:37:59 -0400 (EDT) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.40]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J50PXXPK; Wed, 27 Jun 2001 10:36:52 -0700 Message-ID: <3B3A1AB8.9EE5C5C7@beamreachnetworks.com> Date: Wed, 27 Jun 2001 10:41:12 -0700 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> <3B3A0EFD.7E89282C@beamreachnetworks.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "Eric M. Monsler" writes: > > IIRC, GNOME is GPL, vs. the LGPL of GTK. > > No, this is completely untrue - GNOME libraries have always been LGPL. Well, always happy to lose a fundamental misunderstanding! From john.cupitt@ng-london.org.uk Wed Jun 27 13:41:11 2001 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 068252E8E2 for ; Wed, 27 Jun 2001 13:40:00 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WJ0R; Wed, 27 Jun 2001 18:39:58 +0100 Message-ID: <3B3A191C.E67F1052@ng-london.org.uk> Date: Wed, 27 Jun 2001 18:34:20 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Filipe Bonjour Cc: GTK List Subject: Re: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour wrote: > II have several drawing options, and I want to send the > GtkGlArea widget an expose event when the user changes any of these > options. Hi Filipe, I think you can just do: gtk_widget_queue_draw( widget ); This deals with all of the signal stuff for you. HTH, John From elrin@mclink.it Wed Jun 27 13:43:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.mclink.it (net128-007.mclink.it [195.110.128.7]) by mail.gnome.org (Postfix) with ESMTP id 6D6162E8E2 for ; Wed, 27 Jun 2001 13:43:27 -0400 (EDT) Received: from localhost.localdomain (net147-015.mclink.it [195.110.147.15]) by mail.mclink.it (8.11.0/8.11.0) with SMTP id f5RHhP307810 for ; Wed, 27 Jun 2001 19:43:25 +0200 (CEST) From: Daniele Guerrieri To: gtk-list@gnome.org Date: Wed, 27 Jun 2001 19:39:31 +0200 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <01062719422701.00714@localhost.localdomain> Content-Transfer-Encoding: 8bit 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm a beginner of Gtk. I would like know how move a button in a fixed widget using the GdkSignals Thank you! From golubenkoj@columbiafunds.com Wed Jun 27 13:52:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 2DF1B2E249; Wed, 27 Jun 2001 13:52:16 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 10:50:30 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 10:50:30 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: "'gtk-list@gnome.org'" , "'gtk-devel-list@gnome.org'" Subject: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 10:50:29 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724C36C27394-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, quick question, does anyone know editor with syntax highlighting for GTK+/GNOME API? Thanks, John. -----Original Message----- From: Eric M. Monsler [mailto:emonsler@beamreachnetworks.com] Sent: Wednesday, June 27, 2001 10:41 AM To: Havoc Pennington Cc: Paul Davis; gtk-list@gnome.org Subject: Re: stacking pixmaps Havoc Pennington wrote: > > "Eric M. Monsler" writes: > > IIRC, GNOME is GPL, vs. the LGPL of GTK. > > No, this is completely untrue - GNOME libraries have always been LGPL. Well, always happy to lose a fundamental misunderstanding! _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From alfons@proteus.demon.nl Wed Jun 27 14:00:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from proteus.demon.nl (proteus.demon.nl [212.238.30.186]) by mail.gnome.org (Postfix) with ESMTP id 2A0272E8FB; Wed, 27 Jun 2001 14:00:02 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=proteus.demon.nl ident=alfons) by proteus.demon.nl with smtp (Exim 3.22 #1) id 15FJvc-00007y-00; Wed, 27 Jun 2001 20:20:40 +0200 Date: Wed, 27 Jun 2001 20:20:40 +0200 From: Alfons Hoogervorst To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Message-Id: <20010627202040.22b0356b.alfons@proteus.demon.nl> In-Reply-To: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> References: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> Organization: Doubtful X-Mailer: Sylpheed version 0.5.0claws3 (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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Lo John, On Wed, 27 Jun 2001 10:50:29 -0700 you wrote: JG>Hey, quick question, JG>does anyone know editor with syntax highlighting for GTK+/GNOME API? Yeah, Scintilla... Bye. -- the ancient ruins the former wasted they shall all rise up and restore the ruined cities desolate now for generations From golubenkoj@columbiafunds.com Wed Jun 27 14:19:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id CB5C92BC97; Wed, 27 Jun 2001 14:19:07 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 11:17:22 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 11:17:22 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E7@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 11:17:22 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724FCB828641-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks Alfons, but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. I've wrote a little plugin for Jext (jext.org) editor, to highlight GTK+/GNOME API, but it's written in Java, so it's frustrating because of Java's slow GUI, etc. (http://65.4.117.16/projects/jext/ - 2 screenies). If I can find editor that does that kind of highlighting (written for Linux ;-), it'll be very helpfull. But, I like this SciTE editor a lot, it's seems very good. Thanks again, John. -----Original Message----- From: Alfons Hoogervorst [mailto:alfons@proteus.demon.nl] Sent: Wednesday, June 27, 2001 11:21 AM To: John Golubenko Cc: gtk-list@gnome.org; gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Lo John, On Wed, 27 Jun 2001 10:50:29 -0700 you wrote: JG>Hey, quick question, JG>does anyone know editor with syntax highlighting for GTK+/GNOME API? Yeah, Scintilla... Bye. -- the ancient ruins the former wasted they shall all rise up and restore the ruined cities desolate now for generations NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From pbd@op.net Wed Jun 27 14:27:40 2001 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 158262E917; Wed, 27 Jun 2001 14:27:25 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-20.ppp.op.net [209.152.206.32]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA28109; Wed, 27 Jun 2001 14:27:06 -0400 (EDT) Message-Id: <200106271827.OAA28109@renoir.op.net> To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-reply-to: Your message of "Wed, 27 Jun 2001 11:17:22 PDT." <0E402AD0FEACD411B7C100508BCDF6110108A0E7@cmc-exchange.columbiafunds.com> Date: Wed, 27 Jun 2001 14:27:07 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thanks Alfons, >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. the GTK+ and GNOME API's are written in C. what on earth does it mean to "highlight" the API of a particular library? emacs can do what you want to. obviously, since emacs is turing-complete. --p From golubenkoj@columbiafunds.com Wed Jun 27 14:36:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 1537B2E92B; Wed, 27 Jun 2001 14:35:01 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 11:33:12 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 11:33:12 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 11:33:11 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724F96229368-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I meant that those editors hightligh only int, float, char, etc., a common keywords, but not keywords like GtkObject, GtkWidget, gtk_main_quit, etc. Also you can see what i'm talking about by visiting the url i've posted, and look at [before] and [after] screenshots. The one named [before] shows what every editor out there does, and [after] shows highlighting that i want. Emacs doesn't do it either. Of course I can modify the sources to make it work, but it's another story. Also I don't feel good about discussing it on this public list, sinse it's kinda offtopic... anyway, thanks a lot, john. -----Original Message----- From: Paul Davis [mailto:pbd@Op.Net] Sent: Wednesday, June 27, 2001 11:27 AM To: John Golubenko Cc: gtk-list@gnome.org; gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API >Thanks Alfons, >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. the GTK+ and GNOME API's are written in C. what on earth does it mean to "highlight" the API of a particular library? emacs can do what you want to. obviously, since emacs is turing-complete. --p NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From trutkin@physics.clarku.edu Wed Jun 27 15:19:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from planck.clarku.edu (planck.clarku.edu [140.232.2.12]) by mail.gnome.org (Postfix) with ESMTP id 8BEC72BCF5 for ; Wed, 27 Jun 2001 15:19:25 -0400 (EDT) Received: from trutkin (helo=localhost) by planck.clarku.edu with local-smtp (Exim 3.12 #1 (Debian)) id 15FKqR-0004fD-00 for ; Wed, 27 Jun 2001 15:19:23 -0400 Date: Wed, 27 Jun 2001 15:19:23 -0400 (EDT) From: Taybin Rutkin X-Sender: trutkin@planck.clarku.edu Reply-To: Taybin Rutkin To: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-Reply-To: <200106271827.OAA28109@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 27 Jun 2001, Paul Davis wrote: > >Thanks Alfons, > >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. > > the GTK+ and GNOME API's are written in C. what on earth does it mean > to "highlight" the API of a particular library? I know what he's asking for. I used to use a basic editor for the macintosh called FutureBasic that highlight all the macintosh system calls as well as the reserved words. Try glimmer. It seems to highlight certain gtk+ calls. Or at least it is intelligent to recognize macros and highlight those. Also, gide support two or three scripting languages to customize highlighting. That would probably be the easiest way to get what you want. And if you write a script to do that yourself, don't forget to release it; I think I might be interested in such a feature. Taybin Rutkin From sven@gimp.org Wed Jun 27 15:28:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9055BC4.dip.t-dialin.net [217.5.91.196]) by mail.gnome.org (Postfix) with ESMTP id 986642E848; Wed, 27 Jun 2001 15:28:36 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15FKri-0001Wb-00; Wed, 27 Jun 2001 21:20:42 +0200 To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API References: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> From: Sven Neumann Date: 27 Jun 2001 21:20:42 +0200 In-Reply-To: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> Message-ID: Lines: 29 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "John Golubenko" writes: > Emacs doesn't do it either. Of course I can modify the sources to make it > work, but it's another story. you don't need to modify any source. Just add a few lines to your .emacs. Something like: (custom-set-variables '(c-font-lock-extra-types (quote ("gint" "gfloat" "gchar" "gint8" "gint16" "gint32" "guint" "guint8" "guint16" "guint32" "guchar" "glong" "gboolean" "gshort" "gushort" "gulong" "gdouble" "gldouble" "gpointer" "G_\\w+" "GList" "GSList" "GFunc" "GPOINTER_\\w+" "GINT_\\w+" "GUINT_\\w+" "Gtk\\w+" "Gdk\\w+" "GTK\\w+" "GDK\\w+" "NULL" "Gimp\\w+" "GIMP\\w+" "FT_\\w+" "Pango\\w+" "PANGO\\w+" "->" "FALSE" "TRUE" "FILE" "MIN" "MAX" "CLAMP" "ABS" "DIR" "\\sw+_t" "GCim\\w+"))) You will want to modify/extend this list a bit and I'm sure there are better ways to do this, but this one works reasonably well. Salut, Sven From golubenkoj@columbiafunds.com Wed Jun 27 15:30:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 2FD6D2E887 for ; Wed, 27 Jun 2001 15:30:17 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 12:28:31 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 12:28:31 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0FC@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: "'Taybin Rutkin'" , gtk-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 12:28:30 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724EC5531657-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Taybin, You are very right. Like I've said, i've wrote an update for jext, that has GTK+ API highlighting. It took me a while to find all API calls I can find. Still, i've missed a lot. But sinse it's written in Java, and uses GUI, it's not something I'm going to use, because of slow performance of Java on the front end, etc. I've just started to write GTK+ applications, and I love it. Thanks, John. -----Original Message----- From: Taybin Rutkin [mailto:trutkin@physics.clarku.edu] Sent: Wednesday, June 27, 2001 12:19 PM To: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API On Wed, 27 Jun 2001, Paul Davis wrote: > >Thanks Alfons, > >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. > > the GTK+ and GNOME API's are written in C. what on earth does it mean > to "highlight" the API of a particular library? I know what he's asking for. I used to use a basic editor for the macintosh called FutureBasic that highlight all the macintosh system calls as well as the reserved words. Try glimmer. It seems to highlight certain gtk+ calls. Or at least it is intelligent to recognize macros and highlight those. Also, gide support two or three scripting languages to customize highlighting. That would probably be the easiest way to get what you want. And if you write a script to do that yourself, don't forget to release it; I think I might be interested in such a feature. Taybin Rutkin _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From pbd@op.net Wed Jun 27 15:34:29 2001 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 09FF22D315 for ; Wed, 27 Jun 2001 15:34:29 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-20.ppp.op.net [209.152.206.32]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA06308; Wed, 27 Jun 2001 15:34:20 -0400 (EDT) Message-Id: <200106271934.PAA06308@renoir.op.net> To: Taybin Rutkin Cc: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-reply-to: Your message of "Wed, 27 Jun 2001 15:19:23 EDT." Date: Wed, 27 Jun 2001 15:34:39 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >Thanks Alfons, >> >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. >> >> the GTK+ and GNOME API's are written in C. what on earth does it mean >> to "highlight" the API of a particular library? > >I know what he's asking for. I used to use a basic editor for the >macintosh called FutureBasic that highlight all the macintosh system calls >as well as the reserved words. OK. For emacs: (font-lock-add-keywords 'c-mode '(("gtk_widget_new" 1 font-lock-function-name-face t) ("gtk_widget_whatever" 1 font-lock-function-name-face t) .... ("GtkWidget" 1 font-lock-keyword-face t) ("GtkFrame" 1 font-lock-keyword-face t) .... )) By using etags to build a list of function names, then sed/awk/perl to transform this into an elisp statement like the one above, the job could be done extremely quickly. I don't know how quick emacs would handle this for a library with hundreds of functions but I imagine it would work pretty well. --p (who prefers his source code raw, not burnt to a multicolored crisp) From nhodgson@bigpond.net.au Wed Jun 27 18:51:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailin5.bigpond.com (juicer02.bigpond.com [139.134.6.78]) by mail.gnome.org (Postfix) with ESMTP id EB0CA2DDF4; Wed, 27 Jun 2001 18:51:33 -0400 (EDT) Received: from neil ([144.135.24.81]) by mailin5.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GFM2FC00.JPK; Thu, 28 Jun 2001 08:57:12 +1000 Received: from CPE-144-132-204-10.nsw.bigpond.net.au ([144.132.204.10]) by bwmam05.mailsvc.email.bigpond.com(MailRouter V2.9g 8335/16534); 28 Jun 2001 08:52:18 Message-ID: <033201c0ff5b$9a21b120$0acc8490@neil> From: "Neil Hodgson" To: Cc: References: <20010627193601.7F45C2E39D@mail.gnome.org> Subject: Re: editor with syntax highlighting for GTK+/GNOME API Date: Thu, 28 Jun 2001 08:50:45 +1000 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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: John Golubenko: > If I can find editor that does that kind of highlighting > (written for Linux ;-), it'll be very helpfull. But, I like > this SciTE editor a lot, it's seems very good. The current prerelease versions of Scintilla and SciTE 1.39 support a second set of keywords in the C lexer. It does not support regular expressions or prefix based keyword matching although a prefix matcher would be fairly easy to add. I'd be concerned at the performance implications of using regular expressions for this. If you want to modify the C lexer to support prefix based keyword matching scintilla/src/LexCPP.cxx is the file to modify. Prerelease 1.39 available from the Scintilla CVS at https://sourceforge.net/cvs/?group_id=2439 or as a source zip at http://www.scintilla.org/scite.zip To add the keywords in SciTE add this property listing all the keywords: keywords2.$(file.patterns.cpp)=GtkWidget GtkItemFactory GtkAccelGroup \ ... Neil From lestat.lioncourt@innocent.com Wed Jun 27 19:02:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-5-115.abo.wanadoo.fr [193.252.11.115]) by mail.gnome.org (Postfix) with ESMTP id 999C32BB2D for ; Wed, 27 Jun 2001 19:02:56 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 6FE04C0D2; Thu, 28 Jun 2001 01:02:54 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Wed, 27 Jun 2001 23:02:54 +0000 From: "David Goncalves" To: Cc: Subject: Re: Re: gtk_clist_remove : bug or undocumented feature ;) MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010627230254.6FE04C0D2@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, > > I'm currently experiencing a strange reaction from a gtk_clist. > > I have a gtk_clist configured with GTK_SELECTION_BROWSE and > > when i use gtk_clist_remove to remove the LAST row, an invisible > > row stay in the list and is unusable... > > It could be that the unusable last row is just blank space left in the > clist's enclosing window. Try setting the policy of the window that > holds the clist to allow-shrink and auto-shrink using the > gtk_window_set_policy() routine. I don't think that the last row is just a blank space because this row is clickable but when you try to get informations, from this row it fails. And i only have this problem when i remove the last line of the clist. I don't understand what's appening ;( From nhodgson@bigpond.net.au Wed Jun 27 19:22:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailin8.bigpond.com (juicer39.bigpond.com [139.134.6.96]) by mail.gnome.org (Postfix) with ESMTP id 34C102D200; Wed, 27 Jun 2001 19:22:11 -0400 (EDT) Received: from neil ([144.135.24.81]) by mailin8.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GFM3UD00.D85; Thu, 28 Jun 2001 09:27:49 +1000 Received: from CPE-144-132-204-10.nsw.bigpond.net.au ([144.132.204.10]) by bwmam05.mailsvc.email.bigpond.com(MailRouter V2.9g 8335/43883); 28 Jun 2001 09:22:55 Message-ID: <03a801c0ff5f$e1381960$0acc8490@neil> From: "Neil Hodgson" To: Cc: , Subject: Re: editor with syntax highlighting for GTK+/GNOME AP Date: Thu, 28 Jun 2001 09:21:22 +1000 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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Neil (me): > If you want to modify the C lexer to support prefix based > keyword matching scintilla/src/LexCPP.cxx is the file > to modify. Such an easy feature that its now in and available from the previously mentioned locations. Uses '^' to indicate a prefix by analogy with start-of-line regexps. Try: keywords2.$(file.patterns.cpp)=GtkWidget ^GTK_ ^gtk_ This does lose some functionality over listing all the calls which shows when you have misspelt a call by not highlighting. Neil From zaloi@yahoo.com Wed Jun 27 23:30:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14505.mail.yahoo.com (web14505.mail.yahoo.com [216.136.224.68]) by mail.gnome.org (Postfix) with SMTP id 606662E7A5 for ; Wed, 27 Jun 2001 23:30:20 -0400 (EDT) Message-ID: <20010628033019.95035.qmail@web14505.mail.yahoo.com> Received: from [161.142.78.84] by web14505.mail.yahoo.com; Wed, 27 Jun 2001 20:30:19 PDT Date: Wed, 27 Jun 2001 20:30:19 -0700 (PDT) From: mr zali Subject: gtkfilesel.c To: gtk-list@gnome.org In-Reply-To: <20010618070228.62817.qmail@web14508.mail.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear friend, I want to edit the 'GTK file selector' so that the user can browse their 'home' directory only. I have a problem with gtk-menu-option(at top of of the 'file selector' dialog box). How I want to edit the gtkfilesel.c source code so that the gtk-menu-option, display 'home directory' and forward only. Can u guide me.. :-) regards, __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From deekshit.mantampady@wipro.com Thu Jun 28 00:20:37 2001 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 00DF92C983 for ; Thu, 28 Jun 2001 00:20:31 -0400 (EDT) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id f5S9wtc13271 for ; Thu, 28 Jun 2001 09:58:55 GMT Received: from wipro.com ([192.168.22.180]) by sarovar.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GFMG4L00.G5X for ; Thu, 28 Jun 2001 09:23:09 +0530 Message-ID: <3B3AA907.11DE77FB@wipro.com> Date: Wed, 27 Jun 2001 20:48:23 -0700 From: Deekshit Mantampady X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: How to make menu insensitive 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am using "GtkItemFactory" to create menus. I want to know How I enable or disable, make it visible or invisible, dynamically. Can anybody help me to find out solution. Regards Deekshit M From suzhe@gnuchina.org Thu Jun 28 00:35:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnuchina.org (unknown [210.73.87.125]) by mail.gnome.org (Postfix) with ESMTP id 8D0212E81D for ; Thu, 28 Jun 2001 00:35:53 -0400 (EDT) Received: from gnuchina.org ([166.111.148.127]) by gnuchina.org (8.11.3/8.9.3) with ESMTP id f5S4XI929392 for ; Thu, 28 Jun 2001 12:33:18 +0800 Message-ID: <3B3AB3FA.6090801@gnuchina.org> Date: Thu, 28 Jun 2001 12:35:06 +0800 From: James Su Reply-To: suzhe@gnuchina.org User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5-1.4 i686; en-US; rv:0.9.1) Gecko/20010612 X-Accept-Language: zh-cn, zh, en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Can I get the screen resolution via Gdk/Gtk ? Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I want to get the screen resolution (dpi), but how can I do it within gdk/gtk? Regards, James Su From hp@redhat.com Thu Jun 28 01:03:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B31A92E95A for ; Thu, 28 Jun 2001 01:03:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5S53bG07866; Thu, 28 Jun 2001 01:03:37 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: suzhe@gnuchina.org Cc: gtk-list@gnome.org Subject: Re: Can I get the screen resolution via Gdk/Gtk ? References: <3B3AB3FA.6090801@gnuchina.org> From: Havoc Pennington Date: 28 Jun 2001 01:03:37 -0400 In-Reply-To: James Su's message of "Thu, 28 Jun 2001 12:35:06 +0800" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: James Su writes: > > I want to get the screen resolution (dpi), but how can I do it within > gdk/gtk? > gdk_screen_width_mm() gives size in millimeters, gdk_screen_width() size in pixels, the math to get pixels per millimeter is pretty simple. Beware though, for many X servers the millimeter size will be completely bogus. Havoc From pranjal@lgsi.co.in Thu Jun 28 01:08:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from polaris.lgsi.co.in (unknown [202.54.13.206]) by mail.gnome.org (Postfix) with ESMTP id 520B32E974 for ; Thu, 28 Jun 2001 01:08:05 -0400 (EDT) Received: from pranjal ([202.54.13.195]) by polaris.lgsi.co.in (Netscape Messaging Server 4.15) with ESMTP id GFMJWX00.QNV for ; Thu, 28 Jun 2001 10:44:57 +0530 From: "Pranjal Saikia" To: Subject: GTK FB !! Date: Thu, 28 Jun 2001 11:26:19 +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.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi !! I'm trying to develop one application using GTK FB for embedded system. Can anyone tell me abt the steps to Install as well as the verions of GTK + FB ? Regards Pranjal From linuxfun@163.com Thu Jun 28 02:27:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.163.com (unknown [202.108.44.225]) by mail.gnome.org (Postfix) with ESMTP id EDCE72BD60 for ; Thu, 28 Jun 2001 02:27:34 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp3.163.com (Postfix) with SMTP id 61A811D30C234 for ; Thu, 28 Jun 2001 14:19:51 +0800 (CST) Message-ID: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> From: "linuxfun" To: "GTK+" Subject: Hi Date: Thu, 28 Jun 2001 14:25:39 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C0FFDE.347EC640" 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.5 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_0013_01C0FFDE.347EC640 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGkNCkkgYW0gdGhlIGJlZ2lubmVyIG9nIEdUSysgYnV0IEkgbG92ZSBpdCB2ZXJ5IG11Y2guSGVy ZSBpcyBteSBwcm9ibGVvbToNCkkgY2Fubm90IGNvbXBpbGUgbXkgR1RLIHByb2dyYW1tIGhlbGxv LmMgaW4gUmVkaGF0IDYuMSx1c2UgZ2NjIGhlbGxvLmMgLW8gaGVsbG8gJ2d0ay1jb25maWctLWNm bGFncy0tbGlicycsd2h5PyBJIGluc3RhbGxlZCB3b3Jrc3RhdGlvbiByZWRoYXQuDQoNCnRoYW5r IGFsbCBvZiB5b3UhIA0K ------=_NextPart_000_0013_01C0FFDE.347EC640 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj5IaTwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgc2l6ZT0yPkkgYW0gdGhlIGJlZ2lubmVyIG9nIEdUSysgYnV0IEkgbG92ZSBpdCB2 ZXJ5IG11Y2guSGVyZSBpcyBteSANCnByb2JsZW9tOjwvRk9OVD48L0RJVj4NCjxESVY+PEZPTlQg c2l6ZT0yPkkgY2Fubm90IGNvbXBpbGUgbXkgR1RLIHByb2dyYW1tIGhlbGxvLmMgaW4gUmVkaGF0 IDYuMSx1c2UgZ2NjIA0KaGVsbG8uYyAtbyBoZWxsbyAnZ3RrLWNvbmZpZy0tY2ZsYWdzLS1saWJz Jyx3aHk/IEkgaW5zdGFsbGVkIHdvcmtzdGF0aW9uIA0KcmVkaGF0LjwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgc2l6ZT0yPjwvRk9OVD4mbmJzcDs8L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0yPnRo YW5rIGFsbCBvZiB5b3UhIDwvRk9OVD48L0RJVj48L0JPRFk+PC9IVE1MPg0K ------=_NextPart_000_0013_01C0FFDE.347EC640-- From Florent.Devin@lifl.fr Thu Jun 28 02:57:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by mail.gnome.org (Postfix) with ESMTP id 785AE2DC95 for ; Thu, 28 Jun 2001 02:57:00 -0400 (EDT) Received: from lifl.fr (brakina.lifl.fr [134.206.10.212]) by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id IAA01960 ; Thu, 28 Jun 2001 08:56:34 +0200 (MET DST) Message-ID: <3B3AD5A1.7070502@lifl.fr> Date: Thu, 28 Jun 2001 08:58:41 +0200 From: "Florent.Devin" User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: gnome/gtkcanvas References: <993663497.11889.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy wrote: > Hey.. > Ok so I've decided to go with gnomecanvas. > I'm having trouble drawing images to the canvas though... > Here's the code: > > GdkImlibImage *Image = gdk_imlib_load_image ("mypng.png"); > > /* create a new canvas */ > gtk_widget_push_visual (gdk_imlib_get_visual ()); > gtk_widget_push_colormap (gdk_imlib_get_colormap ()); > canvas = gnome_canvas_new(); > gtk_widget_pop_visual(); > gtk_widget_pop_colormap(); > . > . > . > . > gnome_canvas_item_new (gnome_canvas_root(canvas), > gnome_canvas_image_get_type (), > "image", Image, > "x", 0, > "y", 0, > "width",(double)Image->rgb_width, > "height", (double)Image->rgb_height, > NULL); > You should use "x", 0.0, "y", 0.0, This is to respect the correct type an int is not a float... and perhaps put an anchor for your image, I can't remember if it's necessary. "anchor", GTK_ANCHOR_... -- Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL) LIFL, Laboratoire d'Informatique Fondamentale de LILLE USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex From Florent.Devin@lifl.fr Thu Jun 28 03:02:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by mail.gnome.org (Postfix) with ESMTP id 1ECF62E381 for ; Thu, 28 Jun 2001 03:02:07 -0400 (EDT) Received: from lifl.fr (brakina.lifl.fr [134.206.10.212]) by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id JAA02326 ; Thu, 28 Jun 2001 09:02:03 +0200 (MET DST) Message-ID: <3B3AD6EB.5070405@lifl.fr> Date: Thu, 28 Jun 2001 09:04:11 +0200 From: "Florent.Devin" User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: en MIME-Version: 1.0 To: Filipe Bonjour Cc: GTK List Subject: Re: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour wrote: > Hi, > > I'm just starting programming with GTK, and I'm having problems with > events. Specifically, I'm writing a program (using GTK/Gnome built by > Glade) to visualize data in 2D/3D using a GtkGlArea widget (a subclass > of GtkDrawingArea). > > In short, I have several drawing options, and I want to send the > GtkGlArea widget an expose event when the user changes any of these > options. I have tried things like: > > gtk_signal_emit_by_name(glarea, "expose_event"); > gtk_signal_emit_by_name(glarea, "expose-event"); > > (which cause a SIGSEGV) and > > gtk_signal_emit(glarea, 32); > gtk_signal_emit(glarea, GDK_EXPOSE); > gtk_signal_emit(glarea, gtk_signal_lookup("expose_event", > GTK_TYPE_GL_AREA)); > gtk_signal_emit(glarea, gtk_signal_lookup("expose-event", > GTK_TYPE_GL_AREA)); > > which are at best ignored. So I have a few questions... > > 1) Where are the signal numbers and names defined? I couldn't find them > anywhere. For gtk_signal_emit I find it hard to believe that we are > expected to give an actual number, I thought there would be some > defined symbols, such as "#define GTK_SIGNAL_EXPOSE 32" or something. > gtk_signal_emit_by_name (GTK_OBJECT (widget), "expose_event", widget); which mean that you have to provide all parameter of the function which is call when the signal is emited. In my case the prototype is : gint f (GtkWidget *widget, GdkEventExpose *event, gpointer userdata) Hope this help -- Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL) LIFL, Laboratoire d'Informatique Fondamentale de LILLE USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex From craig.emery@3glab.com Thu Jun 28 03:13:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 1AD1D2E80D for ; Thu, 28 Jun 2001 03:13:33 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15FVzW-0004Vy-00 for gtk-list@gnome.org; Thu, 28 Jun 2001 08:13:30 +0100 Message-ID: <3B3AD8F4.50905@3glab.com> Date: Thu, 28 Jun 2001 08:12:52 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010626 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK List Subject: Re: How to make menu insensitive References: <3B3AA907.11DE77FB@wipro.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15FVzW-0004Vy-00*xrg5tS1097w* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After setting up the menu with the item factory I use gtk_item_factory_get_widget () to get the widget that's created with the path of the item I want. Then (if, say, it's a check-box item) you can call gtk_check_menu_item_set_active (...) might not be the best method, but works for me. Craig. Deekshit Mantampady wrote: >Hi, > > I am using "GtkItemFactory" to create menus. I want to know How I >enable or disable, make it visible or invisible, dynamically. Can >anybody help me to find out solution. > >Regards >Deekshit M > From craig.emery@3glab.com Thu Jun 28 04:03:23 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 604CB2BD26 for ; Thu, 28 Jun 2001 04:03:21 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15FWlj-0008S8-00 for gtk-list@gnome.org; Thu, 28 Jun 2001 09:03:19 +0100 Message-ID: <3B3AE4A2.9050903@3glab.com> Date: Thu, 28 Jun 2001 09:02:42 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010626 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK+ Subject: Re: Hi References: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15FWlj-0008S8-00*9PQ7TU4YBSY* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yup. Looks like you're using the wrong quotes in your compile command. You've got "single quotation marks" (i.e. ' ) but you need apostrophies (i.e. ` ) On my keyboard, the apostrophy is up by the non-keypad 1 key. Apostrophies (I've heard them called ticks too; that's only one sylable, much easier to "talk") mean: "run this command and put it's output **here**" So the output of the call to gtk-config (that gives the compiler flags, in your case, for bith #include directives and linking) will be supplied to gcc. This is failrly simple shell stuff and, incidentally, nothing to do with GTK+. The shell is your friend. Learn it well. Craig. linuxfun wrote: > Hi > > I am the beginner og GTK+ but I love it very much.Here is my probleom: > > I cannot compile my GTK programm hello.c in Redhat 6.1,use gcc hello.c > -o hello 'gtk-config--cflags--libs',why? I installed workstation redhat. > > thank all of you! > From sven@gimp.org Thu Jun 28 05:01:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A24.dip.t-dialin.net [217.80.26.36]) by mail.gnome.org (Postfix) with ESMTP id 832F22DEA3 for ; Thu, 28 Jun 2001 05:01:26 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15FX6T-000892-00; Thu, 28 Jun 2001 10:24:45 +0200 To: "Florent.Devin" Cc: Filipe Bonjour , GTK List Subject: Re: Signals References: <3B3AD6EB.5070405@lifl.fr> From: Sven Neumann Date: 28 Jun 2001 10:24:45 +0200 In-Reply-To: <3B3AD6EB.5070405@lifl.fr> Message-ID: Lines: 19 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "Florent.Devin" writes: > gtk_signal_emit_by_name (GTK_OBJECT (widget), "expose_event", widget); > > which mean that you have to provide all parameter of the function which > is call when the signal is emited. > > In my case the prototype is : > gint f (GtkWidget *widget, GdkEventExpose *event, gpointer userdata) and you still should _not_ create synthetic expose events, but use gtk_widget_queue_draw() instead. Salut, Sven From john.cupitt@ng-london.org.uk Thu Jun 28 06:57:55 2001 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 822572DBB9 for ; Thu, 28 Jun 2001 06:57:55 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WKZX; Thu, 28 Jun 2001 11:57:54 +0100 Message-ID: <3B3B0C5F.A714E371@ng-london.org.uk> Date: Thu, 28 Jun 2001 11:52:15 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Craig Emery Cc: GTK List Subject: Re: How to make menu insensitive References: <3B3AA907.11DE77FB@wipro.com> <3B3AD8F4.50905@3glab.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Craig Emery wrote: > > After setting up the menu with the item factory I use > gtk_item_factory_get_widget () > to get the widget that's created with the path of the item I want. > > Then (if, say, it's a check-box item) you can call > > gtk_check_menu_item_set_active (...) > > might not be the best method, but works for me. > > Craig. > > Deekshit Mantampady wrote: > > >Hi, > > > > I am using "GtkItemFactory" to create menus. I want to know How I > >enable or disable, make it visible or invisible, dynamically. Can > >anybody help me to find out solution. > > > >Regards > >Deekshit M Hi, you can also use gtk_widget_show()/gtk_widget_hide() to make menu items appear and disappear, and gtk_widget_set_sensitive() to make items grey out/not grey out. John From maiano@ensma.fr Thu Jun 28 07:06:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from graal.ensma.fr (graal.ensma.fr [193.55.167.3]) by mail.gnome.org (Postfix) with ESMTP id 353C52DE4C for ; Thu, 28 Jun 2001 07:06:06 -0400 (EDT) Received: from lisi-linux.ensma.fr (lisi-linux.ensma.fr [193.55.163.95]) by graal.ensma.fr (8.9.1b+Sun/8.9.1) with SMTP id NAA02999 for ; Thu, 28 Jun 2001 13:04:57 +0100 (WET DST) From: S M Date: Thu, 28 Jun 2001 11:05:07 GMT Message-ID: <20010628.11050700@lisi-linux.ensma.fr> Subject: Drag and Drop To: gtk-list@gnome.org X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Linux) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary= "------------=_4D4800C722E808580338" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------=_4D4800C722E808580338 Content-Description: filename="text1.txt" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I have got few questions about Drag and Drop: First, At which time are released the following signals: =AB drag-begin = =BB,=20 =AB drag-end =BB, =AB drag-data-get =BB, =AB drag-data-received =BB, =AB= drag-motion =BB,=20 =AB drag-drop =BB, =AB drag-leave =BB, =AB drag-data-delete =BB? Then, What do we exactly obtain in GdkDragContext? And, How do we get the destination tree position when we perform a Drag = and Drop?=20 What about the use of x and y in =AB drag-data-received =BB callback, fo= r a=20 tree? ? S. Maiano --------------=_4D4800C722E808580338 Content-Description: filename="text1.html" Content-Type: text/html Content-Transfer-Encoding: quoted-printable Drag and Drop
Hi,

  I have got few questions about Drag and Drop:

First, At which time are released the following signals:
« drag-begin », =
« drag-end », « drag-data-get &raq=
uo;,
« drag-data-received », « drag-motion&n=
bsp;», « drag-drop », « drag-leav=
e »,
« drag-data-delete »?

Then, What do we exactly obtain in Gdk=
DragContext?


And, How do we get the destination tre=
e position when we perform a Drag
and Drop?=20
What about the use of x and y in « drag-data-received &r=
aquo; callback, for a
tree? ?

S. Maiano
--------------=_4D4800C722E808580338-- From mark@winksmith.com Thu Jun 28 09:35:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from internal.winksmith.com (dsl254-080-158.nyc1.dsl.speakeasy.net [216.254.80.158]) by mail.gnome.org (Postfix) with ESMTP id 5CDA22CE47 for ; Thu, 28 Jun 2001 09:35:27 -0400 (EDT) Received: from alpha.winksmith.com (IDENT:root@alpha.winksmith.com [192.168.1.10]) by internal.winksmith.com (8.11.0/8.11.0) with ESMTP id f5SDYvo10136; Thu, 28 Jun 2001 09:34:57 -0400 Received: (from mark@localhost) by alpha.winksmith.com (8.11.0/8.11.0) id f5SDZAL18031; Thu, 28 Jun 2001 09:35:10 -0400 Date: Thu, 28 Jun 2001 09:35:07 -0400 From: mark@winksmith.com To: gtk-list@gnome.org Cc: Judd Montgomery Subject: calendar widget on alpha/rh7.0 Message-ID: <20010628093507.A18013@winksmith.com> Reply-To: mark@winksmith.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using a great application called jpilot on my DEC alpha. The operating system is RH7.0 (gtk+1.2.8). The program works pretty good except for the GtkCalendar widget. It gets all vertically squeezed. This only occurs on the alpha architecture. gtk 1.2.8 works as expected on intel. I have a small-ish program (supplied by judd, email listed above) which creates the defect. I can also supply 4-5k jpg snapshots of the squeezing effect. I researched the bugzilla database on rh and for gtk, did a google search, and searched the mail archives, but couldn't find any mention of this phenomenon. Is anyone familiar with this? can anyone help me? -- Mark Smith mark@winksmith.com From rbultje@ronald.bitfreak.net Thu Jun 28 16:30:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 5CA192BD2A for ; Thu, 28 Jun 2001 16:30:16 -0400 (EDT) Received: from [192.168.0.112] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5SLC0F04230 for ; Thu, 28 Jun 2001 23:12:00 +0200 (CEST) Subject: bug? From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Jun 2001 22:30:05 +0200 Message-Id: <993760215.9692.2.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi people, I have a window of two buttons and one label in a hbox. If I change the text in the label, as a reaction on a signal, the hbox will suddenly enlarge and be much larger than it should be... Code of the window: hbox2 = gtk_hbox_new(FALSE, 10); button = gtk_button_new(); //_with_label("Stop []"); /* kill */ pixmap_widget = gtk_widget_from_xpm_data(editor_stop_xpm); gtk_container_add(GTK_CONTAINER(button), pixmap_widget); gtk_widget_show (pixmap_widget); gtk_tooltips_set_tip(tooltip, button, "Stop Preview Video Stream", NULL); gtk_widget_set_usize(button, 32, 32); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(stop_scene_transition), NULL); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE,FALSE, 0); gtk_widget_show (button); button = gtk_button_new(); //_with_label("Play |>"); /* lavpipe | yuvplay */ pixmap_widget = gtk_widget_from_xpm_data(editor_play_xpm); gtk_container_add(GTK_CONTAINER(button), pixmap_widget); gtk_widget_show (pixmap_widget); gtk_tooltips_set_tip(tooltip, button, "Preview the Scene Transition", NULL); gtk_widget_set_usize(button, 32, 32); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(play_scene_transition), (gpointer)options); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE,FALSE, 0); gtk_widget_show (button); sprintf(temp, "0 / %d - 0:00:00.00", GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1); preview_frame_count_label = gtk_label_new(temp); gtk_box_pack_start (GTK_BOX (hbox2), preview_frame_count_label, TRUE,FALSE, 0); gtk_widget_show (preview_frame_count_label); gtk_box_pack_start (GTK_BOX (vbox2), hbox2, TRUE, FALSE, 0); gtk_widget_show(hbox2); The signal does the following: char temp[64]; int d,h,m,s,f; sscanf(msg, "Playing frame %d - %d:%d:%d.%d", &d, &h, &m, &s, &f); sprintf(temp, "%d / %d - %d:%2.2d:%2.2d.%2.2d", d, GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1, h,m,s,f); gtk_label_set_text(GTK_LABEL(preview_frame_count_label), temp); And the first time this signal is called, the hbox enlarges. After that, I can resize the window and it will stay small until I get back to another callback which sets it back to the original state: char temp[64]; sprintf(temp, "0 / %d - 0:00:00.00" , GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1); gtk_label_set_text(GTK_LABEL(preview_frame_count_label), temp); Then, it gets big again. Is this a (known) bug? And is there a way to solve this? Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From pbd@op.net Thu Jun 28 17:32:40 2001 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 A83072BB01 for ; Thu, 28 Jun 2001 17:32:39 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-16.ppp.op.net [209.152.206.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id RAA03942; Thu, 28 Jun 2001 17:32:30 -0400 (EDT) Message-Id: <200106282132.RAA03942@renoir.op.net> To: Ronald Bultje Cc: GTK Mailing List Subject: Re: bug? In-reply-to: Your message of "28 Jun 2001 22:30:05 +0200." <993760215.9692.2.camel@tux> Date: Thu, 28 Jun 2001 17:32:59 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have a window of two buttons and one label in a hbox. >If I change the text in the label, as a reaction on a signal, the hbox >will suddenly enlarge and be much larger than it should be... labels (and containers) expand to display their contents unless told otherwise. whats the bug? if you want the box to be of a fixed size, use gtk_widget_set_usize(). --p From ardm2@cam.ac.uk Thu Jun 28 20:53:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from orange.csi.cam.ac.uk (orange.csi.cam.ac.uk [131.111.8.77]) by mail.gnome.org (Postfix) with ESMTP id 3CD1A2CA8C for ; Thu, 28 Jun 2001 20:53:44 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by orange.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FmXX-0006sq-00 for gtk-list@gnome.org; Fri, 29 Jun 2001 01:53:43 +0100 Subject: GC's From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 29 Jun 2001 01:56:16 +0000 Message-Id: <993779777.4838.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, I'm trying to get the hang of GdkGC's but I can't find any decent documentation... For example, if I wanted to draw something in, say, red on a pixmap, how would I go about that? I currently do this, but it doesn't seem to work GdkGc selectedGC; //I think the following line is the problem // I have tried this with the pixmap instead of widget->window // but then the colormap is null.. with this code, nothing happens GdkColormap *cmap = gdk_window_get_colormap (widget->window); GdkColor cred; cred.red =1.0; cred.green = 0; cred.blue = 0; gdk_color_alloc (cmap, &cred); selectedGC = gdk_gc_new (pictureBuff); gdk_gc_set_foreground (selectedGC, &cred); cheers, Alex Mathy From linuxfun@163.com Thu Jun 28 21:47:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.163.com (unknown [202.108.44.225]) by mail.gnome.org (Postfix) with ESMTP id B47C92BB98 for ; Thu, 28 Jun 2001 21:47:06 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp3.163.com (Postfix) with SMTP id 94ED11D4D35B0; Fri, 29 Jun 2001 09:27:32 +0800 (CST) Message-ID: <001701c1003b$8155d140$8002a8c0@SHECA.COM> From: "linuxfun" To: "Craig Emery" , "GTK+" References: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> <3B3AE4A2.9050903@3glab.com> Subject: Re: Hi Date: Fri, 29 Jun 2001 09:33:24 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: RGVhciBDcmFpZyBFbWVyeToNClRoYW5rIHlvdSB2ZXJ5IG11Y2ggZm9yIHlvdXIgcmVwbHkuDQpJ IGFtIGEgQ2hpbmVzZSBib3kgYW5kIGJlZ2luIHRvIGxlYXJuIHByb2dyYW1taW5nIG9uIExpbnV4 Lkl0J3MgbXkgaW50ZXJlc3QuQnV0IGF0IHRoZSB2ZXJ5IGJlZ2lubmluZyAsZXZlcnl0aGluZyBz ZWVtcyB0b28gZGlmZmljdWx0LjopIEFueXdheSBJIGxvdmUgdGhpcy4NCmF0ICMgLEkgdHlwZSBn dGstY29uZmlnIC0tdmVyc2lvbiAsaXQgcmVwbHlzIDoxLjIuNSxzbyBpdCBzZWVtcyB0aGF0IHRo ZSBHVEsrIGlzIGdvaW5nIHdlbGw/DQphbmQgSSAjbWFuIGd0ay1jb25maWcgdG8gZ2V0IGhlbHAu QnV0IEkgZG8gbm90IGtub3cgdGhlIHJlbGF0aW9uc2hpcCBiZXR3ZWVuICIjZ2NjIC1vIGRlc3Qu YyBzb3VyY2UuYyBgZ3RrLWNvbmcuLi4uLi4uYCIgYW5kIGNvbW1hbmQgImd0ay1jb25maWciLGNv dWxkIHlvdSB0ZWxsIG1lIHdoZW4geW91IGFyZSBmcmVlPw0KdGhhbmtzIGEgbG90IQ0KUFM6Zm9y Z2l2ZSBtZSB0aGF0IG15IGVuZ2xpc2ggaXMgbm90IGZsdWVudC4NCg0KLS0tLS0gT3JpZ2luYWwg TWVzc2FnZSAtLS0tLSANCkZyb206ICJDcmFpZyBFbWVyeSIgPGNyYWlnLmVtZXJ5QDNnbGFiLmNv bT4NClRvOiAiR1RLKyIgPGd0ay1saXN0QGdub21lLm9yZz4NClNlbnQ6IFRodXJzZGF5LCBKdW5l IDI4LCAyMDAxIDQ6MDIgUE0NClN1YmplY3Q6IFJlOiBIaQ0KDQoNCj4gWXVwLiBMb29rcyBsaWtl IHlvdSdyZSB1c2luZyB0aGUgd3JvbmcgcXVvdGVzIGluIHlvdXIgY29tcGlsZSBjb21tYW5kLg0K PiANCj4gWW91J3ZlIGdvdCAic2luZ2xlIHF1b3RhdGlvbiBtYXJrcyIgKGkuZS4gJyApIGJ1dCB5 b3UgbmVlZCBhcG9zdHJvcGhpZXMNCj4gKGkuZS4gYCApDQo+IE9uIG15IGtleWJvYXJkLCB0aGUg YXBvc3Ryb3BoeSBpcyB1cCBieSB0aGUgbm9uLWtleXBhZCAxIGtleS4NCj4gDQo+IEFwb3N0cm9w aGllcyAoSSd2ZSBoZWFyZCB0aGVtIGNhbGxlZCB0aWNrcyB0b287IHRoYXQncyBvbmx5IG9uZSBz eWxhYmxlLA0KPiBtdWNoIGVhc2llciB0byAidGFsayIpIG1lYW46ICJydW4gdGhpcyBjb21tYW5k IGFuZCBwdXQgaXQncyBvdXRwdXQgKipoZXJlKioiDQo+IA0KPiBTbyB0aGUgb3V0cHV0IG9mIHRo ZSBjYWxsIHRvIGd0ay1jb25maWcgKHRoYXQgZ2l2ZXMgdGhlIGNvbXBpbGVyIGZsYWdzLA0KPiBp biB5b3VyIGNhc2UsIGZvciBiaXRoICNpbmNsdWRlIGRpcmVjdGl2ZXMgYW5kIGxpbmtpbmcpIHdp bGwgYmUgc3VwcGxpZWQNCj4gdG8gZ2NjLg0KPiANCj4gVGhpcyBpcyBmYWlscmx5IHNpbXBsZSBz aGVsbCBzdHVmZiBhbmQsIGluY2lkZW50YWxseSwgbm90aGluZyB0byBkbyB3aXRoDQo+IEdUSysu DQo+IA0KPiBUaGUgc2hlbGwgaXMgeW91ciBmcmllbmQuIExlYXJuIGl0IHdlbGwuDQo+IA0KPiBD cmFpZy4NCj4gDQo+IGxpbnV4ZnVuIHdyb3RlOg0KPiANCj4gPiBIaQ0KPiA+DQo+ID4gSSBhbSB0 aGUgYmVnaW5uZXIgb2cgR1RLKyBidXQgSSBsb3ZlIGl0IHZlcnkgbXVjaC5IZXJlIGlzIG15IHBy b2JsZW9tOg0KPiA+DQo+ID4gSSBjYW5ub3QgY29tcGlsZSBteSBHVEsgcHJvZ3JhbW0gaGVsbG8u YyBpbiBSZWRoYXQgNi4xLHVzZSBnY2MgaGVsbG8uYw0KPiA+IC1vIGhlbGxvICdndGstY29uZmln LS1jZmxhZ3MtLWxpYnMnLHdoeT8gSSBpbnN0YWxsZWQgd29ya3N0YXRpb24gcmVkaGF0Lg0KPiA+ DQo+ID4gdGhhbmsgYWxsIG9mIHlvdSENCj4gPg0KPiANCj4gDQo+IA0KPiBfX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPiBndGstbGlzdCBtYWlsaW5nIGxp c3QNCj4gZ3RrLWxpc3RAZ25vbWUub3JnDQo+IGh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFu L2xpc3RpbmZvL2d0ay1saXN0DQo= From topper@virginia.edu Thu Jun 28 22:45:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 9BF9B2DBE0 for ; Thu, 28 Jun 2001 22:45:22 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa27826; 28 Jun 2001 22:45 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id WAA12245 for ; Thu, 28 Jun 2001 22:45:20 -0400 (EDT) Message-ID: <3B3BE054.45BDDCFA@virginia.edu> Date: Thu, 28 Jun 2001 21:56:37 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to set gtk_entry size? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm creating a small window that takes in parameters for the creation of objects on the fly. So I'm using a bunch of gtk_entrys to grab those settings. But I seem unable to control the actual (physical) width of these entries. Using gtk_entry_max_length() has no effect on that. I *guess* I could use gtk_widget_set_usize() but would rather not since it uses pixel values. Thanks, DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From pbd@op.net Thu Jun 28 23:20:02 2001 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 B684E2EA5A for ; Thu, 28 Jun 2001 23:19:44 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-1a.ppp.op.net [209.152.194.122]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA01237; Thu, 28 Jun 2001 23:19:10 -0400 (EDT) Message-Id: <200106290319.XAA01237@renoir.op.net> To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "Thu, 28 Jun 2001 21:56:37 EDT." <3B3BE054.45BDDCFA@virginia.edu> Date: Thu, 28 Jun 2001 23:19:49 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I'm creating a small window that takes in parameters for the creation of >objects on the fly. So I'm using a bunch of gtk_entrys to grab those >settings. But I seem unable to control the actual (physical) width of >these entries. Using gtk_entry_max_length() has no effect on that. > >I *guess* I could use gtk_widget_set_usize() but would rather not since >it uses pixel values. my approach to this is to: 1) determine the longest string that will appear in the entry 2) use gdk_string_extents to get the width of that string in the particular style in use for the entry widget 3) use gtk_widget_set_usize to that size to demonstrate this function (which i trust made it into GTK+ 1.3), i enclose (once again): /* Copyright (C) 1998-99 Paul Barton-Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. $Id: gtkutils.c,v 1.1 1999/11/29 18:38:11 pbd Exp $ */ #include void gtk_widget_set_usize_to_display_given_text (GtkWidget *w, const gchar *text, gint hpadding, gint vpadding) { guint width; guint lbearing; guint rbearing; guint ascent; guint descent; gdk_string_extents (w->style->font, text, &lbearing, &rbearing, &width, &ascent, &descent); gtk_widget_set_usize (w, width+hpadding, ascent+descent+vpadding); } From rbultje@ronald.bitfreak.net Fri Jun 29 02:39:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id 689E02BEA6 for ; Fri, 29 Jun 2001 02:39:11 -0400 (EDT) Received: from Ronald.ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id IAA24943; Fri, 29 Jun 2001 08:39:07 +0200 (CEST) Message-Id: <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> X-Sender: rbultje@ronald.bitfreak.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 29 Jun 2001 08:38:55 +0200 To: Paul Davis From: Ronald Bultje Subject: Re: bug? Cc: gtk-list@gnome.org In-Reply-To: <200106282132.RAA03942@renoir.op.net> References: 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: At 17:32 28-06-2001 -0400, you wrote: > >I have a window of two buttons and one label in a hbox. > >If I change the text in the label, as a reaction on a signal, the hbox > >will suddenly enlarge and be much larger than it should be... > >labels (and containers) expand to display their contents unless told >otherwise. > >whats the bug? > >if you want the box to be of a fixed size, use gtk_widget_set_usize(). The content of the label is *much* smaller than the size is expands to, that's the bug/problem. The content or "size of content" does not change. It has the same number of characters, even. But the hbox still expands and directly after that I can make the window smaller so it expands to a higher size than it needs...... That does not sound like how it should be to me, but I could be wrong of course. Anyway, I'll try using the set_usize, although not the nicest solution. Ronald From rbultje@ronald.bitfreak.net Fri Jun 29 02:42:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.127.132]) by mail.gnome.org (Postfix) with ESMTP id 8E5302EA97 for ; Fri, 29 Jun 2001 02:42:34 -0400 (EDT) Received: from Ronald.ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp3.xs4all.nl (8.9.3/8.9.3) with ESMTP id IAA17002; Fri, 29 Jun 2001 08:42:31 +0200 (CEST) Message-Id: <5.1.0.14.0.20010629084054.00a04670@ronald.bitfreak.net> X-Sender: rbultje@ronald.bitfreak.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 29 Jun 2001 08:42:19 +0200 To: Alexandre Mathy , gtk-list@gnome.org From: Ronald Bultje Subject: Re: GC's In-Reply-To: <993779777.4838.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: At 01:56 29-06-2001 +0000, Alexandre Mathy wrote: >cred.red =1.0; That should be 1.0 * 65535.0 GdkColors work with [0-65535] rather than [0.0-1.0]. Ronald From Steph.Fox@btinternet.com Fri Jun 29 06:18:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id D00672EACB for ; Fri, 29 Jun 2001 06:18:55 -0400 (EDT) Received: from [213.1.74.67] (helo=t2r1o8) by protactinium with smtp (Exim 3.22 #9) id 15FvMP-00056P-00 for gtk-list@gnome.org; Fri, 29 Jun 2001 11:18:49 +0100 Message-ID: <026c01c10084$e4df3140$c2107bd5@t2r1o8> From: "Steph" To: Subject: GTK WINDOWS PORT Date: Fri, 29 Jun 2001 11:18:43 +0100 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello ppl I come of the PHP-GTK community & have several queries re the windows = port which hopefully someone here can assist with. First off (tester question to see if I'm in the right place) - GtkText = set_line_wrap() is putting \r returns (little black boxes) at every = wrap. =20 We're using 1.3 Any knowledge/comments, anyone? ty Steph From binnema@djcb.dyndns.org Wed Jun 27 15:59:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from djcb.dyndns.org (29dyn214.dh.casema.net [213.17.5.214]) by mail.gnome.org (Postfix) with SMTP id 5C2912DEF0 for ; Wed, 27 Jun 2001 15:59:37 -0400 (EDT) Received: (qmail 30366 invoked by uid 550); 27 Jun 2001 20:00:57 -0000 Received: from unknown (192.168.1.2) by 192.168.1.1 with QMQP; 27 Jun 2001 20:00:57 -0000 Date: Wed, 27 Jun 2001 22:08:31 +0200 From: "Dirk-Jan C. Binnema" To: gtk-list@gnome.org Cc: gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Message-ID: <20010627220830.A910@mindcrime.djb.nl> Reply-To: bulkmeel@yahoo.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.18i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed Jun 27, 2001 at 09:20:42PM +0200, Sven Neumann wrote: > (custom-set-variables > '(c-font-lock-extra-types (quote ("gint" "gfloat" "gchar" > "gint8" "gint16" "gint32" "guint" "guint8" "guint16" > "guint32" "guchar" "glong" "gboolean" "gshort" "gushort" > "gulong" "gdouble" "gldouble" "gpointer" "G_\\w+" > "GList" "GSList" "GFunc" "GPOINTER_\\w+" "GINT_\\w+" "GUINT_\\w+" > "Gtk\\w+" "Gdk\\w+" "GTK\\w+" "GDK\\w+" "NULL" > "Gimp\\w+" "GIMP\\w+" > "FT_\\w+" > "Pango\\w+" "PANGO\\w+" > "->" "FALSE" "TRUE" "FILE" "MIN" "MAX" "CLAMP" "ABS" "DIR" "\\sw+_t" > "GCim\\w+"))) > > You will want to modify/extend this list a bit and I'm sure there are > better ways to do this, but this one works reasonably well. Indeed; there's an OpenGL mode for emacs that goes a step further, and has built in completion for functions, knows about their args etc. Something like that would certainly be nice for GTK+ (probably best with separate glib.el, gtk.el and gnome.el), but would be a *lot* of work. Well, at least we can use tags. --Dirk-Jan. From andres_giraldo@yahoo.com Fri Jun 29 10:05:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11503.mail.yahoo.com (web11503.mail.yahoo.com [216.136.172.35]) by mail.gnome.org (Postfix) with SMTP id 234CD2BB19 for ; Fri, 29 Jun 2001 10:05:40 -0400 (EDT) Message-ID: <20010629140539.42763.qmail@web11503.mail.yahoo.com> Received: from [209.205.77.165] by web11503.mail.yahoo.com; Fri, 29 Jun 2001 07:05:39 PDT Date: Fri, 29 Jun 2001 07:05:39 -0700 (PDT) From: "Andrés" Giraldo Subject: How gtk_widget_hide works? To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to set unvisible a window, using: GtkWidget *window; gtk_widget_hide (window); but it doesn't work... I'm just need to hide a window to set it unvisible for a while, so what am I doing wrong? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From pbd@op.net Fri Jun 29 10:35:47 2001 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 77FB42EB0F for ; Fri, 29 Jun 2001 10:35:40 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA14511; Fri, 29 Jun 2001 10:35:36 -0400 (EDT) Message-Id: <200106291435.KAA14511@renoir.op.net> To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug? In-reply-to: Your message of "Fri, 29 Jun 2001 08:38:55 +0200." <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> Date: Fri, 29 Jun 2001 10:36:21 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >The content of the label is *much* smaller than the size is expands to, >that's the bug/problem. >The content or "size of content" does not change. It has the same number of >characters, even. But the hbox still expands and directly after that I can >make the window smaller so it expands to a higher size than it needs...... >That does not sound like how it should be to me, but I could be wrong of >course. is the container set to "homogeneous" ? if so, all of its children are required to be of the same size. did you unset this? also, what padding and expand options did you use? --p From hp@redhat.com Fri Jun 29 10:43:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 296402EB10 for ; Fri, 29 Jun 2001 10:43:54 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEhdb01031; Fri, 29 Jun 2001 10:43:39 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Steph" Cc: Subject: Re: GTK WINDOWS PORT References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> From: Havoc Pennington Date: 29 Jun 2001 10:43:39 -0400 In-Reply-To: "Steph"'s message of "Fri, 29 Jun 2001 11:18:43 +0100" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Steph" writes: > Hello ppl > > I come of the PHP-GTK community & have several queries re the windows port which hopefully someone here can assist with. > > First off (tester question to see if I'm in the right place) - GtkText set_line_wrap() is putting \r returns (little black boxes) at every wrap. > > We're using 1.3 > Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) It's on-topic to ask about GTK win32 here, but I believe the gimp-win32 list (? something like that) may have more people who knows win32-specific answers. Havoc From hp@redhat.com Fri Jun 29 10:45:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A436A2EB1A for ; Fri, 29 Jun 2001 10:45:18 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEiwP01037; Fri, 29 Jun 2001 10:44:58 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106290319.XAA01237@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 10:44:58 -0400 In-Reply-To: Paul Davis's message of "Thu, 28 Jun 2001 23:19:49 -0400" Message-ID: Lines: 8 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > to demonstrate this function (which i trust made it into GTK+ 1.3), i > enclose (once again): What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). Havoc From andrei@ispi.net Fri Jun 29 10:47:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wynton.ispi.net (wynton.ispi.net [206.131.193.10]) by mail.gnome.org (Postfix) with ESMTP id DA0FA2BB41 for ; Fri, 29 Jun 2001 10:47:33 -0400 (EDT) Received: by ispi.net (secure version) id JAA10142; Fri, 29 Jun 2001 09:47:17 -0500 X-Authentication-Warning: cassandra.ispi.prv: andrey set sender to andrei@ispi.net using -f Date: Fri, 29 Jun 2001 09:47:17 -0500 From: Andrei Zmievski To: Havoc Pennington Cc: Steph , gtk-list@gnome.org Subject: Re: GTK WINDOWS PORT Message-ID: <20010629094717.P9196@ispi.net> References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> 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 Fri, Jun 29, 2001 at 10:43:39AM -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, 29 Jun 2001, Havoc Pennington wrote: > > We're using 1.3 > > > > Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to > define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) > > It's on-topic to ask about GTK win32 here, but I believe the > gimp-win32 list (? something like that) may have more people who knows > win32-specific answers. I have to correct her, PHP-GTK users have to use Gtk+ 1.3 for Windows because it's the one with the least bugs -- they don't compile it. -Andrei * We are not a clone. * From hp@redhat.com Fri Jun 29 10:47:42 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2B2C92BB41 for ; Fri, 29 Jun 2001 10:47:42 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TElRL01040; Fri, 29 Jun 2001 10:47:27 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: GC's References: <993779777.4838.0.camel@ardm2> From: Havoc Pennington Date: 29 Jun 2001 10:47:26 -0400 In-Reply-To: Alexandre Mathy's message of "29 Jun 2001 01:56:16 +0000" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy writes: > Hey, > I'm trying to get the hang of GdkGC's but I can't find any decent > documentation... The "scribble" example in the tutorial may help, and the Xlib Programming Manual (vol 1) is good if you want tons of details. > GdkGc selectedGC; > > //I think the following line is the problem > // I have tried this with the pixmap instead of widget->window > // but then the colormap is null.. with this code, nothing happens > GdkColormap *cmap = gdk_window_get_colormap (widget->window); Suggest simply: gtk_widget_get_colormap (widget) > cred.red =1.0; These values are in the range [0,G_MAXUSHORT] Havoc From hp@redhat.com Fri Jun 29 10:49:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B4A1A2EAFD for ; Fri, 29 Jun 2001 10:49:03 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEmm101043; Fri, 29 Jun 2001 10:48:48 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: Paul Davis , gtk-list@gnome.org Subject: Re: bug? References: <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> From: Havoc Pennington Date: 29 Jun 2001 10:48:48 -0400 In-Reply-To: Ronald Bultje's message of "Fri, 29 Jun 2001 08:38:55 +0200" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > The content of the label is *much* smaller than the size is expands to, that's > the bug/problem. > The content or "size of content" does not change. It has the same number of > characters, even. But the hbox still expands and directly after that I can make > the window smaller so it expands to a higher size than it needs...... That does > not sound like how it should be to me, but I could be wrong of > course. No, that shouldn't happen. If you can come up with a test case we can compile, it'd be great if you could file a bug on bugzilla.gnome.org. Havoc From hp@redhat.com Fri Jun 29 10:50:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EB40B2EAFD for ; Fri, 29 Jun 2001 10:50:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEnpp01046; Fri, 29 Jun 2001 10:49:51 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "=?iso-8859-1?q?Andr=E9s?=" Giraldo Cc: Gtk List Subject: Re: How gtk_widget_hide works? References: <20010629140539.42763.qmail@web11503.mail.yahoo.com> From: Havoc Pennington Date: 29 Jun 2001 10:49:51 -0400 In-Reply-To: "=?iso-8859-1?q?Andr=E9s?=" Giraldo's message of "Fri, 29 Jun 2001 07:05:39 -0700 (PDT)" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Andr s" Giraldo writes: >=20 > I'm trying to set unvisible a window, using: >=20 > GtkWidget *window; >=20 > gtk_widget_hide (window); >=20 > but it doesn't work... I'm just need to hide a window > to set it unvisible for a while, so what am I doing wrong? >=20 gtk_widget_hide() should work, must be something else wrong with the code. Havoc From pbd@op.net Fri Jun 29 10:58:08 2001 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 801B62EB24 for ; Fri, 29 Jun 2001 10:58:08 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16712; Fri, 29 Jun 2001 10:57:54 -0400 (EDT) Message-Id: <200106291457.KAA16712@renoir.op.net> To: Havoc Pennington Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "29 Jun 2001 10:44:58 EDT." Date: Fri, 29 Jun 2001 10:58:39 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> to demonstrate this function (which i trust made it into GTK+ 1.3), i >> enclose (once again): > >What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). That can't be right. The text of characters in some fonts varies widely. If I want an entry to precisely contain "lllllllll", it may be totally different size than if I want it to contain "mxmxmxmxmxmxm". Not to mention issues with non-Latin1 text. Oh well, I guess I'll keep posting gtk_entry_set_usize_from_given_text() :) --p From hp@redhat.com Fri Jun 29 11:30:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 9CF4E2EB59 for ; Fri, 29 Jun 2001 11:30:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TFURH32606; Fri, 29 Jun 2001 11:30:27 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106291457.KAA16712@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 11:30:26 -0400 In-Reply-To: Paul Davis's message of "Fri, 29 Jun 2001 10:58:39 -0400" Message-ID: Lines: 27 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >> to demonstrate this function (which i trust made it into GTK+ 1.3), i > >> enclose (once again): > > > >What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). > > That can't be right. The text of characters in some fonts varies > widely. If I want an entry to precisely contain "lllllllll", it may be > totally different size than if I want it to contain > "mxmxmxmxmxmxm". Not to mention issues with non-Latin1 text. > > Oh well, I guess I'll keep posting gtk_entry_set_usize_from_given_text() :) > There are no issues with non-Latin1 text. set_width_chars() uses the 'average char width' from the Pango font, which is somewhat a voodoo number, but does consider the existence of non-Latin1. After all that's the point of Pango. set_width_chars() is intended for when you don't know exactly which chars it will contain - if you know the entry will contain "lllllll" then setting the usize is probably right, but also, using a label rather than an entry is probably right. ;-) Havoc From pbd@op.net Fri Jun 29 11:40:31 2001 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 367092EB67 for ; Fri, 29 Jun 2001 11:40:31 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA20868; Fri, 29 Jun 2001 11:40:28 -0400 (EDT) Message-Id: <200106291540.LAA20868@renoir.op.net> To: Havoc Pennington Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "29 Jun 2001 11:30:26 EDT." Date: Fri, 29 Jun 2001 11:41:13 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >There are no issues with non-Latin1 text. set_width_chars() uses the >'average char width' from the Pango font, which is somewhat a voodoo >number, but does consider the existence of non-Latin1. After all >that's the point of Pango. > >set_width_chars() is intended for when you don't know exactly which >chars it will contain - if you know the entry will contain "lllllll" >then setting the usize is probably right, but also, using a label >rather than an entry is probably right. ;-) ah, what i failed to notice was that the prefix is "gtk_entry" rather than "gtk_widget". in fact, i failed to notice it so much that i even used the same prefix when referring to the function i posted (which is actually prefixed gtk_widget_...). that helps to explain the approach you've taken. is this going to work for spinbuttons as well? my recollection is that the GtkEntry widget is supposed to be "private", and thus not amenable to tricks to set its width. or do we just violate the privacy rule and set it anyway, since trying it on the overall widget fails miserably due to the (unknowable) width of the controls (typically arrows). --p From hp@redhat.com Fri Jun 29 12:07:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id C144C2CCF3 for ; Fri, 29 Jun 2001 12:07:24 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TG79O25651; Fri, 29 Jun 2001 12:07:09 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106291540.LAA20868@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 12:07:09 -0400 In-Reply-To: Paul Davis's message of "Fri, 29 Jun 2001 11:41:13 -0400" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > is this going to work for spinbuttons as well? my recollection is that > the GtkEntry widget is supposed to be "private", and thus not amenable > to tricks to set its width. or do we just violate the privacy rule and > set it anyway, since trying it on the overall widget fails miserably > due to the (unknowable) width of the controls (typically arrows). > SpinButton is_a GtkEntry rather than containing one, so it isn't really supposed to be private. (Though the is_a relationship is a bit questionable.) Anyhow, spin buttons now default to basing their size request on MAX (width_of_min_value, width_of_max_value), with a random hardcoded min size of 30 pixels. You can override this with either gtk_entry_set_width_chars() or gtk_widget_set_usize(). Havoc From Steph.Fox@btinternet.com Fri Jun 29 12:35:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rhenium (rhenium.btinternet.com [194.73.73.93]) by mail.gnome.org (Postfix) with ESMTP id E34C32E12E for ; Fri, 29 Jun 2001 12:32:56 -0400 (EDT) Received: from [62.7.121.142] (helo=t2r1o8) by rhenium with smtp (Exim 3.22 #9) id 15G1CK-0003QN-00; Fri, 29 Jun 2001 17:32:49 +0100 Message-ID: <004801c100b9$1fea8ee0$7406073e@t2r1o8> From: "Steph" To: "Havoc Pennington" , "Raymond Wan" Cc: References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> Subject: Re: GTK WINDOWS PORT Date: Fri, 29 Jun 2001 17:32:39 +0100 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks Havoc, I'll go back to basics & get details of what's been = compiled & how for our Windows binary & then check out the list you = referred to. Thanks to you too, Raymond - s'nice to get a quick response! ----- Original Message -----=20 From: "Havoc Pennington" To: "Steph" Cc: Sent: Friday, June 29, 2001 3:43 PM Subject: Re: GTK WINDOWS PORT "Steph" writes: > Hello ppl >=20 > I come of the PHP-GTK community & have several queries re the windows = port which hopefully someone here can assist with. >=20 > First off (tester question to see if I'm in the right place) - GtkText = set_line_wrap() is putting \r returns (little black boxes) at every = wrap. =20 >=20 > We're using 1.3 >=20 Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) It's on-topic to ask about GTK win32 here, but I believe the gimp-win32 list (? something like that) may have more people who knows win32-specific answers. Havoc From bonjour@ime.unicamp.br Fri Jun 29 12:48:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pretoria.ime.unicamp.br (pretoria.ime.unicamp.br [143.106.22.7]) by mail.gnome.org (Postfix) with ESMTP id 563EE2E1EF for ; Fri, 29 Jun 2001 12:40:32 -0400 (EDT) Received: from athenas.ime.unicamp.br (athenas.ime.unicamp.br [143.106.22.3]) by pretoria.ime.unicamp.br (8.9.0/8.9.0) with ESMTP id NAA23065 for ; Fri, 29 Jun 2001 13:41:07 -0300 (EST) Date: Fri, 29 Jun 2001 13:40:17 -0300 (EST) From: Filipe Bonjour To: GTK List Subject: Synchronizing X 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Under Xlib you can call XSynchronize to synchronize the X server and catch bugs. Is there a similar call under GTK/GNOME? Otherwise, can I get the display from a gtk/gdk function and pass it to XSyncronize? (How?) Thanks, Fil +-----------------------------------------------------------------------+ | Dr. Fil Bonjour | Fil Bonjour | | UNICAMP, IMECC, DMA - Room 328 | Rua Alberto de Salvo 53 | | 13081-970 Campinas SP Brazil | 13084-670 Campinas SP Brazil | | Phone: (++55.19) 3788.60.44 | Phone: (+55.19) 3289.77.84 | | Fax: (++55.19) 3289.14.66 | | | Email: bonjour@ime.unicamp.br | Email: fbonjour@uol.com.br | | http://www.ime.unicamp.br/~bonjour| | +-----------------------------------------------------------------------+ From robyegiuly@libero.it Fri Jun 29 12:48:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mail.gnome.org (Postfix) with ESMTP id B16532E226 for ; Fri, 29 Jun 2001 12:42:41 -0400 (EDT) Received: from mail.libero.it (151.25.37.171) by smtp1.libero.it (5.5.025) id 3AE980E700E7931B for gtk-list@gnome.org; Fri, 29 Jun 2001 18:42:40 +0200 Date: Fri, 29 Jun 2001 18:44:30 +0200 From: Roberto Sobachi To: gtk-list@gnome.org Subject: ICONS!!! Message-ID: <20010629184430.A542@DEBIAN> Reply-To: robyegiuly@libero.it Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.0.pre5 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I associate an icon to my application for the task list or the top of the window? -- --------------- Roberto Sobachi From bachn@LESTERELECTRICAL.com Fri Jun 29 12:49:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from nt_le.Lesterelectrical.com (h216-170-003-037.adsl.navix.net [216.170.3.37]) by mail.gnome.org (Postfix) with ESMTP id 190C62E2C4 for ; Fri, 29 Jun 2001 12:48:04 -0400 (EDT) Received: by NT_LE with Internet Mail Service (5.5.2448.0) id ; Fri, 29 Jun 2001 11:48:01 -0500 Message-ID: From: Bach Ngo To: "'gtk-list@gnome.org'" Subject: How do I know the version of gtk? Date: Fri, 29 Jun 2001 11:47:55 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi How can I find out what the version of gtk? Bach Ngo From rbultje@ronald.bitfreak.net Fri Jun 29 12:52:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 107192E18B for ; Fri, 29 Jun 2001 12:52:36 -0400 (EDT) Received: from [192.168.0.96] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5THYDF13014; Fri, 29 Jun 2001 19:34:13 +0200 (CEST) Subject: Re: bug? From: Ronald Bultje To: Paul Davis Cc: GTK Mailing List In-Reply-To: <200106291435.KAA14511@renoir.op.net> References: <200106291435.KAA14511@renoir.op.net> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 29 Jun 2001 20:44:28 +0200 Message-Id: <993840279.968.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 10:36:21 -0400, Paul Davis wrote: > is the container set to "homogeneous" ? if so, all of its children are > required to be of the same size. did you unset this? also, what I set it to FALSE... > padding and expand options did you use? padding of 10 pixels, changing it to 0 made no difference. expand: false as well... Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From hp@redhat.com Fri Jun 29 13:40:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 40E3D2E204 for ; Fri, 29 Jun 2001 13:40:11 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5THdrf04270; Fri, 29 Jun 2001 13:39:53 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Filipe Bonjour Cc: GTK List Subject: Re: Synchronizing X References: From: Havoc Pennington Date: 29 Jun 2001 13:39:53 -0400 In-Reply-To: Filipe Bonjour's message of "Fri, 29 Jun 2001 13:40:17 -0300 (EST)" Message-ID: Lines: 12 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour writes: > > Under Xlib you can call XSynchronize to synchronize the X server and > catch bugs. Is there a similar call under GTK/GNOME? Otherwise, can I > get the display from a gtk/gdk function and pass it to XSyncronize? > (How?) > Just start your app with the "--sync" option. Havoc From kodis@jagunet.com Fri Jun 29 16:27:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from skydiver.jaguNET.com (skydiver.jaguNET.com [209.133.192.8]) by mail.gnome.org (Postfix) with ESMTP id 051D02CF0A for ; Fri, 29 Jun 2001 16:27:39 -0400 (EDT) Received: from kodis.jagunet.com (kodis.jaguNET.com [209.133.192.48]) by skydiver.jaguNET.com (8.9.3/jag-2.6) with ESMTP id QAA01296 for ; Fri, 29 Jun 2001 16:27:37 -0400 (EDT) Received: (from kodis@localhost) by kodis.jagunet.com (8.11.2/8.11.2) id f5TKRZb12256 for gtk-list@gnome.org; Fri, 29 Jun 2001 16:27:35 -0400 X-Authentication-Warning: papa.jagunet.com: kodis set sender to kodis@jagunet.com using -f Date: Fri, 29 Jun 2001 16:27:34 -0400 From: John Kodis To: gtk-list@gnome.org Subject: Re: ICONS!!! Message-ID: <20010629162734.B12221@papa.jagunet.com> Mail-Followup-To: John Kodis , gtk-list@gnome.org References: <20010629184430.A542@DEBIAN> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010629184430.A542@DEBIAN>; from robyegiuly@libero.it on Fri, Jun 29, 2001 at 06:44:30PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, Jun 29, 2001 at 06:44:30PM +0200, Roberto Sobachi wrote: > > How can I associate an icon to my application for the task list or the top > of the window? While this might be considered heresy on a gtk list, the only way I know to do this is: gnome_window_icon_set_default_from_file("/path/to/icon.png"); -- John Kodis. From watchthinker@netease.com Fri Jun 29 20:17:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.netease.com (unknown [202.103.134.10]) by mail.gnome.org (Postfix) with ESMTP id 3C80B2BF20 for ; Fri, 29 Jun 2001 20:17:44 -0400 (EDT) Received: from default (unknown [211.159.47.200]) by smtp1.netease.com (Postfix) with ESMTP id 8AC121C535783 for ; Sat, 30 Jun 2001 08:22:49 +0800 (CST) Date: Sat, 30 Jun 2001 08:15:46 +0800 From: watchthinker To: gtk-list@gnome.org Subject: win32 port In-Reply-To: <20010629145202.E77FD2EB35@mail.gnome.org> References: <20010629145202.E77FD2EB35@mail.gnome.org> Message-Id: <20010630080944.7918.WATCHTHINKER@netease.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.03 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear All: I am new to gtk. I want to use gtk to write win32 programs. But when the complied program run, there is a console window appears. What to do to close the console windows? Thanks! From pfeiffer@cs.nmsu.edu Fri Jun 29 20:37:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.CS.NMSU.Edu (cs.CS.NMSU.Edu [128.123.64.2]) by mail.gnome.org (Postfix) with ESMTP id 79EBB2E3AE for ; Fri, 29 Jun 2001 20:37:02 -0400 (EDT) Received: from viper.cs.nmsu.edu (root@viper [128.123.64.113]) by cs.CS.NMSU.Edu (8.8.6/8.8.6) with ESMTP id SAA05026 for ; Fri, 29 Jun 2001 18:37:01 -0600 (MDT) Received: (pfeiffer@localhost) by viper.cs.nmsu.edu (8.10.2/8.6.12) id f5U0b0q11303; Fri, 29 Jun 2001 18:37:00 -0600 Date: Fri, 29 Jun 2001 18:37:00 -0600 Message-Id: <200106300037.f5U0b0q11303@viper.cs.nmsu.edu> X-Authentication-Warning: viper.cs.nmsu.edu: pfeiffer set sender to pfeiffer@cs.nmsu.edu using -f From: Joe Pfeiffer To: gtk-list@gnome.org Subject: focus and notebook tabs? Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using a gtknotebook, and need to have some pages inaccessible depending on the state of the program. I'm using gtk version 1.2.10. My first try at this was to simply get the tab and set it insensitive; when I did that, the tab ``greyed out'' appropriately, but if I clicked on it I went to the tab's page anyway. Following a suggestion on the gtkmm mailing list (I'm actually working in gtkmm, but I think I'm looking at gtk troubles here), I intercepted the page-switch signal, and only let the switch happen if the tab was sensitive. This is working, but I'm having trouble controlling keyboard navigation. I can use the key to set the focus on the greyed-out tab, even though pressing the key when it has the focus has no effect (well, it tries to switch pages, but I'm intercepting that). Following another gtkmm suggestion, I'm using GTK_OBJECT_UNSET_FLAGS to unset the GTK_CAN_FOCUS flag. This is having no effect; it still gets the focus. So... how should I be doing this? -- 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 SWNMRSEF: http://www.nmsu.edu/~scifair From abrice2@home.com Sat Jun 30 02:53:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from femail17.sdc1.sfba.home.com (femail17.sdc1.sfba.home.com [24.0.95.144]) by mail.gnome.org (Postfix) with ESMTP id 1D6262BB38 for ; Sat, 30 Jun 2001 02:53:07 -0400 (EDT) Received: from home.com ([24.250.194.198]) by femail17.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010630065306.MLBF13663.femail17.sdc1.sfba.home.com@home.com> for ; Fri, 29 Jun 2001 23:53:06 -0700 Message-ID: <3B3D7840.2804DF71@home.com> Date: Fri, 29 Jun 2001 23:57:04 -0700 From: Aaron Brice X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: XPM collection? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This probably gets asked a lot but it's not in the FAQ so... Can anyone recommend a good site to get collections of XPM icons? Thanks, Aaron From andres_giraldo@yahoo.com Sat Jun 30 10:06:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11501.mail.yahoo.com (web11501.mail.yahoo.com [216.136.172.46]) by mail.gnome.org (Postfix) with SMTP id 8F16D2D438 for ; Sat, 30 Jun 2001 10:06:31 -0400 (EDT) Message-ID: <20010630140630.14259.qmail@web11501.mail.yahoo.com> Received: from [209.205.77.165] by web11501.mail.yahoo.com; Sat, 30 Jun 2001 07:06:30 PDT Date: Sat, 30 Jun 2001 07:06:30 -0700 (PDT) From: "Andrés" Giraldo Subject: gtk_signal_connect To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I created a class that connect 2 signals from 2 widgtes to the same function: class myclass { char *string; myclass { string = "Hello World"; } void some_function () { GtkWidget *button = gtk_new_button_with_label ("Tes") GtkWidget *drawing_area = gtk_drawing_area_new (); ... gtk_widget_show (button); gtk_widget_show (drawing_area); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this) gtk_signal_connect (GTK_OBJECT (drawing_area), "expose_event", GTK_SIGNAL_FUNC (on_drawing_area_expose_event), this) } static void on_button_clicked (GtkButton *button, gpointer arg) { ((myclass *) arg)->test (); } static void on_drawing_area_expose_event (GtkDrawingArea *drawing_area, gpointer arg) { ((myclass *) arg)->test (); } void test () { cout << string << "\n"; } } So... why it works with the "clicked" button's signal, but it doesn't work with the "expose_event" drawing_area's signal? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From sven@gimp.org Sat Jun 30 12:16:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD90020D1.dip.t-dialin.net [217.0.32.209]) by mail.gnome.org (Postfix) with ESMTP id 079812DBEC for ; Sat, 30 Jun 2001 12:16:24 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15GNIK-0000iN-00; Sat, 30 Jun 2001 18:08:28 +0200 To: "AndrXs" Giraldo Cc: Gtk List Subject: Re: gtk_signal_connect References: <20010630140630.14259.qmail@web11501.mail.yahoo.com> From: Sven Neumann Date: 30 Jun 2001 18:08:28 +0200 In-Reply-To: <20010630140630.14259.qmail@web11501.mail.yahoo.com> Message-ID: Lines: 24 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "AndrXs" Giraldo writes: > static void on_button_clicked (GtkButton *button, > gpointer arg) > > static void on_drawing_area_expose_event > (GtkDrawingArea *drawing_area, gpointer arg) > > So... why it works with the "clicked" button's signal, > but it doesn't work with the "expose_event" > drawing_area's signal? because the "expose_event" signal has a different signature. Your signal handler should look like: static gint on_drawing_area_expose_event (GtkDrawingArea *drawing_area, GdkEventExpose *event, gpointer arg) Salut, Sven From switk@yahoo.com Sat Jun 30 19:15:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx01.cluster1.charter.net (dc-mx01.cluster0.hsacorp.net [209.225.8.11]) by mail.gnome.org (Postfix) with ESMTP id 1F8F42BBE4 for ; Sat, 30 Jun 2001 19:15:18 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx01.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 10471282 for gtk-list@gnome.org; Sat, 30 Jun 2001 19:21:35 -0400 Subject: Re: ICONS!!! From: Stephen Witkop To: gtk-list@gnome.org In-Reply-To: <20010629162734.B12221@papa.jagunet.com> References: <20010629184430.A542@DEBIAN> <20010629162734.B12221@papa.jagunet.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <993942786.4037.1.camel@athlon.localdomain> Mime-Version: 1.0 X-Mailer: Evolution/0.10.99 (Preview Release) Date: 30 Jun 2001 19:15:17 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 16:27:34 -0400, John Kodis wrote: > On Fri, Jun 29, 2001 at 06:44:30PM +0200, Roberto Sobachi wrote: > > > > How can I associate an icon to my application for the task list or the top > > of the window? > > While this might be considered heresy on a gtk list, the only way I > know to do this is: > > gnome_window_icon_set_default_from_file("/path/to/icon.png"); > > -- John Kodis. > Luckily we have: void gdk_window_set_icon (GdkWindow *window, GdkWindow *icon_window, GdkPixmap *pixmap, GdkBitmap *mask); Stephen From switk@yahoo.com Sat Jun 30 19:22:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx04.cluster1.charter.net (dc-mx04.cluster0.hsacorp.net [209.225.8.14]) by mail.gnome.org (Postfix) with ESMTP id 1C9782DF4D for ; Sat, 30 Jun 2001 19:22:50 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx04.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 11613095; Sat, 30 Jun 2001 19:28:37 -0400 Subject: Re: How do I know the version of gtk? From: Stephen Witkop To: Bach Ngo Cc: "'gtk-list@gnome.org'" In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 30 Jun 2001 19:22:39 -0400 Message-Id: <993943359.4238.0.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 11:47:55 -0500, Bach Ngo wrote: > Hi > > How can I find out what the version of gtk? > > Bach Ngo > > Use the command gtk-config --version. If gtk is installed properly on your system it will return the correct version number. Stephen From popeofpop@softhome.net Sat Jun 30 19:38:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by mail.gnome.org (Postfix) with SMTP id 718D02DF59 for ; Sat, 30 Jun 2001 19:38:58 -0400 (EDT) Received: (qmail 1836 invoked by uid 417); 30 Jun 2001 23:43:01 -0000 Received: from gateway.dr.dk (HELO smtp.softhome.net) (129.142.20.129) by i-softhome-tango with SMTP; 30 Jun 2001 23:43:01 -0000 X-Mailer: Ultrafunk Popcorn release 1.04 (13.Jan.2001) X-URL: http://www.ultrafunk.com/products/popcorn Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 Date: Sun, 1 Jul 2001 01:38:55 +0100 (Vesteuropa, normaltid) From: Chris Hansen To: gtk-list@gnome.org Subject: Re: ICONS!!! Reply-To: popeofpop@softhome.net Message-Id: <20010630233858.718D02DF59@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Subject: Re: ICONS!!! > From: Stephen Witkop > Date: 30 Jun 2001 19:15:17 -0400 > To: gtk-list@gnome.org > >Luckily we have: > >void gdk_window_set_icon (GdkWindow *window, > GdkWindow *icon_window, > GdkPixmap *pixmap, > GdkBitmap *mask); But how do we use this function with a window created as GtkWidget *window; ? Does anyone have some sample code? Regards Chris Hansen From skip@beluga.mojam.com Thu May 31 21:02:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-131-167-214.ce.mediaone.net [24.131.167.214]) by mail.gnome.org (Postfix) with ESMTP id 1106D2BDDD for ; Thu, 31 May 2001 21:02:22 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id CA0D52814; Thu, 31 May 2001 20:02:23 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15126.59807.757971.704953@beluga.mojam.com> Date: Thu, 31 May 2001 20:02:23 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: object_data -> qdata? In-Reply-To: References: <15126.51607.39215.891459@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Havoc" == Havoc Pennington writes: Havoc> Skip Montanaro writes: >> Where in 1.2 you have >> >> >K_OBJECT (widget)->object_data >> Havoc> Yikes, you shouldn't be using this I don't think. ;-) Havoc> What are you trying to do, maybe we can give you what you should Havoc> be using in that context. I'm just trying to get Tim Janik's Gerd app running under 1.3.5: http://www.gtk.org/~timj/gerd/ I'm trying to take the simplest path possible at this point. I figure if I can get it running, someone else can make it pretty... Skip From zxjdz@21cn.com Fri Jun 1 04:54:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from 21cn.com (unknown [202.104.32.251]) by mail.gnome.org (Postfix) with SMTP id BA3FA2BBE7; Fri, 1 Jun 2001 04:54:03 -0400 (EDT) Received: from zzz([61.165.154.208]) by 21cn.com(AIMC 2.9.5.1) with SMTP id jm03b17bd44; Fri, 01 Jun 2001 16:53:37 +0800 Message-ID: <016601c0ea78$b7e6df70$b100a8c0@Dazheng.com> From: "Zou xiaojun" To: Cc: , References: <010701c0e98c$709e4e10$b100a8c0@Dazheng.com> <3B161431.8049A2F@ng-london.org.uk> Subject: The problem about jpeg solved! Thank you all! Date: Fri, 1 Jun 2001 16:56:13 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: base64 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: aGksDQoNCiAgICBUaGFuayB5b3UgZm9yIHJlcGx5LlRob3NlIGxldHRlcnMgaGVscCBtZSBtdWNo IQ0KDQogICAgTm93IEkgdXNlIGpwZWctNmIgJiBHZGtSR0IgaW1wbGVtZW50aW5nIGl0IHN1Y2Nl c3NmdWxseSENCg0KQmVzdCBSZWdhcmRzDQpab3UNCg== From otaylor@redhat.com Fri Jun 1 09:22:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 68CB72BEF2 for ; Fri, 1 Jun 2001 09:22:30 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 08741242226; Fri, 1 Jun 2001 09:22:29 -0400 (EDT) To: Mark Leisher Cc: gtk-list@gnome.org Subject: Re: Some cut,copy and paste thoughts References: <991197305.7414.7.camel@dhcp-64-104-195-74.cisco.com> <15125.1642.372420.281433@helion.crl.nmsu.edu> <991273192.997.1.camel@dhcp-64-104-195-74.cisco.com> <15126.19119.603419.917486@helion.crl.nmsu.edu> <15126.35568.331688.319880@helion.crl.nmsu.edu> From: Owen Taylor Date: 01 Jun 2001 09:22:29 -0400 In-Reply-To: Mark Leisher's message of "Thu, 31 May 2001 12:18:24 -0600 (MDT)" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Mark Leisher writes: > Owen> I'm not sure why it is working for you, but there AFAIK nothing of > Owen> this nature in the selection protocol as described in the ICCCM, and > Owen> I don't remember implementing it in GTK+ either. > > We must be talking about different things. > > Calling XGetWindowProperty() with a selection and type just returns a buffer > of bytes. If the number of bytes returned is > 0, there is something in the > selection. This is generally sufficient for dynamically setting menu item > sensitivity during a "map_event". Why do you think there will be a property holding the contents of the selection? (What target would it correspond to? Nothing has been requested yet.) Can you point out the place in the ICCCM where this is described? ftp://ftp.x.org/pub/R6.6/xc/doc/hardcopy/ICCCM/icccm.PS.gz Regards, Owen From www-data@emacinc.com Fri Jun 1 10:47:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.emacinc.com (unknown [208.248.202.76]) by mail.gnome.org (Postfix) with ESMTP id B7C4A2E0CD for ; Fri, 1 Jun 2001 10:47:40 -0400 (EDT) Received: from www-data by mail.emacinc.com with local (Exim 3.12 #1 (Debian)) id 155qMZ-0005DD-00 for ; Fri, 01 Jun 2001 09:57:19 -0500 To: gtk-list@gnome.org Subject: error messages From: ngustavson@emacinc.com Reply-To: ngustavson@emacinc.com Cc: X-Mailer: AeroMail (http://the.cushman.net/reverb/aeromail/) Message-Id: Date: Fri, 01 Jun 2001 09:57:19 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: need to be able to suppress error messages while my program is running. Does anyone know how? From hp@redhat.com Fri Jun 1 11:52:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AE0312E8D5 for ; Fri, 1 Jun 2001 11:52:41 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f51FskR21621; Fri, 1 Jun 2001 11:54:46 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: ngustavson@emacinc.com Cc: gtk-list@gnome.org Subject: Re: error messages References: From: Havoc Pennington Date: 01 Jun 2001 11:54:46 -0400 In-Reply-To: ngustavson@emacinc.com's message of "Fri, 01 Jun 2001 09:57:19 -0500" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ngustavson@emacinc.com writes: > need to be able to suppress error messages while my program is running. Does anyone > know how? > Redirect stderr to /dev/null, or you can use g_log_set_handler(). Havoc From king@eiffel.com Fri Jun 1 12:51:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 253F32CDC3 for ; Fri, 1 Jun 2001 12:51:53 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 155s9P-0008Al-00 for gtk-list@gnome.org; Fri, 01 Jun 2001 09:51:51 -0700 Message-ID: <092201c0eabc$37fb2110$750a000a@naples> From: "Ian King" To: Subject: Left Alt and Right Alt Date: Fri, 1 Jun 2001 09:59:27 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there anyway to dynamically query whether a Left Alt key is pressed and not the right, I am using GDK_MOD1_MASK at the moment but this seems to do both. Ian King From hp@redhat.com Fri Jun 1 14:03:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7FA932C7E9 for ; Fri, 1 Jun 2001 14:03:51 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f51I66X12914; Fri, 1 Jun 2001 14:06:06 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Left Alt and Right Alt References: <092201c0eabc$37fb2110$750a000a@naples> From: Havoc Pennington Date: 01 Jun 2001 14:06:06 -0400 In-Reply-To: "Ian King"'s message of "Fri, 1 Jun 2001 09:59:27 -0700" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > Is there anyway to dynamically query whether a Left Alt key is pressed and > not the right, I am using GDK_MOD1_MASK at the moment but this seems to do > both. > If you're using Alt as a modifier, then it will produce broken/surprising behavior for end users if you distinguish these (mod1 doesn't actually even have to be on the keys labeled "Alt", on my system it's only on one of them, etc.). But the basic way you'd do this is to track key press / key release events and keep a flag whether the left/right alt keys are pressed. event->keyval == GDK_Alt_L, event->keyval == GDK_Alt_R. Also some disabled users may be using a "sticky modifiers" feature where they tap alt, release, then tap another key. I'm not sure if you get the key release event before or after the MOD1_MASK flag disappears in this case. Havoc From king@eiffel.com Fri Jun 1 14:08:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 243ED2E308 for ; Fri, 1 Jun 2001 14:08:27 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 155tLV-0002cT-00 for gtk-list@gnome.org; Fri, 01 Jun 2001 11:08:25 -0700 Message-ID: <09a201c0eac6$ea6fe600$750a000a@naples> From: "Ian King" To: Subject: Ctree in scrolled window Date: Fri, 1 Jun 2001 11:16:02 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I place a ctree in a scrollable window (with horizontal and vertical automatic policy) with gtk_container_add, I only get the vertical scrollbar, no matter how wide the ctree is. How do I hack the ctree so that I do not get size allocation errors and so that the horizontal scrollbar is actually shown when required. Ian King From skip@beluga.mojam.com Fri Jun 1 17:08:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 18A622BAC2 for ; Fri, 1 Jun 2001 17:08:56 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id EEF972814; Fri, 1 Jun 2001 16:08:59 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15128.1131.913997.532592@beluga.mojam.com> Date: Fri, 1 Jun 2001 16:08:59 -0500 To: gtk-list@gnome.org Subject: Gerd for Gtk 1.3.x X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I made some progress porting Tim Janik's Gerd program to Gtk 1.3.x. If anyone's interested in the results, let me know and I'll shoot you a context diff. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From jdiago@escher.puj.edu.co Fri Jun 1 19:28:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from escher.puj.edu.co (c3281-136.impsat.com.co [200.32.81.136]) by mail.gnome.org (Postfix) with ESMTP id 7F8E52BAE9 for ; Fri, 1 Jun 2001 19:28:30 -0400 (EDT) Received: from localhost (jdiago@localhost) by escher.puj.edu.co (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id SAA13469; Fri, 1 Jun 2001 18:28:27 -0500 Date: Fri, 1 Jun 2001 18:28:26 -0500 (COT) From: Jose Fernando Diago To: Havoc Pennington Cc: GTK+ List Subject: Question about printing a drawable 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. This question goes to Havoc. I read this message from the GTK+ mailing list archives: >Re: Printing snapshot of a window > From: Havoc Pennington > To: "Tim Betts" > Cc: gtk-app-devel-list gnome org > Subject: Re: Printing snapshot of a window > Date: 01 Jun 2000 13:12:06 -0400 >"Tim Betts" writes: >> Just wondered if anyone knew of a C library or way of programmically >>taking a snapshot of a given X GtkWindow and printing it to a lazer >>printer. I would like to do it all from within the application via a >>print button. Any ideas, references or code would be greatly >>appreciated. >gdk-pixbuf can take a snapshot of a drawable, and gnome-print has a >routine to print a GdkPixbuf. You can copy the code if you don't want >to use the libraries. >Havoc So my question is: What's the gdk-pixbuf? How can I use it? Thanks. Jose. From skip@beluga.mojam.com Fri Jun 1 22:22:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 743972BE13 for ; Fri, 1 Jun 2001 22:22:10 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id AD6AC2814; Fri, 1 Jun 2001 21:22:13 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15128.19924.937913.885668@beluga.mojam.com> Date: Fri, 1 Jun 2001 21:22:12 -0500 To: Jose Fernando Diago Cc: GTK+ List Subject: Re: Question about printing a drawable In-Reply-To: References: X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jose> So my question is: What's the gdk-pixbuf? How can I use it? Gdk-pixbuf is an image manipulation library. The reference manual is at http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/index.html I'm not aware of any tutorial documentation and all the links I could find to Imlib tutorials (gdk-pixbuf's predecessor) seem to be broken. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Fri Jun 1 23:26:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 54AFE2D3D6 for ; Fri, 1 Jun 2001 23:26:33 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f523S0X22341; Fri, 1 Jun 2001 23:28:00 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Jose Fernando Diago Cc: GTK+ List Subject: Re: Question about printing a drawable References: From: Havoc Pennington Date: 01 Jun 2001 23:27:59 -0400 In-Reply-To: Jose Fernando Diago's message of "Fri, 1 Jun 2001 18:28:26 -0500 (COT)" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jose Fernando Diago writes: > > So my question is: What's the gdk-pixbuf? How can I use it? > There's a new app that does exactly this (gdk-pixbuf for screenshots, gnome-print to print): http://lists.eazel.com/pipermail/nautilus-list/2001-May/003389.html Will probably come with the panel sooner or later. Havoc From needles@industrialmusic.com Sun Jun 3 15:32:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from industrialmusic.com (unknown [216.101.163.50]) by mail.gnome.org (Postfix) with ESMTP id AB95B2D45F for ; Sun, 3 Jun 2001 15:32:03 -0400 (EDT) Received: (from needles@localhost) by industrialmusic.com (8.9.3/8.9.3) id MAA10514 for gtk-list@gnome.org; Sun, 3 Jun 2001 12:56:47 -0700 From: "needles@industrialmusic.com" Message-Id: <200106031956.MAA10514@industrialmusic.com> Subject: Programming Help. Determing what line the user clicks in GtkText To: gtk-list@gnome.org Date: Sun, 3 Jun 2001 12:56:47 -0700 (PDT) X-Mailer: ELM [version 2.5 PL3] 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm using gtk+ 1.2.10 on RedHat 7.1. I'm trying to display text in a scrollable window, then get a callback when the user clicks on the text. I did that by using a GtkText widget and connecting it to the "button-press-event" signal. That gives me the callback when I want it, but I can't figure out what line the user clicked on. I tried using the GList textWidget->current_line and counting till I got to the start of the list which almost work. It gave me the previous line that was clicked on. Does anyone have any ideas of the best way to do what I want? I'm not opposed to modifying gtktext.c or using a different widget. I realize that Gtk+2.0 will have a lot of changes in the text area, but I don't know if it is in usable form yet. Some other requirements I need is the ability to highlight different lines. I'm trying to write a TMS320C54x DSP simulator under the GPL license. Thanks for any help Kerry -- Windows 95: n. 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition. From bowman@montana.com Mon Jun 4 00:47:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailA.montana.com (mailA.montana.com [199.2.139.116]) by mail.gnome.org (Postfix) with ESMTP id E08732BA98 for ; Mon, 4 Jun 2001 00:46:59 -0400 (EDT) Received: from odin (mso1-114.montana.com [208.4.224.114]) by mailA.montana.com (8.11.2/8.11.2) with SMTP id f544fOw26028 for ; Sun, 3 Jun 2001 22:41:24 -0600 (MDT) Message-ID: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> From: "bowman" To: Subject: getting a GtkWidget* Date: Sun, 3 Jun 2001 22:46:15 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I haven't been able to hit on quite the right thing in the FAQ or docs. I've been working with glade, which doesn't expose the widgets used in the generated interface.c file. If I have connected a callback to a button click, for instance, and I would like to get the text from an GetEntry widget, is there a graceful way to get a pointer to the entry? It looks like my options are passing a GList of the widget pointers I'll be interested in during the callback, or getting the ancestor container of the button and iterating through the children. Is there anything analogous to XtNameToWidget? thanks. From tvv@sparc.spb.su Mon Jun 4 04:11:58 2001 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 913742DC31 for ; Mon, 4 Jun 2001 04:11:57 -0400 (EDT) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.10.1/8.10.1) with ESMTP id f548BuC02849 for ; Mon, 4 Jun 2001 12:11:56 +0400 (MSD) Received: from sparc.spb.su (norwich.sparc.spb.su [192.168.205.226]) by mail.sparc.spb.su (8.11.3/8.11.1) with ESMTP id f548CZE61308 for ; Mon, 4 Jun 2001 12:12:35 +0400 (MSD) (envelope-from tvv@sparc.spb.su) Message-ID: <3B1B430A.C1BDD77D@sparc.spb.su> Date: Mon, 04 Jun 2001 12:12:58 +0400 From: Vitaly Tishkov 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_tree_view_column_set_min_width (column, 0) segvs Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, The following example segvs. #include int main (int argc, char** argv) { GtkTreeViewColumn* column; gtk_init (&argc, &argv); column = gtk_tree_view_column_new (); gtk_tree_view_column_set_min_width (column, 1); } What am I doing wrong or is it a bug? Thanks, Vitaly. From 4dadio@telkom.net Mon Jun 4 06:46:38 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 3D9AF2BDE3 for ; Mon, 4 Jun 2001 06:46:36 -0400 (EDT) Received: out-mta3.plasa.com; Mon, 04 Jun 2001 17:46:27 +0700 Received: out-mta2.plasa.com; Mon, 04 Jun 2001 17:46:27 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 61793 for ; Mon, 04 Jun 2001 17:46:27 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: problem with gtk_entry_get_text() To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Mon, 04 Jun 2001 17:46:27 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've some problems in gtk+ ver. 1.2.0. Well, I thimk the funtion, gtk_entry_get_text(), make a problem. I can't get any character from entries. dadio From niklas.hoglund@telia.com Mon Jun 4 07:40:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by mail.gnome.org (Postfix) with ESMTP id CBF4F2DE6A for ; Mon, 4 Jun 2001 07:40:56 -0400 (EDT) Received: from d1o828.telia.com (d1o828.telia.com [213.65.100.241]) by mailc.telia.com (8.11.2/8.11.0) with ESMTP id f54BetY06075 for ; Mon, 4 Jun 2001 13:40:55 +0200 (CEST) Received: from zero (h204n1fls33o828.telia.com [213.65.102.204]) by d1o828.telia.com (8.10.2/8.10.1) with ESMTP id f54Betb28805 for ; Mon, 4 Jun 2001 13:40:55 +0200 (CEST) Received: from niklas by zero with local (Exim 3.22 #1 (Debian)) id 156sjE-0001FW-00 for ; Mon, 04 Jun 2001 13:41:00 +0200 Date: Mon, 4 Jun 2001 13:41:00 +0200 To: gtk-list@gnome.org Subject: Drawing in window gives it focus in win32 Message-ID: <20010604134059.A4790@mail.canit.se> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.18i From: Niklas Hoglund Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems that whenever I draw in a custom widget and whenever I add items to a clist the GTK window containing it gets keyboard focus. This is unbearable as it happens in a window containing a status display which monitors actions that happen in the background. During background activities this renders the machine practically unusable. This happens on Windows NT. I don't know if it happens on other systems. What can I do about this? I have code to draw the relevant things using native windows calls, but I'd rather use GTK/GDK. -- Niklas From bowman@montana.com Mon Jun 4 09:28:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailB.montana.com (mailB.montana.com [199.2.139.117]) by mail.gnome.org (Postfix) with ESMTP id 02D0D2D2DB for ; Mon, 4 Jun 2001 09:28:47 -0400 (EDT) Received: from odin (mso1-163.montana.com [208.4.224.163]) by mailB.montana.com (8.11.2/8.11.2) with SMTP id f54DMIS00860; Mon, 4 Jun 2001 07:22:30 -0600 (MDT) Message-ID: <004101c0ecfa$31228960$0100a8c0@mshome.net> From: "bowman" To: "dodi-nug" <4dadio@telkom.net>, References: Subject: Re: problem with gtk_entry_get_text() Date: Mon, 4 Jun 2001 07:27:53 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "dodi-nug" <4dadio@telkom.net> > > Well, I thimk the funtion, gtk_entry_get_text(), make a > problem. > I can't get any character from entries. The docs say this is a deprecated function. Why don't you try: something like: msg = gtk_editable_get_chars ((GtkEditable*) msg_text, 0, -1); where 0 is the start_pos, and -1 the default 'get everything' end_pos. From rbultje@ronald.bitfreak.net Mon Jun 4 09:36:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 66AD92DFC3 for ; Mon, 4 Jun 2001 09:36:40 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f54ELCC13549 for ; Mon, 4 Jun 2001 16:21:12 +0200 (CEST) From: "Ronald Bultje" To: Subject: wait for a condition to be satisfied Date: Mon, 4 Jun 2001 15:42:41 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, I'm looking for a function which returns if a certain condition is satisfied. I'm now using: /* now, we need to pause until scene detection is done */ while (scene_detection_reply == 1) usleep(100000); but this is ugly (imho, that is ;-) ). Is there something like waitfor(scenedetection != 1) in Gtk, glib or anything? Secondly, sleep() (and usleep()) are not thread-safe, are they? is there anything thread-safe as a replacement for sleep()? (I heard about g_sleep but "grep -r g_sleep /usr/include/*" gives no results) Regards and thanks in advance, Ronald Bultje From sven@gimp.org Mon Jun 4 10:03:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A1A.dip.t-dialin.net [217.80.26.26]) by mail.gnome.org (Postfix) with ESMTP id B163D2BC79 for ; Mon, 4 Jun 2001 10:03:42 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 156urP-0001as-00; Mon, 04 Jun 2001 15:57:35 +0200 To: "Ronald Bultje" Cc: Subject: Re: wait for a condition to be satisfied References: From: Sven Neumann Date: 04 Jun 2001 15:57:35 +0200 In-Reply-To: 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "Ronald Bultje" writes: > I'm looking for a function which returns if a certain condition is > satisfied. since you seem to be using threads, why not use pthread_cond_wait() ? Salut, Sven From hoshem@mel.comcen.com.au Mon Jun 4 10:47:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem056.mnementh.comcen.com.au [203.23.238.115]) by mail.gnome.org (Postfix) with ESMTP id A292D2BA99 for ; Mon, 4 Jun 2001 10:47:48 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f54ExrT11518; Tue, 5 Jun 2001 00:59:53 +1000 Date: Tue, 5 Jun 2001 00:59:53 +1000 From: Helmethead To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: wait for a condition to be satisfied Message-ID: <20010605005953.A11070@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , gtk-list@gnome.org 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 rbultje@ronald.bitfreak.net on Mon, Jun 04, 2001 at 03:42:41PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 04, 2001 at 03:42:41PM +0200, Ronald Bultje wrote: > Hi there, > > I'm looking for a function which returns if a certain condition is > satisfied. I'm now using: > > /* now, we need to pause until scene detection is done */ > while (scene_detection_reply == 1) > usleep(100000); > > but this is ugly (imho, that is ;-) ). Is there something like > waitfor(scenedetection != 1) in Gtk, glib or anything? Well in a normal program this kind of problem doesn't come up, since it has a single thread of execution. It does in threaded programs though, and pthreads condition variables probably fit the bill nicely ;) If your code snippet is waiting for something even more external to modify the variable (variable lives in shared memory perhaps), then you'd have to roll your own mechanism from pipes or signals or something. If you don't wanna poll (sleep,test,sleep,test etc), it basically comes down to getting the thread that changed the variable, to notify the thread that's waiting for the variable to be changed. > Secondly, sleep() (and usleep()) are not thread-safe, are they? is there > anything thread-safe as a replacement for sleep()? (I heard about g_sleep > but "grep -r g_sleep /usr/include/*" gives no results) Dahm, I heard something like this but I can't remember or find anything in the pthreads docs. I don't program in threads.. I can do a better job of scheduling my simultaneous tasks than the linux kernel any day ;-) From loban@ugcs.caltech.edu Mon Jun 4 10:53:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from spew.ugcs.caltech.edu (spew.ugcs.caltech.edu [131.215.43.154]) by mail.gnome.org (Postfix) with ESMTP id 26B8D2E18E for ; Mon, 4 Jun 2001 10:53:39 -0400 (EDT) Received: by spew.ugcs.caltech.edu (Postfix, from userid 9289) id DBA902446E; Mon, 4 Jun 2001 07:53:37 -0700 (PDT) Date: Mon, 4 Jun 2001 07:53:37 -0700 From: Loban Amaan Rahman To: bowman Cc: gtk-list@gnome.org Subject: Re: getting a GtkWidget* Message-ID: <20010604075337.A12312@spew.ugcs.caltech.edu> References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net>; from bowman@montana.com on Sun, Jun 03, 2001 at 10:46:15PM -0600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes, but in order to do this you need to use libglade to dynamically load the XML file at runtime to create the widgets. You can give each widget a name, and then call glade_xml_get_widget(GladeXML *self, char *name) to get a pointer to the GtkWidget. If you aren't using libglade, but having glade pregenerate the code for you, i'm not perfectly sure what the proper solution is. Loban. > I haven't been able to hit on quite the right thing in the FAQ or docs. I've > been working with glade, which doesn't expose the widgets used in the > generated interface.c file. If I have connected a callback to a button > click, for instance, and I would like to get the text from an GetEntry > widget, is there a graceful way to get a pointer to the entry? > > It looks like my options are passing a GList of the widget pointers I'll be > interested in during the callback, or getting the ancestor container of the > button and iterating through the children. > > Is there anything analogous to XtNameToWidget? /-------------------------------------------------------------------\ | Loban Amaan Rahman <-- anagram of --> Aha! An Abnormal Man! | | loban@earthling.net, loban@ugcs.caltech.edu, http://i.am/loban | \-------------------------------------------------------------------/ From edsonlima@magnumsa.com.br Mon Jun 4 14:21:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ncc1701.magnumsa.com.br (unknown [200.189.50.122]) by mail.gnome.org (Postfix) with ESMTP id 57F862DC17 for ; Mon, 4 Jun 2001 14:21:44 -0400 (EDT) Received: from edson (edson.magnumsa.com.br [172.16.0.121]) by ncc1701.magnumsa.com.br (8.9.3/8.9.3) with SMTP id PAA10470 for ; Mon, 4 Jun 2001 15:26:04 -0300 Posted-Date: Mon, 4 Jun 2001 15:26:04 -0300 Message-ID: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Reply-To: "Edson Lima" From: "Edson Lima" To: Subject: GTK+ with PHP Date: Mon, 4 Jun 2001 15:18:00 -0300 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like to know somebody already knows some thing of GTK+ with PHP. From hp@redhat.com Mon Jun 4 14:49:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0F0F52BAC0 for ; Mon, 4 Jun 2001 14:49:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f54IpUv05371; Mon, 4 Jun 2001 14:51:30 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Vitaly Tishkov Cc: gtk-list@gnome.org Subject: Re: gtk_tree_view_column_set_min_width (column, 0) segvs References: <3B1B430A.C1BDD77D@sparc.spb.su> From: Havoc Pennington Date: 04 Jun 2001 14:51:30 -0400 In-Reply-To: Vitaly Tishkov's message of "Mon, 04 Jun 2001 12:12:58 +0400" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vitaly Tishkov writes: > > #include > int > main (int argc, char** argv) > { > GtkTreeViewColumn* column; > > gtk_init (&argc, &argv); > > column = gtk_tree_view_column_new (); > gtk_tree_view_column_set_min_width (column, 1); > } > > What am I doing wrong or is it a bug? > Probably a bug, looks reasonable to me. Havoc From skip@beluga.mojam.com Mon Jun 4 15:23:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id C46A02E318 for ; Mon, 4 Jun 2001 15:23:57 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id D3C5B2813; Mon, 4 Jun 2001 14:23:58 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15131.57422.598775.865140@beluga.mojam.com> Date: Mon, 4 Jun 2001 14:23:58 -0500 To: gtk-list@gnome.org Subject: themes & key bindings? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen Taylor's theme architecture guide: http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html doesn't mention key/button bindings at all. Do themes only deal with the visual aspects of the user interface? If I create a new widget for an application, what hooks (if any) do I need to provide to make it "themeable"? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From erik@turner.org Mon Jun 4 15:36:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c000.snv.cp.net (c000-h000.c000.snv.cp.net [209.228.32.64]) by mail.gnome.org (Postfix) with SMTP id 5F4C92DC1E for ; Mon, 4 Jun 2001 15:32:58 -0400 (EDT) Received: (cpmta 24969 invoked from network); 4 Jun 2001 12:32:57 -0700 Received: from cpe-66-1-218-98.fl.sprintbbd.net (HELO ECTGateway) (66.1.218.98) by smtp.turner.org (209.228.32.64) with SMTP; 4 Jun 2001 12:32:57 -0700 X-Sent: 4 Jun 2001 19:32:57 GMT Message-ID: <012c01c0ed2c$de7c35c0$6664a8c0@riocasa> From: "Erik Turner" To: References: <15131.57422.598775.865140@beluga.mojam.com> Subject: Drop down signal for GtkCombo Date: Mon, 4 Jun 2001 15:30:52 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've got a GtkCombo and I would like to see a signal for the dropdown event so that I can refresh the dropdown list before it's displayed. Is there an easy way to do this? Thanks in advance, Erik Turner From 4dadio@telkom.net Mon Jun 4 18:26:09 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 9D3EE2CFD8 for ; Mon, 4 Jun 2001 18:26:07 -0400 (EDT) Received: out-mta3.plasa.com; Tue, 05 Jun 2001 05:26:01 +0700 Received: out-mta2.plasa.com; Tue, 05 Jun 2001 05:26:01 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 289900; Tue, 05 Jun 2001 05:26:01 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: Re: problem with gtk_entry_get_text() To: "bowman" Cc: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Tue, 05 Jun 2001 05:26:01 +0700 Message-ID: In-Reply-To: <004101c0ecfa$31228960$0100a8c0@mshome.net> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: erouter=gtk_entry_new(); gtk_widget_show(erouter); gtk_box_pack_start(GTK_BOX(hbox1),erouter,TRUE,TRUE,0); isi = gtk_editable_get_chars(GTK_EDITABLE(erouter),0,-1); gtk_editable_chars cause the same problem with gtk_entry_get_text() On Mon, 4 Jun 2001 07:27:53 -0600 "bowman" wrote: > > From: "dodi-nug" <4dadio@telkom.net> > > > > Well, I thimk the funtion, gtk_entry_get_text(), make a > > problem. > > I can't get any character from entries. > > The docs say this is a deprecated function. Why don't you > try: > something like: > > msg = gtk_editable_get_chars ((GtkEditable*) msg_text, > 0, -1); > > where 0 is the start_pos, and -1 the default 'get > everything' end_pos. > > From damon@ximian.com Mon Jun 4 18:49:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id D78E22E3B8 for ; Mon, 4 Jun 2001 18:49:56 -0400 (EDT) Received: from ximian.com (IDENT:damon@karuna.ximian.com [141.154.95.114]) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id SAA24045; Mon, 4 Jun 2001 18:49:50 -0400 Message-ID: <3B1C1014.798F27BA@ximian.com> Date: Mon, 04 Jun 2001 18:47:48 -0400 From: Damon Chaplin X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: bowman Cc: gtk-list@gnome.org Subject: Re: getting a GtkWidget* References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: bowman wrote: > > I haven't been able to hit on quite the right thing in the FAQ or docs. I've > been working with glade, which doesn't expose the widgets used in the > generated interface.c file. If I have connected a callback to a button > click, for instance, and I would like to get the text from an GetEntry > widget, is there a graceful way to get a pointer to the entry? > > It looks like my options are passing a GList of the widget pointers I'll be > interested in during the callback, or getting the ancestor container of the > button and iterating through the children. > > Is there anything analogous to XtNameToWidget? Glade outputs a lookup_widget() function in support.c that you can use. See the FAQ on http://glade.gnome.org Damon From hp@redhat.com Mon Jun 4 21:22:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8141C2BAB6 for ; Mon, 4 Jun 2001 21:22:41 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f551PB128575; Mon, 4 Jun 2001 21:25:11 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: themes & key bindings? References: <15131.57422.598775.865140@beluga.mojam.com> From: Havoc Pennington Date: 04 Jun 2001 21:25:11 -0400 In-Reply-To: Skip Montanaro's message of "Mon, 4 Jun 2001 14:23:58 -0500" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > Owen Taylor's theme architecture guide: > > http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html > > doesn't mention key/button bindings at all. Do themes only deal with the > visual aspects of the user interface? Yes. Keybindings are done with GtkBindingSet. GTK 2 uses binding set fairly extensively, so there are lots of examples in the source. > If I create a new widget for an application, what hooks (if any) do I need > to provide to make it "themeable"? Draw with colors in widget->style, be sure any computations based on widget->style are recalculated either on size_request/size_allocate or in a style_set handler, use the gtk_paint_ routines to draw rather than gdk_draw_ whenever a gtk_paint_ routine is appropriate. Again, many examples in GTK source. Havoc From switk@yahoo.com Mon Jun 4 22:30:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx08.cluster1.charter.net (dc-mx08.cluster0.hsacorp.net [209.225.8.18]) by mail.gnome.org (Postfix) with ESMTP id 1D3DD2BDFD for ; Mon, 4 Jun 2001 22:30:50 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx08.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 7106414; Mon, 04 Jun 2001 22:36:44 -0400 Subject: Re: GTK+ with PHP From: Stephen Witkop To: Edson Lima Cc: gtk-list@gnome.org In-Reply-To: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> References: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Jun 2001 22:30:45 -0400 Message-Id: <991708249.27473.0.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: http://gtk.php.net Stephen On 04 Jun 2001 15:18:00 -0300, Edson Lima wrote: > Hello, > I would like to know somebody already knows some thing of GTK+ with PHP. > From bowman@montana.com Mon Jun 4 23:18:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailC.montana.com (mailC.montana.com [199.2.139.118]) by mail.gnome.org (Postfix) with ESMTP id F03A22BAB6 for ; Mon, 4 Jun 2001 23:18:03 -0400 (EDT) Received: from odin (mso1-76.montana.com [208.4.224.76]) by mailC.montana.com (8.11.2/8.11.2) with SMTP id f553CI211221 for ; Mon, 4 Jun 2001 21:12:20 -0600 (MDT) Message-ID: <004d01c0ed6e$20d9bd20$4ce004d0@mshome.net> From: "bowman" To: References: <00be01c0ecb1$5df863e0$0100a8c0@mshome.net> <3B1C1014.798F27BA@ximian.com> Subject: Re: getting a GtkWidget* Date: Mon, 4 Jun 2001 21:17:55 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "Damon Chaplin" > > Glade outputs a lookup_widget() function in support.c that you can use. Thanks. I eventually worked my way down to the Glade FAQ in the tarball. I was looking for something native to Gtk, where the lookup_widget depends on Glade sticking the name/pointer pair into the top level widget and later retrieving it. It certainly works. I'm a little sensitive about user data; I work with a suite of Motif apps that go back almost 10 years -- appending data to a widget has be used and abused over those years to the point you never know just what might be lurking in some widget. From bowman@montana.com Mon Jun 4 23:24:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from maild.montana.com (mailD.montana.com [199.2.139.119]) by mail.gnome.org (Postfix) with ESMTP id 5EBF12BABF for ; Mon, 4 Jun 2001 23:24:44 -0400 (EDT) Received: from odin (mso1-76.montana.com [208.4.224.76]) by maild.montana.com (8.11.2/8.11.2) with SMTP id f553oUB04390 for ; Mon, 4 Jun 2001 21:50:30 -0600 (MDT) Message-ID: <005a01c0ed6f$0f58bb40$4ce004d0@mshome.net> From: "bowman" To: References: <20010605005953.A11070@BuffyRox.localdomain> Subject: Re: wait for a condition to be satisfied Date: Mon, 4 Jun 2001 21:24:38 -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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: "Helmethead" > > Secondly, sleep() (and usleep()) are not thread-safe, are they? is there > > anything thread-safe as a replacement for sleep()? (I heard about g_sleep > > but "grep -r g_sleep /usr/include/*" gives no results) > > Dahm, I heard something like this but I can't remember or find anything in the pthreads docs. I don't program in threads.. I can do a better job of scheduling my simultaneous tasks than the linux kernel any day ;-) for what it's worth, nanosleep() is the usual thread-safe sleep. it works a little differently, but the man nanosleep page should clarify it. From chris.l.pettit@lmco.com Tue Jun 5 08:38:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailgw1a.lmco.com (mailgw1a.lmco.com [192.31.106.7]) by mail.gnome.org (Postfix) with ESMTP id C2DD02BE02 for ; Tue, 5 Jun 2001 08:38:19 -0400 (EDT) Received: from emss02g01.ems.lmco.com (relay2.ems.lmco.com [166.29.2.54]) by mailgw1a.lmco.com (8.8.8/8.8.8) with ESMTP id GAA02523 for ; Tue, 5 Jun 2001 06:38:19 -0600 (MDT) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-33 #38887) id <0GEG00H01J3UOR@lmco.com> for gtk-list@gnome.org; Tue, 5 Jun 2001 06:38:18 -0600 (MDT) Received: from emss06m01.ems.lmco.com ([134.5.45.74]) by lmco.com (PMDF V5.2-33 #38887) with ESMTP id <0GEG00ECWJ3QCG@lmco.com> for gtk-list@gnome.org; Tue, 05 Jun 2001 06:38:14 -0600 (MDT) Received: by emss06m01.ems.lmco.com with Internet Mail Service (5.5.2653.19) id ; Tue, 05 Jun 2001 08:38:19 -0400 Content-return: allowed Date: Tue, 05 Jun 2001 08:38:13 -0400 From: "Pettit, Chris L" Subject: Need a 3D diagram of Gtk window stack up for presentation tomorro w (6/6) To: "Gtk-List (E-mail)" Message-id: MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Help !! I'm assembling a presentation on open source GUI development. Recently, i saw a schematic 3D stack-up diagram for the gtk window elements and structure ... and didn't save it. ( Yes, i should know better. A classic lesson from running scanning electron microscopes +20 yrs ) Well, now I can't find it. I was hoping someone could point me to a similar source. I'm pretty sure it was at one of the gtk sites... but, I am getting older ;-). The presentation is tomorrow and I'd really like to have this to talk about. Thx, chris ====================================== Chris Pettit Aircraft Vehicle Integration Facility Embedded Systems Programming * Lockheed Martin Aeronautics Company D/6H52 Z/0698 86 South Cobb Drive Marietta, GA 30063-0698 * Chris.L.Pettit@lmco.com * 770-793-2595 (Voice) * 770-793-2001 (FAX) ====================================== "They have computers, and they may have other weapons of mass destruction." - Janet Reno "If you think there's a solution, you're a part of the problem." - George Carlin ====================================== From jrb@redhat.com Mon Jun 4 14:54:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aware-of-vacuity.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 94CE52DE1F for ; Mon, 4 Jun 2001 14:54:31 -0400 (EDT) Received: (from jrb@localhost) by aware-of-vacuity.labs.redhat.com (8.11.2/8.11.2) id f54IrMH10144; Mon, 4 Jun 2001 14:53:22 -0400 X-Authentication-Warning: aware-of-vacuity.labs.redhat.com: jrb set sender to jrb@redhat.com using -f To: gtk-list@gnome.org Cc: Vitaly Tishkov Subject: Re: [Vitaly Tishkov ] gtk_tree_view_column_set_min_width (column, 0) segvs References: X-URL: From: Jonathan Blandford Date: 04 Jun 2001 14:53:22 -0400 In-Reply-To: Message-ID: Lines: 24 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vitaly Tishkov Writes: > Hi, > > The following example segvs. > > > #include > int > main (int argc, char** argv) > { > GtkTreeViewColumn* column; > > gtk_init (&argc, &argv); > > column = gtk_tree_view_column_new (); > gtk_tree_view_column_set_min_width (column, 1); > } > > What am I doing wrong or is it a bug? It's a bug. I'm fixing it now. -Jonathan From mnatsu@cicese.mx Tue Jun 5 08:03:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 98CD42DF49 for ; Tue, 5 Jun 2001 08:03:02 -0400 (EDT) Received: from matrix.cicese.mx (matrix.cicese.mx [158.97.23.247]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f55C31f25139 for ; Tue, 5 Jun 2001 05:03:01 -0700 (PDT) Received: (from mnatsu@localhost) by matrix.cicese.mx (8.9.3+Sun/8.9.1) id FAA26163; Tue, 5 Jun 2001 05:03:00 -0700 (PDT) Date: Tue, 5 Jun 2001 05:02:58 -0700 (PDT) From: Masaru Natsu Cardenas To: gtk-list@gnome.org Subject: Help 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello i'm new in the gtk programming subject.. i ave only 3 days programming in Gtk and im trayng to make a simple prog: i'm trayng to open a xpm file and dsiplay it into a window and thats all. if anyone know where i can found some code .. to read and learn.. it will be very usefull thanks.. Hello from Mexico =) From jiang.xu@echostar.com Tue Jun 5 11:31:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 0B4102BBB2 for ; Tue, 5 Jun 2001 11:31:10 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA02991 for ; Tue, 5 Jun 2001 11:31:09 -0400 Received: from linux0.echostar.com (w146-253.echostar.com [205.172.146.253]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f55FTTb04256 for ; Tue, 5 Jun 2001 11:29:29 -0400 Received: from echostar.com (linux7.echostar.com [10.79.98.107]) by linux0.echostar.com (Postfix) with ESMTP id 64F7979085; Tue, 5 Jun 2001 09:30:45 -0600 (MDT) Message-ID: <3B1CFB25.B8676254@echostar.com> Date: Tue, 05 Jun 2001 09:30:45 -0600 From: Jiang XU X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.4.0 i686) X-Accept-Language: zh-CN, en MIME-Version: 1.0 To: "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" Subject: where I can find more API information about GdkImlib Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Guys, I try to use GdkImlib to load transparent pixmap, such as using gdk_imlib_XXX calls. I wonder where I can find more API document about GdkImlib? Thanks Jiang From rhfreeman@micron.com Tue Jun 5 12:10:43 2001 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 007A12BDFD for ; Tue, 5 Jun 2001 12:10:42 -0400 (EDT) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.9.2/8.9.2) with ESMTP id KAA11080 for ; Tue, 5 Jun 2001 10:10:42 -0600 (MDT) Received: from ntexchange01.micron.com (ntexchange01 [137.201.104.84]) by mail-srv1.micron.com (8.9.2/8.9.2) with ESMTP id KAA11054 for ; Tue, 5 Jun 2001 10:10:41 -0600 (MDT) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Tue, 5 Jun 2001 10:10:40 -0600 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: Compiling GTK apps with Sun's Forte compiler Date: Tue, 5 Jun 2001 10:10:31 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, Sun's compiler doesn't seem to get on with GTK too well. Anyone got any ideas what I can do to change this rather odd behaviour? /opt/SUNWspro/bin/../WS6U1/bin/cc -g -mt -xCC -c -I. -I/opt/gnu/include -I/opt/gnu/include/glib -I/opt/gnu/lib/glib/include -I/usr/openwin/include -I/usr/dt/include -o output/rwaves2-filehandler.o rwaves2-filehandler.c *** Error code 2 "/opt/gnu/include/glib.h", line 1554: undefined or not a type: inline "/opt/gnu/include/glib.h", line 1555: parameter not in identifier list: g_bit_nth_lsf "/opt/gnu/include/glib.h", line 1557: only "register" valid as formal parameter storage class "/opt/gnu/include/glib.h", line 1557: parameter not in identifier list: inline "/opt/gnu/include/glib.h", line 1557: syntax error before or at: gint "/opt/gnu/include/glib.h", line 1560: parameter not in identifier list: g_bit_nth_lsf "/opt/gnu/include/glib.h", line 1560: parameter not in identifier list: __func__ "/opt/gnu/include/glib.h", line 1560: cannot initialize parameter: __func__ "/opt/gnu/include/glib.h", line 1563: undefined symbol: nth_bit "/opt/gnu/include/glib.h", line 1564: undefined symbol: mask "/opt/gnu/include/glib.h", line 1567: undefined symbol: nth_bit "/opt/gnu/include/glib.h", line 1569: warning: statement not reached "/opt/gnu/include/glib.h", line 1569: cannot recover from previous errors : cc: acomp failed for rwaves2-filehandler.c dmake: Fatal error: Command failed for target `output/rwaves2-filehandler.o' Thanks! Rich From skip@beluga.mojam.com Tue Jun 5 12:40:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 345FF2E469 for ; Tue, 5 Jun 2001 12:40:25 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id E64FC2818; Tue, 5 Jun 2001 11:40:24 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.2936.859775.496672@beluga.mojam.com> Date: Tue, 5 Jun 2001 11:40:24 -0500 To: gtk-list@gnome.org Subject: adjustment property on scales and scrollbars get/set methods on range X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: According to the 2.0 reference manual the GtkHScale, GtkVScale, GtkHScrollbar and GtkVScrollbar classes all define an adjustment property, but get_adjustment and set_adjustment methods are defined at the GtkRange level. Is this an inconsistency in the documentation or do each of the scale and scrollbar classes define adjustment properties? If they do, why isn't this defined at the level of the GtkRange class instead? -- Skip Montanaro (skip@pobox.com) (847)971-7098 From skip@beluga.mojam.com Tue Jun 5 12:58:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id E364D2E482 for ; Tue, 5 Jun 2001 12:58:06 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 4B71D2818; Tue, 5 Jun 2001 11:58:06 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.3998.127554.140938@beluga.mojam.com> Date: Tue, 5 Jun 2001 11:58:06 -0500 To: rhfreeman Cc: "'gtk-list@gnome.org'" Subject: Re: Compiling GTK apps with Sun's Forte compiler In-Reply-To: References: X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Rich> Sun's compiler doesn't seem to get on with GTK too well. ... Rich> "/opt/gnu/include/glib.h", line 1554: undefined or not a type: inline For starters it looks like it doesn't understand the "inline" keyword. I'd check a few things: 1. Make sure that configure used the Sun compiler when it ran. 2. Check the various inline-related defines in config.h: /* Have __inline keyword */ #define G_HAVE___INLINE 1 /* Have __inline__ keyword */ #define G_HAVE___INLINE__ 1 /* Have inline keyword */ #define G_HAVE_INLINE 1 If you comment them out does the situation improve? 3. Delete config.cache and try reconfiguring. If it insists on using gcc, set the (I think) CC environment variable explicitly. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Tue Jun 5 14:40:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 669D52E4A4 for ; Tue, 5 Jun 2001 14:38:10 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f55IeYV02037; Tue, 5 Jun 2001 14:40:34 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: rhfreeman Cc: "'gtk-list@gnome.org'" Subject: Re: Compiling GTK apps with Sun's Forte compiler References: From: Havoc Pennington Date: 05 Jun 2001 14:40:34 -0400 In-Reply-To: rhfreeman's message of "Tue, 5 Jun 2001 10:10:31 -0600" Message-ID: Lines: 11 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: rhfreeman writes: > > Sun's compiler doesn't seem to get on with GTK too well. Anyone got any > ideas what I can do to change this rather odd behaviour? You have to build GLib apps with the same compiler used to build GLib, since GLib uses compiler-specific features according to compile-time checks. That might explain it. Havoc From hp@redhat.com Tue Jun 5 14:41:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7499A2DC11 for ; Tue, 5 Jun 2001 14:41:02 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f55IhUC02040; Tue, 5 Jun 2001 14:43:30 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: adjustment property on scales and scrollbars get/set methods on range References: <15133.2936.859775.496672@beluga.mojam.com> From: Havoc Pennington Date: 05 Jun 2001 14:43:30 -0400 In-Reply-To: Skip Montanaro's message of "Tue, 5 Jun 2001 11:40:24 -0500" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > According to the 2.0 reference manual the GtkHScale, GtkVScale, > GtkHScrollbar and GtkVScrollbar classes all define an adjustment property, > but get_adjustment and set_adjustment methods are defined at the GtkRange > level. Is this an inconsistency in the documentation or do each of the > scale and scrollbar classes define adjustment properties? If they do, why > isn't this defined at the level of the GtkRange class instead? > It is at the GtkRange level in the code, I'm not sure what's up with the docs. Havoc From cone@moritz.mine.nu Tue Jun 5 15:24:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prototype (pD9012D3D.dip.t-dialin.net [217.1.45.61]) by mail.gnome.org (Postfix) with ESMTP id 8F1992CC48 for ; Tue, 5 Jun 2001 15:24:48 -0400 (EDT) Received: from cone by prototype with local (Exim 3.22 #1 (Debian)) id 157OJL-0000Ap-00 for ; Tue, 05 Jun 2001 23:24:23 +0200 Date: Tue, 5 Jun 2001 23:24:22 +0200 From: Moritz Angermann To: gtk-list@gnome.org Subject: Re: GTK+ with PHP Message-ID: <20010605232422.B537@prototype> References: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <004501c0ed22$b074f5e0$790010ac@magnumsa.com.br>; from edsonlima@magnumsa.com.br on Mon, Jun 04, 2001 at 20:18:00 +0200 X-Mailer: Balsa 1.0.pre5 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: yea i do, my latest project is a PHP / GTK based Napster Client ... On Mon, 04 Jun 2001 20:18:00 Edson Lima wrote: > Hello, > I would like to know somebody already knows some thing of GTK+ with PHP. > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > From skip@beluga.mojam.com Tue Jun 5 15:35:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 2990E2DC11 for ; Tue, 5 Jun 2001 15:35:33 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 976BA2819; Tue, 5 Jun 2001 14:35:32 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.13444.459493.270927@beluga.mojam.com> Date: Tue, 5 Jun 2001 14:35:32 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: adjustment property on scales and scrollbars get/set methods on range In-Reply-To: References: <15133.2936.859775.496672@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> According to the 2.0 reference manual the GtkHScale, GtkVScale, >> GtkHScrollbar and GtkVScrollbar classes all define an adjustment >> property, but get_adjustment and set_adjustment methods are defined >> at the GtkRange level. Havoc> It is at the GtkRange level in the code, I'm not sure what's up Havoc> with the docs. I went to file a bug report and discovered I was in error. I was referring to a local snapshot of the 2.0 docs I took in late April. It looks like the current docs on developer.gnome.org are correct. Skip From 4dadio@telkom.net Tue Jun 5 17:29:46 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 35A2B2BDDA for ; Tue, 5 Jun 2001 17:25:14 -0400 (EDT) Received: out-mta3.plasa.com; Wed, 06 Jun 2001 04:25:06 +0700 Received: out-mta2.plasa.com; Wed, 06 Jun 2001 04:25:06 +0700 Received: from [192.168.19.55] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 640545 for ; Wed, 06 Jun 2001 04:25:05 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: gtk_editable_get_chars=gtk_entry_get_text To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Wed, 06 Jun 2001 04:25:05 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: i failed to get text from entry text's widget, it seem that in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html) doesn't work too. i have tried gtk_editable_get_chars ( Mr. bowman's advise), but i didn't work too. so i need advise from all of you guys thanks dadio From mathew@fugue.jpl.nasa.gov Tue Jun 5 19:38:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ampersand.jpl.nasa.gov (ampersand.jpl.nasa.gov [137.78.28.29]) by mail.gnome.org (Postfix) with ESMTP id E73D52E107 for ; Tue, 5 Jun 2001 19:38:33 -0400 (EDT) Received: from fugue.jpl.nasa.gov (fugue.jpl.nasa.gov [137.78.28.46]) by ampersand.jpl.nasa.gov (8.9.3/8.9.3/RSE-jhk-1.15) with ESMTP id QAA19531 for ; Tue, 5 Jun 2001 16:38:29 -0700 (PDT) Received: from fugue.jpl.nasa.gov (localhost [127.0.0.1]) by fugue.jpl.nasa.gov (8.9.1a/8.9.1/JPLRsol2.jhk-1.7a) with ESMTP id QAA11326 for ; Tue, 5 Jun 2001 16:38:27 -0700 (PDT) Message-Id: <200106052338.QAA11326@fugue.jpl.nasa.gov> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.3 #8[UCI] To: gtk-list@gnome.org Subject: gtk.themes.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 05 Jun 2001 16:38:27 -0700 From: Mathew Yeates Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Has been down for awhile. Anybody know why and when it's going to be back up? Mathew From king@eiffel.com Tue Jun 5 20:05:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 5FE782BCB1 for ; Tue, 5 Jun 2001 20:05:36 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 157QpH-0001RE-00 for gtk-list@gnome.org; Tue, 05 Jun 2001 17:05:31 -0700 Message-ID: <06ca01c0ee1d$6ede5260$750a000a@naples> From: "Ian King" To: Subject: Removing a selected list item from a combo box Date: Tue, 5 Jun 2001 17:12:54 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way that a listitem can remove itself from a combo box on its selection without the application seg faulting. Thanks for your time Ian King From Adam.K@klografx.de Tue Jun 5 11:38:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id A6E6A2DFFD for ; Tue, 5 Jun 2001 11:38:11 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA04516 for ; Tue, 5 Jun 2001 11:38:11 -0400 Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f55FaUb04913 for ; Tue, 5 Jun 2001 11:36:30 -0400 Received: from [195.20.224.208] (helo=mrvdom01.schlund.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 157IuD-0003xQ-00; Tue, 5 Jun 2001 17:38:05 +0200 Received: from p3e9e004a.dip.t-dialin.net ([62.158.0.74] helo=klografx.de) by mrvdom01.schlund.de with smtp (Exim 2.12 #2) id 157ItA-0004hx-00; Tue, 5 Jun 2001 17:37:00 +0200 From: Adam Kopacz To: jiang.xu@echostar.com Cc: gtk-app-devel-list@gnome.org, gtk-list@redhat.com Subject: Re: where I can find more API information about GdkImlib In-Reply-To: <3B1CFB25.B8676254@echostar.com> Organization: kLoGraFX Network Date: Tue, 05 Jun 2001 17:37:29 +0200 (CEST) X-Mailer: XCmail 1.3 - with PGP support, PGP engine version 0.5 (Linux) X-Mailerorigin: http://www.fsai.fh-trier.de/~schmitzj/Xclasses/XCmail/ MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-Id: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Reply to eMail from 'jiang.xu@echostar.com' about 'where I can find more API information about GdkImlib' Hi Jiang XU, > I try to use GdkImlib to load transparent pixmap, such as using > gdk_imlib_XXX calls. > I wonder where I can find more API document about GdkImlib? there is a html-file in the imlib.tgz.. you can download it from my www.klografx.net/qiv/ site.. -- Adam Kopacz kLoGraFX Network Kieselgrund 39 http://klografx.de/ D-68239 Mannheim http://kopacz.de/ ___________________________________________________________ Tel: 06214816775 - Mobil: 01736602174 - ICQ UIN: 257499 From hoshem@mel.comcen.com.au Tue Jun 5 22:42:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 0B0EB2DBD1 for ; Tue, 5 Jun 2001 22:42:48 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id WAA09671 for ; Tue, 5 Jun 2001 22:42:47 -0400 Received: from BuffyRox.localdomain (modem039.mnementh.comcen.com.au [203.23.238.98]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f562f5b02815 for ; Tue, 5 Jun 2001 22:41:05 -0400 Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5604Jj17107; Wed, 6 Jun 2001 10:04:19 +1000 Date: Wed, 6 Jun 2001 10:04:18 +1000 From: Helmethead To: Jiang XU Cc: "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" Subject: Re: where I can find more API information about GdkImlib Message-ID: <20010606100418.A16987@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Jiang XU , "gtk-app-devel-list@gnome.org" , "gtk-list@redhat.com" References: <3B1CFB25.B8676254@echostar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1CFB25.B8676254@echostar.com>; from jiang.xu@echostar.com on Tue, Jun 05, 2001 at 09:30:45AM -0600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 05, 2001 at 09:30:45AM -0600, Jiang XU wrote: > Guys, > > I try to use GdkImlib to load transparent pixmap, such as using > gdk_imlib_XXX calls. > I wonder where I can find more API document about GdkImlib? > > Thanks > > Jiang Imlib api docs should have come with your imlib development package. Look in /usr/doc or /usr/share/doc. From hoshem@mel.comcen.com.au Tue Jun 5 23:23:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem039.mnementh.comcen.com.au [203.23.238.98]) by mail.gnome.org (Postfix) with ESMTP id E368D2BAC0 for ; Tue, 5 Jun 2001 23:23:43 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f563aI318004; Wed, 6 Jun 2001 13:36:18 +1000 Date: Wed, 6 Jun 2001 13:36:18 +1000 From: Helmethead To: Masaru Natsu Cardenas Cc: gtk-list@gnome.org Subject: Re: Help Message-ID: <20010606133618.A17955@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Masaru Natsu Cardenas , gtk-list@gnome.org 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 mnatsu@cicese.mx on Tue, Jun 05, 2001 at 05:02:58AM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 05, 2001 at 05:02:58AM -0700, Masaru Natsu Cardenas wrote: > Hello i'm new in the gtk programming subject.. i ave only 3 days > programming in Gtk and im trayng to make a simple prog: > > i'm trayng to open a xpm file and dsiplay it into a window and thats all. > > if anyone know where i can found some code .. to read and learn.. it will > be very usefull > > thanks.. > > Hello from Mexico > =) GTK+ can't read image files by itself, you use either gdk-pixbuf or imlib to do that. You probably have one or the other already on your system. If you have imlib installed (development packages) it should have installed some documentation somewhere, probably /usr/doc or /usr/share/doc. From tjlewis@link.com Wed Jun 6 06:09:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from issun6.hti.com (sunmgr.hti.com [130.210.206.69]) by mail.gnome.org (Postfix) with ESMTP id B0BBC2E161 for ; Wed, 6 Jun 2001 06:09:25 -0400 (EDT) Received: from issun5.hti.com ([130.210.202.3]) by issun6.hti.com (Netscape Messaging Server 3.6) with ESMTP id AAA46E9 for ; Wed, 6 Jun 2001 04:36:05 -0500 Received: from home.com ([130.210.4.11]) by issun5.hti.com (Netscape Messaging Server 3.6) with ESMTP id AAA536B for ; Wed, 6 Jun 2001 05:09:34 -0500 Message-ID: <3B1E0006.ACBD2BEC@home.com> Date: Wed, 06 Jun 2001 06:03:50 -0400 From: "Thomas J Lewis" 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: seg fault, gtk_fixed_expose 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: get segmentation fault when clicking on windows. doesn't happen all the time. doesn't point to a line of code in my software. running xxgdb get error message: Program received signal SIGSEGV, Segmentation fault. 0x401ba306 in gtk_fixed_expose () from /usr/lib/libgtk-1.2.so.0 (xxgdb) thanks in advance, tom From john.cupitt@ng-london.org.uk Wed Jun 6 06:25:24 2001 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 538DF2E4DA for ; Wed, 6 Jun 2001 06:25:10 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43KH; Wed, 6 Jun 2001 11:25:09 +0100 Message-ID: <3B1E03C1.5249BBDE@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:19:45 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Thomas J Lewis Cc: gtk-list@gnome.org Subject: Re: seg fault, gtk_fixed_expose References: <3B1E0006.ACBD2BEC@home.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thomas J Lewis wrote: > get segmentation fault when clicking > on windows. doesn't happen all the time. > doesn't point to a line of code in my software. > running xxgdb get error message: > > Program received signal SIGSEGV, Segmentation fault. > 0x401ba306 in gtk_fixed_expose () from /usr/lib/libgtk-1.2.so.0 > (xxgdb) Hi Tom, if this happens with your application, and other GTK programs on your machine are OK, it's probably a problem in your code somewhere. This sort of thing is uaually a memory problem: you're perhaps freeing something twice, or writing beyond the end of an area of memory you allocated. Try running with electric fence, or try memprof. HTH, John From john.cupitt@ng-london.org.uk Wed Jun 6 06:31:06 2001 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 7643B2BC09 for ; Wed, 6 Jun 2001 06:31:06 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43K4; Wed, 6 Jun 2001 11:31:05 +0100 Message-ID: <3B1E0526.3AAD8ADF@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:25:42 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ian King Cc: gtk-list@gnome.org Subject: Re: Removing a selected list item from a combo box References: <06ca01c0ee1d$6ede5260$750a000a@naples> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ian King wrote: > Is there any way that a listitem can remove itself from a combo box on its > selection without the application seg faulting. Hi Ian, I remember struggling with something like this ... the solution I found was to warp the focus to some other widget (with gtk_widget_grab_focus()) before the delete. John From john.cupitt@ng-london.org.uk Wed Jun 6 06:40:32 2001 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 38A122D026 for ; Wed, 6 Jun 2001 06:40:32 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K43LP; Wed, 6 Jun 2001 11:40:31 +0100 Message-ID: <3B1E075C.13F084A2@ng-london.org.uk> Date: Wed, 06 Jun 2001 11:35:08 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: dodi-nug <4dadio@telkom.net> Cc: gtk-list@gnome.org Subject: Re: gtk_editable_get_chars=gtk_entry_get_text 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dodi-nug wrote: > i failed to get text from entry text's widget, it seem that > in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html) > doesn't work too. > i have tried gtk_editable_get_chars ( Mr. bowman's advise), > but i didn't work too. It should work. Try: char *txt = gtk_editable_get_chars( GTK_EDITABLE( text ), 0, -1 ); printf( "You typed: \"%s\"\n", txt ); free( txt ); John From howardzzh@yahoo.com Wed Jun 6 06:56:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13402.mail.yahoo.com (web13402.mail.yahoo.com [216.136.175.60]) by mail.gnome.org (Postfix) with SMTP id BF2E12BC09 for ; Wed, 6 Jun 2001 06:56:13 -0400 (EDT) Message-ID: <20010606105613.89298.qmail@web13402.mail.yahoo.com> Received: from [131.215.103.7] by web13402.mail.yahoo.com; Wed, 06 Jun 2001 03:56:13 PDT Date: Wed, 6 Jun 2001 03:56:13 -0700 (PDT) From: Howard Zhou Subject: Help, how to set background color of a text(window) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everyone, We are currently writing a text editor and I wonder whether there is an easy way to set up the background color of a text widget (or a window). We can set the background of the text we will insert, but that doesn't fill the entire window, so is there something like a function that I can call to accomplish that? Thanks! Howard __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From edsonlima@magnumsa.com.br Wed Jun 6 09:32:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ncc1701.magnumsa.com.br (unknown [200.189.50.122]) by mail.gnome.org (Postfix) with ESMTP id 4BD0D2DE2A for ; Wed, 6 Jun 2001 09:32:38 -0400 (EDT) Received: from edson (edson.magnumsa.com.br [172.16.0.121]) by ncc1701.magnumsa.com.br (8.9.3/8.9.3) with SMTP id KAA07765 for ; Wed, 6 Jun 2001 10:37:03 -0300 Posted-Date: Wed, 6 Jun 2001 10:37:03 -0300 Message-ID: <002b01c0ee8c$a0bdcf80$790010ac@magnumsa.com.br> Reply-To: "Edson Lima" From: "Edson Lima" To: Subject: To Moritz Angermann Date: Wed, 6 Jun 2001 10:28:52 -0300 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Moritz Could you help me with some study aid of GTK+ with PHP, and how to access database?? From hbensaid@ensisun.imag.fr Wed Jun 6 09:36:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imag.imag.fr (imag.imag.fr [129.88.30.1]) by mail.gnome.org (Postfix) with ESMTP id F0E902E537; Wed, 6 Jun 2001 09:36:57 -0400 (EDT) Received: from ensisun.imag.fr (ensisun.imag.fr [195.221.228.2]) by imag.imag.fr (8.11.3/8.11.3) with ESMTP id f56Dauk11061; Wed, 6 Jun 2001 15:36:56 +0200 (MEST) Received: from localhost (hbensaid@localhost) by ensisun.imag.fr (8.9.3/8.8.5) with ESMTP id PAA23625; Wed, 6 Jun 2001 15:38:33 +0200 (MET DST) Date: Wed, 6 Jun 2001 15:38:33 +0200 (MET DST) From: "hicham.bensaid@ensimag.imag.fr" X-X-Sender: To: Cc: gtk , gtk app Subject: Re: Printing In-Reply-To: <3B1E0D92.41F9E806@fi.usj.edu.lb> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Try to use gtkextra library it provides tools for drawing graphics, and for printing in ps format, you can find it in "gtkextra.sourceforge.net" On Wed, 6 Jun 2001 dany.mezher@fi.usj.edu.lb wrote: > Hello!!! > > I am writing an application using gtk and I want to allow the user to > print some graphical results. How can I do it??? > > Thanks > Dany Mezher > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > From dany.mezher@fi.usj.edu.lb Wed Jun 6 09:24:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from estrelita.usj.edu.lb (estrelita.usj.edu.lb [193.227.161.97]) by mail.gnome.org (Postfix) with ESMTP id 7576B2E52C; Wed, 6 Jun 2001 09:20:24 -0400 (EDT) Received: from fi.usj.edu.lb (pc118.esib.edu.lb [192.168.1.118] (may be forged)) by estrelita.usj.edu.lb (8.9.3/8.9.3) with ESMTP id QAA28351; Wed, 6 Jun 2001 16:15:15 +0300 From: dany.mezher@fi.usj.edu.lb Message-ID: <3B1E0D92.41F9E806@fi.usj.edu.lb> Date: Wed, 06 Jun 2001 14:01:38 +0300 X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: gtk , gtk app Subject: Printing 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello!!! I am writing an application using gtk and I want to allow the user to print some graphical results. How can I do it??? Thanks Dany Mezher From pbd@op.net Wed Jun 6 10:37:41 2001 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 E97952CEDE for ; Wed, 6 Jun 2001 10:37:40 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0f.ppp.op.net [209.152.194.111]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA23956; Wed, 6 Jun 2001 10:37:36 -0400 (EDT) Message-Id: <200106061437.KAA23956@renoir.op.net> To: Howard Zhou Cc: gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-reply-to: Your message of "Wed, 06 Jun 2001 03:56:13 PDT." <20010606105613.89298.qmail@web13402.mail.yahoo.com> Date: Wed, 06 Jun 2001 10:37:40 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi everyone, > We are currently writing a text editor and I wonder despite the mellifluous superfluousness of existing text based applications for unix like operating systems, we have decided to implement yet another text editor that will no doubt include bits and pieces of the functionality offered by the other 3 dozen or more text editors listed at FreshMeat but will still fail to do everything done by long lived text editors that don't meet our particular aesthetic criteria. >whether there is an easy way to set up the background >color of a text widget (or a window). Have you read Havoc's color-setting FAQ? Search the archives of this list; it was posted here recently. It would be nice if it showed up in the GTK FAQ. --p From skip@beluga.mojam.com Wed Jun 6 11:11:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id AF3EA2CEDE for ; Wed, 6 Jun 2001 11:11:53 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 03E3D2818; Wed, 6 Jun 2001 10:11:51 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15134.18487.924366.641640@beluga.mojam.com> Date: Wed, 6 Jun 2001 10:11:51 -0500 To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-Reply-To: <200106061437.KAA23956@renoir.op.net> References: <20010606105613.89298.qmail@web13402.mail.yahoo.com> <200106061437.KAA23956@renoir.op.net> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Paul" == Paul Davis writes: Paul> implement yet another text editor that will no doubt ... still Paul> fail to do everything done by long lived text editors that don't Paul> meet our particular aesthetic criteria. Agreed. Is there a move afoot to Gtk-ize XEmacs? I found the following page: http://www.cs.indiana.edu/elisp/gui-xemacs/ I don't know what blessings this project has with the powers-that-be, but it seems to me that working toward completing this project would be more fruitful than writing YATE. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From Valdis.Kletnieks@vt.edu Wed Jun 6 11:20:14 2001 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 B1A582E1F1 for ; Wed, 6 Jun 2001 11:20:14 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f56FIo301273; Wed, 6 Jun 2001 11:18:50 -0400 Message-Id: <200106061518.f56FIo301273@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.3.1 01/19/2001 with nmh-1.0.4+dev To: skip@pobox.com (Skip Montanaro) Cc: Paul Davis , gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) In-Reply-To: Your message of "Wed, 06 Jun 2001 10:11:51 CDT." <15134.18487.924366.641640@beluga.mojam.com> 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[ <200106061437.KAA23956@renoir.op.net> <15134.18487.924366.641640@beluga.mojam.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1200707942P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 06 Jun 2001 11:18:50 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1200707942P Content-Type: text/plain; charset=us-ascii On Wed, 06 Jun 2001 10:11:51 CDT, Skip Montanaro said: > Agreed. Is there a move afoot to Gtk-ize XEmacs? I found the following > page: > > http://www.cs.indiana.edu/elisp/gui-xemacs/ XEmacs 21.4 and 21.5 have --with-gtk options for configure. Unfortunately, at the current time, you have to choose Gtk support or the standard X support (the biggest single loss is that the Gtk code doesn't support opening frames on different $DISPLAY devices). -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-1200707942P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOx5J2nAt5Vm009ewEQLwfwCfeSQQ8MxWYYzkZtpki9/FqSNCSNoAn063 SksZenmQg99QLZZLmZFbWhLp =jAaB -----END PGP SIGNATURE----- --==_Exmh_-1200707942P-- From hp@redhat.com Wed Jun 6 12:14:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EE5C32BAE9 for ; Wed, 6 Jun 2001 12:13:59 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f56GGPM28993; Wed, 6 Jun 2001 12:16:25 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Howard Zhou , gtk-list@gnome.org Subject: Re: Help, how to set background color of a text(window) References: <200106061437.KAA23956@renoir.op.net> From: Havoc Pennington Date: 06 Jun 2001 12:16:25 -0400 In-Reply-To: Paul Davis's message of "Wed, 06 Jun 2001 10:37:40 -0400" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >whether there is an easy way to set up the background > >color of a text widget (or a window). > > Have you read Havoc's color-setting FAQ? Search the archives of this > list; it was posted here recently. It would be nice if it showed up in > the GTK FAQ. > The URL is: http://pobox.com/~hp/gtk-colors.html Havoc From rsteinke@w-link.net Wed Jun 6 13:35:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 8BF5B2BA83 for ; Wed, 6 Jun 2001 13:35:22 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 157hGO-0004ie-00 for ; Wed, 06 Jun 2001 10:38:36 -0700 Date: Wed, 06 Jun 2001 10:38:36 -0700 To: gtk-list@gnome.org Subject: 1 bit GdkVisual Message-ID: <3B1E6A9C.nailDZB1W5P9I@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm trying to add a utility program which will pull certain GdkBitmaps from the code of my main program and save them as xpms. Since nothing I'm doing in the utility program actually uses gtk, I'm running gdk_init() instead. Everything works fine, except that to create a colormap for the bitmaps I need a visual, and the system visual isn't loaded in gdk_init(). What would be a sensible visual for a bitmap? Ron Steinke From inodal@teleline.es Wed Jun 6 18:07:51 2001 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 B17372BC8B for ; Wed, 6 Jun 2001 18:07:50 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp3.ldap.isp (Netscape Messaging Server 4.15) with ESMTP id GEJ42T03.K3I for ; Thu, 7 Jun 2001 00:06:29 +0200 Message-ID: <3B1E9B48.796ACCDD@teleline.es> Date: Wed, 06 Jun 2001 23:06:16 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: Segmetation fault using assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, May 24, 2001 at 07:29:29PM +0100, Ignacio Nodal wrote: > Hi, > > I want to write a function to read a pixmap string and store it into a > GdkPixmap, but without having to know which widget it will be added into.By > the way the widget could be still not created at all. > The problem is if I use gdk_pixmap_create_from_xpm_d() one of its parameters > force me to specify a "GdkWindow *window". I'm not using any transparent > color, so the "style" isn't a real problem for me... > If I use a non-existing widget I obviously get this error: > "Gdk-WARNING **: Creating pixmap from xpm with NULL window and colormap" > This was written by me a long long time ago ;)) Now, I've been working again on it. Helmethead told me to do it using pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(),&mask, NULL, xpm_structure); I used it, and it seems to work fine, the problem is i'm using C++ (yes yes.. don't tell me to use the Gtk-- again, I already know ;)) and I'm getting a Segmentation fault when trying to assign the GdkPixmap *pixmap returned by "gdk_pixmap_colormap_create_from_xpm_d()" to my "GdkPixmap& pix" parameter.. Here is my C++ function... gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **) pixstring); g_print("The program arrives this point\n"); (GdkPixmap *) pix = pixmap; g_print("Segmentation fault is in the line above\n"); if (&pix == NULL) {return (FALSE);} else {return (TRUE);} } ...any idea about what can be wrong? Thanks in advance, Ignacio Nodal From inodal@teleline.es Wed Jun 6 18:18:12 2001 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 B85762E664 for ; Wed, 6 Jun 2001 18:18:11 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEJ4K106.E3M for ; Thu, 7 Jun 2001 00:16:49 +0200 Message-ID: <3B1E9DB5.1BE2D28B@teleline.es> Date: Wed, 06 Jun 2001 23:16:37 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sorry,there was a fault on the function I pasted ;)) gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **) pixstring); g_print("The program arrives this point\n"); pix = *pixmap; g_print("Segmentation fault is in the line above\n"); if (&pix == NULL) {return (FALSE);} else {return (TRUE);} } In the previous mail I put "(GdkPixmap *) pix = pixmap;" instead of "pix = *pixmap;"... that returns me this error: cannot convert `pix' from type `_GdkWindow' to type `GdkPixmap *' but not the segmentation fault I get with "pix = *pixmap;" which I don't really understand ;(( Thanks again, Ignacio Nodal From hp@redhat.com Wed Jun 6 20:43:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AA75F2BBA9 for ; Wed, 6 Jun 2001 20:43:50 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f570kF323291; Wed, 6 Jun 2001 20:46:15 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ignacio Nodal Cc: GTK-List Subject: Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) References: <3B1E9DB5.1BE2D28B@teleline.es> From: Havoc Pennington Date: 06 Jun 2001 20:46:15 -0400 In-Reply-To: Ignacio Nodal's message of "Wed, 06 Jun 2001 23:16:37 +0200" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > but not the segmentation fault I get with "pix = *pixmap;" which I don't > really understand ;(( You can't copy GdkPixmap by value. It can only be manipulated as a pointer. Havoc From hoshem@mel.comcen.com.au Thu Jun 7 02:07:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp48.angel.comcen.com.au [203.23.238.48]) by mail.gnome.org (Postfix) with ESMTP id 9AC4D2BAF1 for ; Thu, 7 Jun 2001 02:07:43 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f576Kdh29499; Thu, 7 Jun 2001 16:20:39 +1000 Date: Thu, 7 Jun 2001 16:20:39 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap& parameter (using C++) Message-ID: <20010607162039.A29408@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1E9DB5.1BE2D28B@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1E9DB5.1BE2D28B@teleline.es>; from inodal@teleline.es on Wed, Jun 06, 2001 at 11:16:37PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Jun 06, 2001 at 11:16:37PM +0200, Ignacio Nodal wrote: > Sorry,there was a fault on the function I pasted ;)) > > gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix) > //Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix > { > > GdkPixmap *pixmap; > GdkBitmap *mask; > > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **) > pixstring); > > > > g_print("The program arrives this point\n"); > pix = *pixmap; &pix must be a valid pointer, or this will segfault, just like if (char *)ptr is not a valid pointer, *ptr = 'f' will segfault. This means you're doing something wrong if.. > g_print("Segmentation fault is in the line above\n"); > > if (&pix == NULL) {return (FALSE);} else {return (TRUE);} ..you're expecting &pix might be NULL here. I've forgotten everything I ever knew about c++ but I don't think it can be NULL anyway. Using GTK structures without any indirection is a bad idea, besides. I suspect what you really wanted to do here is something like this, using a reference to a pointer: gboolean ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, pixstring); pix = pixmap; if (pix == NULL) return FALSE; else return TRUE; } Then you would use the function like this: #include "myxpm.xpm" // declares char *myxpm[] GdkPixmap *pixmap; ParameterKernel::ReadPixmap (myxpm, pixmap); From inodal@teleline.es Thu Jun 7 06:12:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id 61B712CB09 for ; Thu, 7 Jun 2001 06:12:12 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEK1M301.M1G for ; Thu, 7 Jun 2001 12:10:51 +0200 Message-ID: <3B1F450E.D98882E4@teleline.es> Date: Thu, 07 Jun 2001 11:10:38 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: (gtk_pixmap_new): assertion `val != NULL' failed 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje wrote: > > Hi Ignacio, > > [...] . Why not try this: > > gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap *pix) > /* "&" changed into "*" */ > [...] > GdkPixmap *pixmap; > [...] > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), ... > [...] > pix = pixmap; /* got rid of the "*" because you're allocating a > pointer to a pointer - so they're the same */ > > That's the good way of doing it, I guess. > Regards, > > Ronald This avoids the segmentation fault... but then.. when I use gtk_pixmap_new() I get this other error: "Gtk-CRITICAL **: file gtkpixmap.c: line 97 (gtk_pixmap_new): assertion `val != NULL' failed." Here is the part of the code involve... Somewhere in the main program I create a button, ParameterButton is subclass of ParameterKernel [...] ParameterButton* button = new ParameterButton(PixmapButton); [...] Then I call the ReadPixmap function in the class constructor: if (_type = PixmapButton) { _pixmap_read = ReadPixmap(pixstring, _pixmap);} [...] Then I try to use my "stored" _pixmap, declared as GdkPixmap* _pixmap being a field of the ParameterButton class, in another member-function I have to create/show the buttons: [...] if (_pixmap_read) { GtkWidget* pixmapwidget; g_print("_pixmap_read seems to have been correctly updated\n"); if (_pixmap == NULL) { g_print("Why the hell isn't my GdkPixmap* _pixmap correctly updated ;(\n");} pixmapwidget = gtk_pixmap_new( _pixmap, NULL ); gtk_widget_show( pixmapwidget); gtk_container_add(GTK_CONTAINER(_button), pixmapwidget); [...] Why isn't my _pixmap field being updated? Thanks again and again and again ;) Ignacio Nodal From hoshem@mel.comcen.com.au Thu Jun 7 06:49:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 517922D033 for ; Thu, 7 Jun 2001 06:49:33 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57B2R731002; Thu, 7 Jun 2001 21:02:27 +1000 Date: Thu, 7 Jun 2001 21:02:27 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607210227.A30953@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1F450E.D98882E4@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1F450E.D98882E4@teleline.es>; from inodal@teleline.es on Thu, Jun 07, 2001 at 11:10:38AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:10:38AM +0200, Ignacio Nodal wrote: > Why isn't my _pixmap field being updated? > > Thanks again and again and again ;) > > Ignacio Nodal Sigh :) Have you ever tried doing this when you were learning C: void foo (int i) { i = 10; printf ("%d\n", i); } int main () { int a = 5; printf ("%d\n", a); foo (a); printf ("%d\n", a); return 0; } the output will be: 5 10 5 and not: 5 10 10 That's the same reason why ronald's proposal won't work. Mine will tho unless I've made some silly screw up too :) By the way I didn't make much sense when I was talking about the cause of the segfault, I was confusing myself. Are you sure it was on the line you said it was? Did you actually try out the g_prints to see if they print? From rbultje@ronald.bitfreak.net Thu Jun 7 07:37:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 7DF8E2DBDC for ; Thu, 7 Jun 2001 07:37:00 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f57CL3C01561; Thu, 7 Jun 2001 14:21:03 +0200 (CEST) From: "Ronald Bultje" To: "Helmethead" Cc: Subject: RE: (gtk_pixmap_new): assertion `val != NULL' failed Date: Thu, 7 Jun 2001 13:42:54 +0200 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: <20010607210227.A30953@BuffyRox.localdomain> Importance: Normal 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Helmethead, >Have you ever tried doing this when you were learning C: [nice code] This is true. >That's the same reason why ronald's proposal won't work. Mine will tho >unless I've made some silly screw up too :) >By the way I didn't make much sense when I was talking about the cause >of the segfault, I was confusing myself. Are you sure it was on the >line you said it was? Did you actually try out the g_prints to see if >they print? But this is not. Because I work with pointers, so the data should be saved. Right? Or am I really missing a big big big big point here? I do see your point here - but as far as I see my code did work with pointers - so the data should be kept in place. --- #include "image.xpm" void create_pixmap(GtkWidget *w) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **)image_xpm); w = gtk_pixmap_new (pixmap, mask); } void test() { GtkWidget *w = NULL; create_pixmap(w); if (w == NULL) g_print("I am stupid\n"); else g_print("I am not that stupid\n"); } --- Should return "I am not that stupid", right? (I don't have a xwindows computer on my hands here so I can't test it - grom). w is a pointer in itself, so although I'm not making pointers to this pointer, we're still working with pointers so your point in the simple-C example is a good point but does not apply here. Right? But I might have missed your point completely :-). Regards, Ronald From lah@micropp.se Thu Jun 7 07:59:38 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from albert.micropp.se (unknown [62.168.157.3]) by mail.gnome.org (Postfix) with ESMTP id AC45F2BBA9 for ; Thu, 7 Jun 2001 07:59:37 -0400 (EDT) Received: by albert.micropp.se (Postfix, from userid 1000) id BB6C24145; Thu, 7 Jun 2001 13:59:34 +0200 (CEST) Date: Thu, 7 Jun 2001 13:59:34 +0200 To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607135934.A21230@albert.micropp.se> References: <20010607210227.A30953@BuffyRox.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 01:42:54PM +0200 From: lah@micropp.se (Lars Hallberg) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:42:54PM +0200, Ronald Bultje wrote: > > --- > #include "image.xpm" > void create_pixmap(GtkWidget *w) { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > w = gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w = NULL; > create_pixmap(w); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } > --- > > Should return "I am not that stupid", right? (I don't have a xwindows > computer on my hands here so I can't test it - grom). unless create_pixmap(w) is C++ with an referens argument this program *will* output "I am stupid\n". In C, ther is *no* way the create_pixmap funktion can change its argument. It can change the memory the pointer points to (but then it have to be pointing to valid memory, not NULL), but it can *not* change the pointer itself. So, i C, w is garanteed to still point to NULL! You actuly have to send a pointer to a pointer for the funktion to be able to change the pointer. That is a poor interface tho, in C a initsilasion funktion (like fopen) that returns a alocated chunk of memory whit a fiting pointer type is commonly used. /Lars From inodal@teleline.es Thu Jun 7 08:54:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id E01222BD69 for ; Thu, 7 Jun 2001 08:54:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEK94L04.U0G for ; Thu, 7 Jun 2001 14:53:09 +0200 Message-ID: <3B1F6B18.3F9E4233@teleline.es> Date: Thu, 07 Jun 2001 13:52:56 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Helmethead wrote: >Sigh :) hehehe, be patient with me :))) > > Have you ever tried doing this when you were learning C: > void foo (int i) > { > i = 10; > printf ("%d\n", i); > } int main () > { > int a = 5; printf ("%d\n", a); > foo (a); > printf ("%d\n", a); > return 0; >} > the output will be: > 5 > 10 > 5 > and not: > 5 > 10 > 10 > That's the same reason why ronald's proposal won't work. > Mine will tho unless I've made some silly screw up too :) > By the way I didn't make much sense when I was talking about > the cause of the segfault, I was confusing myself. Are you > sure it was on the line you said it was? Did you actually try > out the g_prints to see if they print? Yeah, but.. gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap *pix) is more like void foo(int* i), or not? Well, I suppose not, since then my program would be working fine :))) The program crahsed on the line I said, because it printed "The program arrives this point\n" and then returned me the segmentation fault, not printing "Segmentation fault is in the line above\n". [...] g_print("The program arrives this point\n"); pix = *pixmap; g_print("Segmentation fault is in the line above\n"); [...] When I use Ronald's proposal it doesn't return me any segmentation fault (both g_prints are shown) but then, when using gtk_pixmap_new() out from the ReadPixmap() function I get the "assertion `val != NULL' failed" error mentioned in my previous mail... Is there anyway to use my GdkPixmap* _pixmap as a parameter for gtk_pixmap_new(), outside from the function where I create it using gdk_pixmap_colormap_create_from_xpm_d()??? really, anyway... Thanks again... And sorry if my bad programming skills turn you nervous, just some more sighs and I hope it will work :)))) Ignacio Nodal From rwan@cs.mu.oz.au Thu Jun 7 09:44:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 5E1B52BAF1 for ; Thu, 7 Jun 2001 09:43:58 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id XAA22540 for ; Thu, 7 Jun 2001 23:43:08 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id EB24775AA; Thu, 7 Jun 2001 23:43:07 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id E93F2AC94 for ; Thu, 7 Jun 2001 23:43:07 +1000 (EST) Date: Thu, 7 Jun 2001 23:43:07 +1000 (EST) From: Raymond Wan To: GTK-List Subject: Installing gtk without root access 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, A few weeks ago, someone posted a message about having problems installing GTK without root access. I'm having problems with it now, but before I go digging through the scripts, can someone confirm to me whether or not it is possible to install GTK without root access? Unfortunately, our system administrator is overloaded with work (as most sysadmins are :) ), so I would like to try to install it myself. The person who posted that message got a lot of helpful advice but no one said that it was not possible to install GTK without root permission, so can I presume it is possible? BTW, I'm talking about the current version of GTK v1.3 (v1.2.9 is already installed) and I guess I would need to install it and any required components such as GDK. Thanks! Ray From rbultje@ronald.bitfreak.net Thu Jun 7 09:57:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 13DF62DF00 for ; Thu, 7 Jun 2001 09:57:17 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f57EfPC23205; Thu, 7 Jun 2001 16:41:25 +0200 (CEST) From: "Ronald Bultje" To: "Lars Hallberg" Cc: Subject: RE: (gtk_pixmap_new): assertion `val != NULL' failed Date: Thu, 7 Jun 2001 16:03:16 +0200 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: <20010607135934.A21230@albert.micropp.se> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, mr. stupid was playing in my head again. >> #include "image.xpm" >> void create_pixmap(GtkWidget *w) { >> GdkPixmap *pixmap; >> GdkBitmap *mask; >> pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, >> gtk_widget_get_default_colormap(), >> &mask, NULL, (gchar **)image_xpm); >> w = gtk_pixmap_new (pixmap, mask); >> } >> void test() { >> GtkWidget *w = NULL; >> create_pixmap(w); >> if (w == NULL) g_print("I am stupid\n"); >> else g_print("I am not that stupid\n"); >> } >> --- >> >> Should return "I am not that stupid", right? (I don't have a xwindows >> computer on my hands here so I can't test it - grom). > >unless create_pixmap(w) is C++ with an referens argument this program >*will* output "I am stupid\n". In C, ther is *no* way the >create_pixmap >funktion can change its argument. It can change the memory the pointer >points to (but then it have to be pointing to valid memory, not NULL), >but it can *not* change the pointer itself. So, i C, w is garanteed >to still point to NULL! You actuly have to send a pointer to a pointer >for the funktion to be able to change the pointer. Double oops. I forgot that. Let's try this one then: #include "image.xpm" void create_pixmap(GtkWidget **w) { GdkPixmap *pixmap; GdkBitmap *mask; pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, gtk_widget_get_default_colormap(), &mask, NULL, (gchar **)image_xpm); *w = gtk_pixmap_new (pixmap, mask); } void test() { GtkWidget *w = NULL; create_pixmap(&w); if (w == NULL) g_print("I am stupid\n"); else g_print("I am not that stupid\n"); } This better? :-) Stupid me... Regards, Ronald From lah@micropp.se Thu Jun 7 10:13:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from albert.micropp.se (unknown [62.168.157.3]) by mail.gnome.org (Postfix) with ESMTP id E2BFA2BEF8 for ; Thu, 7 Jun 2001 10:13:00 -0400 (EDT) Received: by albert.micropp.se (Postfix, from userid 1000) id 0B9C84145; Thu, 7 Jun 2001 16:13:00 +0200 (CEST) Date: Thu, 7 Jun 2001 16:13:00 +0200 To: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010607161300.A21786@albert.micropp.se> References: <20010607135934.A21230@albert.micropp.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 04:03:16PM +0200 From: lah@micropp.se (Lars Hallberg) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 04:03:16PM +0200, Ronald Bultje wrote: > > Double oops. I forgot that. Let's try this one then: Shuld work if the pixmap stuf is right (haven't used that). But I would predere: > #include "image.xpm" > GtkWidget *create_pixmap() { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > return gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w; > w = create_pixmap(); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } It is not only a cuestion of taste, 99% of C-code use this convention, so it is more consistent and easy to remember and understand. /Lars From sven@gimp.org Thu Jun 7 11:26:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 26A7F2DF20 for ; Thu, 7 Jun 2001 11:26:57 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 1581Zp-0001Qg-00; Thu, 07 Jun 2001 17:20:01 +0200 To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access References: From: Sven Neumann Date: 07 Jun 2001 17:20:01 +0200 In-Reply-To: Message-ID: Lines: 22 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Raymond Wan writes: > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. ./configure --prefix= make make install Then you'll have to add $prefix/bin to your PATH environment variable, $prefix/lib to LD_LIBRARY_PATH and $prefix/lib/pkgconfig to PKG_CONFIG_PATH and you are done. Salut, Sven From erik@arthur.ubicom.tudelft.nl Thu Jun 7 11:35:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhst2.its.tudelft.nl (mailhst2.its.tudelft.nl [130.161.34.250]) by mail.gnome.org (Postfix) with ESMTP id 3B6ED2E74F for ; Thu, 7 Jun 2001 11:34:45 -0400 (EDT) Received: from arthur.ubicom.tudelft.nl (root@arthur.ubicom.tudelft.nl [130.161.43.222]) by mailhst2.its.tudelft.nl (8.9.3/8.9.3) with ESMTP id RAA28086; Thu, 7 Jun 2001 17:34:42 +0200 (METDST) Received: (from erik@localhost) by arthur.ubicom.tudelft.nl (8.9.3/8.9.3/Debian 8.9.3-21) id RAA11614; Thu, 7 Jun 2001 17:31:14 +0200 Date: Thu, 7 Jun 2001 17:31:14 +0200 From: Erik Mouw To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010607173113.B10688@arthur.ubicom.tudelft.nl> 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 rwan@cs.mu.oz.au on Thu, Jun 07, 2001 at 11:43:07PM +1000 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy! Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. Sure, no problem. > The person who posted that message got a lot of helpful advice but > no one said that it was not possible to install GTK without root > permission, so can I presume it is possible? Yes. export MY_GTK=/home/myhome/gtk export PATH=$MY_GTK/bin:$PATH export LD_LIBRARY_PATH=$MY_GTK/lib Now configure install GTK the usual way, but use the flag --prefix=$MY_GTK for all configure scripts. Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ From hoshem@mel.comcen.com.au Thu Jun 7 11:49:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id AC0832E782 for ; Thu, 7 Jun 2001 11:49:21 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57G2PA00489; Fri, 8 Jun 2001 02:02:25 +1000 Date: Fri, 8 Jun 2001 02:02:25 +1000 From: Helmethead To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010608020225.A31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , gtk-list@gnome.org References: <20010607210227.A30953@BuffyRox.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rbultje@ronald.bitfreak.net on Thu, Jun 07, 2001 at 01:42:54PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:42:54PM +0200, Ronald Bultje wrote: > Hi Helmethead, > > >Have you ever tried doing this when you were learning C: > [nice code] > > This is true. > > >That's the same reason why ronald's proposal won't work. Mine will tho > >unless I've made some silly screw up too :) > >By the way I didn't make much sense when I was talking about the cause >of > the segfault, I was confusing myself. Are you sure it was on the > >line you said it was? Did you actually try out the g_prints to see if > >they print? > > But this is not. Because I work with pointers, so the data should be saved. > Right? Or am I really missing a big big big big point here? Actually, that's not true :) To pass a variable to a function so the function can modify it, you need to pass the address of the variable (like the mask argument to gdk_pixmap_colormap_create_from_xpm_d). That means the function parameter's type is another level of pointerness (indirection is the technical word) past your original variable. If your original variable is an int, the function has to take int*. If the original variable is GtkWidget*, the function has to take a GtkWidget**. I'll use your example for another example (heh) > I do see your point here - but as far as I see my code did work with > pointers - so the data should be kept in place. > > --- > #include "image.xpm" > void create_pixmap(GtkWidget *w) { void create_pixmap(GtkWidget **w) { > GdkPixmap *pixmap; > GdkBitmap *mask; > pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, > gtk_widget_get_default_colormap(), > &mask, NULL, (gchar **)image_xpm); > w = gtk_pixmap_new (pixmap, mask); *w = gtk_pixmap_new (pixmap, mask); > } > void test() { > GtkWidget *w = NULL; > create_pixmap(w); create_pixmap(&w); > if (w == NULL) g_print("I am stupid\n"); > else g_print("I am not that stupid\n"); > } > --- From hoshem@mel.comcen.com.au Thu Jun 7 12:06:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 15EB02CE45 for ; Thu, 7 Jun 2001 12:06:23 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57GEYl00519; Fri, 8 Jun 2001 02:14:34 +1000 Date: Fri, 8 Jun 2001 02:14:33 +1000 From: Helmethead To: Ignacio Nodal Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed Message-ID: <20010608021433.B31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ignacio Nodal , GTK-List References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.localdomain> <3B1F6B18.3F9E4233@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B1F6B18.3F9E4233@teleline.es>; from inodal@teleline.es on Thu, Jun 07, 2001 at 01:52:56PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 01:52:56PM +0200, Ignacio Nodal wrote: > Helmethead wrote: > > >Sigh :) > hehehe, be patient with me :))) No worries, I have nothing else to do ;) > > > > Have you ever tried doing this when you were learning C: > > void foo (int i) > > { > > i = 10; > > printf ("%d\n", i); > > } int main () > > { > > int a = 5; printf ("%d\n", a); > > foo (a); > > printf ("%d\n", a); > > return 0; > > } [snip] > Yeah, but.. gboolean ParameterKernel::ReadPixmap(gchar **pixstring, > GdkPixmap *pix) is more like void foo(int* i), or not? Well, I suppose > not, since then my program would be working fine :))) Nope, it's like foo(int i) ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap*& pix) is like foo(int &i) you can use a GdkPixmap ** if you really want it to be like foo(int *i) :) > The program crahsed on the line I said, because it printed "The program > arrives this point\n" and then returned me the segmentation fault, not > printing "Segmentation fault is in the line above\n". Hmm... gdk_pixmap_colormap_create_from_xpm_d must be failing (as well!) Write a g_print that prints out the value of pixmap and see if it's NULL > > [...] > g_print("The program arrives this point\n"); > pix = *pixmap; > g_print("Segmentation fault is in the line above\n"); > [...] > > When I use Ronald's proposal it doesn't return me any segmentation fault > (both g_prints are shown) but then, when using gtk_pixmap_new() out from > the ReadPixmap() function I get the "assertion `val != NULL' failed" > error mentioned in my previous mail... The variable passed to ReadPixmap isn't getting set, though if I'm right about what I said above it'd be set to NULL anyway. :( > Is there anyway to use my GdkPixmap* _pixmap as a parameter for > gtk_pixmap_new(), outside from the function where I create it using > gdk_pixmap_colormap_create_from_xpm_d()??? really, anyway... With exactly one change, change the function declarations from ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap* pix) to ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) and it will automagically set the variable you pass in properly. C++ references are pretty cute. From hoshem@mel.comcen.com.au Thu Jun 7 12:09:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp35.angel.comcen.com.au [203.23.238.35]) by mail.gnome.org (Postfix) with ESMTP id 08E5A2DC49 for ; Thu, 7 Jun 2001 12:09:39 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f57GMsh00547; Fri, 8 Jun 2001 02:22:54 +1000 Date: Fri, 8 Jun 2001 02:22:54 +1000 From: Helmethead To: Raymond Wan Cc: GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010608022254.C31663@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Raymond Wan , GTK-List 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 rwan@cs.mu.oz.au on Thu, Jun 07, 2001 at 11:43:07PM +1000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > > Hi all, > > A few weeks ago, someone posted a message about having problems > installing GTK without root access. I'm having problems with it now, but > before I go digging through the scripts, can someone confirm to me whether > or not it is possible to install GTK without root access? Unfortunately, > our system administrator is overloaded with work (as most sysadmins are :) > ), so I would like to try to install it myself. > > The person who posted that message got a lot of helpful advice but > no one said that it was not possible to install GTK without root > permission, so can I presume it is possible? > > BTW, I'm talking about the current version of GTK v1.3 (v1.2.9 is > already installed) and I guess I would need to install it and any required > components such as GDK. Thanks! I have a nice collection of installed gtk/glib/pango/atk/pkg-config files in my /home/helmet/progs/gtk/newgtk directory. Works fine. Just make sure you set LD_LIBRARY_PATH to /lib and add /bin to your path BEFORE configuring, building and installing, and nothing should croak. And pass --prefix= to configure or autogen.sh. That's all there is to it. From inodal@teleline.es Thu Jun 7 12:23:18 2001 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 EC2E32DECD for ; Thu, 7 Jun 2001 12:23:17 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEKISD05.K0X; Thu, 7 Jun 2001 18:21:49 +0200 Message-ID: <3B1F9C00.C1D966B7@teleline.es> Date: Thu, 07 Jun 2001 17:21:37 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: Helmethead Cc: GTK-List Subject: Re: (gtk_pixmap_new): assertion `val != NULL' failed References: <3B1F450E.D98882E4@teleline.es> <20010607210227.A30953@BuffyRox.localdomain> <3B1F6B18.3F9E4233@teleline.es> <20010608021433.B31663@BuffyRox.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Helmethead wrote: > With exactly one change, change the function declarations from > > ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap* pix) > to > ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) > > and it will automagically set the variable you pass in properly. C++ references are pretty cute. Ok, thanks a lot.. all seems to work fine now. I've learned a lot about pointers, hehehe It works fine using ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap*& pix) //the C++ way and also using ParameterKernel::ReadPixmap (gchar **pixstring, GdkPixmap** pix) //the C way with some little internal changes, of course ;) Thanks for being so patient, I know this was basic pointers UNknowledge :)) Ignacio Nodal From king@eiffel.com Thu Jun 7 15:00:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 63B3C2BB2D for ; Thu, 7 Jun 2001 15:00:16 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15850g-0005Jt-00; Thu, 07 Jun 2001 11:59:58 -0700 Message-ID: <0af601c0ef85$196d0d80$750a000a@naples> From: "Ian King" To: "Erik Mouw" , "Raymond Wan" Cc: "GTK-List" References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> Subject: Re: Installing gtk without root access Date: Thu, 7 Jun 2001 12:07:30 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root access. How would I get my application to dynamically use the 1.2.9 shared libraries (which would be in my home/gtk/lib directory) without editing ld.so.conf (root access needed), or breaking any other applications? Thanks for your time Ian King ----- Original Message ----- From: "Erik Mouw" To: "Raymond Wan" Cc: "GTK-List" Sent: Thursday, June 07, 2001 8:31 AM Subject: Re: Installing gtk without root access > On Thu, Jun 07, 2001 at 11:43:07PM +1000, Raymond Wan wrote: > > A few weeks ago, someone posted a message about having problems > > installing GTK without root access. I'm having problems with it now, but > > before I go digging through the scripts, can someone confirm to me whether > > or not it is possible to install GTK without root access? Unfortunately, > > our system administrator is overloaded with work (as most sysadmins are :) > > ), so I would like to try to install it myself. > > Sure, no problem. > > > The person who posted that message got a lot of helpful advice but > > no one said that it was not possible to install GTK without root > > permission, so can I presume it is possible? > > Yes. > > export MY_GTK=/home/myhome/gtk > export PATH=$MY_GTK/bin:$PATH > export LD_LIBRARY_PATH=$MY_GTK/lib > > Now configure install GTK the usual way, but use the flag > --prefix=$MY_GTK for all configure scripts. > > > Erik > > -- > J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department > of Electrical Engineering, Faculty of Information Technology and Systems, > Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands > Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl > WWW: http://www-ict.its.tudelft.nl/~erik/ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From erik@arthur.ubicom.tudelft.nl Thu Jun 7 15:07:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhst2.its.tudelft.nl (mailhst2.its.tudelft.nl [130.161.34.250]) by mail.gnome.org (Postfix) with ESMTP id B4FB52DB5A for ; Thu, 7 Jun 2001 15:07:43 -0400 (EDT) Received: from arthur.ubicom.tudelft.nl (root@arthur.ubicom.tudelft.nl [130.161.43.222]) by mailhst2.its.tudelft.nl (8.9.3/8.9.3) with ESMTP id VAA09745; Thu, 7 Jun 2001 21:07:37 +0200 (METDST) Received: (from erik@localhost) by arthur.ubicom.tudelft.nl (8.9.3/8.9.3/Debian 8.9.3-21) id VAA18730; Thu, 7 Jun 2001 21:07:27 +0200 Date: Thu, 7 Jun 2001 21:07:27 +0200 From: Erik Mouw To: Ian King Cc: Raymond Wan , GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010607210727.D10688@arthur.ubicom.tudelft.nl> References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> <0af601c0ef85$196d0d80$750a000a@naples> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0af601c0ef85$196d0d80$750a000a@naples>; from king@eiffel.com on Thu, Jun 07, 2001 at 12:07:30PM -0700 Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy! Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 12:07:30PM -0700, Ian King wrote: > Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older > version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root > access. How would I get my application to dynamically use the 1.2.9 shared > libraries (which would be in my home/gtk/lib directory) without editing > ld.so.conf (root access needed), or breaking any other applications? By using LD_LIBRARY_PATH. "export LD_LIBRARY_PATH=/my/home/gtk/lib" does the trick. See "man ld.so" for more information. Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ From hoshem@mel.comcen.com.au Thu Jun 7 22:23:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem015.ramoth.comcen.com.au [203.23.238.134]) by mail.gnome.org (Postfix) with ESMTP id BC0872C8BC for ; Thu, 7 Jun 2001 22:23:48 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f582aU401945; Fri, 8 Jun 2001 12:36:30 +1000 Date: Fri, 8 Jun 2001 12:36:29 +1000 From: Helmethead To: Ian King Cc: Erik Mouw , Raymond Wan , GTK-List Subject: Re: Installing gtk without root access Message-ID: <20010608123629.A1906@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ian King , Erik Mouw , Raymond Wan , GTK-List References: <20010607173113.B10688@arthur.ubicom.tudelft.nl> <0af601c0ef85$196d0d80$750a000a@naples> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <0af601c0ef85$196d0d80$750a000a@naples>; from king@eiffel.com on Thu, Jun 07, 2001 at 12:07:30PM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Jun 07, 2001 at 12:07:30PM -0700, Ian King wrote: > Is LD_LIBRARY_PATH available in GNU ld (on linux)? If I had an older > version of gtk 1.2 (say 1.2.0) and I wanted to install 1.2.9 without root > access. How would I get my application to dynamically use the 1.2.9 shared > libraries (which would be in my home/gtk/lib directory) without editing > ld.so.conf (root access needed), or breaking any other applications? > > Thanks for your time > > Ian King Yup, LD_LIBRARY_PATH is ready willing and able in GNU ld on linux. From David.Bourguignon@imag.fr Thu Jun 7 06:53:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ebene.inrialpes.fr (ebene.inrialpes.fr [194.199.18.70]) by mail.gnome.org (Postfix) with ESMTP id 29AD92CF6B for ; Thu, 7 Jun 2001 06:53:53 -0400 (EDT) Received: from safran.inrialpes.fr (safran.inrialpes.fr [194.199.26.1]) by ebene.inrialpes.fr (8.11.3/8.11.3) with ESMTP id f57AqFg28545; Thu, 7 Jun 2001 12:52:15 +0200 (MEST) Received: from imag.fr (estragon [194.199.26.93]) by safran.inrialpes.fr (980427.SGI.8.8.8/8.8.5) with ESMTP id MAA17863; Thu, 7 Jun 2001 12:53:49 +0200 (MDT) Message-ID: <3B1F5C68.A34E8B0@imag.fr> Date: Thu, 07 Jun 2001 12:50:16 +0200 From: David Bourguignon Organization: iMAGIS X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem with gxid_lib 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I apologize in advance if my question is not related to this list topic. I'm using an sgi workstation running irix (sgi unix), a wacom tablet with a wacom irix driver. I tried to use my tablet with gimp. Unfortunately, when configuring gimp to recognize my tablet, using the "File -> Dialogs -> Input Devices" window, I get the following error message : gxid_lib: can't connect to 127.0.0.1:6951 Gdk-WARNING **: Could not get device (is gxid running?) Do you know what does this mean ? Thank you very much for your help. David. -- iMAGIS project, GRAVIR lab INRIA Rhône-Alpes, 655 avenue de l'Europe 38330 Montbonnot Saint Martin, France http://www-imagis.imag.fr/~David.Bourguignon/index.gb.html From otaylor@redhat.com Thu Jun 7 23:25:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 03D9B2D2D6 for ; Thu, 7 Jun 2001 23:25:07 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 9D0A82422B3; Thu, 7 Jun 2001 23:25:01 -0400 (EDT) To: David Bourguignon Cc: gtk-list@gnome.org Subject: Re: problem with gxid_lib References: <3B1F5C68.A34E8B0@imag.fr> From: Owen Taylor Date: 07 Jun 2001 23:25:01 -0400 In-Reply-To: David Bourguignon's message of "Thu, 07 Jun 2001 12:50:16 +0200" Message-ID: Lines: 55 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David Bourguignon writes: > Hi all, > > I apologize in advance if my question is not related to this list topic. Certainly on topic for this list. > I'm using an sgi workstation running irix (sgi unix), a wacom tablet with a > wacom irix driver. I tried to use my tablet with gimp. Unfortunately, when > configuring gimp to recognize my tablet, using the "File -> Dialogs -> Input > Devices" window, I get the following error message : > > gxid_lib: can't connect to 127.0.0.1:6951 > > Gdk-WARNING **: Could not get device (is gxid running?) > > Do you know what does this mean ? > Thank you very much for your help. Well, note the warning in GTK+'s README: ==== The --with-xinput flag specifies whether to compile with support for the XInput extension (mainly used for graphics tablets), and which form of support to use: no : no support xfree : Use special features in the Wacom drivers in XFree86 3.3.1 and later. gxi : Use generic XInput support (not recommended) The XInput support is not known to work with any other XServer than XFree86. For more information about XInput, see: ==== The gxi support was added for and tested with versions of XFree86 older than 3.3.1, and hasn't been tested at all for several years. That being said, what the message means is that you need to start the 'gxid' programming that was built and installed with GTK+ when you compile --with-xinput=gxi. The gxid program is responsible for switching a graphics tablet between controlling the core pointer and sending extended input events that GTK+ and the GIMP can interpret for getting pressure/tilt information. Regards, Owen From Michael.Mitton@millersville.edu Fri Jun 8 08:56:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail1.millersville.edu (mail1.millersville.edu [166.66.56.75]) by mail.gnome.org (Postfix) with ESMTP id C862C2E120 for ; Fri, 8 Jun 2001 08:56:06 -0400 (EDT) Received: by mail1.millersville.edu with Internet Mail Service (5.5.2653.19) id ; Fri, 8 Jun 2001 08:52:00 -0400 Message-ID: From: Michael Mitton To: gtk-list@gnome.org Subject: Glade link off of www.gtk.org Date: Fri, 8 Jun 2001 08:52:00 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. On http://www.gtk.org, the link for glade is set to http://glade.pn.org, but the link is really http://glade.gnome.org. This change happened around 4-19-2001. Could somebody please update the website accordingly? There has been quite a few messages in the glade forum about "Where is the website", and this may help. Thank you. -Michael From howardzzh@yahoo.com Fri Jun 8 12:46:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13405.mail.yahoo.com (web13405.mail.yahoo.com [216.136.175.63]) by mail.gnome.org (Postfix) with SMTP id 84DE22BBFC for ; Fri, 8 Jun 2001 12:46:49 -0400 (EDT) Message-ID: <20010608164648.48317.qmail@web13405.mail.yahoo.com> Received: from [131.215.103.7] by web13405.mail.yahoo.com; Fri, 08 Jun 2001 09:46:48 PDT Date: Fri, 8 Jun 2001 09:46:48 -0700 (PDT) From: Howard Zhou Subject: Help: why Gtk::Bin.remove() deletes my object 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am back. Thanks for your advice last time. Now I have a new one. I tried to switch between text object in a scrolled window by calling remove() then add(*_) because the trial with just calling add(*_) does not work. But I found that remove() will actually delete the text object I put in first(this maybe my misunderstanding). Is this really true? If so, is there a function that I can call so that it will replace the text widget in that window without deleting the old one, or is there any other way going around. Thanks! Howard __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From topper@virginia.edu Fri Jun 8 16:42:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 36AE42DEBA for ; Fri, 8 Jun 2001 16:42:59 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab09715; 8 Jun 2001 16:42 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id QAA19988 for ; Fri, 8 Jun 2001 16:42:58 -0400 (EDT) Message-ID: <3B213847.BBB97D7B@virginia.edu> Date: Fri, 08 Jun 2001 16:40:39 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to keep (force) window focus? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, Is there a way for me to force a window to remain in focus? I've got some popup windows on a canvas, that of course drop to back when focus moves off them. I'm looking for an easy way to force them to remain on top. Thanks, Dave Topper -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From sven@gimp.org Fri Jun 8 19:09:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD90020A1.dip.t-dialin.net [217.0.32.161]) by mail.gnome.org (Postfix) with ESMTP id 92DE52DF1B for ; Fri, 8 Jun 2001 19:09:00 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 158VGo-00025H-00; Sat, 09 Jun 2001 01:02:22 +0200 To: Howard Zhou Cc: gtk-list@gnome.org Subject: Re: Help: why Gtk::Bin.remove() deletes my object References: <20010608164648.48317.qmail@web13405.mail.yahoo.com> From: Sven Neumann Date: 09 Jun 2001 01:02:21 +0200 In-Reply-To: <20010608164648.48317.qmail@web13405.mail.yahoo.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Howard Zhou writes: > I tried to switch between text object > in a scrolled window by calling remove() then add(*_) > because the trial with just calling add(*_) does not > work. But I found that remove() will actually delete > the text object I put in first. the container (scrolled window) takes ownership of the object you add to it and sinks it. All GTK+ containers behave like this. You need to change your code to: gtk_object_ref (object1); container_add (container, object1); ... container_remove (container, object1); container_add (container, object2); Then don't forget to unref your object as soon as you don't need it anymore. Salut, Sven From king@eiffel.com Fri Jun 8 19:36:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 71B5C2E234 for ; Fri, 8 Jun 2001 19:36:21 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 158Vnf-0004Yq-00 for gtk-list@gnome.org; Fri, 08 Jun 2001 16:36:19 -0700 Message-ID: <101f01c0f074$e2607a20$750a000a@naples> From: "Ian King" To: Subject: Hacks needed. Date: Fri, 8 Jun 2001 16:43:56 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a few questions that hopefully someone could help me with. 1) Does anyone know why the vertical scrollbar in a scrollable gtklist doesn't function when the list contains more than 2500 items? 2) Does anyone know why the pixmap in a gtkctreenode disappears when the node is expanded? 3) Does anyone know why the horizontal scrollbar for a ctree doesn't appear at all (with Automatic scroll Policy)? If anyone knows any hacks around these bugs then that would be great, especially number two as that is the most annoying. Thanks for your time Ian King From hp@redhat.com Fri Jun 8 19:55:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 69E7D2E266 for ; Fri, 8 Jun 2001 19:55:14 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f58NvYV12794; Fri, 8 Jun 2001 19:57:34 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> From: Havoc Pennington Date: 08 Jun 2001 19:57:34 -0400 In-Reply-To: "David J. Topper"'s message of "Fri, 08 Jun 2001 16:40:39 -0400" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > Is there a way for me to force a window to remain in focus? I've got > some popup windows on a canvas, that of course drop to back when focus > moves off them. I'm looking for an easy way to force them to remain on > top. > By "popup" do you mean a dialog or a menu or a tooltip type of thing? Are they toplevel GtkWindows? Are they GTK_WINDOW_POPUP? Do you actually want keyboard focus on these, or do you just mean you want them to remain on top? (You mean on top of another window, or on top of the other widgets in a canvas?) Havoc From skip@beluga.mojam.com Fri Jun 8 21:08:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 735612BCF9 for ; Fri, 8 Jun 2001 21:08:47 -0400 (EDT) Received: by beluga.mojam.com (Postfix, from userid 504) id 28D632818; Fri, 8 Jun 2001 20:08:44 -0500 (CDT) From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15137.30492.15858.792431@beluga.mojam.com> Date: Fri, 8 Jun 2001 20:08:44 -0500 To: gtk-list@gnome.org Subject: odd assertion in gtktextiter.c X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm getting an assertion error in forward_line_leaving_caches_unmodified in gtktextiter.c (this is from the vanilla 1.3.5 distribution). There is a test of new_line: if (new_line != NULL) { ... do some stuff ... } else { /* There is no way to move forward; we were already at the "end" index. (the end index is the last line pointer, segment_byte_offset of 0) */ g_assert (real->line_char_offset == 0 || real->line_byte_offset == 0); ... do some other stuff ... } I'm landing in the else clause. The assertion is failing because real_line_char_offset is -1 and real->line_byte_offset is 25. I looked at new_line and discovered its value to be 0xffffffff. So my confusion is two-fold. One, new_line's value looks mighty suspicious to me. (Looks like -1 instead of a valid pointer.) Two, how in the heck could new_line have compared equal to NULL? I don't believe I did anything unusual when compiling Gtk, so the gcc compilation flags where probably just "-g -O2". I'll try rebuilding without any optimization and see if that helps. Any other debugging suggestions would be appreciated. Thanks, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From 4dadio@telkom.net Fri Jun 8 21:24:53 2001 Return-Path: <4dadio@telkom.net> Delivered-To: gtk-list@gnome.org Received: from out-mta3.plasa.com (out-mta3.plasa.com [202.134.0.195]) by mail.gnome.org (Postfix) with ESMTP id 23BA62CF20 for ; Fri, 8 Jun 2001 21:24:46 -0400 (EDT) Received: out-mta3.plasa.com; Sat, 09 Jun 2001 08:24:37 +0700 Received: out-mta2.plasa.com; Sat, 09 Jun 2001 08:24:37 +0700 Received: from [192.168.19.56] (account <4dadio@telkom.net>) by mail.plasa.com (CommuniGate Pro WebUser 3.4.4) with HTTP id 1810391 for ; Sat, 09 Jun 2001 08:24:37 +0700 From: "dodi-nug" <4dadio@telkom.net> Subject: examp. of simple graphic using Gdk To: gtk-list@gnome.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.4 Date: Sat, 09 Jun 2001 08:24:37 +0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: There is a lack of how to draw graphic using gdk. so if you guys have an example to draw a simple x=y graphic, please tell me. thanks for your help dadio From hp@redhat.com Fri Jun 8 23:58:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4B0B42BACE for ; Fri, 8 Jun 2001 23:58:05 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f593w2T27857; Fri, 8 Jun 2001 23:58:02 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Hacks needed. References: <101f01c0f074$e2607a20$750a000a@naples> From: Havoc Pennington Date: 08 Jun 2001 23:58:02 -0400 In-Reply-To: "Ian King"'s message of "Fri, 8 Jun 2001 16:43:56 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > > 1) Does anyone know why the vertical scrollbar in a scrollable gtklist > doesn't function when the list contains more than 2500 items? The size of GtkList is limited by the size of an X window, which is 32K pixels or so. Using GtkCList is recommended for this reason among others. I don't know the other two, if you have test cases file a bug on bugzilla.gnome.org and someone can investigate. Havoc From hp@redhat.com Sat Jun 9 00:06:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2DF0C2DBA0 for ; Sat, 9 Jun 2001 00:06:24 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5946NQ28955; Sat, 9 Jun 2001 00:06:23 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: odd assertion in gtktextiter.c References: <15137.30492.15858.792431@beluga.mojam.com> From: Havoc Pennington Date: 09 Jun 2001 00:06:23 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 8 Jun 2001 20:08:44 -0500" Message-ID: Lines: 39 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I'm getting an assertion error in forward_line_leaving_caches_unmodified in > gtktextiter.c (this is from the vanilla 1.3.5 distribution). There is a > test of new_line: > > if (new_line != NULL) > { > ... do some stuff ... > } > else > { > /* There is no way to move forward; we were already > at the "end" index. (the end index is the last > line pointer, segment_byte_offset of 0) */ > > g_assert (real->line_char_offset == 0 || > real->line_byte_offset == 0); > ... do some other stuff ... > } > > I'm landing in the else clause. The assertion is failing because > real_line_char_offset is -1 and real->line_byte_offset is 25. I looked at > new_line and discovered its value to be 0xffffffff. So my confusion is > two-fold. One, new_line's value looks mighty suspicious to me. (Looks like > -1 instead of a valid pointer.) Two, how in the heck could new_line have > compared equal to NULL? I don't believe I did anything unusual when > compiling Gtk, so the gcc compilation flags where probably just "-g -O2". > I'll try rebuilding without any optimization and see if that helps. Any > other debugging suggestions would be appreciated. > The value of new_line is probably either the stack getting messed up or gdb getting confused. If you can make a test case for this so I can reproduce it, I'll try to sort it out. Havoc From inodal@teleline.es Sat Jun 9 08:33:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id 0787A2BA83 for ; Sat, 9 Jun 2001 08:33:13 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GENXFY06.JDB for ; Sat, 9 Jun 2001 14:31:10 +0200 Message-ID: <3B220909.205DA3BF@teleline.es> Date: Sat, 09 Jun 2001 13:31:21 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: hbox widgets with different heights 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, I'm packing a label, a scale and a button in a hbox. If I resize the widget the label and the button should remain of the same size and the scale should be expanded. So I used: [...] _box = gtk_hbox_new(FALSE, 0); _label = gtk_label_new("Integer:"); gtk_box_pack_start(GTK_BOX(_box), _label, FALSE, FALSE, 5); _adj = gtk_adjustment_new(val_default,val_min,val_max,0.1,1.0,1.0); _scale = gtk_hscale_new(GTK_ADJUSTMENT(_adj)); gtk_range_set_update_policy (GTK_RANGE(_scale),GTK_UPDATE_CONTINUOUS); gtk_scale_set_digits (GTK_SCALE(_scale),0); gtk_scale_set_value_pos (GTK_SCALE(_scale), GTK_POS_TOP); gtk_scale_set_draw_value (GTK_SCALE(_scale), TRUE); gtk_box_pack_start(GTK_BOX(_box),_scale, TRUE, TRUE, 0); _button = gtk_button_new_with_label("[-]"); gtk_box_pack_start(GTK_BOX(_box),_button, FALSE, FALSE, 5); [...] That works fine.. the problem is I don't like the height of the button, I would like it a little smaller, so I tried : gtk_widget_set_usize(GTK_WIDGET(_button),20,5); ..but the button widget didn't care at all.. Is there any way to make a widget in a hbox smaller in height than the other widgets?? Thanks in advance, Ignacio Nodal From lsetia78@yahoo.com Sat Jun 9 10:48:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnu.org (unknown [203.195.142.141]) by mail.gnome.org (Postfix) with ESMTP id E9CB62BACE for ; Sat, 9 Jun 2001 10:47:55 -0400 (EDT) Received: (from lsetia@localhost) by gnu.org (8.11.0/8.11.0) id f59F5HY02359; Sat, 9 Jun 2001 20:35:17 +0530 X-Authentication-Warning: milkyway.net.in: lsetia set sender to lsetia78@yahoo.com using -f To: gtk-list@gnome.org Subject: save as dialog... X-please-use: GNU software X-listening-to: Jim Morrison X-personal-homepage: (Still!) Under Construction From: Lokesh Setia Date: 09 Jun 2001 20:35:16 +0530 Message-ID: Lines: 18 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have a couple of questions... o When the file selection widget is used in the context of "Save as", the filename goes off as soon as the directory is changed. Is it a bug in gtk+ 1.2? Or a feature that can be changed? o Is it possible to somehow make the keyboard cursor blink in gtk+ ? Thanks for your time. Loki -- Cricket scoreboard for linux For more info, visit http://scoreboard.sourceforge.net From hp@redhat.com Sat Jun 9 12:27:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 9F6F52D9B8 for ; Sat, 9 Jun 2001 12:27:11 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f59GR7h15824; Sat, 9 Jun 2001 12:27:07 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ignacio Nodal Cc: GTK-List Subject: Re: hbox widgets with different heights References: <3B220909.205DA3BF@teleline.es> From: Havoc Pennington Date: 09 Jun 2001 12:27:07 -0400 In-Reply-To: Ignacio Nodal's message of "Sat, 09 Jun 2001 13:31:21 +0200" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > Is there any way to make a widget in a hbox smaller in height than the > other widgets?? > set_usize() isn't working because it only sets the widget size request, it doesn't force a size. What you want to do is put the button inside a GtkAlignment, then tune the GtkAlignment parameters. Havoc From michaelv@cox-internet.com Sat Jun 9 12:31:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from io.cox-internet.com (unknown [208.180.118.41]) by mail.gnome.org (Postfix) with ESMTP id 8C3102BB31 for ; Sat, 9 Jun 2001 12:31:45 -0400 (EDT) Received: from cdm-233-171-vict.cox-internet.com ([208.180.233.171]) by io.cox-internet.com (InterMail vK.4.02.00.10 201-232-116-110 license dd72657b95c070b1853187e4f5a0d6a7) with ESMTP id <20010609162917.IYJO29067.io@cdm-233-171-vict.cox-internet.com> for ; Sat, 9 Jun 2001 11:29:17 -0500 Subject: themes.org From: Michael Vanderford To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 09 Jun 2001 11:52:20 -0500 Message-Id: <992105540.1078.0.camel@cdm-233-171-vict.cox-internet.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone know what happened to themes.org It's been down for a while now. From alan@clueserver.org Sat Jun 9 12:47:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from clueserver.org (216-99-213-120.dsl.aracnet.com [216.99.213.120]) by mail.gnome.org (Postfix) with ESMTP id 0891A2CC78 for ; Sat, 9 Jun 2001 12:47:56 -0400 (EDT) Received: by clueserver.org (Postfix, from userid 500) id 51DC66E42; Sat, 9 Jun 2001 10:58:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by clueserver.org (Postfix) with ESMTP id 42F045E87; Sat, 9 Jun 2001 10:58:52 -0700 (PDT) Date: Sat, 9 Jun 2001 10:58:52 -0700 (PDT) From: Alan Olsen To: Michael Vanderford Cc: gtk-list@gnome.org Subject: Re: themes.org In-Reply-To: <992105540.1078.0.camel@cdm-233-171-vict.cox-internet.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 9 Jun 2001, Michael Vanderford wrote: > Does anyone know what happened to themes.org > It's been down for a while now. They got hacked when Sourceforge and a bunch of others got hit. I am not certain why it is taking them so long to come back up though. alan@ctrl-alt-del.com | Note to AOL users: for a quick shortcut to reply Alan Olsen | to my mail, just hit the ctrl, alt and del keys. "All power is derived from the barrel of a gnu." - Mao Tse Stallman From Darshan.wakchaure@Vashimail.ltitl.com Fri Jun 8 01:08:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ltitlrelay.ltitl.com (unknown [203.199.54.28]) by mail.gnome.org (Postfix) with ESMTP id 95FDE2D41B for ; Fri, 8 Jun 2001 01:08:14 -0400 (EDT) Received: from Vashimail.ltitl.com ([172.17.9.1]) by ltitlrelay.ltitl.com (Lotus Domino Release 5.0.5) with SMTP id 2001060810371403:29255 ; Fri, 8 Jun 2001 10:37:14 +0530 Received: by Vashimail.ltitl.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id 65256A65.001BE791 ; Fri, 8 Jun 2001 10:34:47 +0530 X-Lotus-FromDomain: VASHI From: Darshan.wakchaure@Vashimail.ltitl.com To: gnome-list@gnome.org Message-ID: <65256A65.001BE5F4.01@Vashimail.ltitl.com> Date: Fri, 8 Jun 2001 10:34:43 +0530 Subject: Help on menu .. Mime-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on ltitlrelay/Ltitl(Release 5.0.5 |September 22, 2000) at 06/08/2001 10:37:14 AM, Serialize by Router on ltitlrelay/Ltitl(Release 5.0.5 |September 22, 2000) at 06/08/2001 10:37:17 AM, Serialize complete at 06/08/2001 10:37:17 AM Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi , I want to have a menu in my application. I have tried to use the sample menu code from the net. Its ok when i am opening notebook kind of appplication, but i want to open multiple windows in from the menu, a mdi - with number of child windows within .. Has anyone used gnome/gtk for building similar kind of stuff??? Thanks, Darshan From reinhard.mueller@bytewise.at Fri Jun 8 10:26:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from email03.aon.at (WARSL401PIP5.highway.telekom.at [195.3.96.112]) by mail.gnome.org (Postfix) with SMTP id 911BA2BAB8 for ; Fri, 8 Jun 2001 10:26:36 -0400 (EDT) Received: (qmail 31834 invoked from network); 8 Jun 2001 14:26:34 -0000 Received: from n813p023.adsl.highway.telekom.at (HELO bytewise.at) ([62.47.45.151]) (envelope-sender ) by qmail3.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 8 Jun 2001 14:26:34 -0000 Message-ID: <3B20E15B.6000003@bytewise.at> Date: Fri, 08 Jun 2001 16:29:47 +0200 From: Reinhard Mueller Organization: GNU Enterprise User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: de, en MIME-Version: 1.0 To: gtk-list@gnome.org Cc: gnue-geas@lists.gnue.org Subject: g_assert vs. g_return[_val]_if_fail 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, We are using glib all over our project (GNU Enterprise) and want to make best use of it's debugging functions. Now the discussion has started on in which cases g_assert should be used and in which g_return... is better. We know the differences: * g_assert is turned off by a different define than g_return..., but both can be turned off. * g_assert terminates the application, where g_return... only terminates the function * therefore, g_assert lets me jump into gdb as soon as it is hit, while g_return... doesn not. This seems to be an advantage for g_assert. * for users, it seems that g_return... is nicer because it doesn't kill the process. So my questions are: Is there a golden rule when to use which? Does it make sense to use both and disable the g_assert for production use and let g_return... in? How do others handle this? Thanks a lot, -- Reinhard Mueller GNU Enterprise project http://www.gnue.org From inodal@teleline.es Sun Jun 10 16:34:31 2001 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 D9D272BEAB for ; Sun, 10 Jun 2001 16:34:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15) with ESMTP id GEQEEH05.F3Z for ; Sun, 10 Jun 2001 22:32:41 +0200 Message-ID: <3B23CB67.6CA5C0C2@teleline.es> Date: Sun, 10 Jun 2001 21:32:55 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: problems with gtk_toggle_button_set_active() and check buttons 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi again, I've create a check button but I've also added a callback which must be called if the right button has been pressed. The calldata is a pointer to my class. When I create it I set the state to TRUE or FALSE according to the value stored in *parameter. [...] _boolean_button = gtk_check_button_new(); _label_widget = gtk_label_new (_label); gtk_container_add(GTK_CONTAINER(_boolean_button), _label_widget); gtk_misc_set_alignment(GTK_MISC(_label_widget), 0.1f, 0.5f); gtk_widget_show(_label_widget); //"button_press_event" instead of "toggled" to know which button was pressed gtk_signal_connect (GTK_OBJECT(_boolean_button), "button_press_event", GTK_SIGNAL_FUNC(CB_ChangedValue), (gpointer) this); //set state as indicated in "*parameter" gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(_boolean_button), (*parameter)); [...] In my callback I look which button has been pressed so I can use differents callbacks for the left and the right button. I know the button only toggles using the left button, that's ok for me. The problem is when I ask in my CB_ChangedValue for "button->active" it returns me FALSE when it's "pressed-in" and TRUE when it's "raised-out". If I don't use gtk_toggle_button_set_active() in the code above all works fine.. Here is the callback function (just testing)... void CB_ChangedValue(GtkWidget* widget, GdkEventButton* event, gpointer cd) { ParameterBoolean * pb = (ParameterBoolean *) cd; switch (event->button) { case 1: *(pb->parameter) = !(*(pb->parameter)); if(pb->_type == BooleanCharCase || pb->_type == BooleanPixmap) pb->Update(); if(pb->_callback != NULL) { void (*pf) (gpointer) = (void (*) (gpointer)) pb->_callback; pf(pb->_calldata); } if (GTK_TOGGLE_BUTTON(widget)->active) { g_print("button activated w:%d p:%d\n",GTK_TOGGLE_BUTTON(widget)->active,*(pb->parameter)); } else { g_print("button desactivated w:%d p:%d\n",GTK_TOGGLE_BUTTON(widget)->active,*(pb->parameter)); } break; case 3: if(pb->_btn3callback != NULL) { void (*pf) (gpointer) = (void (*) (gpointer)) pb->_btn3callback; pf(pb->_btn3data); } break; } What's going wrong? Thanks in advance, Ignacio Nodal From hp@redhat.com Sun Jun 10 17:07:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0AA162DC20 for ; Sun, 10 Jun 2001 17:07:51 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5AL7li07987; Sun, 10 Jun 2001 17:07:47 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Reinhard Mueller Cc: gtk-list@gnome.org, gnue-geas@lists.gnue.org Subject: Re: g_assert vs. g_return[_val]_if_fail References: <3B20E15B.6000003@bytewise.at> From: Havoc Pennington Date: 10 Jun 2001 17:07:47 -0400 In-Reply-To: Reinhard Mueller's message of "Fri, 08 Jun 2001 16:29:47 +0200" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Reinhard Mueller writes: > * g_assert terminates the application, where g_return... only terminates the function > * therefore, g_assert lets me jump into gdb as soon as it is hit, while > g_return... doesn not. This seems to be an advantage for g_assert. You can always run the app with --g-fatal-warnings to also make g_return fatal. > Is there a golden rule when to use which? > Does it make sense to use both and disable the g_assert for production use and let > g_return... in? For GTK, we normally use g_return if the app developer has made a mistake, and g_assert() if GTK itself is confused. Havoc From Simon.Budig@unix-ag.org Sun Jun 10 19:19:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from harley.unix-ag.uni-siegen.de (harley.unix-ag.uni-siegen.de [141.99.42.44]) by mail.gnome.org (Postfix) with ESMTP id 3D3CC2BABF for ; Sun, 10 Jun 2001 19:19:09 -0400 (EDT) Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id BAA17935 for ; Mon, 11 Jun 2001 01:19:07 +0200 Received: (from simon@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id BAA60150 for gtk-list@gnome.org; Mon, 11 Jun 2001 01:19:07 +0200 Date: Mon, 11 Jun 2001 01:19:07 +0200 From: Simon Budig To: gtk-list@gnome.org Subject: "Lightweight GTK+"? Message-ID: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all. I am currently evaluating different Toolkits for an embedded application. I'd like to ask if some people here have made some experiences with GTK+ (on Framebuffer or on X11) in an embedded device. Is it possible to reduce the size of the GTK Library (we don't have unlimited resources) e.g. by removing some unused widgets? Would you recommend to use GTK+ in it's current state? Thanks for opinions, Simon -- Simon.Budig@unix-ag.org http://www.home.unix-ag.org/simon/ From hp@redhat.com Sun Jun 10 23:18:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4192D2BB36 for ; Sun, 10 Jun 2001 23:18:14 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5B3I8U31970; Sun, 10 Jun 2001 23:18:08 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> From: Havoc Pennington Date: 10 Jun 2001 23:18:08 -0400 In-Reply-To: Simon Budig's message of "Mon, 11 Jun 2001 01:19:07 +0200" Message-ID: Lines: 35 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Simon Budig writes: > Is it possible to reduce the size of the GTK Library (we don't have > unlimited resources) e.g. by removing some unused widgets? You can do a custom GTK build and remove a substantial number of the widgets and some other features (e.g. unused image loaders and language modules). Static linking will already strip a lot of unused stuff of course. > Would you recommend to use GTK+ in it's current state? GTK for framebuffer is GTK 1.3.x, which is a development branch - the API is not fixed. Nonetheless it's reasonably stable at this point. If you're willing to tolerate a rough edge or two it should work OK, if you want a full-on shrink-wrapped frozen-solid-API then it's not quite there yet, but will be soon I hope. For embedded you should also consider simply using a small version of X such as the one used for the iPAQ; framebuffer is somewhat smaller but not hugely so, and its smaller size is achieved at the expense of multiprocess support. http://www.redhat.com/devnet/ has an article on GTK framebuffer, scroll down a bit from the top of the front page and you'll see it. The primary advantage of GTK for embedded devices is that you get the same GUI API as a full-fledged computer, and of course the higher-level full-featured nature of that API; GTK will be larger than something like FLTK, but will also be a good bit more powerful if you can afford the size and need the GTK features or the similarity to the non-embedded API. Tradeoffs, tradeoffs. ;-) Havoc From zhu_f@yahoo.com Mon Jun 11 00:09:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id CAF652BF1E for ; Mon, 11 Jun 2001 00:09:15 -0400 (EDT) Message-ID: <20010611040915.71408.qmail@web11502.mail.yahoo.com> Received: from [131.215.103.1] by web11502.mail.yahoo.com; Sun, 10 Jun 2001 21:09:15 PDT Date: Sun, 10 Jun 2001 21:09:15 -0700 (PDT) From: Feng Zhu Subject: get gtk menubar title 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I had some problems with using Gtk-- menu system. Your help will greatly appreciated. First, it looks there is no function to get the title of the menu/menuitem (there is a function to set_title though). If I have a function which takes a menu name and item name, how can I check whether the menu or the item has already exist on the menu bar. Second, why *(menubar->items().begin()) and *(menu->items().begin()) will both return menuitem*? Shouldn't the first return Menu*? How can I traverse the menus given a menubar pointer in that case? Thank you very much, Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From J.B.Huijsmans@chem.rug.nl Mon Jun 11 05:36:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dep.chem.rug.nl (dep.chem.rug.nl [129.125.7.81]) by mail.gnome.org (Postfix) with ESMTP id 1A5702BB4D for ; Mon, 11 Jun 2001 05:36:36 -0400 (EDT) Received: from 00e0291bc23d (chte92.chem.rug.nl [129.125.35.224]) by dep.chem.rug.nl (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id LAA06142 for ; Mon, 11 Jun 2001 11:36:35 +0200 X-Authentication-Warning: dep.chem.rug.nl: Host chte92.chem.rug.nl [129.125.35.224] claimed to be 00e0291bc23d From: "J.B. Huijsmans" To: gtk-list@gnome.org Date: Mon, 11 Jun 2001 11:36:19 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Feature suggestion/request: Display of dotfiles Message-ID: <3B24AD33.8520.D160E7@localhost> Priority: normal X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have just subscribed to this list, so this may have been discussed before. I was looking at a way to change the default behaviour of the fileselection widget to show all files, including 'dotfiles' and it seems to me there is no way to do this currently. I have patched my own version of GTK to include an extra function: gtk_file_selection_show_dotfiles(GtkFileSelection filesel, gboolean dotfiles) I implemented this by adding a global gboolean dot_or_not and addapting the FNMATCH_FLAGS definition, #define FNMATCH_FLAGS(dot_or_not) ( dot_or_not ? FNM_PATHNAME : (FNM_PATHNAME | FNM_PERIOD) ) adding the boolean gboolean dot_or_not=FALSE; and changing every occurance of FNMATCH_FLAGS to FNMATCH_FLAGS(dot_or_not). With this very simple change it was trivial to implement the show dotfiles function to just change the value of dot_or_not. Might this be a useful addition to the gtk fileselection API ? Regards, Jasper -- Ir. J.B. Huijsmans Nijenborgh 4 9747 AG Groningen tel. +31-50-3634503 e-mail: j.b.huijsmans@chem.rug.nl -- From inodal@teleline.es Mon Jun 11 07:43:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp2.teleline.es (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 0C99D2CDF9 for ; Mon, 11 Jun 2001 07:43:01 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp2.teleline.es (Netscape Messaging Server 4.1) with ESMTP id GERKGK04.U12 for ; Mon, 11 Jun 2001 13:41:08 +0200 Message-ID: <3B24A052.E0E184B9@teleline.es> Date: Mon, 11 Jun 2001 12:41:22 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: "button_press_event" signal instead of "toggled" 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, I'll ask it in another way: If I create a check button and want to differentiate between "toggled" event and a "button_press_event" emitted because the right button has been pressed, can I connect only the "button_press_event" signal and then ask in my callback which button has been pressed? Something like this.. gtk_signal_connect_after (GTK_OBJECT(_boolean_button), "button_press_event", GTK_SIGNAL_FUNC(CB_ChangedValue), (gpointer) this); voi CB_ChangedValue (GtkWidget* widget, GdkEventButton* event, gpointer cd) { if (event->button == 1) { /* "toggled" */ } else if (event->button == 3) { /* right button code */ } } The gtk_toggle_button_set_active() function causes the "clicked" and "toggled" signals to be emitted from the button if the state is actually changed. Can this be a problem for me? When I create the button and use gtk_toggle_button_set_active() to set it TRUE it works fine. But then, when I press the button to toggle the state my callback is called because of the "button_press_event". "_boolean_button->active" turns into FALSE but the button toggled twice, so it remains pressed-in. After this first callback, if I press again it toggled only once, but know FALSE is "pressed-in" and TRUE "raise-out". Is there any problem connecting the "button_press_event" signal instead of "toggled"? What's going wrong? Thanks in advance, Ignacio Nodal From john.cupitt@ng-london.org.uk Mon Jun 11 09:47:43 2001 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 77E652BAC0 for ; Mon, 11 Jun 2001 09:47:43 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K44MP; Mon, 11 Jun 2001 14:47:42 +0100 Message-ID: <3B24CAB7.D783B3EF@ng-london.org.uk> Date: Mon, 11 Jun 2001 14:42:15 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Lokesh Setia Cc: gtk-list@gnome.org Subject: Re: save as dialog... 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Lokesh Setia wrote: > o When the file selection widget is used in the context of "Save as", > the filename goes off as soon as the directory is changed. Is it a > bug in gtk+ 1.2? Or a feature that can be changed? It's a feature that can't be changed :-) Lots of people have done new fileselectors, and this is one of the features they almost always put in. Try: http://gtkfilesel.sourceforge.net/ There are lots of others around. > o Is it possible to somehow make the keyboard cursor blink in gtk+ ? I think the next version of GTK has this. It's not easy (as far as I know) in gtk1.2. John From zhu_f@yahoo.com Sun Jun 10 08:45:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id EED4E2DC52 for ; Sun, 10 Jun 2001 08:45:20 -0400 (EDT) Message-ID: <20010610124520.83375.qmail@web11502.mail.yahoo.com> Received: from [131.215.103.1] by web11502.mail.yahoo.com; Sun, 10 Jun 2001 05:45:20 PDT Date: Sun, 10 Jun 2001 05:45:20 -0700 (PDT) From: Feng Zhu Subject: questions about menubar 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I had some problems with using Gtk-- menu system. Your help will greatly appreciated. First, it looks there is no function to get the title of the menu/menuitem (there is a function to set_title though). If I have a function which takes a menu name and item name, how can I check whether the menu or the item has already exist on the menubar. Second, why *(menubar->items().begin()) and *(menu->items().begin()) will both return menuitem*? Shouldn't the first return Menu*? How can I traverse the menus given a menubar pointer in that case? Thank you very much, Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From sven@gimp.org Mon Jun 11 04:19:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id B84722C891 for ; Mon, 11 Jun 2001 04:19:47 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 159Mov-0000Zf-00; Mon, 11 Jun 2001 10:13:09 +0200 To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> From: Sven Neumann Organization: convergence integrated media GmbH Date: 11 Jun 2001 10:13:08 +0200 In-Reply-To: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> Message-ID: Lines: 36 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Simon, Simon Budig writes: > I am currently evaluating different Toolkits for an embedded application. > I'd like to ask if some people here have made some experiences with > GTK+ (on Framebuffer or on X11) in an embedded device. we (http://www.convergence.de/) use GTK+-1.3 ported to DirectFB (http://www.directfb.org/) to avoid the overhead of X and to make use of some advanced features of modern gfx cards like hardware accelerated alpha transparency. > Is it possible to reduce the size of the GTK Library (we don't have > unlimited resources) e.g. by removing some unused widgets? yes, but it's quite a lot of work. It would be nice if we could strip GTK+ down to its basics and provide an easy way to add only the widgets the application really needs. Static linking could be a solution but it does not help if you want to run more than one GTK+ app. Actually we need something like GTK+-Embedded but at the moment I don't see anyone pushing it and we are lacking the resources to do a general solution at the moment. > Would you recommend to use GTK+ in it's current state? it depends on what exactly you are up to. Unfortunately GTK+-1.3 and GLib-1.3 are considerably slower than GTK+-1.2. The major problem here seems to be the bad performance of signal emissions in GObject that has already been pointed out here. Hopefully this will become better before 2.0 is released. Salut, Sven From john.cupitt@ng-london.org.uk Mon Jun 11 09:53:44 2001 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 8EEAA2DCB6 for ; Mon, 11 Jun 2001 09:53:44 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L07K44NH; Mon, 11 Jun 2001 14:53:43 +0100 Message-ID: <3B24CC20.DBD887FA@ng-london.org.uk> Date: Mon, 11 Jun 2001 14:48:16 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: dodi-nug <4dadio@telkom.net> Cc: gtk-list@gnome.org Subject: Re: examp. of simple graphic using Gdk 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dodi-nug wrote: > There is a lack of how to draw graphic using gdk. > so if you guys have an example to draw a simple x=y graphic, > please tell me. There's the scribble example in the tutorial: http://www.gtk.org/tutorial/ch-scribble.html For fancier GDK stuff, any source covering Xlib graphics will be helpful ... the functions are (mostly) the same: eg. for gdk_gc_set_function(), look up XSetFunction(). HTH, John From lsetia78@yahoo.com Mon Jun 11 13:13:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnu.org (unknown [203.195.140.9]) by mail.gnome.org (Postfix) with ESMTP id 84D0F2CAEF for ; Mon, 11 Jun 2001 13:13:22 -0400 (EDT) Received: (from lsetia@localhost) by gnu.org (8.11.0/8.11.0) id f5BHNv701452; Mon, 11 Jun 2001 22:53:57 +0530 X-Authentication-Warning: milkyway.net.in: lsetia set sender to lsetia78@yahoo.com using -f To: John Cupitt Cc: gtk-list@gnome.org Subject: Re: save as dialog... References: <3B24CAB7.D783B3EF@ng-london.org.uk> X-please-use: GNU software X-listening-to: Jim Morrison X-personal-homepage: (Still!) Under Construction From: Lokesh Setia Date: 11 Jun 2001 22:53:57 +0530 In-Reply-To: <3B24CAB7.D783B3EF@ng-london.org.uk> Message-ID: Lines: 25 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "John" == John Cupitt writes: John> Lokesh Setia wrote: >> o When the file selection widget is used in the context of >> "Save as", the filename goes off as soon as the directory is >> changed. Is it a bug in gtk+ 1.2? Or a feature that can be >> changed? John> It's a feature that can't be changed :-) Lots of people have John> done new fileselectors, and this is one of the features they John> almost always put in. Try: John> http://gtkfilesel.sourceforge.net/ Thanks John for the link, It works with all my existing gtk+ applications with LD_PRELOAD (though I needed it most only for my new galeon :)). Regards, Lokesh. -- When we get back, I'll drop a line -- The Doors. From lestat.lioncourt@innocent.com Mon Jun 11 14:17:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-3-245.abo.wanadoo.fr [193.252.111.245]) by mail.gnome.org (Postfix) with ESMTP id 4E7D52BCA5 for ; Mon, 11 Jun 2001 14:17:10 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 48B3AC95E for ; Mon, 11 Jun 2001 20:17:11 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Mon, 11 Jun 2001 18:17:11 +0000 From: "David Goncalves" To: Subject: Setting fonts to a GtkText widget MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010611181711.48B3AC95E@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, anyone knows how can i force a GtkText widget to use specific fonts ? for example, a widget with fixed fonts. Thanks. From rbultje@ronald.bitfreak.net Mon Jun 11 14:46:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www-server.ucu.uu.nl (www-server.ucu.uu.nl [131.211.104.40]) by mail.gnome.org (Postfix) with ESMTP id 79E2F2D409 for ; Mon, 11 Jun 2001 14:46:47 -0400 (EDT) Received: from ucu-105-112.ucu.uu.nl ([131.211.105.112]) by www-server.ucu.uu.nl (Post.Office MTA v3.5.3 release 223 ID# 0-68709U800L100S0V35) with ESMTP id nl for ; Mon, 11 Jun 2001 20:46:45 +0200 Subject: is this a Gtk-problem? From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 11 Jun 2001 20:46:46 +0200 Message-Id: <992285206.1636.4.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Sometimes, I get really weird bug reports and I have no clue what they mean. I have a user who has severe problems getting the whole thing to start at all, he gets the following notice: [root@localhost temp]# studio Oops, error opening /root/.studio/studio_editlist.eli (open_eli_file) <-- my own error, nothing bad Uh oh, something went wrong when opening the edit list file... <-- my own error, nothing bad Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 1927 error_code 8 request_code 141 minor_code 5 [root@localhost temp]# What does this Gdk-error mean? The user has gtk-1.2.10-1 RPMs from gtk.org on a redhat-7.1 box. (with the initial 1.2.9-4 RPMs, the thing segfaulted, also during gtk_widget_show(window) - I can provide the backtrace if that's interesting). He uses gdk-pixbuf 0.8.0-7. gdb shows no backtrace for this error (because it's not a segfault). And the program starts up, the window appears for 0,1 second but he doesn't get the the notice that it got past gtk_widget_show(window) so something is going wrong in gtk_widget_show(window); - but what? Can anyone shed some light on this for me? It's a unique case. For all other users, it runs fine (but they again don't use redhat-7.1) Thanks in advance (and sorry for bothering you with my users' bug reports but I have no clue where else to ask), Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From andres_giraldo@yahoo.com Mon Jun 11 15:15:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11507.mail.yahoo.com (web11507.mail.yahoo.com [216.136.172.39]) by mail.gnome.org (Postfix) with SMTP id 1F13D2E112 for ; Mon, 11 Jun 2001 15:15:44 -0400 (EDT) Message-ID: <20010611191543.3592.qmail@web11507.mail.yahoo.com> Received: from [208.221.130.25] by web11507.mail.yahoo.com; Mon, 11 Jun 2001 12:15:43 PDT Date: Mon, 11 Jun 2001 12:15:43 -0700 (PDT) From: "Andrés" Giraldo Subject: Newbie questions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm newbie at gtk and I need a little help; I'm trying to create a new Widget its based on a drawingarea, but I have 2 problems: 1. If I declare another widget of the type I'm creating, gtk returns me the following error: Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion `bin->child == NULL' failed. I don't understand the parent class and those things... 2. I have a procedure that repaints the drawing area; I connect a signal to the drawingarea, on the expose event, but... How can I pass it the members of the structure I'm creating? I'm trying to pass a gpointer to the object but in the expose_event function the gpointer data->any_member doesn't work... Please give me any idea... I really apreciate this, Thanks a lot The little header code: /***************************************************/ #ifndef __GTK_NEWLABEL_H__ #define __GTK_NEWLABEL_H__ #include #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define GTK_NEWLABEL(obj) GTK_CHECK_CAST (obj, gtk_newlabel_get_type (), GtkNewLabel) #define GTK_NEWLABEL_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_newlabel_get_type (), GtkNewLabelClass) #define IS_GTK_NEWLABEL(obj) GTK_CHECK_TYPE (obj, gtk_newlabel_get_type ()) typedef struct _GtkNewLabel GtkNewLabel; typedef struct _GtkNewLabelClass GtkNewLabelClass; struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; gchar *str; glong backred; glong backgreen; glong backblue; glong forered; glong foregreen; glong foreblue; }; struct _GtkNewLabelClass { GtkVBoxClass parent_class; }; guint gtk_newlabel_get_type (); GtkWidget* gtk_newlabel_new (gchar *caption); void gtk_newlabel_set_caption (GtkNewLabel *newlabel, gchar *caption); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __GTK_NEWLABEL_H__ */ My Widget's code... /****************************************************/ #include "gtk/gtktable.h" #include "gtk/gtkdrawingarea.h" #include "gtknewlabel.h" #define arial "-ult1mo-arial-medium-r-normal-*-*-160-*-*-p-*-adobe-fontspecific" static void gtk_newlabel_class_init (GtkNewLabelClass *klass); static void gtk_newlabel_init (GtkNewLabel *newlabel); void gtk_newlabel_expose (gpointer data); GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable); GdkColor *NewColor (long red, long green, long blue); guint gtk_newlabel_get_type () { static guint newlabel_type = 0; if (!newlabel_type) { GtkTypeInfo newlabel_info = { "GtkNewLabel", sizeof (GtkNewLabel), sizeof (GtkNewLabelClass), (GtkClassInitFunc) gtk_newlabel_class_init, (GtkObjectInitFunc) gtk_newlabel_init, (GtkArgSetFunc) NULL, (GtkArgGetFunc) NULL }; newlabel_type = gtk_type_unique (gtk_vbox_get_type (), &newlabel_info); } return newlabel_type; } static void gtk_newlabel_class_init (GtkNewLabelClass *class) { } static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; long back_red = 0xb4b4; long back_green = 0xb2b2; long back_blue = 0xb0b0; long fore_red = 0x0000; long fore_green = 0x0000; long fore_blue = 0x0000; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_red", (void *)back_red); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_green", (void *)back_green); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "back_blue", (void *)back_blue); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_red", (void *)fore_red); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_green", (void *)fore_green); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "fore_blue", (void *)fore_blue); gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "caption", ""); gtk_widget_show (newlabel->drawing_area); gtk_signal_connect (GTK_OBJECT (newlabel->drawing_area), "expose_event", GTK_SIGNAL_FUNC (gtk_newlabel_expose), NULL); } GtkWidget* gtk_newlabel_new (gchar *caption) { GtkNewLabel *newlabel; newlabel = gtk_type_new (gtk_newlabel_get_type ()); gtk_newlabel_set_caption (newlabel, caption); return GTK_WIDGET (newlabel); } void gtk_newlabel_set_caption (GtkNewLabel *newlabel, gchar *caption) { gtk_object_set_data (GTK_OBJECT (newlabel->drawing_area), "caption", (void *)caption); } void gtk_newlabel_expose (gpointer data) { GtkWidget *drawing_area = data; GdkDrawable *drawable = drawing_area->window; GdkGC *gc_back, *gc_fore; GdkFont *font; int x, y, height, width; long back_red = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_red"); long back_green = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_green"); long back_blue = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "back_blue"); long fore_red = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_red"); long fore_green = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_green"); long fore_blue = (long)gtk_object_get_data (GTK_OBJECT (drawing_area), "fore_blue"); char *caption = (char *)gtk_object_get_data (GTK_OBJECT (drawing_area), "caption"); gc_back = GetPen (NewColor (back_red, back_green, back_blue), drawable); gc_fore = GetPen (NewColor (fore_red, fore_green, fore_blue), drawable); gdk_draw_rectangle (drawable, gc_back, TRUE, 0, 0, drawing_area->allocation.width, drawing_area->allocation.height); font = gdk_font_load (arial); height = gdk_text_height (font, caption, strlen(caption)); width = gdk_text_width (font, caption, strlen(caption)); x = ((drawing_area->allocation.width - width) / 2); y = ((drawing_area->allocation.height - height) / 2) + height; gdk_draw_string (drawable, font, gc_fore, x, y, caption); } GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From iweiny@acm.org Mon Jun 11 15:33:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.he.net (mail.he.net [216.218.130.57]) by mail.gnome.org (Postfix) with ESMTP id 60E632E196 for ; Mon, 11 Jun 2001 15:33:36 -0400 (EDT) Received: from acm.org ([216.218.229.236] (may be forged)) by mail.he.net (8.8.6/8.8.2) with ESMTP id MAA22458; Mon, 11 Jun 2001 12:33:32 -0700 Message-ID: <3B251ADF.E6B9ECF5@acm.org> Date: Mon, 11 Jun 2001 12:24:15 -0700 From: Ira Weiny X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.4.5-pre3 ppc) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org, linuxppc Subject: gtk font dependancies 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am running linuxppc-2000-Q4 on my Apple Titanium PowerBook. I am _not_ runnig gnome just straight enlightenment. I have rpm's for XFree86 installed (4.0.99) version. My question is: where does gtk get it's fonts from? (xfs?) I have a couple of programs, namely gscanbus and gaim which don't display certian text correctly. I have messed with xfs and I have _many_ font's installed but I still get "square" characters in certian dialogs. Here is a list of the font packages I have intsalled. $ rpm -qa | grep font ghostscript-fonts-5.50-1 chkfontpath-1.7-2 XFree86-ISO8859-2-100dpi-fonts-4.0.99.3-0b urw-fonts-2.0-4 XFree86-ISO8859-2-75dpi-fonts-4.0.99.3-0b tetex-fonts-1.0.6-11a XFree86-cyrillic-fonts-4.0.99.3-0b XFree86-100dpi-fonts-4.0.99.3-0b XFree86-75dpi-fonts-4.0.99.3-0b XFree86-ISO8859-7-100dpi-fonts-1.0-4 XFree86-ISO8859-7-75dpi-fonts-1.0-4 XFree86-ISO8859-7-Type1-fonts-1.0-4 XFree86-ISO8859-9-100dpi-fonts-2.1.2-10 XFree86-ISO8859-9-75dpi-fonts-2.1.2-10 Thanks in advance, Ira Weiny iweiny@acm.org From Esteban.Quijano@artinsoft.com Mon Jun 11 15:39:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from freedom-srv.intranet (unknown [196.40.21.166]) by mail.gnome.org (Postfix) with ESMTP id DE3402E239 for ; Mon, 11 Jun 2001 15:39:05 -0400 (EDT) Received: by FREEDOM-SRV with Internet Mail Service (5.5.2650.21) id ; Mon, 11 Jun 2001 13:31:10 -0600 Message-ID: From: Esteban Quijano Vincenzi To: gtk-list@gnome.org Subject: RE: Newbie questions Date: Mon, 11 Jun 2001 13:31:10 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0F2AD.117BDFAE" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_01C0F2AD.117BDFAE Content-Type: text/plain; charset="iso-8859-1" Ok, you can pass whatever you want to the callback using your gpointer data: gboolean on_expose_event(GtkWidget *widget, GtkEvent *event, gpointer data) { struct my_struct_t *ms = (my_struct_t *)data; ... /* Use ms as you wish */ ... return TRUE; } or even you can do: gboolean on_expose_event(GtkWidget *widget, GtkEvent *event, struct my_struct_t *ms) { ... /* Use ms as you wish */ ... return TRUE; } later in your code: ... struct my_struct_t ms; ms.something = something; ... gtk_signal_connect(GTK_OBJECT(drawing_area), "expose_event", GTK_SIGNAL_FUNC(on_expose_event), &ms); ... gtk_main(); ... just be carefull about the number of parameters your callback function has: gboolean on_expose_event(GtkWidget *widget, gpointer data); will give you an error when trying to access data as a (my_struct_t *) Esteban Q. ------_=_NextPart_001_01C0F2AD.117BDFAE Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Newbie questions

Ok, you can pass whatever you want to the callback = using your gpointer data:

gboolean on_expose_event(GtkWidget *widget, GtkEvent = *event, gpointer data)
{
   struct my_struct_t *ms =3D (my_struct_t = *)data;
   ...
   /* Use ms as you wish */
   ...
   return TRUE;
}

or even you can do:

gboolean on_expose_event(GtkWidget *widget, GtkEvent = *event, struct my_struct_t *ms)
{
   ...
   /* Use ms as you wish */
   ...
   return TRUE;
}

later in your code:

   ...
   struct my_struct_t ms;
   ms.something =3D something;
   ...
   = gtk_signal_connect(GTK_OBJECT(drawing_area), "expose_event", = GTK_SIGNAL_FUNC(on_expose_event), &ms);
   ...
   gtk_main();
   ...

just be carefull about the number of parameters your = callback function has:

   gboolean on_expose_event(GtkWidget = *widget, gpointer data);

will give you an error when trying to access data as = a (my_struct_t *)


Esteban Q.

------_=_NextPart_001_01C0F2AD.117BDFAE-- From rsteinke@w-link.net Mon Jun 11 17:18:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id B42BF2BD32 for ; Mon, 11 Jun 2001 17:18:33 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159Z8W-0005Sd-00 for ; Mon, 11 Jun 2001 14:22:12 -0700 Date: Mon, 11 Jun 2001 14:22:12 -0700 To: gtk-list@gnome.org Subject: GObject Message-ID: <3B253684.nailG6Z19P8Y1@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Could someone explain how the "properties-changed" signal in GObject is supposed to work? How do you write objects so they use it properly? Ron Steinke From hp@redhat.com Mon Jun 11 17:57:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8037B2BC2D for ; Mon, 11 Jun 2001 17:57:45 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5BLxq113758; Mon, 11 Jun 2001 17:59:52 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ira Weiny Cc: gtk-list@gnome.org, linuxppc Subject: Re: gtk font dependancies References: <3B251ADF.E6B9ECF5@acm.org> From: Havoc Pennington Date: 11 Jun 2001 17:59:51 -0400 In-Reply-To: Ira Weiny's message of "Mon, 11 Jun 2001 12:24:15 -0700" Message-ID: Lines: 8 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ira Weiny writes: > My question is: where does gtk get it's fonts from? (xfs?) They come from the X server, GTK isn't doing anything different from any other X app. Havoc From hp@redhat.com Mon Jun 11 18:01:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5179F2E267 for ; Mon, 11 Jun 2001 18:01:46 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5BM3va24733; Mon, 11 Jun 2001 18:03:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: GObject References: <3B253684.nailG6Z19P8Y1@yggdrasil> From: Havoc Pennington Date: 11 Jun 2001 18:03:57 -0400 In-Reply-To: Ron Steinke's message of "Mon, 11 Jun 2001 14:22:12 -0700" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Could someone explain how the "properties-changed" signal in > GObject is supposed to work? How do you write objects so they use > it properly? > You don't use it - we are campaigning to get it removed because it slows down GTK a lot and is not particularly useful. To get notification you connect to "notify::property_name", or just "notify" to get notification on all properties. To see how to send notifies in your own object implementations, look at most any GTK widget. Typically: void set_foo (Object *obj, Foo *foo) { obj->foo = foo; g_object_notify (obj, "foo"); } obj_set_property (blah blah) { case PROP_FOO: set_foo (obj, g_value_get_foo (value)); break; } Havoc From andrej.prsa@guest.arnes.si Mon Jun 11 18:51:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id A35FA2BF75 for ; Mon, 11 Jun 2001 18:51:11 -0400 (EDT) Received: from arnes.si (ar9-6i.dial-up.arnes.si [194.249.12.6]) by razor.arnes.si (Postfix) with SMTP id 77D35E663 for ; Tue, 12 Jun 2001 00:51:09 +0200 (MET DST) Date: Tue, 12 Jun 2001 00:52:59 +0200 From: Andrej Prsa To: gtk-list@gnome.org Subject: GDK-PixBuf Message-Id: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> X-Mailer: Sylpheed version 0.4.66 (GTK+ 1.2.9; i686-pc-linux-gnu) Organization: University of Astrophysics 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello! I'm going nuts with GDK-Pixbuf... I searched all over the net for a small example but failed to find it. The examples I did find utilize gnome.h, which I try to avoid. Here's my problem: I have to put simple jpg or gif graphics (with known dimensions, bits, ...) to screen. I tried to do it like this: #include #include #include #include "gtk/gtk.h" #include "gdk-pixbuf/gdk-pixbuf.h" int main (int argc, char *argv[]) { GtkWidget *window; GdkPixbuf *image; GdkPixmap *canvas; GdkGC *setup; gtk_init (&argc, &argv); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap()); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); gtk_widget_set_usize (window, 600, 600); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); image = gdk_pixbuf_new_from_file ("test.jpg"); canvas = gdk_pixmap_new (window->window, 262, 392, 8); setup = gdk_gc_new (canvas); gdk_pixbuf_render_to_drawable (image, canvas, setup, 0, 0, 0, 0, 262, 392, GDK_RGB_DITHER_NORMAL, 0, 0); gtk_widget_show_all (window); gtk_main(); return (0); } It compiles without problem, but, however, it crashes with: Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 59 error_code 8 request_code 147 minor_code 3 Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 60 error_code 8 request_code 147 minor_code 3 I'm really clueless... Any ideas? Andrej From rsteinke@w-link.net Mon Jun 11 19:10:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 1719D2DC80 for ; Mon, 11 Jun 2001 19:10:40 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159atF-0008Do-00 for ; Mon, 11 Jun 2001 16:14:33 -0700 Date: Mon, 11 Jun 2001 16:14:33 -0700 To: gtk-list@gnome.org Subject: Error running configure for CVS atk Message-ID: <3B2550D9.nailODH1UY76R@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I try to build atk from CVS, configure gives the following error: ./configure: line 5864: syntax error near unexpected token ``(a' ./configure: line 5864: ` case `(ac_space=' '; set | grep ac_space) 2>&1` in' The surrounding code is: # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache Similar code appears in the configure for pango (and probably glib, I haven't checked) and works fine. What's going on? Ron Steinke From topper@virginia.edu Mon Jun 11 19:26:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (unknown [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id 768BD2BD65 for ; Mon, 11 Jun 2001 19:26:44 -0400 (EDT) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by relay1-us.simplemente.net (Postfix) with SMTP id 5ED49D7829 for ; Mon, 11 Jun 2001 19:26:42 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa25751; 11 Jun 2001 19:26 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA26939 for ; Mon, 11 Jun 2001 19:26:32 -0400 (EDT) Message-ID: <3B252A56.A41BC06F@virginia.edu> Date: Mon, 11 Jun 2001 16:30:14 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Creating GdkEvents? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm having some trouble sending events around CanvasItems and GtkAdjustments. I'm thinking I need to create a new event type, something like "activate" or "trigger_my_event." But the functions listed to do that seem a bit heavy for my used (eg., # of bytes for function() pointer?). Where can I get a list of Gdk/Gtk Events for a given class? Or if anyone has some advice or sample code on creating my own event, I'd really appreciate it. Thanks, Dave Topper -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From topper@virginia.edu Mon Jun 11 19:28:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 5F9642E279 for ; Mon, 11 Jun 2001 19:28:19 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa26898; 11 Jun 2001 19:28 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA27296; Mon, 11 Jun 2001 19:28:15 -0400 (EDT) Message-ID: <3B252ABD.FFF37A9D@virginia.edu> Date: Mon, 11 Jun 2001 16:31:57 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "David J. Topper" writes: > > > > Is there a way for me to force a window to remain in focus? I've got > > some popup windows on a canvas, that of course drop to back when focus > > moves off them. I'm looking for an easy way to force them to remain on > > top. > > > > By "popup" do you mean a dialog or a menu or a tooltip type of thing? > Are they toplevel GtkWindows? Are they GTK_WINDOW_POPUP? > > Do you actually want keyboard focus on these, or do you just mean you > want them to remain on top? (You mean on top of another window, or on > top of the other widgets in a canvas?) I mean a window, they are GtkWindows, not popups. I'm using them to get parameters for items created on the fly (eg., length, width, height) and I don't want the "windows" to drop in back when I accidentally move the mouse off them. Thanks, DT -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From kens@ActiveState.com Mon Jun 11 19:38:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id CC5D92E2A0 for ; Mon, 11 Jun 2001 19:34:41 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5BMYEA13537; Mon, 11 Jun 2001 15:34:14 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5BKZIt20009; Mon, 11 Jun 2001 13:35:18 -0700 Date: Mon, 11 Jun 2001 13:35:18 -0700 (PDT) From: Ken Simpson To: Cc: , David Ascher , Mark Hammond Subject: Automatic focus handling? How do I turn it off? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was told that gtk has a mechanism for automatically setting or removing the focus on widgets in response to events such as keypresses. I think this mechanism has been enabled somewhere inside Mozilla and is causing all kinds of focus-related problems with Mozilla plugins. Can anyone tell me where I can look in gtk to find this automatic focus setting code? Thanks, Ken Simpson Komodo Developer ActiveState From jfbenck@home.nl Mon Jun 11 19:38:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from CP102461-A.home.nl (cp102461-a.landg1.lb.nl.home.com [213.51.21.239]) by mail.gnome.org (Postfix) with ESMTP id 6740A2E2AD for ; Mon, 11 Jun 2001 19:37:13 -0400 (EDT) Received: (from jeroen@localhost) by CP102461-A.home.nl (8.11.0/8.11.0) id f5BNcqP02597; Tue, 12 Jun 2001 01:38:52 +0200 X-Authentication-Warning: CP102461-A.home.nl: jeroen set sender to jfbenck@home.nl using -f Subject: Re: Creating GdkEvents? From: Jeroen Benckhuijsen To: David "J." Topper Cc: gtk-list@gnome.org In-Reply-To: <3B252A56.A41BC06F@virginia.edu> References: <3B252A56.A41BC06F@virginia.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 12 Jun 2001 01:38:52 +0200 Message-Id: <992302732.1367.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 11 Jun 2001 16:30:14 -0400, David J. Topper wrote: > Hi folks, > > I'm having some trouble sending events around CanvasItems and > GtkAdjustments. I'm thinking I need to create a new event type, > something like "activate" or "trigger_my_event." But the functions > listed to do that seem a bit heavy for my used (eg., # of bytes for > function() pointer?). > > Where can I get a list of Gdk/Gtk Events for a given class? > > Or if anyone has some advice or sample code on creating my own event, > I'd really appreciate it. > > Thanks, > > Dave Topper > -- > Technical Director, Virginia Center for Computer Music > http://www.people.virginia.edu/~djt7p > (804) 924-7355 > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list I don't think you want GdkEvents. Most (or all) of them are translations of X Window Events, like an event to redraw a window, resize it, move a mouse, etc, etc. I think what you want is a GtkSignal. The definition of the signals can be found in the .h files (most of the fuction pointers in the class structure) or in the API documentation on http://developer.gnome.org. Often however there isn't really a good description so you'll have to figure out yourselves when a signal is emitted. You can also define you're own signals i believe using a function of GtkObject (think it's called gtk_object_add_user_event or something like that). -- Jeroen Benckhuijsen Software Engineer Phoenix Software From topper@virginia.edu Mon Jun 11 19:45:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 746462E298 for ; Mon, 11 Jun 2001 19:45:13 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab05922; 11 Jun 2001 19:45 EDT Received: from virginia.edu (yammer.music.Virginia.EDU [128.143.140.30]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA29639; Mon, 11 Jun 2001 19:42:00 -0400 (EDT) Message-ID: <3B252DF6.D4ED4B2B@virginia.edu> Date: Mon, 11 Jun 2001 16:45:42 -0400 From: "David J. Topper" Organization: UVA - VCCM X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Jeroen Benckhuijsen Cc: gtk-list@gnome.org Subject: Re: Creating GdkEvents? References: <3B252A56.A41BC06F@virginia.edu> <992302732.1367.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jeroen Benckhuijsen wrote: > > I don't think you want GdkEvents. Most (or all) of them are translations > of X Window Events, like an event to redraw a window, resize it, move a > mouse, etc, etc. You're correct. Signals are what I really want. But I'm unable to find a list on the Gnome pages. Similarly, the .h files are a bit elusive too (eg., gtksignal.h doesn't have them). DT -- Technical Director, Virginia Center for Computer Music http://www.people.virginia.edu/~djt7p (804) 924-7355 From king@eiffel.com Mon Jun 11 19:53:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id C157E2E2AD for ; Mon, 11 Jun 2001 19:53:24 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 159bUo-0005Qr-00 for gtk-list@gnome.org; Mon, 11 Jun 2001 16:53:22 -0700 Message-ID: <058e01c0f2d2$bd7c5570$750a000a@naples> From: "Ian King" To: Subject: Pixmaps and focus Date: Mon, 11 Jun 2001 17:00:50 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I were to write a gtktext replacement using gtkpixmap, what are the easiest ways for. 1) Letting the pixmap receive the focus when the user clicks on the editor. 2) Preventing the focus from leaving the widget on tab or arroy key press. Thanks for your time. Ian King. From skip@real-time.com Mon Jun 11 20:03:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id E288F2E2AF for ; Mon, 11 Jun 2001 20:03:58 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5C02R615454; Mon, 11 Jun 2001 19:02:27 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15141.23570.637244.705725@beluga.mojam.com> Date: Mon, 11 Jun 2001 19:02:26 -0500 To: "David J. Topper" Cc: Jeroen Benckhuijsen , gtk-list@gnome.org Subject: Re: Creating GdkEvents? In-Reply-To: <3B252DF6.D4ED4B2B@virginia.edu> References: <3B252A56.A41BC06F@virginia.edu> <992302732.1367.0.camel@CP102461-A.home.nl> <3B252DF6.D4ED4B2B@virginia.edu> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David> Signals are what I really want. But I'm unable to find a list on David> the Gnome pages. Similarly, the .h files are a bit elusive too David> (eg., gtksignal.h doesn't have them). Try the GtkWidget reference manual page: http://developer.gnome.org/doc/API/2.0/gtk/gtkwidget.html (Scroll down to the Signal Prototypes section.) Most signals are defined by GtkWidget. I believe any that end in "-event" are signals tied to X events. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hoshem@mel.comcen.com.au Mon Jun 11 20:47:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (unknown [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id E32A22BC15 for ; Mon, 11 Jun 2001 20:47:15 -0400 (EDT) Received: from BuffyRox.localdomain (ppp19.angel.comcen.com.au [203.23.238.19]) by relay1-us.simplemente.net (Postfix) with ESMTP id 58EB0D7829 for ; Mon, 11 Jun 2001 20:47:04 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5C0oN802922; Tue, 12 Jun 2001 10:50:23 +1000 Date: Tue, 12 Jun 2001 10:50:22 +1000 From: Helmethead To: Andrej Prsa Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf Message-ID: <20010612105022.A2877@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Andrej Prsa , gtk-list@gnome.org References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si>; from andrej.prsa@guest.arnes.si on Tue, Jun 12, 2001 at 12:52:59AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 12, 2001 at 12:52:59AM +0200, Andrej Prsa wrote: > Hello! > > I'm going nuts with GDK-Pixbuf... I searched all over the net for a small example but failed to find it. The examples I did find utilize gnome.h, which I try to avoid. > > Here's my problem: I have to put simple jpg or gif graphics (with known dimensions, bits, ...) to screen. I tried to do it like this: > > #include > #include > #include > #include "gtk/gtk.h" > #include "gdk-pixbuf/gdk-pixbuf.h" > > int main (int argc, char *argv[]) > { > GtkWidget *window; > GdkPixbuf *image; > GdkPixmap *canvas; > GdkGC *setup; > > gtk_init (&argc, &argv); > > gtk_widget_push_visual (gdk_rgb_get_visual ()); > gtk_widget_push_colormap (gdk_rgb_get_cmap()); > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); > gtk_widget_set_usize (window, 600, 600); > gtk_widget_pop_visual (); > gtk_widget_pop_colormap (); > > image = gdk_pixbuf_new_from_file ("test.jpg"); > canvas = gdk_pixmap_new (window->window, 262, 392, 8); window->window doesn't exist yet, so that might be why this is failing. You can just pass NULL for the first argument anyway. From hoshem@mel.comcen.com.au Mon Jun 11 21:18:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (ppp19.angel.comcen.com.au [203.23.238.19]) by mail.gnome.org (Postfix) with ESMTP id D01AA2BF58 for ; Mon, 11 Jun 2001 21:18:54 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5C1V3K03010; Tue, 12 Jun 2001 11:31:03 +1000 Date: Tue, 12 Jun 2001 11:31:03 +1000 From: Helmethead To: Ronald Bultje Cc: GTK Mailing List Subject: Re: is this a Gtk-problem? Message-ID: <20010612113103.B2877@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Ronald Bultje , GTK Mailing List References: <992285206.1636.4.camel@tux> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <992285206.1636.4.camel@tux>; from rbultje@ronald.bitfreak.net on Mon, Jun 11, 2001 at 08:46:46PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 11, 2001 at 08:46:46PM +0200, Ronald Bultje wrote: > gdb shows no backtrace for this error (because it's not a segfault). And > the program starts up, the window appears for 0,1 second but he doesn't > get the the notice that it got past gtk_widget_show(window) so something > is going wrong in gtk_widget_show(window); - but what? Don't know what the error means here, but you can make the error cause a core dump so you can get a useful backtrace by starting the program with the --g-fatal-warnings switch. From hp@redhat.com Mon Jun 11 22:47:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2B4412BE83 for ; Mon, 11 Jun 2001 22:47:20 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2lFM27582; Mon, 11 Jun 2001 22:47:15 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ken Simpson Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Havoc Pennington Date: 11 Jun 2001 22:47:15 -0400 In-Reply-To: Ken Simpson's message of "Mon, 11 Jun 2001 13:35:18 -0700 (PDT)" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson writes: > I was told that gtk has a mechanism for automatically setting or removing > the focus on widgets in response to events such as keypresses. I think > this mechanism has been enabled somewhere inside Mozilla and is causing > all kinds of focus-related problems with Mozilla plugins. > > Can anyone tell me where I can look in gtk to find this automatic focus > setting code? > I don't really understand the question - do you mean GTK widgets take focus when clicked? That code is per-widget, e.g. GtkEntry will call gtk_widget_grab_focus() if it gets a button click. Or do you mean GTK has support for moving focus via the Tab key, etc.? This is handled initially in the key_press_event default handler in gtkwindow.c and from there moves into the "focus" virtual function/signal on specific sub-containers. Havoc From hp@redhat.com Mon Jun 11 22:53:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 937892DC07 for ; Mon, 11 Jun 2001 22:53:36 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2rYW28329; Mon, 11 Jun 2001 22:53:34 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Andrej Prsa Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> From: Havoc Pennington Date: 11 Jun 2001 22:53:34 -0400 In-Reply-To: Andrej Prsa's message of "Tue, 12 Jun 2001 00:52:59 +0200" Message-ID: Lines: 33 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andrej Prsa writes: > image = gdk_pixbuf_new_from_file ("test.jpg"); > canvas = gdk_pixmap_new (window->window, 262, 392, 8); The "8" argument here is totally bogus, it will only work if your display is 8-bit. If window->window existed (and it doesn't here) you could then pass -1 for the depth to use the one from the window. However in this case you might do: gdk_pixmap_new (NULL, 262, 392, gtk_widget_get_visual (window)->depth); > gdk_pixbuf_render_to_drawable (image, canvas, setup, 0, 0, 0, 0, > 262, 392, GDK_RGB_DITHER_NORMAL, 0, 0); You need to look at the "scribble" example in the GTK tutorial for how to go about displaying the pixbuf. The tutorial is on www.gtk.org. > Gdk-ERROR **: BadMatch (invalid parameter attributes) > serial 59 error_code 8 request_code 147 minor_code 3 > Gdk-ERROR **: BadMatch (invalid parameter attributes) > serial 60 error_code 8 request_code 147 minor_code 3 These are from the depth of 8. In GTK 2, you could just do: image = gtk_image_new_from_file ("test.jpg"); gtk_container_add (GTK_CONTAINER (window), image); So look forward to that. ;-) Havoc From hp@redhat.com Mon Jun 11 22:55:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 762C22DC8C for ; Mon, 11 Jun 2001 22:54:35 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2sX828394; Mon, 11 Jun 2001 22:54:33 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Error running configure for CVS atk References: <3B2550D9.nailODH1UY76R@yggdrasil> From: Havoc Pennington Date: 11 Jun 2001 22:54:33 -0400 In-Reply-To: Ron Steinke's message of "Mon, 11 Jun 2001 16:14:33 -0700" Message-ID: Lines: 7 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Get latest pkg-config from http://www.freedesktop.org/software/, and be sure to re-run autogen.sh. Havoc From hp@redhat.com Mon Jun 11 22:56:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 25C192C9EE for ; Mon, 11 Jun 2001 22:56:32 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C2uV928534; Mon, 11 Jun 2001 22:56:31 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> From: Havoc Pennington Date: 11 Jun 2001 22:56:31 -0400 In-Reply-To: "David J. Topper"'s message of "Mon, 11 Jun 2001 16:31:57 -0400" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > I mean a window, they are GtkWindows, not popups. I'm using them to get > parameters for items created on the fly (eg., length, width, height) and > I don't want the "windows" to drop in back when I accidentally move the > mouse off them. > I don't understand why they're moving to the back - is your window manager using focus-follows-mouse and raise-on-focus? Havoc From hp@redhat.com Mon Jun 11 23:01:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id E93252DBBA for ; Mon, 11 Jun 2001 23:01:08 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C316R28967; Mon, 11 Jun 2001 23:01:06 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Pixmaps and focus References: <058e01c0f2d2$bd7c5570$750a000a@naples> From: Havoc Pennington Date: 11 Jun 2001 23:01:06 -0400 In-Reply-To: "Ian King"'s message of "Mon, 11 Jun 2001 17:00:50 -0700" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > If I were to write a gtktext replacement using gtkpixmap, This is a totally weird thing to do, btw. > 1) Letting the pixmap receive the focus when the user clicks on the > editor. Set the GTK_CAN_FOCUS flag, handle focus_in_event and focus_out_event, and gtk_widget_grab_focus() on button click. > 2) Preventing the focus from leaving the widget on tab or arroy key press. Return TRUE from your key_press_event handler when receiving those events. Havoc From zhu_f@yahoo.com Mon Jun 11 23:41:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11504.mail.yahoo.com (web11504.mail.yahoo.com [216.136.172.36]) by mail.gnome.org (Postfix) with SMTP id B10222BD90 for ; Mon, 11 Jun 2001 23:41:10 -0400 (EDT) Message-ID: <20010612034106.42829.qmail@web11504.mail.yahoo.com> Received: from [131.215.103.1] by web11504.mail.yahoo.com; Mon, 11 Jun 2001 20:41:06 PDT Date: Mon, 11 Jun 2001 20:41:06 -0700 (PDT) From: Feng Zhu Subject: list select_child signal problem 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: What is wrong with the following code: (SPWorkSpaceView is the class name and FileSelectChild is a method. _file_list is a Gtk::List) _file_list->select_child.connect(bind(slot(this, &SPWorkSpaceView::FileSelectChild), _file_list, _main_window)); Compiler gives: no matching function for call to `Gtk::List::Proxy_select_child::connect (SigC::Slot0)' /usr/local/include/gtk--/list.h:281: candidates are: SigC::Connection Gtk::List::Proxy_select_child::connect (const SigC::Slot1 &) But for Gtk::tree works fine. Feng __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From kens@ActiveState.com Tue Jun 12 01:07:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id E29CF2E236 for ; Tue, 12 Jun 2001 01:07:02 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C46oA09778; Mon, 11 Jun 2001 21:06:50 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C56oE02379; Mon, 11 Jun 2001 22:06:50 -0700 Date: Mon, 11 Jun 2001 22:06:50 -0700 (PDT) From: Ken Simpson To: Havoc Pennington Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Or do you mean GTK has support for moving focus via the Tab key, etc.? > This is handled initially in the key_press_event default handler in > gtkwindow.c and from there moves into the "focus" virtual > function/signal on specific sub-containers. I apologize if I wasn't clear in my email. The problem is that pressing keys such as the arrow keys, the backspace, and the tab cause my widget to lose focus and for its containing window to gain focus. The key press event first hits my widget and then, once I have returned 0 from the key_press handler, control returns to gtk, the focus is removed, and the event is propagated to the containing window where it is handled. So I suppose it could have something to do with gtk's support for moving the focus with tab, etc.. How does one turn this functionality off? Thanks very much for your help, Havoc. Regards, Ken From kens@ActiveState.com Tue Jun 12 01:13:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id 496752E2BD for ; Tue, 12 Jun 2001 01:13:19 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C4CuA10033; Mon, 11 Jun 2001 21:12:56 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5C5Ct702613; Mon, 11 Jun 2001 22:12:55 -0700 Date: Mon, 11 Jun 2001 22:12:55 -0700 (PDT) From: Ken Simpson To: Havoc Pennington Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Or do you mean GTK has support for moving focus via the Tab key, etc.? > This is handled initially in the key_press_event default handler in > gtkwindow.c and from there moves into the "focus" virtual > function/signal on specific sub-containers. Let's try lines 1255+ of gtkwindow.c: case GDK_Up: case GDK_Down: case GDK_Left: case GDK_Right: case GDK_KP_Up: ... gtk_container_focus (GTK_CONTAINER (widget), direction); if (!GTK_CONTAINER (window)->focus_child) gtk_window_set_focus (GTK_WINDOW (widget), NULL); else handled = TRUE; break; } Is this the code which performs automatic focus changing in response to keypresses? It certainly seems to fit the symptoms :) Hmm.. But there doesn't appear any way of "turning it off". TTUL Ken From hp@redhat.com Tue Jun 12 01:44:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 877332C7E9 for ; Tue, 12 Jun 2001 01:44:37 -0400 (EDT) Received: (from hp@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) id f5C5iXf12671; Tue, 12 Jun 2001 01:44:33 -0400 X-Authentication-Warning: devserv.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ken Simpson Cc: , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Havoc Pennington Date: 12 Jun 2001 01:44:32 -0400 In-Reply-To: Ken Simpson's message of "Mon, 11 Jun 2001 22:12:55 -0700 (PDT)" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson writes: > Is this the code which performs automatic focus changing in response to > keypresses? It certainly seems to fit the symptoms :) > Hmm.. But there doesn't appear any way of "turning it off". > Yep, that's the code. Writing other widget sets is not what GTK is made for, so we don't have an easy way to change this. ;-) That's why Chris was working on Xlib Mozilla for a while I imagine. However you can do a hack to GtkWindow - connect to key_press_event, when you see one of these keys call gtk_signal_emit_stop_by_name to kill the event. Or subclass GtkWindow and override the default signal handler and do something a bit differently there. Should be able to get it working. You could possibly also override set_focus or grab_focus and do some sort of hack. You may well have weird interactions with GtkMozEmbed and apps like Galeon... Havoc From rsteinke@w-link.net Tue Jun 12 01:55:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 08CEC2D2FB for ; Tue, 12 Jun 2001 01:55:20 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159hCt-0001TR-00; Mon, 11 Jun 2001 22:59:15 -0700 Date: Mon, 11 Jun 2001 22:59:15 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Error running configure for CVS atk Cc: gtk-list@gnome.org Message-ID: <3B25AFB3.nail3J91WQY1M@yggdrasil> References: <3B2550D9.nailODH1UY76R@yggdrasil> In-Reply-To: User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks. It seems I was running the sourceforge CVS version of pkg-config, which is old. Ron Steinke From david.robin@st.com Tue Jun 12 02:18:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mail.gnome.org (Postfix) with ESMTP id E66622BCB1 for ; Tue, 12 Jun 2001 02:18:01 -0400 (EDT) Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id B1FE94A53 for ; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id EC8454A74; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: from eux100.sgp.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B19F5184F for ; Tue, 12 Jun 2001 06:18:00 +0000 (GMT) Received: from st.com (fenix.nvg.sgp.st.com [164.129.227.19]) by eux100.sgp.st.com (8.8.6 (PHNE_17190)/8.8.6) with ESMTP id IAA18896 for ; Tue, 12 Jun 2001 08:17:59 +0200 (METDST) Message-ID: <3B25B533.97696368@st.com> Date: Tue, 12 Jun 2001 08:22:43 +0200 From: David Robin X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: PanedBox Bug? References: <20010611233005.1B3A12E29B@mail.gnome.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I Created a H-Paned Box with a notebook in each of the panels with gtk_panel_add. When I hide the left notebook, the left panel goes hidden. But the right notebook doesnot takes the empty space, and the gutter stays visible. Is it the expected behaviour? The behaviour I expected was : when I 'kind of' close one of the panel, the other one fills all the space, and the gutter desappears because it is no more useful. Then, If I show both notebooks again, the gutter reappears, at the same position it used to be. Is this a bug, or do I need to add some code in my app and make it by myself? Thanks, David. From alex@vabank.kiev.ua Tue Jun 12 02:55:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.lucky.net (smtp.lucky.net [193.193.193.117]) by mail.gnome.org (Postfix) with ESMTP id 2105E2BC92 for ; Tue, 12 Jun 2001 02:55:29 -0400 (EDT) Received: from kozlik.carrier.kiev.ua (kozlik.carrier.kiev.ua [193.193.193.111]) by smtp.lucky.net (20001217) with ESMTP id 2D1902C712C for ; Tue, 12 Jun 2001 09:55:24 +0300 (EEST) Received: (from uucp@localhost) by kozlik.carrier.kiev.ua with UUCP id JVG97761 for gtk-list@gnome.org; Tue, 12 Jun 2001 09:55:16 +0300 (EEST) (envelope-from alex@vabank.kiev.ua) Received: from vabank.UUCP (uucp@localhost) by kozlik.carrier.kiev.ua (rmail mypid=97760 childpid=97761) with UUCP; Tue, 12 Jun 2001 06:55:16 +0000 GMT Received: (from alex@localhost) by vabank.kiev.ua (8.9.3/8.9.3) id JAA01298 for gtk-list@gnome.org; Tue, 12 Jun 2001 09:50:50 +0300 Date: Tue, 12 Jun 2001 09:50:50 +0300 From: Alex Biryukov To: gtk-list@gnome.org Subject: refresh window's labels Message-ID: <20010612095050.A1273@queen.vabank.kiev.ua> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Is anybody know how to refresh labels of the main window, after change language of GUI ? I use gettext, and change lang by setting environment variable: setenv("LANGUAGE", "es", 1); /* Make change known. */ { extern int _nl_msg_cat_cntr; ++_nl_msg_cat_cntr; } All of dialog boxes ok, because they created each time. But main window remain in old language. Any idea ? Thanks a lot. Alex From mseisdedos@cirsa.com Tue Jun 12 03:10:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id A7B802BE13 for ; Tue, 12 Jun 2001 03:10:27 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A69.00275AB8; Tue, 12 Jun 2001 09:09:51 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Tue, 12 Jun 2001 09:10:41 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4807@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: gtkclist Date: Tue, 12 Jun 2001 09:10:39 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello everybody: how can i know how many rows are there in a gtkclist???? Is there any conversion macro to get a glist from a gtkclist??? From matt.keenan@ireland.sun.com Tue Jun 12 03:52:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by mail.gnome.org (Postfix) with ESMTP id BDED92DB7E for ; Tue, 12 Jun 2001 03:52:03 -0400 (EDT) Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id AAA09708 for ; Tue, 12 Jun 2001 00:52:01 -0700 (PDT) Received: from ireland.Sun.COM (zaphod [129.156.238.30]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.1p1) with ESMTP id IAA24429 for ; Tue, 12 Jun 2001 08:52:01 +0100 (BST) Message-ID: <3B25C8BE.244572A5@ireland.Sun.COM> Date: Tue, 12 Jun 2001 08:46:06 +0100 From: Matt Keenan Organization: Sun Microsystems Inc X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.9 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: gtkclist References: <01294F3FC12BD41183BD00D0B7176A1D4D4807@srvexch> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Just access the GtkClist widget structure member "rows" and this will tell you how many items there are in the Clist. GtkWidget *CList_Widget; gint rows; row =3D GTK_CLIST(CList_Widget)->rows; You can then loop throught the clist based on the "rows" variable. for (i=3D0; i = > Hello everybody: > how can i know how many rows are there in a gtkclist???? > Is there any conversion macro to get a glist from a gtkclist??? > = > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- = __.--'\ \.__./ /'--.__ _.-' '.__.' '.__.' '-._ .' '. / Matt Keenan (MattMan) \ | CDE, Sun Microsystems Ireland | | GO JAGUARS !! | | E-Mail : Matt.Keenan@ireland.Sun.Com | | mattman@iol.ie | | URL : http://www.iol.ie/~mattman | | Phone : +353 1 8199251, Sun Ext : 19251 | \ .---. .---. / '._ .' '.''. .''.' '. _.' '-./ \ / \.-' '' From otaylor@redhat.com Tue Jun 12 07:42:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id CB88F2D2EC for ; Tue, 12 Jun 2001 07:42:50 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 38D042422D3; Tue, 12 Jun 2001 07:42:50 -0400 (EDT) To: Havoc Pennington Cc: Ken Simpson , , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: From: Owen Taylor Date: 12 Jun 2001 07:42:50 -0400 In-Reply-To: Havoc Pennington's message of "12 Jun 2001 01:44:32 -0400" Message-ID: Lines: 35 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington writes: > Ken Simpson writes: > > Is this the code which performs automatic focus changing in response to > > keypresses? It certainly seems to fit the symptoms :) > > Hmm.. But there doesn't appear any way of "turning it off". > > > > Yep, that's the code. Writing other widget sets is not what GTK is > made for, so we don't have an easy way to change this. ;-) That's why > Chris was working on Xlib Mozilla for a while I imagine. > > However you can do a hack to GtkWindow - connect to key_press_event, > when you see one of these keys call gtk_signal_emit_stop_by_name to > kill the event. Or subclass GtkWindow and override the default signal > handler and do something a bit differently there. Should be able to > get it working. You could possibly also override set_focus or > grab_focus and do some sort of hack. > > You may well have weird interactions with GtkMozEmbed and apps like > Galeon... You shouldn't need anything this complicated, or this likely to break stuff. Widgets are sent key presses before GTK+ checks for focus keys. If the widget handles the key press in its event handler and returns TRUE, then GTK+ will not check for tab/arrows. For instance, this is how GtkText prevents a tab key from tabbing out of the GtkText widget. Regards, Owen From pbd@op.net Tue Jun 12 07:58:05 2001 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 1C10A2BAFB for ; Tue, 12 Jun 2001 07:58:05 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-09.ppp.op.net [209.152.194.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id HAA01694; Tue, 12 Jun 2001 07:57:58 -0400 (EDT) Message-Id: <200106121157.HAA01694@renoir.op.net> To: Ken Simpson Cc: Havoc Pennington , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Mon, 11 Jun 2001 22:06:50 PDT." Date: Tue, 12 Jun 2001 07:59:27 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I apologize if I wasn't clear in my email. The problem is that pressing >keys such as the arrow keys, the backspace, and the tab cause my widget to >lose focus and for its containing window to gain focus. The key press >event first hits my widget and then, once I have returned 0 from the >key_press handler, control returns to gtk, the focus is removed, and the >event is propagated to the containing window where it is handled. > >So I suppose it could have something to do with gtk's support for moving >the focus with tab, etc.. How does one turn this functionality off? you can't turn it off per se. you have two choices: 1) on a per-widget basis, catch key_press/key release events. if they are for one of the navigation keys, do nothing except: gtk_signal_emit_block_by_name (...); return TRUE; 2) install a global key snooper, inspect all key press events, and discard or translate the navigation keys. and yes, i don't like it any more than you do :) --p From pbd@op.net Tue Jun 12 08:00:19 2001 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 1BAFA2DCF5 for ; Tue, 12 Jun 2001 08:00:19 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-09.ppp.op.net [209.152.194.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA01853; Tue, 12 Jun 2001 08:00:12 -0400 (EDT) Message-Id: <200106121200.IAA01853@renoir.op.net> To: Owen Taylor Cc: Havoc Pennington , Ken Simpson , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "12 Jun 2001 07:42:50 EDT." Date: Tue, 12 Jun 2001 08:01:41 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Widgets are sent key presses before GTK+ checks for focus keys. If the >widget handles the key press in its event handler and returns TRUE, >then GTK+ will not check for tab/arrows. Owen, I'm suprised! You must be too used to Gtk 1.3 :) Returning TRUE by itself isn't enough to stop focus navigation under 1.2 ... From sjwillis@one.net Mon Jun 11 16:21:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from us.net (newmail1.one.net [216.23.22.181]) by mail.gnome.org (Postfix) with SMTP id C49DD2CEB7 for ; Mon, 11 Jun 2001 16:21:48 -0400 (EDT) Received: (qmail 29173 invoked by uid 0); 11 Jun 2001 20:21:42 -0000 Received: from unknown (HELO dhcp100) (216.23.55.74) by newmail1.one.net with SMTP; 11 Jun 2001 20:21:42 -0000 Date: Mon, 11 Jun 2001 16:21:40 -0400 (EDT) From: Jim Willis X-Sender: sjwillis@powerbook.jimshouse To: Ira Weiny Cc: gtk-list@gnome.org, linuxppc Subject: Re: gtk font dependancies In-Reply-To: <3B251ADF.E6B9ECF5@acm.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I had the same problem and partially solved it (though i still get the squares every so often, particuallarly when its looking for helvetica. Although, other apps which use helvetica display it just fine. anyway, here's the relevant config file from /etc/X11/fs catalogue = /usr/X11R6/lib/X11/fonts/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/100dpi:unscaled, /usr/X11R6/lib/X11/fonts/75dpi, /usr/X11R6/lib/X11/fonts/100dpi, /usr/share/fonts/default/Type1, /usr/X11R6/lib/X11/fonts/latin2/75dpi, /usr/X11R6/lib/X11/fonts/latin2/100dpi, /usr/X11R6/lib/X11/fonts/truetype, # /usr/X11R6/lib/X11/fonts/tt, /usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled, /usr/X11R6/lib/X11/fonts/local, /usr/X11R6/lib/X11/fonts/CID, /usr/X11R6/lib/X11/fonts/misc:unscaled, /usr/X11R6/lib/X11/fonts/misc, /usr/X11R6/lib/X11/fonts/Type1, /usr/X11R6/lib/X11/fonts/Speedo On Mon, 11 Jun 2001, Ira Weiny wrote: > > I am running linuxppc-2000-Q4 on my Apple Titanium PowerBook. I am > _not_ runnig gnome just straight enlightenment. I have rpm's for > XFree86 installed (4.0.99) version. > > My question is: where does gtk get it's fonts from? (xfs?) I have a > couple of > programs, namely gscanbus and gaim which don't display certian text > correctly. I have messed with xfs and I have _many_ font's installed > but I still get "square" characters in certian dialogs. > > Here is a list of the font packages I have intsalled. > > $ rpm -qa | grep font > ghostscript-fonts-5.50-1 > chkfontpath-1.7-2 > XFree86-ISO8859-2-100dpi-fonts-4.0.99.3-0b > urw-fonts-2.0-4 > XFree86-ISO8859-2-75dpi-fonts-4.0.99.3-0b > tetex-fonts-1.0.6-11a > XFree86-cyrillic-fonts-4.0.99.3-0b > XFree86-100dpi-fonts-4.0.99.3-0b > XFree86-75dpi-fonts-4.0.99.3-0b > XFree86-ISO8859-7-100dpi-fonts-1.0-4 > XFree86-ISO8859-7-75dpi-fonts-1.0-4 > XFree86-ISO8859-7-Type1-fonts-1.0-4 > XFree86-ISO8859-9-100dpi-fonts-2.1.2-10 > XFree86-ISO8859-9-75dpi-fonts-2.1.2-10 > > Thanks in advance, > Ira Weiny > iweiny@acm.org > > ** Sent via the linuxppc-user mail list. See http://lists.linuxppc.org/ > > From andrej.prsa@guest.arnes.si Tue Jun 12 08:21:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id 00E732BCDC for ; Tue, 12 Jun 2001 08:21:28 -0400 (EDT) Received: from arnes.si (ar8-184i.dial-up.arnes.si [194.249.0.184]) by razor.arnes.si (Postfix) with SMTP id B123DE619; Tue, 12 Jun 2001 14:21:03 +0200 (MET DST) Date: Tue, 12 Jun 2001 14:21:49 +0200 From: Andrej Prsa To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GDK-PixBuf Message-Id: <20010612142149.256b821e.andrej.prsa@guest.arnes.si> In-Reply-To: References: <20010612005259.5b1bf005.andrej.prsa@guest.arnes.si> X-Mailer: Sylpheed version 0.4.66 (GTK+ 1.2.9; i686-pc-linux-gnu) Organization: University of Astrophysics 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thank you very much, everybody! > In GTK 2, you could just do: > image = gtk_image_new_from_file ("test.jpg"); > gtk_container_add (GTK_CONTAINER (window), image); > > So look forward to that. ;-) > I am looking forward to that! In the meantime, since there's been a lot of questions on a working example for Gtk1.2, I'm posting my solution, hoping someone too will find it useful! #include #include #include #include "gtk/gtk.h" #include "gdk-pixbuf/gdk-pixbuf.h" GdkPixmap *picture; static gint expose_event (GtkWidget *widget, GdkEventExpose *event) { gdk_draw_pixmap (widget->window, widget->style->fg_gc[GTK_WIDGET_STATE (widget)], picture, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; } int main (int argc, char *argv[]) { GtkWidget *window; GtkWidget *vbox; GdkPixbuf *image; GdkGC *setup; GtkWidget *drawing_area; gtk_init (&argc, &argv); printf ("\n"); if (gdk_init_check (&argc, &argv) == 1) printf ("Connection to X Server Successful\n"); if (gdk_init_check (&argc, &argv) == 0) printf ("Connection to X Server Failed\n"); printf ("Display: %s\n", gdk_get_display () ); printf ("ScrWidth: %d\n", gdk_screen_width () ); printf ("ScrHeight: %d\n", gdk_screen_height () ); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap()); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), "WM destroy"); gtk_widget_set_usize (window, 512, 512); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); drawing_area = gtk_drawing_area_new (); gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_area), 512, 512); gtk_box_pack_start (GTK_BOX (vbox), drawing_area, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (drawing_area), "expose_event", (GtkSignalFunc) expose_event, NULL); image = gdk_pixbuf_new_from_file ("test.gif"); picture = gdk_pixmap_new (NULL, 512, 512, gtk_widget_get_visual (drawing_area)->depth); setup = gdk_gc_new (picture); printf ("Visual: %d\n", gtk_widget_get_visual (drawing_area)->depth); printf ("Channels: %d\n", gdk_pixbuf_get_n_channels (image)); printf ("Width: %d\n", gdk_pixbuf_get_width (image)); printf ("Height: %d\n", gdk_pixbuf_get_height (image)); printf ("Alpha: %d\n", gdk_pixbuf_get_has_alpha (image)); printf ("Bits: %d\n", gdk_pixbuf_get_bits_per_sample (image)); printf ("Rowstride: %d\n", gdk_pixbuf_get_rowstride (image)); printf ("\n"); gdk_pixbuf_render_to_drawable (image, picture, setup, 0, 0, 0, 0, 512, 512, GDK_RGB_DITHER_NONE, 0, 0); gdk_draw_pixmap ((GdkDrawable *)drawing_area, setup, picture, 0, 0, 0, 0, 512, 512); gtk_widget_show_all (window); gtk_main(); return (0); } Thanks again! Andrej From andres_giraldo@yahoo.com Tue Jun 12 14:34:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id A57E12DCD4 for ; Tue, 12 Jun 2001 14:34:50 -0400 (EDT) Message-ID: <20010612183449.15578.qmail@web11502.mail.yahoo.com> Received: from [208.221.130.25] by web11502.mail.yahoo.com; Tue, 12 Jun 2001 11:34:49 PDT Date: Tue, 12 Jun 2001 11:34:49 -0700 (PDT) From: "Andrés" Giraldo Subject: drawing_area->window!=NULL 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to create a new widget, this is my init object function: static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; GdkGC *gc; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (newlabel->drawing_area); gc = GetPen (NewColor (0x0000, 0x0000, 0x0000), newlabel->drawing_area->window); } /***************************************************** These functions, returns a GdkGC * color; *****************************************************/ GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } /***************************************************** The Widget structure *****************************************************/ struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; }; /*****************************************************/ Why Gdk returns: Gdk-CRITICAL **: file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed. Gdk-CRITICAL **: file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed. It doesn't work even if I show the newlabel->drawing_area widget or not... Why? Thanks! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From rsteinke@w-link.net Tue Jun 12 15:02:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 9C7752BDDC for ; Tue, 12 Jun 2001 15:02:25 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 159tUc-0002c7-00 for ; Tue, 12 Jun 2001 12:06:22 -0700 Date: Tue, 12 Jun 2001 12:06:21 -0700 To: gtk-list@gnome.org Subject: _() macro? Message-ID: <3B26682D.nail7R111CG7S@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm seeing a lot of elements like: _("some string") in function calls. Is _() a macro? What does it do? Ron Steinke From wolfgang@contre.com Tue Jun 12 15:06:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cogito.cam.org (cogito.cam.org [198.168.100.2]) by mail.gnome.org (Postfix) with ESMTP id 8CA5D2E38A for ; Tue, 12 Jun 2001 15:06:45 -0400 (EDT) Received: from usrh-5-3.hip.cam.org (root@usrh-5-3.hip.cam.org [204.19.188.3]) by cogito.cam.org (8.11.0/8.11.0.Beta1) with ESMTP id f5CJ6hu26123 for ; Tue, 12 Jun 2001 15:06:43 -0400 Received: from debian.home (wolfgang@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5CJ6f0F006224 for ; Tue, 12 Jun 2001 15:06:42 -0400 Date: Tue, 12 Jun 2001 15:06:41 -0400 Message-ID: <8566e1o6v2.wl@debian.home> From: Wolfgang Sourdeau To: gtk-list@gnome.org Subject: Re: _() macro? Mail-Followup-To: Ron Steinke , gtk-list@gnome.org Mail-Reply-To: wolfgang@contre.com In-Reply-To: <3B26682D.nail7R111CG7S@yggdrasil> References: <3B26682D.nail7R111CG7S@yggdrasil> User-Agent: Wanderlust/2.5.8 (Smooth) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.0.103 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>>> "Ron" == Ron Steinke writes: > I'm seeing a lot of elements like: > _("some string") > in function calls. Is _() a macro? What does it do? It either calls gettext with the string as a parameter so that the program uses the translated strings. Otherwise (if i18n is not enabled during compilation) it just returns the same string. W. From kens@ActiveState.com Tue Jun 12 15:06:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by mail.gnome.org (Postfix) with ESMTP id D28702BD01 for ; Tue, 12 Jun 2001 15:06:50 -0400 (EDT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5CI6ZA18096; Tue, 12 Jun 2001 11:06:35 -0700 Received: from localhost (kens@localhost) by smtp3.ActiveState.com (8.11.1/8.11.1) with ESMTP id f5CJ6YT13680; Tue, 12 Jun 2001 12:06:34 -0700 Date: Tue, 12 Jun 2001 12:06:34 -0700 (PDT) From: Ken Simpson To: Owen Taylor Cc: Havoc Pennington , , , David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filtered-By: PerlMx makes it fast and easy. See http://www.ActiveState.com/Products/PerlMx/Header Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Widgets are sent key presses before GTK+ checks for focus keys. If the > widget handles the key press in its event handler and returns TRUE, > then GTK+ will not check for tab/arrows. > > For instance, this is how GtkText prevents a tab key from tabbing out > of the GtkText widget. Hrm.. I guess the problem with Mozilla is that I need the keypress event to live on for a little while so that Mozilla can grab it. I can't just kill all the navigation keys -- Mozilla needs them so that it can farm them out to its command system. i.e., the order of operations should be: 1. Mozilla grabs ALL gdk events and processes them in its own handler (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) 2. Events are then farmed out to the widget from which they originated (an nsWindow pointer is stored in the user data of the event's any.window object). 3. The widget's key_press handler returns 0 for any keypress which is not something simple, like [A-Za-z0-9_-+] etc.. 4. (hopefully) The key_press event travels up the window hierarchy to the main Mozilla window, where it is ground through the Mozilla keybinding system and produces some result. The event then should _die_. The problem is that, between stages 3 and 4, gtk intercepts the key press and changes the focus. Yuck. I don't think the fix here is going to be easy... Ideas?? TTUL Ken -- New! ASPN - ActiveState Programmer Network Essential programming tools and information http://www.ActiveState.com/ASPN From andres_giraldo@yahoo.com Tue Jun 12 15:35:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11508.mail.yahoo.com (web11508.mail.yahoo.com [216.136.172.40]) by mail.gnome.org (Postfix) with SMTP id C3F962BB41 for ; Tue, 12 Jun 2001 15:35:45 -0400 (EDT) Message-ID: <20010612193544.53122.qmail@web11508.mail.yahoo.com> Received: from [208.221.130.25] by web11508.mail.yahoo.com; Tue, 12 Jun 2001 12:35:44 PDT Date: Tue, 12 Jun 2001 12:35:44 -0700 (PDT) From: "Andrés" Giraldo Subject: Re: drawing_area->window != NULL To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks for your help... Ok I've got it! The window is not realized yet, so I put the drawing code in the expose_event function, but... It only works if I connect the expose event signal to the drawing_area member, not if I connect it to the entire structure... why? This is using the entire structure (That's how I want it). It doesn't work... /*****************************************************/ typedef struct _GtkNewLabel GtkNewLabel; struct _GtkNewLabel { GtkVBox vbox; GtkWidget *drawing_area; }; static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (GTK_WIDGET (newlabel)); gtk_signal_connect(GTK_OBJECT (newlabel), "expose_event", GTK_SIGNAL_FUNC (on_gtk_newlabel_expose_event), &newlabel); } void on_gtk_newlabel_expose_event (GtkNewLabel *newlabel) { GdkGC *gc_back, *gc_fore; GdkDrawable *drawable; drawable = newlabel->drawing_area->window; gc_back = GetPen (NewColor (newlabel->back_red, newlabel->back_green, newlabel->back_blue), drawable); } GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) { GdkGC *gc; gc = gdk_gc_new (drawable); gdk_gc_set_foreground (gc, c); return (gc); } GdkColor *NewColor (long red, long green, long blue) { GdkColor *c = (GdkColor *) g_malloc (sizeof (GdkColor)); c->red = red; c->green = green; c->blue = blue; gdk_color_alloc (gdk_colormap_get_system (), c); return (c); } /*****************************************************/ And this is using the drawing_area member, It Works... static void gtk_newlabel_init (GtkNewLabel *newlabel) { GtkWidget *table; table = gtk_table_new (1, 1, TRUE); gtk_container_add (GTK_CONTAINER (newlabel), table); gtk_widget_show (table); newlabel->drawing_area = gtk_drawing_area_new (); gtk_table_attach_defaults (GTK_TABLE(table), newlabel->drawing_area, 0, 1, 0, 1); gtk_widget_show (newlabel->drawing_area); gtk_signal_connect(GTK_OBJECT (newlabel->drawing_area), "expose_event", GTK_SIGNAL_FUNC (on_gtk_newlabel_expose_event), NULL); } void on_gtk_newlabel_expose_event (gpointer data) { GdkGC *gc_back, *gc_fore; GdkDrawable *drawable = GTK_WIDGET(data)->window; drawable = newlabel->drawing_area->window; gc_back = GetPen (NewColor (newlabel->back_red, newlabel->back_green, newlabel->back_blue), drawable); } So... what I'm doing wrong? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From pbd@op.net Tue Jun 12 15:36:56 2001 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 51FDF2DE46 for ; Tue, 12 Jun 2001 15:36:56 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-0e.ppp.op.net [209.152.206.14]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA17743; Tue, 12 Jun 2001 15:36:47 -0400 (EDT) Message-Id: <200106121936.PAA17743@renoir.op.net> To: Ken Simpson Cc: Owen Taylor , Havoc Pennington , gtk-list@gnome.org, blizzard@redhat.com, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Tue, 12 Jun 2001 12:06:34 PDT." Date: Tue, 12 Jun 2001 15:38:21 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >i.e., the order of operations should be: > >1. Mozilla grabs ALL gdk events and processes them in its own handler > (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) > >2. Events are then farmed out to the widget from which they > originated (an nsWindow pointer is stored in the user data of the > event's any.window object). > >3. The widget's key_press handler returns 0 for any keypress which is not > something simple, like [A-Za-z0-9_-+] etc.. > >4. (hopefully) The key_press event travels up the window hierarchy to the > main Mozilla window, where it is ground through the Mozilla keybinding > system and produces some result. The event then should _die_. > >The problem is that, between stages 3 and 4, gtk intercepts the key press >and changes the focus. Yuck. I don't think the fix here is going to be >easy... use a key snooper instead of an event handler. --p From rwan@cs.mu.oz.au Tue Jun 12 23:02:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 4E2BD2E0CC for ; Tue, 12 Jun 2001 23:01:59 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id NAA10716 for ; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 0ADD275AA; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 0918AAC94 for ; Wed, 13 Jun 2001 13:01:54 +1000 (EST) Date: Wed, 13 Jun 2001 13:01:54 +1000 (EST) From: Raymond Wan To: gtk-list@gnome.org Subject: Argument passing / 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, My GTK+ program is getting fairly large and until now, I've had one big global variable structure that has all the information I need. I was wondering if there is an alternative to this. The program I'm having seems to be in the call back functions, which I don't seem to entirely understand. For example, in a call back function such as this: void closeChildWindow (GtkWidget *widget, gpointer data) I've been passing ints from my program using GPOINTER_TO_INT and GINT_TO_POINTER. But, can I pass anything else, such as a C pointer to a structure or can I pass more than one argument? If so, how would I do this? Also, a separate question...does anyone know of a GTKTextView example (GTK 1.3) that is slightly more involved than the HTML GTK Reference under the section Text Widget Overview? Possibly using tags, marks, and iterators? Thank you! Ray From blizzard@redhat.com Tue Jun 12 15:37:58 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from face.0xdeadbeef.com (unknown [206.40.163.63]) by mail.gnome.org (Postfix) with ESMTP id 85B162D2C8 for ; Tue, 12 Jun 2001 15:37:57 -0400 (EDT) Received: from redhat.com (face.0xdeadbeef.com [127.0.0.1]) by face.0xdeadbeef.com (8.11.2/8.11.2) with ESMTP id f5CJbA628103; Tue, 12 Jun 2001 15:37:10 -0400 Message-ID: <3B266F66.3030500@redhat.com> Date: Tue, 12 Jun 2001 15:37:10 -0400 From: Christopher Blizzard User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2smp i686; en-US; rv:0.9.1+) Gecko/20010608 X-Accept-Language: en-us MIME-Version: 1.0 To: Ken Simpson Cc: Owen Taylor , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ken Simpson wrote: >>Widgets are sent key presses before GTK+ checks for focus keys. If the >>widget handles the key press in its event handler and returns TRUE, >>then GTK+ will not check for tab/arrows. >> >>For instance, this is how GtkText prevents a tab key from tabbing out >>of the GtkText widget. >> > > Hrm.. I guess the problem with Mozilla is that I need the keypress event > to live on for a little while so that Mozilla can grab it. I can't just > kill all the navigation keys -- Mozilla needs them so that it can farm > them out to its command system. > > i.e., the order of operations should be: > > 1. Mozilla grabs ALL gdk events and processes them in its own handler > (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);) > > 2. Events are then farmed out to the widget from which they > originated (an nsWindow pointer is stored in the user data of the > event's any.window object). > > 3. The widget's key_press handler returns 0 for any keypress which is not > something simple, like [A-Za-z0-9_-+] etc.. > > 4. (hopefully) The key_press event travels up the window hierarchy to the > main Mozilla window, where it is ground through the Mozilla keybinding > system and produces some result. The event then should _die_. > > The problem is that, between stages 3 and 4, gtk intercepts the key press > and changes the focus. Yuck. I don't think the fix here is going to be > easy... > > Ideas?? What is it that intercepts the key presses? Is it the gtkwindow class that is being used by the mozbox? Or is it being farmed all the way up to the toplevel? We might need to override the keypress handler for the mozbox class so that the default gtkwindow handler doesn't change focus on you like it sounds like is happening. --Chris From pbd@op.net Tue Jun 12 23:35:53 2001 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 7304F2E0B3 for ; Tue, 12 Jun 2001 23:35:53 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-29.ppp.op.net [209.152.206.41]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA23426; Tue, 12 Jun 2001 23:35:46 -0400 (EDT) Message-Id: <200106130335.XAA23426@renoir.op.net> To: Christopher Blizzard Cc: Ken Simpson , Owen Taylor , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? In-reply-to: Your message of "Tue, 12 Jun 2001 15:37:10 EDT." <3B266F66.3030500@redhat.com> Date: Tue, 12 Jun 2001 23:37:25 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>>Widgets are sent key presses before GTK+ checks for focus keys. If the >>>widget handles the key press in its event handler and returns TRUE, >>>then GTK+ will not check for tab/arrows. not true in GTK+ 1.2. you have to stop the signal emission as well. in GTK+ 1.2, the default handler is run regardless of the return status of other connected handlers. the docs for GTK+ 1.2 do not make this particularly clear. i believe that in GTK+ 1.3/2.0, this is no longer true, and things work the way the docs tend to suggest. its the default handler for key press events in a GtkWindow that controls the movement of focus between widgets in that window. the handler is executed unless you block the emission in the widget that currently has focus (i.e. the one that the window directs the events to). as i've mentioned, i find it easier to do all this stuff using a key snooper, which allows you to completely bypass all of GTK+'s builtin key handling. --p From otaylor@redhat.com Tue Jun 12 23:53:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 6DB6A2BEE0 for ; Tue, 12 Jun 2001 23:53:45 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 0D36C2422FE; Tue, 12 Jun 2001 23:53:44 -0400 (EDT) To: Paul Davis Cc: Christopher Blizzard , Ken Simpson , Havoc Pennington , gtk-list@gnome.org, David Ascher , Mark Hammond Subject: Re: Automatic focus handling? How do I turn it off? References: <200106130335.XAA23426@renoir.op.net> From: Owen Taylor Date: 12 Jun 2001 23:53:44 -0400 In-Reply-To: Paul Davis's message of "Tue, 12 Jun 2001 23:37:25 -0400" Message-ID: Lines: 80 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >>>Widgets are sent key presses before GTK+ checks for focus keys. If the > >>>widget handles the key press in its event handler and returns TRUE, > >>>then GTK+ will not check for tab/arrows. > > not true in GTK+ 1.2. you have to stop the signal emission as well. > > in GTK+ 1.2, the default handler is run regardless of the return > status of other connected handlers. the docs for GTK+ 1.2 do not make > this particularly clear. i believe that in GTK+ 1.3/2.0, this is no > longer true, and things work the way the docs tend to suggest. In this case, what was being discussed was the return value of the default handler, so stopping emission isn't necessary - if someone connects another signal handler using gtk_signal_connect_after() they mean to override the return value. > its the default handler for key press events in a GtkWindow that > controls the movement of focus between widgets in that window. the > handler is executed unless you block the emission in the widget that > currently has focus (i.e. the one that the window directs the events > to). This isn't quite right. In GTK+-1.2 - for every time a signal is run, up to three things may happen: 1) signal handlers run 2) the default handler runs 3) Signal handlers connected with gtk_signal_connect_after run. The return value from the signal is the return value from the last of these; so if 1) returns TRUE meaning "handled", 2) will still be run and override this unless gtk_signal_emit_stop_by_name() is called. In GTK+-2 a TRUE return immediately stops emission. However - this all only applies to a SINGLE signal emission - even in 1.2, if the result of sending the widget to the focus widget is TRUE, no further handling will be done. http://people.redhat.com/otaylor/tmp/key-handling.eps is a diagram of key handling in GTK+-1.2 which may help (or may further confuse) > as i've mentioned, i find it easier to do all this stuff using a key > snooper, which allows you to completely bypass all of GTK+'s builtin key handling is quite complicated enough without getting key snoopers involved! The idea of key snoopers was to handle hotkeys that would work in any window - like the hotkey to invoke the GLE widget tree debugger. If you have a particular GtkWindow, a connection to "key_press_event" on the toplevel already allows you to override all key handling behavior. Regards, Owen [ Actually the situation with Komodo is rather more complicated again - having GTK+ widgets inside mozilla is basically two inter-toolkit widget embeddings. GtkWindow Mozilla content area GtkMozBox holding GTK+ widgets (GtkMozBox derives from GtkWindow!) ] From ishamael@themes.org Wed Jun 13 01:33:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alpha.techcare.com (unknown [207.89.153.66]) by mail.gnome.org (Postfix) with SMTP id 233602CC93 for ; Wed, 13 Jun 2001 01:33:18 -0400 (EDT) Received: (qmail 19830 invoked from network); 13 Jun 2001 03:59:21 -0000 Received: from pm538-38.dialip.mich.net (HELO orodruin) (@198.108.161.96) by alpha.techcare.com with SMTP; 13 Jun 2001 03:59:21 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Charlie Schmidt" To: gtk-list@gnome.org Subject: Re: Argument passing / GTKTextView X-Mailer: Pronto v2.2.6 On linux/mysql Date: 13 Jun 2001 01:05:40 EDT Reply-To: "Charlie Schmidt" In-Reply-To: References: Message-Id: <20010613053318.233602CC93@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: - you can either use gtk_object_set_data() on the widget, to set associate a key string with a gpointer data element: gtk_object_set_data(GTK_OBJECT(widget),"struct",structure); then in the callback: structure = gtk_object_get_data(GTK_OBJECT(widget),"struct"); or pass a structure containing everything (gints,other structs, etc) From: Raymond Wan Subject: Argument passing / GTKTextView Date: Wed, 13 Jun 2001 13:01:54 +1000 (EST) > > Hi all, > > My GTK+ program is getting fairly large and until now, I've had > one big global variable structure that has all the information I need. I > was wondering if there is an alternative to this. > > The program I'm having seems to be in the call back functions, > which I don't seem to entirely understand. For example, in a call back > function such as this: > > void closeChildWindow (GtkWidget *widget, gpointer data) > > I've been passing ints from my program using GPOINTER_TO_INT and > GINT_TO_POINTER. But, can I pass anything else, such as a C pointer to a > structure or can I pass more than one argument? If so, how would I do > this? > > Also, a separate question...does anyone know of a GTKTextView > example (GTK 1.3) that is slightly more involved than the HTML GTK > Reference under the section Text Widget Overview? Possibly using tags, > marks, and iterators? > > Thank you! > > Ray > > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > -- Charlie Schmidt - From inodal@teleline.es Wed Jun 13 06:18:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id D0F302C9FE for ; Wed, 13 Jun 2001 06:18:30 -0400 (EDT) Received: from teleline.es ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with ESMTP id GEV5VN03.V0O for ; Wed, 13 Jun 2001 12:16:35 +0200 Message-ID: <3B272F81.70EB1B7@teleline.es> Date: Wed, 13 Jun 2001 11:16:49 +0200 From: Ignacio Nodal X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: GTK-List Subject: how to hide discrete toggle button not hidding the button completely (button->draw_indicator hide it completely) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to hide the discrete toggle button from a check button? I have add a pixmap to the button "gtk_container_add(GTK_CONTAINER(_boolean_button), _pixmap);" This pixmap changes its GdkPixmap according to the _boolean_button->active value (TRUE or FALSE), so I don't need the discrete toggle button's visual reference any more. Thanks, Ignacio Nodal From john.cupitt@ng-london.org.uk Wed Jun 13 07:49:43 2001 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 C05392DC63 for ; Wed, 13 Jun 2001 07:49:42 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNPC8; Wed, 13 Jun 2001 12:49:40 +0100 Message-ID: <3B27520B.B3902381@ng-london.org.uk> Date: Wed, 13 Jun 2001 12:44:11 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Raymond Wan Cc: gtk-list@gnome.org Subject: Re: Argument passing / GTKTextView 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Raymond Wan wrote: > My GTK+ program is getting fairly large and until now, I've had > one big global variable structure that has all the information I need. I > was wondering if there is an alternative to this. Hi Raymond, there are lots of ways to fix this. One of the easiest is to have a struct for every window you pop up. Allocate and fill the struct when you make one of the windows, pass the address of the struct to every callback from widgets in that window, and destroy the struct when the window is destroyed. Something like (untested, I just typed this in): struct Wombat { GtkWidget *window; GtkWidget *label; GtkWidget *button; int my_data; } static void wombat_clicked( GtkWidget *button, Wombat *wom ) { wom->my_data += 1; } static void wombat_destroy( GtkWidget *window, Wombat *wom ) { printf( "you've had %d wombats\n", wom->my_data ); g_free( wom ); } Wombat * wombat_new( void ) { Wombat *wom = g_new( Wombat, 1 ); wom->window = gtk_window_new( ... wom->button = gtk_button_new( ...etc. gtk_signal_connect( GTK_OBJECT( wom->button ), "clicked", GTK_SIGNAL_FUNC( wombat_click ), wom ); gtk_signal_connect( GTK_OBJECT( wom->window ), "destroy", GTK_SIGNAL_FUNC( wombat_destroy ), wom ); gtk_widget_show( wom->window ); } Next up, you could make your own widgets: there's a section in the tutorial about this: http://www.gtk.org/tutorial/sec-creatingacompositewidget.html This lets you group widgets together, and have them operate as one chunk. You can make your application as a big set of widgets which contain other widgets. It's easier then it sounds. Finally, you can go model/view, and split your app into things which model your data (but do no display), and widgets which hold no information themselves, but just give a view of the stuff in the model widgets. This is very nice and flexible, but harder work. HTH, John From charlet@ACT-Europe.FR Wed Jun 13 09:16:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dublin.ACT-Europe.FR (dublin.act-europe.fr [213.228.58.154]) by mail.gnome.org (Postfix) with ESMTP id EBD112DE86 for ; Wed, 13 Jun 2001 09:16:41 -0400 (EDT) Received: by dublin.ACT-Europe.FR (Postfix, from userid 525) id 419D65F640; Wed, 13 Jun 2001 14:45:56 +0200 (MET DST) Date: Wed, 13 Jun 2001 14:45:56 +0200 From: Arnaud Charlet To: gtk-list@gnome.org Subject: ANNOUNCE: GtkAda 1.2.12 Message-ID: <20010613144556.B20867@dublin.int.act-europe.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: GtkAda 1.2.12 release --------------------- We are happy to announce the availability of GtkAda 1.2.12. GtkAda is an Ada95 graphical toolkit based on Gtk+ version >= 1.2.2. It allows you to develop graphical applications in Ada95 using Gtk+. The primary download site is http://libre.act-europe.fr/GtkAda New features in 1.2.12 include - Version needed by GVD 1.2.0 - Update to GtkExtra 0.99.14, including a new 3D Plot widget. - The GtkAda.Canvas now provides zooming capabilities. It also draws curve links with Bezier splines instead of circles. For efficiency, the items in the canvas are no longer double-buffered. Use Buffered_Items if you want to keep the old behavior. Button_Press events are reported when an item is pressed and the event wasn't used to move the item around. - New function: Gtk.Widget.Set_Parent_Window. - Documentation updates Arnaud Charlet, for the GtkAda team From jedwards@inmet.gov.br Wed Jun 13 09:36:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from challenge.inmet.gov.br (unknown [200.252.242.89]) by mail.gnome.org (Postfix) with ESMTP id 892A22DEB4; Wed, 13 Jun 2001 09:36:48 -0400 (EDT) Received: from inmet.gov.br (localhost [127.0.0.1]) by challenge.inmet.gov.br (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id KAA06146; Wed, 13 Jun 2001 10:36:46 -0300 (EST) Message-ID: <3B276C6E.93918402@inmet.gov.br> Date: Wed, 13 Jun 2001 13:36:46 +0000 From: Jim Edwards X-Mailer: Mozilla 4.73C-SGI [en] (X11; U; IRIX64 6.5 IP25) X-Accept-Language: en MIME-Version: 1.0 To: gtk , gtk-perl Cc: glade Subject: human language support 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I´ve been lurking here and working with glade/gtk+ for a short while now and have a couple of questions: 1. Can someone point me to an example of, or document about, how to build a gtk+ gui with multi-language support. 2. I have an application in C with no gui and one in perl with a perl/Tk gui. I want to combine the two with a gtk+ gui - I have some experience with perl XS so I have an idea of what I´m getting into, but i wonder if anyone has tried to write callbacks in perl from a gtk+ mostly in C. It seems like that would be the right place to cross languages, but maybe some of what glade calls interface calls should also be done from perl? Thanks, Jim From flo.scandella@aon.at Wed Jun 13 03:31:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viemta06.chello.at (viemta06.chello.at [195.34.133.56]) by mail.gnome.org (Postfix) with ESMTP id 2243A2BDE2 for ; Wed, 13 Jun 2001 03:31:28 -0400 (EDT) Received: from spellcaster.tafelritter.org ([62.178.75.196]) by viemta06.chello.at (InterMail vK.4.03.02.00 201-232-124 license 6aea1bd1f01aef5a9a73363c16ebee43) with ESMTP id <20010613073126.LQMA6087.viemta06@spellcaster.tafelritter.org> for ; Wed, 13 Jun 2001 09:31:26 +0200 Subject: gtk-main From: Florian Scandella To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 13 Jun 2001 09:39:47 +0200 Message-Id: <992417987.1179.0.camel@Spellcaster> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi ! Is there a possibility to close the resources allocatet by gtk-main, without exiting the program ( gtk-exit ) ? It's not much ( 104 bytes ) but i hate it to have memory leaks in my programs :-) Another question : Can i call gtk_init twice ? thanx, flo From Roberto@libero.it Wed Jun 13 05:41:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mail.gnome.org (Postfix) with ESMTP id CA6CC2BA99 for ; Wed, 13 Jun 2001 05:41:12 -0400 (EDT) Received: from libero.it (151.25.51.251) by smtp1.libero.it (5.5.025) id 3AE980E700AA52D6 for gtk-list@gnome.org; Wed, 13 Jun 2001 11:41:11 +0200 Message-ID: <3B27356F.4070608@libero.it> Date: Wed, 13 Jun 2001 11:42:07 +0200 From: Roberto User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.18pre21 i686; en-US; rv:0.9; Debian/GNU) Gecko/20010520 X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: The size of a widget. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I know the size of a widget? Have you a little little example? Thank you Roberto From igurnebli@users.sourceforge.net Wed Jun 13 07:31:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dukas.upc.es (dukas.upc.es [147.83.2.62]) by mail.gnome.org (Postfix) with ESMTP id 2908F2E3A4 for ; Wed, 13 Jun 2001 07:31:16 -0400 (EDT) Received: from amadeus.upc.es (amadeus.upc.es [147.83.76.2]) by dukas.upc.es (8.10.1/8.10.1) with ESMTP id f5DBQ9201783 for ; Wed, 13 Jun 2001 13:26:10 +0200 (MET DST) Received: from morera.upc.es (morera.upc.es [147.83.76.38]) by amadeus.upc.es (8.9.1b+Sun/8.9.3) with ESMTP id NAA23657 for ; Wed, 13 Jun 2001 13:22:50 +0200 (MET DST) Subject: GL widget to ship with GTK From: Jordi Rovira i Bonet To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 13 Jun 2001 13:32:29 +0200 Message-Id: <992432041.3989.0.camel@morera> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I think it would be a good thing if the GtkGLArea widget shipped with the default GTK distribution, as in my oppinion, it has been tested a lot and is very used. I suppose that this is not the first time someone suggests this, but i haven't seen any discussion before about it. J From charlet@ACT-Europe.FR Wed Jun 13 10:05:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dublin.ACT-Europe.FR (dublin.act-europe.fr [213.228.58.154]) by mail.gnome.org (Postfix) with ESMTP id C6D812E3F0 for ; Wed, 13 Jun 2001 10:05:14 -0400 (EDT) Received: by dublin.ACT-Europe.FR (Postfix, from userid 525) id 58DC05F5F6; Wed, 13 Jun 2001 16:02:40 +0200 (MET DST) Date: Wed, 13 Jun 2001 16:02:40 +0200 From: Arnaud Charlet To: gtk-list@gnome.org Subject: [ANNOUNCE] Release 1.2.0 of the GNU Visual Debugger Message-ID: <20010613160240.B25371@dublin.int.act-europe.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: We are pleased to announce the availability of GVD, the GNU Visual Debugger, a general purpose graphical debugger front-end licensed under the GNU General Public License. Besides providing all the features of other debugger GUIs, GVD includes advanced data display and visualization capabilities. Furthermore, GVD allows the debugging of multi-process/multi-threaded applications in the same debugging session. GVD works with native as well as cross debuggers and can handle several languages in the same debugging session and the same application. Currently Ada, C and C++ are supported. GVD can run on a host different from the machine where the debugger is running and provides friendly support for cross-debuggers (VxWorks, Lynx, etc.). For instance, you can use Linux or Windows to debug an application running on a Power PC board with a debugger running on a Sun workstation. To build GVD we are using the GtkAda GUI technology. GVD comes with all the GtkAda benefits such as a pluggable look-and-feel, a set of very high-level widgets and the ability to have the same look-and-feel on all of your platforms. You can dowload GVD (sources and binaries for GNU/Linux x86, Solaris sparc and x86, Windows NT/2000, DEC Unix/Tru64, HP-UX, UnixWare, IRIX, AiX) and get more information at http://libre.act-europe.fr New features in GVD 1.2.0: - Under Windows, the special pathnames //cygdrive/x/ and //x/ are now recognized and converted into appropriate names. - The File->New Debugger dialog now provides the ability to replace the current debugger by default. - The "run" and "start" buttons now set automatically the name of the module under VxWorks. - The File->Attach Process menu now lists the tasks on the target when using Tornado VxWorks. - The --target option now allows multiple ':' characters so that you can specify machine:1234 as the machine (& port number). See the documentation for more details. - The file corresponding to the main procedure is now displayed when loading an Ada executable (rather than the procedure containing the elaboration calls). - The data window is now zoomable - The breakpoint editor has been enhanced, and can now set advanced properties like ignore_count, commands to execute when reaching the breakpoint, or conditions to activate the breakpoint - The handling of commands has been improved and is more reliable. Caching of commands has also been put in place giving better user feedback on slow machines. - New item in the source editor contextual menu: display dereferenced variable - New item in the source editor contextual menu: break on subprogram - The option "break on exceptions" has been implemented - It is possible to delete an exception by pressing the 'Delete' key in the Breakpoints Window. - The Tab key is now supported in the debugger window. If you are interested in participating in the GVD development, do not hesitate to contact us (mailto:gvd-devel@lists.act-europe.fr) Arnaud Charlet From hp@redhat.com Wed Jun 13 10:28:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 433232CA4E; Wed, 13 Jun 2001 10:28:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5DEUxK04825; Wed, 13 Jun 2001 10:30:59 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Jim Edwards Cc: gtk , gtk-perl , glade Subject: Re: human language support References: <3B276C6E.93918402@inmet.gov.br> From: Havoc Pennington Date: 13 Jun 2001 10:30:59 -0400 In-Reply-To: Jim Edwards's message of "Wed, 13 Jun 2001 13:36:46 +0000" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jim Edwards writes:=20 > 1. Can someone point me to an example of, or document about, how to > build a gtk+ gui with multi-language support. Just read the gettext info pages, GTK works the same as a non-GUI program basically. >=20 > 2. I have an application in C with no gui and one in perl with a perl/Tk > gui. I want to combine the two with a gtk+ gui - I have some experience > with perl XS so I have an idea of what I=B4m getting into, but i wonder if > anyone has tried to write callbacks in perl from a gtk+ mostly in C. > It seems like that would be the right place to cross languages, but > maybe some of what glade calls interface calls should also be done from > perl? I don't know about that one. ;-) Havoc From andres_giraldo@yahoo.com Wed Jun 13 13:39:23 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id 895972E102 for ; Wed, 13 Jun 2001 13:39:22 -0400 (EDT) Message-ID: <20010613173921.22186.qmail@web11502.mail.yahoo.com> Received: from [208.221.130.25] by web11502.mail.yahoo.com; Wed, 13 Jun 2001 10:39:21 PDT Date: Wed, 13 Jun 2001 10:39:21 -0700 (PDT) From: "Andrés" Giraldo Subject: Callbacks and Signals works with Classes? To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to create a class, this class defines a button, on it's clicked signal it calls a callback function that I want to put in the private part of the class, but it returns me... no matches converting function `on_button_clicked' to type `void (*) ()' clases.h:400: candidates are: void myclass::on_button_clicked () The problem is; GTK_SIGNAL_FUNC is type void (*), and my function is void... How can I call a funciton in the same class? class myclass { private: void on_button_clicked () { } public: ... gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), NULL); }; GTK Works with C++... am I right? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From pbd@op.net Wed Jun 13 14:12:43 2001 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 9BF112DD26 for ; Wed, 13 Jun 2001 14:12:42 -0400 (EDT) Received: from someip.ppp.op.net (d-bm5-01.ppp.op.net [209.152.194.193]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA28212; Wed, 13 Jun 2001 14:12:39 -0400 (EDT) Message-Id: <200106131812.OAA28212@renoir.op.net> To: "Andr s" Giraldo Cc: Gtk List Subject: Re: Callbacks and Signals works with Classes? In-reply-to: Your message of "Wed, 13 Jun 2001 10:39:21 PDT." <20010613173921.22186.qmail@web11502.mail.yahoo.com> Date: Wed, 13 Jun 2001 14:14:26 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >no matches converting function `on_button_clicked' >to type `void (*) ()' >clases.h:400: candidates are: void >myclass::on_button_clicked this is member function. C++ member functions are not, and never have been, interchangeable with regular C functions. this is a common confusion among relatively new C++ programmers (i suffered from it myself many years ago). to do what you want you need: class myclass { static void on_button_clicked (myclass *); }; gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this); the "static" keyword makes the member function into something equivalent to a regular C function. or better yet, use Gtk-- (though many people don't agree with me on that). --p From inodal@teleline.es Wed Jun 13 14:26:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp1.teleline.es (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id D69532D99E for ; Wed, 13 Jun 2001 14:26:18 -0400 (EDT) Received: from PIII500 ([213.97.141.171]) by tsmtppp1.teleline.es (Netscape Messaging Server 4.15) with SMTP id GEVSGO02.OBP; Wed, 13 Jun 2001 20:24:24 +0200 Message-ID: <000701c0f436$1b58f540$0a01a8c0@PIII500> From: "Ignacio Nodal" To: =?iso-8859-1?Q?Andr=E9s_Giraldo?= Cc: "GTK-List" References: <20010613173921.22186.qmail@web11502.mail.yahoo.com> Subject: RE: Callbacks and Signals works with Classes? Date: Wed, 13 Jun 2001 19:24:23 +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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Andrés Giraldo To: Gtk List Sent: Wednesday, June 13, 2001 6:39 PM Subject: Callbacks and Signals works with Classes? > Hi! > > I'm trying to create a class, this class defines a > button, on it's clicked signal it calls a callback > function that I want to put in the private part of the > class, but it returns me... > > no matches converting function `on_button_clicked' > to type `void (*) ()' > clases.h:400: candidates are: void > myclass::on_button_clicked > () > GTK Works with C++... am I right? > Yeah, there is a wrapper called GTK-- written completely in C++, but GTK works fine by itself wit C++. I use to work with GTK & C++. The problem must have something to do with puting the function in the private part, because I use lots of callbacks in the classes I've created without problems. My callbacks are all in the public part, though. I cannot try now puting my functions in the private part and make them work. I'm not on linux at this moment, sorry. Regards, Ignacio Nodal From inodal@teleline.es Wed Jun 13 14:36:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtppp2.teleline.es (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id F0BB82E427 for ; Wed, 13 Jun 2001 14:36:34 -0400 (EDT) Received: from PIII500 ([213.97.141.171]) by tsmtppp2.teleline.es (Netscape Messaging Server 4.1) with SMTP id GEVSTT06.9J1 for ; Wed, 13 Jun 2001 20:32:17 +0200 Message-ID: <001101c0f437$356405a0$0a01a8c0@PIII500> From: "Ignacio Nodal" To: "GTK-List" References: <200106131812.OAA28212@renoir.op.net> Subject: RE: Callbacks and Signals works with Classes? Date: Wed, 13 Jun 2001 19:32:24 +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Paul Davis > this is member function. C++ member functions are not, and never have > been, interchangeable with regular C functions. this is a common > confusion among relatively new C++ programmers (i suffered from it > myself many years ago). Hey! Where was this email 2minutes ago when I sent mine?? ;))) So... I've been suffering this confusion also... > the "static" keyword makes the member function into something > equivalent to a regular C function. I've been using static callbacks all the time and thereby I haven't noticed the problem. Learning something new every day... ;) See you From andres_giraldo@yahoo.com Wed Jun 13 15:00:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11504.mail.yahoo.com (web11504.mail.yahoo.com [216.136.172.36]) by mail.gnome.org (Postfix) with SMTP id B5F6A2DE9A for ; Wed, 13 Jun 2001 15:00:49 -0400 (EDT) Message-ID: <20010613190048.47055.qmail@web11504.mail.yahoo.com> Received: from [208.221.130.25] by web11504.mail.yahoo.com; Wed, 13 Jun 2001 12:00:48 PDT Date: Wed, 13 Jun 2001 12:00:48 -0700 (PDT) From: "Andrés" Giraldo Subject: Re: Callbacks and Signals works with Classes? To: Gtk List In-Reply-To: <200106131812.OAA28212@renoir.op.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, thanks, but how I supposed to make request to the class members? I mean, I need the signal connect in the public part of the class, and the callback in the private class myclass { private: static void on_button_clicked (myclass *); public: gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this); }; So, if I declare a parameter for my callback function of type myclass *xxx; it returns that: xxx is of non-aggregate type `myclass *' and if I declare it as myclass xxx, its members values are different from reality I also tried putting this clausule in the connect signal function, but is the same if I put NULL in place, so what's still wrong? Thanks for your help! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From otaylor@redhat.com Wed Jun 13 15:06:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id AE4802DB68 for ; Wed, 13 Jun 2001 15:06:24 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 507F6242312; Wed, 13 Jun 2001 15:06:24 -0400 (EDT) To: David Robin Cc: gtk-list@gnome.org Subject: Re: PanedBox Bug? References: <20010611233005.1B3A12E29B@mail.gnome.org> <3B25B533.97696368@st.com> From: Owen Taylor Date: 13 Jun 2001 15:06:24 -0400 In-Reply-To: David Robin's message of "Tue, 12 Jun 2001 08:22:43 +0200" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: David Robin writes: > I Created a H-Paned Box with a notebook in each of the panels with gtk_panel_add. > When I hide the left notebook, the left panel goes hidden. But the right notebook doesnot takes the empty space, and the gutter stays visible. Is it the expected > behaviour? > The behaviour I expected was : when I 'kind of' close one of the panel, the other one fills all the space, and the gutter desappears because it is no more useful. > Then, If I show both notebooks again, the gutter reappears, at the same position it used to be. > > Is this a bug, or do I need to add some code in my app and make it by myself? Not really a bug, but a missing feature. (Present in the devel branch.) You'll need restructure your widgets instead of hiding one. (Keep an extra reference to the notebooks with gtk_object_ref() so the don't get destroyed when you remove them, remove them from the paned, add the notebook you want back.) Regards, Owen From donna@omartin.com Wed Jun 13 15:09:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from taka.swcp.com (taka.swcp.com [198.59.115.12]) by mail.gnome.org (Postfix) with ESMTP id 37DE42E450 for ; Wed, 13 Jun 2001 15:09:12 -0400 (EDT) Received: from diamond (1Cust34.tnt4.albuquerque.nm.da.uu.net [63.20.119.34]) by taka.swcp.com (8.10.0.Beta12/8.10.0.Beta12) with SMTP id f5DJBkg01014 for ; Wed, 13 Jun 2001 13:11:46 -0600 (MDT) Message-ID: <001e01c0f43c$424afe40$1400a8c0@diamond> Reply-To: "Donna Martin" From: "Donna Martin" To: References: <20010612193544.53122.qmail@web11508.mail.yahoo.com> Subject: Re: drawing_area->window != NULL Date: Wed, 13 Jun 2001 13:08:33 -0600 Organization: O'Martin Enterprises, Inc. 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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Your expose_event handler is of the wrong prototype. If you look at the RDP for GtkWidget you'll see the correct prototype: "expose-event" gboolean user_function (GtkWidget *widget, GdkEventExpose *event, gpointer user_data); The first field is supplied by GTK+ and is the widget causing the function to be invoked. Your data comes through the third field... In your second (working) piece of code, you attach the signal to the drawing area widget. When on_gtk_newlabel_expose_event is invoked, GTK+ Kindly supplies the widget that caused the function to be invoked as the first argument (i.e. your drawing area received an expose event). Your data would appear in the third parameter (which you don't have). So, by coincidence, it works when you send the same info that GTK+ is supplying :-) In looking back through the archives (because I'm behind and wanted to be sure no one else already answered this...) it looks as though Esteban Quijano Vincenzi addressed this quite well in his response to your newbie question on Monday.... It also looks like you're making great strides each day, so perhaps you already figured all this out! HTH, Donna ----- Original Message ----- From: "Andrés Giraldo" To: "Gtk List" Sent: Tuesday, June 12, 2001 1:35 PM Subject: Re: drawing_area->window != NULL > Thanks for your help... > > Ok I've got it! The window is not realized yet, so I > put the drawing code in the expose_event function, > but... > > It only works if I connect the expose event signal to > the drawing_area member, not if I connect it to the > entire structure... why? > > This is using the entire structure (That's how I want > it). It doesn't work... > > > /*****************************************************/ > > typedef struct _GtkNewLabel GtkNewLabel; > > struct _GtkNewLabel > { > GtkVBox vbox; > > GtkWidget *drawing_area; > }; > > static void gtk_newlabel_init (GtkNewLabel *newlabel) > { > GtkWidget *table; > > table = gtk_table_new (1, 1, TRUE); > gtk_container_add (GTK_CONTAINER (newlabel), > table); > gtk_widget_show (table); > > newlabel->drawing_area = gtk_drawing_area_new (); > gtk_table_attach_defaults (GTK_TABLE(table), > newlabel->drawing_area, 0, 1, 0, 1); > > gtk_widget_show (GTK_WIDGET (newlabel)); > > gtk_signal_connect(GTK_OBJECT (newlabel), > "expose_event", > GTK_SIGNAL_FUNC > (on_gtk_newlabel_expose_event), &newlabel); > } > > void on_gtk_newlabel_expose_event (GtkNewLabel > *newlabel) > { > GdkGC *gc_back, *gc_fore; > GdkDrawable *drawable; > > drawable = newlabel->drawing_area->window; > > gc_back = GetPen (NewColor (newlabel->back_red, > newlabel->back_green, > newlabel->back_blue), > drawable); > } > > > GdkGC *GetPen (GdkColor *c, GdkDrawable *drawable) > { > GdkGC *gc; > > gc = gdk_gc_new (drawable); > > gdk_gc_set_foreground (gc, c); > > return (gc); > } > > GdkColor *NewColor (long red, long green, long blue) > { > GdkColor *c = (GdkColor *) g_malloc (sizeof > (GdkColor)); > > c->red = red; > c->green = green; > c->blue = blue; > > gdk_color_alloc (gdk_colormap_get_system (), c); > > return (c); > } > > /*****************************************************/ > > And this is using the drawing_area member, It Works... > > > > static void gtk_newlabel_init (GtkNewLabel *newlabel) > { > GtkWidget *table; > > table = gtk_table_new (1, 1, TRUE); > gtk_container_add (GTK_CONTAINER (newlabel), > table); > gtk_widget_show (table); > > newlabel->drawing_area = gtk_drawing_area_new (); > gtk_table_attach_defaults (GTK_TABLE(table), > newlabel->drawing_area, 0, 1, 0, 1); > > gtk_widget_show (newlabel->drawing_area); > > gtk_signal_connect(GTK_OBJECT > (newlabel->drawing_area), "expose_event", > GTK_SIGNAL_FUNC > (on_gtk_newlabel_expose_event), NULL); > } > > void on_gtk_newlabel_expose_event (gpointer data) > { > GdkGC *gc_back, *gc_fore; > GdkDrawable *drawable = GTK_WIDGET(data)->window; > > drawable = newlabel->drawing_area->window; > > gc_back = GetPen (NewColor (newlabel->back_red, > newlabel->back_green, > newlabel->back_blue), > drawable); > } > > So... what I'm doing wrong? > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From rwalden@tripos.com Wed Jun 13 16:09:38 2001 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 400CB2BD8A for ; Wed, 13 Jun 2001 16:09:37 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA07204 for ; Wed, 13 Jun 2001 15:09:36 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma005689; Wed, 13 Jun 01 14:58:00 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id OAA50097; Wed, 13 Jun 2001 14:57:58 -0500 (CDT) Message-ID: <3B27C5C6.26891A9D@tripos.com> Date: Wed, 13 Jun 2001 14:57:58 -0500 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: pygtk , gtk-list@gnome.org Subject: Raising and lowering windows 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear List, It is possible to minimize (iconfiy) and restore windows programmatically in GTK? [for the pygtk list] Is this supported by pygtk? How? Thank you, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From kyi111@dreamwiz.com Wed Jun 13 22:54:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx-s0.dreamwiz.com (mx-s0.dreamwiz.com [211.174.54.135]) by mail.gnome.org (Postfix) with ESMTP id 761BE2BECF for ; Wed, 13 Jun 2001 22:54:17 -0400 (EDT) Received: from mail11.dreamwiz.com (mail11.dreamwiz.com [211.174.54.31]) by mx-s0.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5E2sFY86140 for ; Thu, 14 Jun 2001 11:54:15 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by mail11.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5E2s7c57363 for ; Thu, 14 Jun 2001 11:54:07 +0900 (KST) Message-Id: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> Date: Thu, 14 Jun 2001 11:54:07 +0900 (KST) From: =?EUC-KR?B?sei/68DPKHlvbmcgaWwua2ltKQ==?= Subject: glibconfig not find To: gtk-list@gnome.org Organization: X-Sender-IP: 211.219.11.9 X-Sender-ID: kyi111@dreamwiz.com X-Priority: 3 X-Mailer: DreamWiz Web-Mailer V1.31 X-DreamWiz-Data: receive_check=1;save=mail11.dreamwiz.com:kyi111:Sent:211; MIME-Version: 1.0 Content-Type: MULTIPART/ALTERNATIVE; BOUNDARY="0-1973929785-992487247=:57360" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --0-1973929785-992487247=:57360 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h please inform me ------------------------------------------------- DreamWiz Free Mail @ http://www.dreamwiz.com/ DreamSearch Click the world!!! http://search.dreamwiz.com/ --0-1973929785-992487247=:57360 Content-Type: TEXT/HTML; CHARSET=US-ASCII
please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message

usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h

please inform me




Your life on the net

DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!!  http://search.dreamwiz.com/


--0-1973929785-992487247=:57360-- From rodrigo@gnome-db.org Thu Jun 14 06:39:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from zubiri.gnome-db.org (100-MAD2-X33.libre.retevision.es [62.83.129.100]) by mail.gnome.org (Postfix) with ESMTP id 9300C2BDBB for ; Thu, 14 Jun 2001 06:39:38 -0400 (EDT) Received: from rodrigo by zubiri.gnome-db.org with local (Exim 3.22 #1 (Debian)) id 15AUWs-0000AR-00; Thu, 14 Jun 2001 12:39:10 +0200 Subject: Re: glibconfig not find From: Rodrigo Moya To: =?UTF-8?Q?=EA=B9=80=EC=9A=A9=EC=9D=BC=28yong?= "il.kim)" Cc: gtk-list@gnome.org In-Reply-To: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> References: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.10.99 (Preview Release) Date: 14 Jun 2001 12:39:09 +0200 Message-Id: <992515149.597.1.camel@zubiri> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 14 Jun 2001 11:54:07 +0900, =EA=B9=80=EC=9A=A9=EC=9D=BC(yong il.kim) wro= te: > please help me!! I am beginner GTK+ programming. when i compiled sample c= ode(hello.c), there are error message >=20 > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h >=20 when compiling, you must pass to gcc the output of: glib-config --cflags so: gcc -o my_program `glib-config --cflags` my_program.c cheers -- Rodrigo Moya http://www.gnome-db.org/ From john.cupitt@ng-london.org.uk Thu Jun 14 06:48:50 2001 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 14B5D2E58A for ; Thu, 14 Jun 2001 06:48:50 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNQQK; Thu, 14 Jun 2001 11:48:46 +0100 Message-ID: <3B289544.85433A20@ng-london.org.uk> Date: Thu, 14 Jun 2001 11:43:16 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?=B1=E8=BF=EB=C0=CF?= (yong il.kim) Cc: gtk-list@gnome.org Subject: Re: glibconfig not find References: <200106140254.f5E2s7c57363@mail11.dreamwiz.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ąčżëŔĎ(yong il.kim) wrote: > please help me!! I am beginner GTK+ programming. when i compiled > sample code(hello.c), there are error message > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h Hello, is this the example from the tutorial? http://www.gtk.org/tutorial/ch-gettingstarted.html If that doesn't work, you probably have not installed gtk correctly. John From terop@fanta.modeemi.cs.tut.fi Wed Jun 13 16:45:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fanta.modeemi.cs.tut.fi (fanta.modeemi.cs.tut.fi [130.230.72.135]) by mail.gnome.org (Postfix) with ESMTP id 224052D45C for ; Wed, 13 Jun 2001 16:45:46 -0400 (EDT) Received: by fanta.modeemi.cs.tut.fi id XAA0000028796; Wed, 13 Jun 2001 23:45:30 +0300 (EET DST) To: "Andrés" Giraldo Cc: Gtk List Subject: Re: Callbacks and Signals works with Classes? References: <20010613190048.47055.qmail@web11504.mail.yahoo.com> From: Tero Pulkkinen Date: 13 Jun 2001 23:45:30 +0300 In-Reply-To: "Andrés" Giraldo's message of "Wed, 13 Jun 2001 12:00:48 -0700 (PDT)" Message-ID: Lines: 25 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Andrés" Giraldo writes: > Ok, thanks, but how I supposed to make request to the > class members? GtkObject has these methods called gtk_object_set_data() gtk_object_get_data() which lets you store additional pointers to the widget. This is how you can store a pointer of your C++ class to a widget and the connected callbacks can use the c++ methods. Like this: // init: GtkWidget *widget = gtk_button_new("test"); gtk_object_set_data(GTK_OBJECT(widget), "mycppobject", this); // callback: static void callback(GtkWidget *w) { MyCpp *obj = (MyCpp*)gtk_object_get_data(GTK_OBJECT(w), "mycppobject"); obj->DoIt(); } -- -- Tero Pulkkinen From skip@real-time.com Thu Jun 14 12:16:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 9270B2E54B for ; Thu, 14 Jun 2001 12:16:20 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5EGGDS00667; Thu, 14 Jun 2001 11:16:13 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15144.58187.954945.827693@beluga.mojam.com> Date: Thu, 14 Jun 2001 11:16:11 -0500 To: gtk-list@gnome.org Subject: version of libtool? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I notice that a couple gtk-related packages (gtk and pango) now require libtool 1.4. Others (atk 0.1 and glib) use their own versions. Will this create problems? How soon with those packages that install their own dump them in favor of libtool 1.4? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From otaylor@redhat.com Thu Jun 14 12:32:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0200D2DEB8 for ; Thu, 14 Jun 2001 12:32:18 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id A2144242313; Thu, 14 Jun 2001 12:32:17 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: version of libtool? References: <15144.58187.954945.827693@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 12:32:17 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 11:16:11 -0500" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I notice that a couple gtk-related packages (gtk and pango) now require > libtool 1.4. Others (atk 0.1 and glib) use their own versions. Will this > create problems? How soon with those packages that install their own dump > them in favor of libtool 1.4? Everything requires libtool 1.4 now. I'm not sure why you don't see this as being the case. Regards, Owen From skip@real-time.com Thu Jun 14 12:40:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id 3E1AC2E645 for ; Thu, 14 Jun 2001 12:40:39 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5EGeVj23959; Thu, 14 Jun 2001 11:40:31 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15144.59647.117922.380294@beluga.mojam.com> Date: Thu, 14 Jun 2001 11:40:31 -0500 To: Owen Taylor Cc: gtk-list@gnome.org Subject: Re: version of libtool? In-Reply-To: References: <15144.58187.954945.827693@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen> Everything requires libtool 1.4 now. I'm not sure why you don't Owen> see this as being the case. glib's configure didn't seem to complain. No matter. I zapped the libtool rpm and installed libtool 1.4. FYI, it appears "make distclean" doesn't delete the various libtool-related symlinks the build process puts in the build directory or the various generated Makefile.in files. Is there some more brutal make target I should be using to get back to ground zero build-wise? Skip From otaylor@redhat.com Thu Jun 14 14:06:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EA63F2CEDC for ; Thu, 14 Jun 2001 14:06:44 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 9AF87242313; Thu, 14 Jun 2001 14:06:44 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: version of libtool? References: <15144.58187.954945.827693@beluga.mojam.com> <15144.59647.117922.380294@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 14:06:44 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 11:40:31 -0500" Message-ID: Lines: 29 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > Owen> Everything requires libtool 1.4 now. I'm not sure why you don't > Owen> see this as being the case. > > glib's configure didn't seem to complain. No matter. I zapped the libtool > rpm and installed libtool 1.4. If you are installing from CVS, you should always run autogen.sh every time you update. autogen.sh has the checks and complaints. If you are installing from tarballs, the version of libtool you have installed shouldn't matter. > FYI, it appears "make distclean" doesn't delete the various libtool-related > symlinks the build process puts in the build directory or the various > generated Makefile.in files. Is there some more brutal make target I should > be using to get back to ground zero build-wise? 'make maintainer-clear', though most of the time, the GTK+ developers would just blow away their checked out copy and get a fresh one from CVS if things got that screwed up. So it's not really tested, and problems may be revealed if you run it. Regards, Owen From dneary@eircom.net Thu Jun 14 14:07:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from brockman.tinet.ie (mail1.tinet.ie [159.134.237.20]) by mail.gnome.org (Postfix) with ESMTP id 702C92E6B3 for ; Thu, 14 Jun 2001 14:07:49 -0400 (EDT) Received: from p2.as2.prp.dublin.eircom.net ([159.134.170.2] helo=localhost.localdomain) by brockman.tinet.ie with esmtp (Exim 2.05 #23) id 15AbX2-0003A8-00; Thu, 14 Jun 2001 19:07:48 +0100 Received: (from dave@localhost) by localhost.localdomain (8.9.3/8.9.3) id WAA01143; Wed, 13 Jun 2001 22:53:50 +0100 Date: Wed, 13 Jun 2001 22:53:50 +0100 From: Dave Neary To: Roberto Cc: gtk-list@gnome.org Subject: Re: The size of a widget. Message-ID: <20010613225350.A944@eircom.net> References: <3B27356F.4070608@libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B27356F.4070608@libero.it>; from Roberto@libero.it on Wed, Jun 13, 2001 at 11:42:07AM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Jun 13, 2001 at 11:42:07AM +0200, Roberto wrote: > How can I know the size of a widget? > Have you a little little example? There are two answers to this - he size, in memory, of a widget is given by sizeof(GtkWidget), and the dimensions of a widget are available in GtkWidget.allocation.(width|height). Cheers, Dave. -- .------------------------------. / David Neary, \ | E-Mail dneary@eircom.net | \ Phone +353-1-872-0654 / `------------------------------' From sarregui@cicese.mx Thu Jun 14 14:55:14 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 766392DF38 for ; Thu, 14 Jun 2001 14:55:13 -0400 (EDT) Received: from sismo.cicese.mx (sismo.cicese.mx [158.97.28.56]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f5EItBf21271 for ; Thu, 14 Jun 2001 11:55:11 -0700 (PDT) Received: from cicese.mx (pc-resnor.cicese.mx [158.97.30.133]) by sismo.cicese.mx (8.9.3+Sun/8.9.1) with ESMTP id LAA14256 for ; Thu, 14 Jun 2001 11:55:10 -0700 (PDT) Message-ID: <3B290901.53E9B9AE@cicese.mx> Date: Thu, 14 Jun 2001 11:57:05 -0700 From: Sergio Arregui Ojeda X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.18-rtl i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-List Subject: Realtime plot 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello. i'm new to this list and my question is this: i have to develop a system that has to plot data that is acquired trhough the serial port, i have done most of this part using the realtime plot demo that comes with extragtk, but i have a problem because it's a lot of data and my machine gets very busy while plotting, i think that this is 'cause the data does not get released, instead it keeps it in memory, and i want to know if theres is a way that this data can be freed (or deallocated) so this way it speed up things. I also have made another application that plots data in realtime that comes faster, and i have a problem when i try to plot more than one station (obviously the data comes from different station) because of the same problem. i'm new to programming in gtk, and this are the very first applications that i have made, so please anyone can help me? thank you -- Sergio Arregui Ojeda Departamento de Sismologia CICESE Tel (6) 174 50 50 ext 26524 From lestat.lioncourt@innocent.com Thu Jun 14 16:03:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-1-81.abo.wanadoo.fr [193.251.41.81]) by mail.gnome.org (Postfix) with ESMTP id DE3472CE82 for ; Thu, 14 Jun 2001 16:03:29 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 92BB1C0DE; Thu, 14 Jun 2001 22:03:31 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Thu, 14 Jun 2001 20:03:31 +0000 From: "David Goncalves" To: Cc: Subject: Re: glibconfig not find MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010614200331.92BB1C0DE@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h > > please inform me Just try to find the file 'glibconfig.h' in your disk and copy it to '/usr/include' From otaylor@redhat.com Thu Jun 14 16:16:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 412E82DF37 for ; Thu, 14 Jun 2001 16:16:44 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id DC3E5242313; Thu, 14 Jun 2001 16:16:43 -0400 (EDT) To: "David Goncalves" Cc: , Subject: Re: glibconfig not find References: <20010614200331.92BB1C0DE@transylvania> From: Owen Taylor Date: 14 Jun 2001 16:16:43 -0400 In-Reply-To: "David Goncalves"'s message of "Thu, 14 Jun 2001 20:03:31 +0000" Message-ID: Lines: 22 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David Goncalves" writes: > > please help me!! I am beginner GTK+ programming. when i compiled sample code(hello.c), there are error message > > > > usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h > > > > please inform me > > Just try to find the file 'glibconfig.h' in your disk and copy it > to '/usr/include' Don't do this. *Please* What will happen, is that when you upgrade your GLib the old glibconfig will be left behind, and GLib will never work properly again. Use the glib-config script, as described in the FAQ. Regards, Owen From hp@redhat.com Thu Jun 14 16:17:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 511CB2E59F; Thu, 14 Jun 2001 16:17:23 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5EKHKc08634; Thu, 14 Jun 2001 16:17:20 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: gnome-announce-list@gnome.org, gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: New release of GTK+ libraries (1.3.6) From: Havoc Pennington Date: 14 Jun 2001 16:17:20 -0400 Message-ID: Lines: 171 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A new release of the development versions of GTK+ and associated libraries (GLib, Pango, Atk) is available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ The JPEG/PNG/TIFF libraries and pkg-config 0.7 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.7 version you need to build GTK 1.3.6) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://clisp.cons.org/~haible/packages-libiconv.html New all-in-one tarball ===== This release has an experimental all-in-one-tarball feature. The gtk+-all-1.3.6.tar.gz file contains all four GTK+ libraries (GLib, Pango, Atk, GTK+) and can be compiled with a single "configure; make; make install" sequence. Library Descriptions ===== GLib 1.3.6 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. http://www.gtk.org Pango 0.17 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. http://www.pango.org Atk 0.1 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. http://developer.gnome.org/projects/gap/ GTK+ 1.3.6 GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. http://www.gtk.org Notes ===== This release is meant for: * Those interested in the development of GTK+. * People planning to port to the upcoming GTK+-2.0 version of GTK+. Note: the API is mostly frozen at this point. Major API changes beyond the remaining open '2.0 API freeze' bugs in bugzilla are unlikely to occur before GTK+-2.0 is released. This is a an unstable preview release and should not be used in production. Only minimal testing has been done, and we expect that significant bugs and portability problems remain at this point. 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. 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 Source and binary packages of these libraries build against Red Hat 7.1 can be found at: ftp://ftp.gtk.org/pub/gtk/v1.3/binary/RedHat-7.1 The source RPMS can most likely be rebuilt and installed on other RPM-based Linux distributions. Overview of Changes in GLib 1.3.6 ================================= * Threads have a "return value" from g_thread_join * Removed ability to adjust thread stack size * Prefix warnings with progname/PID by default, change toggle for this to be an env variable G_MESSAGES_PREFIXED not a compile-time option * GMarkup speedups * GDate const, convenience fixups * Include test cases that headers are compilable by C++ compiler * Add ability to spawn processes with argv[0] != executable path. * g_strstr_len, g_strrstr, g_strrstr_len * Add length argument to g_utf8_strchr and g_utf8_strrchr. * Misc bug fixes Overview of Changes in Pango 0.17 ================================= * Build/bug fixes * Cursor motion is now by graphemes (logical editing units) rather than by characters * Optionally support jumping cursor instead of split cursor Overview of Changes in Atk 0.2 ================================= * Some API tweaks Overview of Changes in GTK+ 1.3.6 ================================= * Properly renders strikethrough text * win32 fixes * Added "scale" property to GtkTextTag and GtkCellRendererText to do relative font scaling * Added "format_value" signal to GtkScale to reformat value text * framebuffer fixes * Property support added to lots of widgets * Many GtkTreeView new features and API/implementation fixes * Lots of new_with_mnemonic() convenience functions * Change GtkImageMenuItem API to be more consistent/useful * Added lots of new stock items/icons * Rewrote GtkRange/GtkScale/GtkScrollbar, includes support for enabling/disabling extra scrollbar stepper arrows in gtkrc so NeXT themes won't need broken hacks * Convenience API for GtkRange similar to the one added to GtkSpinButton a while back * Make menubar/toolbar work properly with xthickness/ythickness of 1 or 0, and move some attributes from program settings to user settings. Allows nice 1-pixel-bevel themes. * Moved ::focus virtual function from GtkContainer to GtkWidget * Plenty of bug fixes From rsteinke@w-link.net Thu Jun 14 17:08:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 18B852DC1E for ; Thu, 14 Jun 2001 17:08:25 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15AePv-0001QX-00 for ; Thu, 14 Jun 2001 14:12:39 -0700 Date: Thu, 14 Jun 2001 14:12:39 -0700 To: gtk-list@gnome.org Subject: alpha channel in GdkPixbuf Message-ID: <3B2928C7.nail4891KSBC3@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to extract the alpha channel information from a GdkPixbuf (for example, writing it to an array or a grayscale pixmap)? Ron Steinke From rsteinke@w-link.net Thu Jun 14 17:10:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 4C7992E702 for ; Thu, 14 Jun 2001 17:10:22 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15AeRo-0001R1-00 for ; Thu, 14 Jun 2001 14:14:36 -0700 Date: Thu, 14 Jun 2001 14:14:36 -0700 To: gtk-list@gnome.org Subject: [set][get]_property Message-ID: <3B29293C.nail48P1VFB2V@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From examining the code, it looks like the [set,get]_property functions of GObject (and its descendents) only handle the properties of the object itself and not those of its ancestors. Is this true, and if so is there a reason for this? Ron Steinke From skip@real-time.com Thu Jun 14 17:21:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id B86CB2CC91 for ; Thu, 14 Jun 2001 17:21:06 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5ELKH629842; Thu, 14 Jun 2001 16:20:17 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15145.10895.215061.466398@beluga.mojam.com> Date: Thu, 14 Jun 2001 16:20:15 -0500 To: gtk-list@gnome.org Subject: trouble with pango build - incorrect -I flags X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib and atk built and installed okay, but after a successful autogen.sh in the pango directory "make CFLAGS=-g" says: make all-recursive make[1]: Entering directory `/home/skip/src/gtk/pango.cvs' Making all in pango make[2]: Entering directory `/home/skip/src/gtk/pango.cvs/pango' make all-recursive make[3]: Entering directory `/home/skip/src/gtk/pango.cvs/pango' Making all in mini-fribidi make[4]: Entering directory `/home/skip/src/gtk/pango.cvs/pango/mini-fribidi' source='fribidi_get_type.c' object='fribidi_get_type.lo' libtool=yes \ depfile='.deps/fribidi_get_type.Plo' tmpdepfile='.deps/fribidi_get_type.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I../.. -g -c -o fribidi_get_type.lo `test -f fribidi_get_type.c || echo './'`fribidi_get_type.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -I../.. -g -c fribidi_get_type.c -MT fribidi_get_type.lo -MF .deps/fribidi_get_type.TPlo -MD -MP -fPIC -DPIC -o fribidi_get_type.o fribidi_get_type.c:26:18: glib.h: No such file or directory In file included from fribidi_get_type.c:27: ../../pango/pango-utils.h:23:18: glib.h: No such file or directory In file included from ../../pango/pango-font.h:29, from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-coverage.h:25:18: glib.h: No such file or directory In file included from ../../pango/pango-font.h:30, from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-types.h:25:18: glib.h: No such file or directory In file included from ../../pango/pango-utils.h:24, from fribidi_get_type.c:27: ../../pango/pango-font.h:32:25: glib-object.h: No such file or directory In file included from fribidi_get_type.c:28: fribidi_types.h:27:18: glib.h: No such file or directory make[4]: *** [fribidi_get_type.lo] Error 1 make[4]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango/mini-fribidi' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/skip/src/gtk/pango.cvs/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/skip/src/gtk/pango.cvs' make: *** [all] Error 2 Is the pango build not using pkg-config? I just installed 0.7 and it seems to do the right things: beluga:skip% type -a pkg-config pkg-config is /usr/local/bin/pkg-config beluga:skip% pkg-config --version 0.7.0 beluga:skip% pkg-config --cflags glib-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include beluga:skip% pkg-config --cflags pango -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include The -I flags on the compile line don't look even remotely correct. There's no mention at all of /usr/local/include/glib-2.0. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From otaylor@redhat.com Thu Jun 14 17:31:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 447672BCB6 for ; Thu, 14 Jun 2001 17:31:29 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EC2A92422AD; Thu, 14 Jun 2001 17:31:28 -0400 (EDT) To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags References: <15145.10895.215061.466398@beluga.mojam.com> From: Owen Taylor Date: 14 Jun 2001 17:31:28 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 16:20:15 -0500" Message-ID: Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib > and atk built and installed okay, but after a successful autogen.sh in the > pango directory "make CFLAGS=-g" says: ^^^^^^^^^^^^^^ > ../../pango/pango-utils.h:23:18: glib.h: No such file or directory This is your problem. 'CFLAGS="-g" ./autogen.sh' would be better, if you actually want to disable optimization... "-g" is in the default cflags, so the effect of this is to remove -O2. Setting CFLAGS while compiling will have undetermined effects, and it happens to include the glib include flags. It's not completely intentional to have things set up this way - it could probably be improved. But I don't necessarily expect setting CFLAGS at 'make' time to work. Regards, Owen From otaylor@redhat.com Thu Jun 14 17:33:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 0BF992E705 for ; Thu, 14 Jun 2001 17:33:11 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id BE52B2422AD; Thu, 14 Jun 2001 17:33:10 -0400 (EDT) To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: [set][get]_property References: <3B29293C.nail48P1VFB2V@yggdrasil> From: Owen Taylor Date: 14 Jun 2001 17:33:10 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:14:36 -0700" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > >From examining the code, it looks like the [set,get]_property > functions of GObject (and its descendents) only handle the > properties of the object itself and not those of its > ancestors. Is this true, and if so is there a reason for this? Well, it would be a real pain if the code for gtkcheckbutton.c had to duplicate all the property setting/getting code for ToggleButton, Button, Widget, GtkObject, GObject.... In fact, many of those property setting calls probably are using private parts of the widget implementation which are not available to external code. I'm not sure if I'm quite answering your question, however... Regards, Owen From otaylor@redhat.com Thu Jun 14 17:35:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 417302E705 for ; Thu, 14 Jun 2001 17:35:22 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EE0152422AD; Thu, 14 Jun 2001 17:35:21 -0400 (EDT) To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: alpha channel in GdkPixbuf References: <3B2928C7.nail4891KSBC3@yggdrasil> From: Owen Taylor Date: 14 Jun 2001 17:35:21 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:12:39 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Is there any way to extract the alpha channel information from > a GdkPixbuf (for example, writing it to an array or a grayscale > pixmap)? The bytes of a GdkPixbuf are available as: guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf); The alpha value at x,y is: pixels[rowstride * y + x * 4 + 3]; Regards, Owen From hp@redhat.com Thu Jun 14 17:43:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5EC182E711 for ; Thu, 14 Jun 2001 17:43:54 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELhnF19819; Thu, 14 Jun 2001 17:43:49 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: alpha channel in GdkPixbuf References: <3B2928C7.nail4891KSBC3@yggdrasil> From: Havoc Pennington Date: 14 Jun 2001 17:43:49 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:12:39 -0700" Message-ID: Lines: 37 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > Is there any way to extract the alpha channel information from > a GdkPixbuf (for example, writing it to an array or a grayscale > pixmap)? > You just iterate over the pixels in the pixbuf. They are arranged like so for a pixbuf with alpha: RGBA RGBA RGBA RGBA RGBA RGBA RGBA PPP | rowstride | | width | like so for one without: RGB RGB RGB RGB RGB RGB RGB RGB RGB PP | rowstride | | width | Each letter is a byte, R = red G = green B = blue A = alpha channel P = padding (rowstride - width bytes of padding at the end of each line, it's possible that rowstride == width if so then no pad bytes are present) So the red channel at row, column is something like: pixels[(row * rowstride) + column * bytes_per_pixel] Where a pixel is an RGB or RGBA group. Havoc From hp@redhat.com Thu Jun 14 17:45:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 43CBB2E71C for ; Thu, 14 Jun 2001 17:45:30 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELjPs19822; Thu, 14 Jun 2001 17:45:25 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: [set][get]_property References: <3B29293C.nail48P1VFB2V@yggdrasil> From: Havoc Pennington Date: 14 Jun 2001 17:45:25 -0400 In-Reply-To: Ron Steinke's message of "Thu, 14 Jun 2001 14:14:36 -0700" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > >From examining the code, it looks like the [set,get]_property > functions of GObject (and its descendents) only handle the > properties of the object itself and not those of its > ancestors. Is this true, and if so is there a reason for this? > Sure, to avoid cut-and-paste - every widget subclass shouldn't have to handle the properties of GtkWidget, and chaining up would be kind of expensive since all the subclass set_property would do nothing. So set/get property aren't virtual functions in the normal sense. Havoc From hp@redhat.com Thu Jun 14 17:47:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 01B6C2E673 for ; Thu, 14 Jun 2001 17:47:34 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ELlVc20905; Thu, 14 Jun 2001 17:47:31 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags References: <15145.10895.215061.466398@beluga.mojam.com> From: Havoc Pennington Date: 14 Jun 2001 17:47:31 -0400 In-Reply-To: Skip Montanaro's message of "Thu, 14 Jun 2001 16:20:15 -0500" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib > and atk built and installed okay, but after a successful autogen.sh in the > pango directory "make CFLAGS=-g" says: The default CFLAGS are: CFLAGS = -g -O2 -Wall -I/unst/include/glib-2.0 -I/unst/lib/glib-2.0/include You changed them to "-g" So don't do that then ;-) Havoc From king@eiffel.com Thu Jun 14 20:29:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 094682BBBA for ; Thu, 14 Jun 2001 20:29:51 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15AhUi-0001a5-00 for gtk-list@gnome.org; Thu, 14 Jun 2001 17:29:49 -0700 Message-ID: <18e601c0f533$5cacce60$750a000a@naples> From: "Ian King" To: Subject: Finding gtkwidget from GdkWindow Date: Thu, 14 Jun 2001 17:37:31 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I retrieve the gdkwindow that the mouse pointer is currently over (gdk_window_at_pointer), what is the easiest way to find the relative gtkWidget for which this gdkwindow is associated with. Thanks for your time Ian King From hp@redhat.com Thu Jun 14 21:20:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2DB772BD19 for ; Thu, 14 Jun 2001 21:20:56 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5F1Kod12711; Thu, 14 Jun 2001 21:20:50 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Finding gtkwidget from GdkWindow References: <18e601c0f533$5cacce60$750a000a@naples> From: Havoc Pennington Date: 14 Jun 2001 21:20:50 -0400 In-Reply-To: "Ian King"'s message of "Thu, 14 Jun 2001 17:37:31 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > If I retrieve the gdkwindow that the mouse pointer is currently over > (gdk_window_at_pointer), what is the easiest way to find the relative > gtkWidget for which this gdkwindow is associated with. > It's gdk_window_get_user_data (window). The user data on a window is always the widget it's associated with. If you're trying to get the widget someone clicked, remember that not all widgets have windows. Havoc From pavon@gallup.net Thu Jun 14 21:47:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ns.gallup.net (ns.gallup.net [207.188.139.6]) by mail.gnome.org (Postfix) with ESMTP id A7C372E212 for ; Thu, 14 Jun 2001 21:47:35 -0400 (EDT) Received: from localhost (pavon@localhost) by ns.gallup.net (8.8.7/8.8.7) with ESMTP id TAA13434 for ; Thu, 14 Jun 2001 19:47:34 -0600 Date: Thu, 14 Jun 2001 19:46:26 -0600 (MDT) From: "D. Jackson Peacock" To: gtk-list@gnome.org Subject: New Container Widget RFC 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am writing a new container widget that arranges it's widgets into columns, starting a new column when the last one fills up, simular to the small icon view in windows explorer. So far I have a working prototype and am ready to take what I've learned from it to make a more mature widget. Before I invest my time into this, though I have a few questions. First, does anyone know of an existing widget that does what I want? There's no point duplicating work here. I remember seeing a package of additional gtk widgets once but can't seem to find it now. Second, what interface do you feel would be best suited for this widget. I was originally thinking to have it extend off of the GtkBox class, but am also thinking that CList (or the new TreeModel interface in GTK+ 2.0) might also be a good interface to work off of. I haven't really looked into the TreeModel much yet, just discovered it today. Any opinions on this from people that know better than me? Also if you have any other comments concerning this, or want more infomation please let know. Thank you, jackson Daniel Jackson Peacock [pavon@jabber.org] Socorro, NM From skip@real-time.com Thu Jun 14 23:20:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id DA7BE2D61F for ; Thu, 14 Jun 2001 23:20:38 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5F3JB931656; Thu, 14 Jun 2001 22:19:11 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15145.32430.419036.281587@beluga.mojam.com> Date: Thu, 14 Jun 2001 22:19:10 -0500 To: Owen Taylor Cc: gtk-list@gnome.org Subject: Re: trouble with pango build - incorrect -I flags In-Reply-To: References: <15145.10895.215061.466398@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen> Setting CFLAGS while compiling will have undetermined effects, and Owen> it happens to include the glib include flags. It's not completely Owen> intentional to have things set up this way - it could probably be Owen> improved. But I don't necessarily expect setting CFLAGS at 'make' Owen> time to work. Ah, okay. I always thought -I flags were supposed to go in CPPFLAGS. Skip From needles@industrialmusic.com Thu Jun 14 23:31:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from industrialmusic.com (unknown [216.101.163.50]) by mail.gnome.org (Postfix) with ESMTP id 5376F2D2E5 for ; Thu, 14 Jun 2001 23:31:27 -0400 (EDT) Received: (from needles@localhost) by industrialmusic.com (8.9.3/8.9.3) id UAA00498 for gtk-list@gnome.org; Thu, 14 Jun 2001 20:59:02 -0700 From: Kerry Message-Id: <200106150359.UAA00498@industrialmusic.com> Subject: Gtk 1.3.x text widget question To: gtk-list@gnome.org Date: Thu, 14 Jun 2001 20:59:02 -0700 (PDT) X-Mailer: ELM [version 2.5 PL3] 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've created a text view widget then filled it with text. I'm trying to figure out on what line the user clicked. I connected the widget to the "button-press-event" signal which gave the callback like I wanted. I just can't figure out what line the user clicked on. If I could get an iterator, it looks like I could call gtk_text_iter_get_line() function. I tried to call gtk_text_buffer_get_insert(), but that always gave me the same pointer no matter where I clicked. Can anyone help? Regards, Kerry From hp@redhat.com Fri Jun 15 00:16:51 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8708D2BE1F for ; Fri, 15 Jun 2001 00:16:51 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5F4G7s12803; Fri, 15 Jun 2001 00:16:07 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Kerry Cc: gtk-list@gnome.org Subject: Re: Gtk 1.3.x text widget question References: <200106150359.UAA00498@industrialmusic.com> From: Havoc Pennington Date: 15 Jun 2001 00:16:07 -0400 In-Reply-To: Kerry's message of "Thu, 14 Jun 2001 20:59:02 -0700 (PDT)" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Kerry writes: > > I've created a text view widget then filled it with text. I'm trying to > figure out on what line the user clicked. I connected the widget to the > "button-press-event" signal which gave the callback like I wanted. > I just can't figure out what line the user clicked on. If I could get > an iterator, it looks like I could call gtk_text_iter_get_line() function. > I tried to call gtk_text_buffer_get_insert(), but that always gave me > the same pointer no matter where I clicked. Can anyone help? > get_insert() gets the cursor (insertion point) which won't have moved when your button_press_event handler is called. If you want to track where the cursor is, use the mark_set signal on GtkTextBuffer and check whether the mark which was set is equal to gtk_text_buffer_get_insert(). (There are marks other than the insertion point.) If you don't care about the cursor, you want gtk_text_view_get_iter_at_location() to find out what text position the user clicked. Havoc From neil@fnxweb.com Fri Jun 15 04:02:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntsc0019.int.rdel.co.uk (banana.rdel.co.uk [194.128.85.8]) by mail.gnome.org (Postfix) with ESMTP id 7B47F2BAAA for ; Fri, 15 Jun 2001 04:02:53 -0400 (EDT) Received: from mail.uk.thalesgroup.com (lisc0021.int.rdel.co.uk) by ntsc0019.int.rdel.co.uk (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Fri, 15 Jun 2001 09:04:14 +0100 Received: from mail.uk.thalesgroup.com (localhost.localdomain [127.0.0.1]) by mail.uk.thalesgroup.com (8.11.0/8.11.0) with ESMTP id f5F82n004520 for ; Fri, 15 Jun 2001 09:02:49 +0100 Received: from ntscxch1.int.rdel.co.uk (ntscxch1.int.rdel.co.uk [172.21.100.149]) by mail.uk.thalesgroup.com (8.11.0/8.11.0) with ESMTP id f5F82m104509; Fri, 15 Jun 2001 09:02:48 +0100 Received: from fnxweb.com (sswc046.int.rdel.co.uk [130.141.44.135]) by ntscxch1.int.rdel.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id MC5L8LWZ; Fri, 15 Jun 2001 09:02:47 +0100 Message-ID: <3B29C125.EF386FA0@fnxweb.com> Date: Fri, 15 Jun 2001 09:02:45 +0100 From: Neil Bird Reply-To: GTK Mailing List Organization: Thales Sensors (but only on behalf of myself) X-Mailer: Mozilla 4.73 [en] (X11; U; SunOS 5.6 sun4m) X-Accept-Language: en MIME-Version: 1.0 To: "D. Jackson Peacock" Cc: GTK Mailing List Subject: Re: New Container Widget RFC 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "D. Jackson Peacock" wrote: > First, does anyone know of an existing widget that does what I want? > There's no point duplicating work here. I remember seeing a package of > additional gtk widgets once but can't seem to find it now. Seems like gtkextra is what you're half-remembering - http://gtkextra.sourceforge.net/. At first glance, it looks like it supplies a Gnome-free GtkIconList replacement for the gnome-icon-list (which is being deprecated?). Probably similar to what you want. Doesn't look like you can change the gravity, but I've not looked very hard. -- =====================- http://www.thalesgroup.com/ -===================== Neil Bird Principal Engineer | work - mailto:neil.bird@uk.thalesgroup.com | $> cd /pub personal - mailto:neil@fnxweb.com | $> more beer From skip@beluga.mojam.com Fri Jun 15 12:18:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 8406C2D31E for ; Fri, 15 Jun 2001 12:18:33 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5FGHWD30711; Fri, 15 Jun 2001 11:17:32 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15146.13593.375326.315166@beluga.mojam.com> Date: Fri, 15 Jun 2001 11:17:29 -0500 To: gtk-list@gnome.org Subject: Problems building cvs version of gtk X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm getting farther. I finally got cvs versions of glib, atk and pango all installed. Now I'm stuck trying to build gtk itself. After first encountering problems, I decided to start from scratch, so I zapped all text files except the CVS stuff and reloaded: find . -type f | egrep -v CVS | xargs rm cvs up . Then, following Owen Taylor's advice, I figured I'd skip the CFLAGS stuff for now: ./autogen.sh make Autogen.sh emitted some peculiar messages: I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. autoheader: error: shell error while sourcing /tmp/ahb0t8pA/traces.sh demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_BEGIN@' demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_END@' tests/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/faq/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/tutorial/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gdk-pixbuf/Makefile.am:94: libpixbufloader_xbm_la_LDFLAGS multiply defined in condition TRUE libpixbufloader_xbm_la_LDFLAGS (User, where = 94) = { TRUE => -version-info 1:0:0 -module } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_FALSE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { TRUE => $(builtin_objs) } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_TRUE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { BUILD_DYNAMIC_MODULES_FALSE TRUE => pixops/libpixops.la TRUE => $(builtin_objs) } automake: gdk-pixbuf/pixops/Makefile.am: Assembler source seen but `ASFLAGS' not defined in `configure.in' gdk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gdk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gtk/Makefile.am: CLEANFILES must be set with `=' before using `+=' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:514: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/stock-icons/Makefile.am: CLEANFILES must be set with `=' before using `+=' configure.in:25: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:97: warning: AC_CANONICAL_HOST invoked multiple times configure.in:101: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:158: warning: AC_COMPILE_IFELSE was called before AC_ISC_POSIX Forging ahead, I tried make: which started off fine, but eventually stumbled on some unsubstituted variables: ... make[3]: Entering directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' Making all in pixops make[4]: Entering directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf/pixops' source='pixops.c' object='pixops.lo' libtool=yes \ depfile='.deps/pixops.Plo' tmpdepfile='.deps/pixops.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c -o pixops.lo `test -f pixops.c || echo './'`pixops.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c pixops.c -MT pixops.lo -MF .deps/pixops.TPlo -MD -MP -fPIC -DPIC -o pixops.o pixops.c:827: warning: `scale_line_22_33' defined but not used mv -f pixops.o .libs/pixops.lo gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../.. -I../../gdk-pixbuf -g -O2 -g -Wall -c pixops.c -MT pixops.lo -MF .deps/pixops.TPlo -MD -MP -o pixops.o >/dev/null 2>&1 mv -f .libs/pixops.lo pixops.lo /bin/sh ../../libtool --mode=compile @AS@ @ASFLAGS@ -c -o have_mmx.lo `test -f have_mmx.S || echo './'`have_mmx.S rm -f .libs/have_mmx.lo @AS@ @ASFLAGS@ -c have_mmx.S -fPIC -DPIC -o have_mmx.o ../../libtool: @AS@: command not found make[4]: *** [have_mmx.lo] Error 1 make[4]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf/pixops' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/skip/src/gtk/gtk+.cvs/gdk-pixbuf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/skip/src/gtk/gtk+.cvs' make: *** [all] Error 2 My environment is: Linux Mandrake 8.0 gcc 2.96 libtool 1.4 automake 1.4g autoconf 2.50a aclocal 1.4g Any thoughts about the cause of the problem? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From king@eiffel.com Fri Jun 15 13:07:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id B33FF2CF1B for ; Fri, 15 Jun 2001 13:07:45 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15Ax4K-0007nG-00; Fri, 15 Jun 2001 10:07:36 -0700 Message-ID: <19c801c0f5be$c273e360$750a000a@naples> From: "Ian King" To: "Havoc Pennington" Cc: References: <18e601c0f533$5cacce60$750a000a@naples> Subject: Re: Finding gtkwidget from GdkWindow Date: Fri, 15 Jun 2001 10:15:21 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > "Ian King" writes: > > If I retrieve the gdkwindow that the mouse pointer is currently over > > (gdk_window_at_pointer), what is the easiest way to find the relative > > gtkWidget for which this gdkwindow is associated with. > > > > It's gdk_window_get_user_data (window). The user data on a window is > always the widget it's associated with. > In response to this, is there anyway to query the GdkWindow at position (X, Y)? Thanks for your time Ian King From lapenta_jm@yahoo.com Fri Jun 15 13:40:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web4703.mail.yahoo.com (web4703.mail.yahoo.com [216.115.105.203]) by mail.gnome.org (Postfix) with SMTP id AC8D62D554 for ; Fri, 15 Jun 2001 13:40:10 -0400 (EDT) Message-ID: <20010615174010.9772.qmail@web4703.mail.yahoo.com> Received: from [129.55.200.20] by web4703.mail.yahoo.com; Fri, 15 Jun 2001 10:40:10 PDT Date: Fri, 15 Jun 2001 10:40:10 -0700 (PDT) From: Jason LaPenta Subject: timer or idle function ? HOWTO ? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like to use the gtk_idle_add() function, but I'm not sure how to have widgets updated w/in the function. Does anybody have an example I could look at? Also, why does the "clicked" signal get sent when I call gtk_toggle_button_set_active()? Is there some widget or something that will send out signals periodically so I can update the screen ever 1second or so with new data? Thanks jason lapenta_jm@yahoo.com __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From pbd@op.net Fri Jun 15 13:56:49 2001 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 3FECD2BBB2 for ; Fri, 15 Jun 2001 13:56:49 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-08.ppp.op.net [209.152.194.104]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA15559; Fri, 15 Jun 2001 13:56:45 -0400 (EDT) Message-Id: <200106151756.NAA15559@renoir.op.net> To: Jason LaPenta Cc: gtk-list@gnome.org Subject: Re: timer or idle function ? HOWTO ? In-reply-to: Your message of "Fri, 15 Jun 2001 10:40:10 PDT." <20010615174010.9772.qmail@web4703.mail.yahoo.com> Date: Fri, 15 Jun 2001 13:59:01 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I would like to use the gtk_idle_add() function, >but I'm not sure how to have widgets updated w/in >the function. Does anybody have an example I >could look at? you need to pass pointers to widgets, then use them: gint my_idle_function (gpointer arg) { GtkWidget *w = (GtkWidget *) arg; gtk_widget_do_something (w, ...); return (should_be_called_again ? TRUE : FALSE); } >Also, why does the "clicked" signal get sent when >I call gtk_toggle_button_set_active()? because GTK+ is broken like that :) >Is there some widget or something that will send >out signals periodically so I can update the >screen ever 1second or so with new data? gint my_timeout (gpointer arg) { ... do something, perhaps with `arg' ... return (should_be_called_again ? TRUE : FALSE); } gtk_timeout_add (1000, my_timeout, some_argument_pointer); See the GTK+ tutorial for more details, then read the docs at gtk.org. --p From sarregui@cicese.mx Fri Jun 15 14:16:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hermes.cicese.mx (hermes.cicese.mx [158.97.1.34]) by mail.gnome.org (Postfix) with ESMTP id 8AF472BC8D for ; Fri, 15 Jun 2001 14:16:07 -0400 (EDT) Received: from sismo.cicese.mx (sismo.cicese.mx [158.97.28.56]) by hermes.cicese.mx (8.10.0/8.10.0) with ESMTP id f5FIG3f16398 for ; Fri, 15 Jun 2001 11:16:03 -0700 (PDT) Received: from cicese.mx (pc-resnor.cicese.mx [158.97.30.133]) by sismo.cicese.mx (8.9.3+Sun/8.9.1) with ESMTP id LAA17369 for ; Fri, 15 Jun 2001 11:16:02 -0700 (PDT) Message-ID: <3B2A5155.9DAB2A@cicese.mx> Date: Fri, 15 Jun 2001 11:17:57 -0700 From: Sergio Arregui Ojeda X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.18-rtl i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-List Subject: Help! 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: yesterday i posted this, and i still have trouble with this so i'm asking you guys for help i have to develop a system that has to plot data that is acquired trhough the serial port, i have done most of this part using the realtime plot demo that comes with extragtk, but i have a problem because it's a lot of data and my machine gets very busy while plotting, i think that this is 'cause the data does not get released, instead it keeps it in memory, and i want to know if theres is a way that this data can be freed (or deallocated) so this way it speed up things. I also have made another application that plots data in realtime that comes faster, and i have a problem when i try to plot more than one station (obviously the data comes from different station) because of the same problem. i'm new to programming in gtk, and this are the very first applications that i have made, so please anyone can help me?, what i want is a way to speed up the plotting without slowing my machine, and i'm asking for some techinques or ways to accomplish this thank you -- Sergio Arregui Ojeda Departamento de Sismologia CICESE Tel (6) 174 50 50 ext 26524 From Simon.Budig@unix-ag.org Thu Jun 14 13:23:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from harley.unix-ag.uni-siegen.de (harley.unix-ag.uni-siegen.de [141.99.42.44]) by mail.gnome.org (Postfix) with ESMTP id 85ACB2DED7 for ; Thu, 14 Jun 2001 13:23:28 -0400 (EDT) Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id TAA06366 for ; Thu, 14 Jun 2001 19:23:26 +0200 Received: (from simon@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id TAA163158 for gtk-list@gnome.org; Thu, 14 Jun 2001 19:23:26 +0200 Date: Thu, 14 Jun 2001 19:23:26 +0200 From: Simon Budig To: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? Message-ID: <20010614192325.A182508@vmax.unix-ag.uni-siegen.de> References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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 Sun, Jun 10, 2001 at 11:18:08PM -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington (hp@redhat.com) wrote: > Simon Budig writes: > > Is it possible to reduce the size of the GTK Library (we don't have > > unlimited resources) e.g. by removing some unused widgets? > > You can do a custom GTK build and remove a substantial number of the > widgets and some other features (e.g. unused image loaders and > language modules). Static linking will already strip a lot of unused > stuff of course. Static linking currently is not a solution, since we have multiple applications. So - how would I remove widgets from the Build? Simply deleting the files from the Makefile? > > Would you recommend to use GTK+ in it's current state? > > For embedded you should also consider simply using a small version of > X such as the one used for the iPAQ; framebuffer is somewhat smaller > but not hugely so, and its smaller size is achieved at the expense of > multiprocess support. Yeah - we consider this definitely. X11 is not too big and has a lot of advantages (for example generating synthetic events for a virtual keyboard). X11 would even enable to use GTK+ 1.2 so that we would have a rock solid api and the (as Sven mentioned) better GObject performance. > The primary advantage of GTK for embedded devices is that you get the > same GUI API as a full-fledged computer, and of course the > higher-level full-featured nature of that API; GTK will be larger than > something like FLTK, but will also be a good bit more powerful if you > can afford the size and need the GTK features or the similarity to the > non-embedded API. Tradeoffs, tradeoffs. ;-) Yeah - I tried some coding in FLTK yesterday and it is nice and straight- forward. But having only one callback and no signals available is - at least for me - a little bit strange... Bye, Simon -- Simon.Budig@unix-ag.org http://www.home.unix-ag.org/simon/ From frank@tone.jpl.nasa.gov Thu Jun 14 13:44:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from eis-msg-021.jpl.nasa.gov (eis-msg-021.jpl.nasa.gov [137.78.160.201]) by mail.gnome.org (Postfix) with ESMTP id BA0792CEDC for ; Thu, 14 Jun 2001 13:44:56 -0400 (EDT) Received: from tone.jpl.nasa.gov by eis-msg-021.jpl.nasa.gov with ESMTP for gtk-list@gnome.org; Thu, 14 Jun 2001 10:44:37 -0700 Received: from tone.jpl.nasa.gov (zorn [137.79.125.209]) by tone.jpl.nasa.gov (8.9.3+Sun/8.9.1) with ESMTP id KAA13912 for ; Thu, 14 Jun 2001 10:41:34 -0700 (PDT) Message-Id: <3B28F5E9.8F762326@tone.jpl.nasa.gov> Date: Thu, 14 Jun 2001 10:35:37 -0700 From: Frank Hartman X-Mailer: Mozilla 4.76C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: OpenGL and Gtk References: <20010614160208.668A82E648@mail.gnome.org> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am new to this list and gtk+. So far I haven't been able to find any info about OpenGL and Gtk+. I have a sample source code that includes gtkgl/gtkglarea.h and links with -lgtkgl but I don't have this and I'm not sure where to get it. Could someone give some info about opengl w/gtk? Thanks, Frank Hartman JPL/MER From hp@redhat.com Fri Jun 15 15:16:49 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id ECACD2C8B5 for ; Fri, 15 Jun 2001 15:16:48 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5FJGf028437; Fri, 15 Jun 2001 15:16:41 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Simon Budig Cc: gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> <20010614192325.A182508@vmax.unix-ag.uni-siegen.de> From: Havoc Pennington Date: 15 Jun 2001 15:16:41 -0400 In-Reply-To: Simon Budig's message of "Thu, 14 Jun 2001 19:23:26 +0200" Message-ID: Lines: 11 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Simon Budig writes: > Static linking currently is not a solution, since we have multiple > applications. So - how would I remove widgets from the Build? > Simply deleting the files from the Makefile? For many widgets that should work, yes. We'd kind of like to have a nicer way (such as a config file with a list of widgets to build) but haven't implemented it. Havoc From lapenta_jm@yahoo.com Fri Jun 15 15:19:00 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web4705.mail.yahoo.com (web4705.mail.yahoo.com [216.115.105.205]) by mail.gnome.org (Postfix) with SMTP id 1C6042E7B7 for ; Fri, 15 Jun 2001 15:19:00 -0400 (EDT) Message-ID: <20010615191859.4012.qmail@web4705.mail.yahoo.com> Received: from [129.55.200.20] by web4705.mail.yahoo.com; Fri, 15 Jun 2001 12:18:59 PDT Date: Fri, 15 Jun 2001 12:18:59 -0700 (PDT) From: Jason LaPenta Subject: dev widgets location : and scope widget To: gtk-list@gnome.org In-Reply-To: <200106151756.NAA15559@renoir.op.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I would like a scope widget, a graph that takes in an arbitrary stream of data and displays it over time. Is anybody working on one that I could add to? I looked at GtkCurve.. and what I want is too diferent I think to subclass from. Is there a place where people freely distribute widgets they are working on? Jason __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From jlof@mail.student.oulu.fi Fri Jun 15 17:05:02 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from oulu.fi (ousrvr.oulu.fi [130.231.240.1]) by mail.gnome.org (Postfix) with ESMTP id 6201B2BAE1 for ; Fri, 15 Jun 2001 17:05:01 -0400 (EDT) Received: from paju.oulu.fi (root@paju.oulu.fi [130.231.240.20]) by oulu.fi (8.8.5/8.8.5) with ESMTP id AAA28960; Sat, 16 Jun 2001 00:04:59 +0300 (EET DST) Received: from paju.oulu.fi (jlof@paju.oulu.fi [130.231.240.20]) by paju.oulu.fi (8.8.5/8.8.5) with ESMTP id AAA34415683; Sat, 16 Jun 2001 00:04:59 +0300 (EDT) Date: Sat, 16 Jun 2001 00:04:59 +0300 From: Janne Lof X-Sender: jlof@paju.oulu.fi To: Frank Hartman Cc: gtk-list@gnome.org Subject: Re: OpenGL and Gtk In-Reply-To: <3B28F5E9.8F762326@tone.jpl.nasa.gov> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On Thu, 14 Jun 2001, Frank Hartman wrote: > Hi, > > I am new to this list and gtk+. So far I haven't been able to find any > info about OpenGL and Gtk+. I have a sample source code that includes > gtkgl/gtkglarea.h and links with -lgtkgl but I don't have this and I'm > not sure where to get it. Could someone give some info about opengl > w/gtk? > Try http://www.student.oulu.fi/~jlof/gtkglarea/ > Thanks, > Frank Hartman > JPL/MER > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Janne Löf mail : jlof@mail.student.oulu.fi www : http://www.student.oulu.fi/~jlof/ From rwalden@tripos.com Fri Jun 15 17:09:04 2001 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 4C31B2D305 for ; Fri, 15 Jun 2001 17:09:03 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA23200 for ; Fri, 15 Jun 2001 16:09:03 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma021474; Fri, 15 Jun 01 15:56:22 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA71846 for ; Fri, 15 Jun 2001 15:56:20 -0500 (CDT) Message-ID: <3B2A7673.8E7BCE65@tripos.com> Date: Fri, 15 Jun 2001 15:56:19 -0500 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@gnome.org Subject: Minimize and Restore Windows References: <20010615191859.4012.qmail@web4705.mail.yahoo.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List, [Sorry, but I'm asking this again...] Does anyone know if GTK 1.2 has functionality to raise and lower (minimize) windows on the desktop programmatically? Thanks -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Jun 15 18:23:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1407F2CED9 for ; Fri, 15 Jun 2001 18:23:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5FMN2L12120; Fri, 15 Jun 2001 18:23:02 -0400 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: Minimize and Restore Windows References: <20010615191859.4012.qmail@web4705.mail.yahoo.com> <3B2A7673.8E7BCE65@tripos.com> From: Havoc Pennington Date: 15 Jun 2001 18:23:02 -0400 In-Reply-To: Ralph Walden's message of "Fri, 15 Jun 2001 15:56:19 -0500" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > > [Sorry, but I'm asking this again...] > > Does anyone know if GTK 1.2 has functionality to > raise and lower (minimize) windows on the desktop > programmatically? > To deiconify, call gdk_window_show (window_widget->window), to iconify you basically call XIconifyWindow(GDK_WINDOW_XID(window_widget->window)) I put the exact code in a mail to this list a few weeks or months ago, to raise above other windows gdk_window_raise (window_widget->window). Havoc From kyi111@dreamwiz.com Sat Jun 16 02:28:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx-s0.dreamwiz.com (mx-s0.dreamwiz.com [211.174.54.135]) by mail.gnome.org (Postfix) with ESMTP id 2DDE22CDD0 for ; Sat, 16 Jun 2001 02:28:07 -0400 (EDT) Received: from mail11.dreamwiz.com (mail11.dreamwiz.com [211.174.54.31]) by mx-s0.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5G6S0Y55136 for ; Sat, 16 Jun 2001 15:28:01 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by mail11.dreamwiz.com (8.11.3/8.11.3) with ESMTP id f5G6Rqc14899 for ; Sat, 16 Jun 2001 15:27:52 +0900 (KST) Message-Id: <200106160627.f5G6Rqc14899@mail11.dreamwiz.com> Date: Sat, 16 Jun 2001 15:27:52 +0900 (KST) From: =?EUC-KR?B?sei/68DPKHlvbmcgaWwua2ltKQ==?= Subject: I would like to change email address To: gtk-list@gnome.org Organization: X-Sender-IP: 211.219.11.9 X-Sender-ID: kyi111@dreamwiz.com X-Priority: 3 X-Mailer: DreamWiz Web-Mailer V1.31 X-DreamWiz-Data: receive_check=1;save=mail11.dreamwiz.com:kyi111:Sent:216; MIME-Version: 1.0 Content-Type: MULTIPART/ALTERNATIVE; BOUNDARY="0-708280116-992672872=:14879" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --0-708280116-992672872=:14879 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII I want to change e-mail address kyi111@dreamwiz.com --> kyi111@alphatelecom.co.kr Please help me ------------------------------------------------- DreamWiz Free Mail @ http://www.dreamwiz.com/ DreamSearch Click the world!!! http://search.dreamwiz.com/ --0-708280116-992672872=:14879 Content-Type: TEXT/HTML; CHARSET=US-ASCII
I want to change e-mail address

kyi111@dreamwiz.com --> kyi111@alphatelecom.co.kr

Please help me




Your life on the net

DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!!  http://search.dreamwiz.com/


--0-708280116-992672872=:14879-- From mitch@dhcpassigned.uk.sun.com Sat Jun 16 07:02:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prserv.net (out1.prserv.net [32.97.166.31]) by mail.gnome.org (Postfix) with ESMTP id 630F92D92A for ; Sat, 16 Jun 2001 07:02:55 -0400 (EDT) Received: from dhcpassigned.uk.sun.com (slip139-92-214-110.por.uk.prserv.net[139.92.214.110]) by prserv.net (out1) with ESMTP id <2001061611025320105l5i48e>; Sat, 16 Jun 2001 11:02:53 +0000 Received: (from mitch@localhost) by dhcpassigned.uk.sun.com (8.11.1/8.11.1) id f5GB4Fm03855; Sat, 16 Jun 2001 12:04:15 +0100 Date: Sat, 16 Jun 2001 12:04:15 +0100 (BST) From: X-X-Sender: Reply-To: To: Subject: Help with popup/popdown with pointer grab. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm writing a small app that should automatically deiconify a window and warp the pointer to its location for text input. However everytime i try and grab the pointer it fails ! If i manually deiconify thru my window manager then the grab succeeds. This leads me to believe that the deiconifying functions in gtk/gdk are not ICCM compliant and don't set the WM_STATE properly, or am i doing something wrong in my code ? I have appended my short example with all superfuolous code taken out. The window should popup and popdown every 2 seconds in this test example and grab the pointer when it is deiconized. Can anyone help please ? Thanx Dave % gcc `gtk-config --cflags` main.c -o main `gtk-config --libs` #include #include GtkWidget *window; GtkWidget *button; static void gdk_window_iconify (GdkWindow * win) { g_return_if_fail (win != NULL); XIconifyWindow (GDK_WINDOW_XDISPLAY (win), GDK_WINDOW_XWINDOW (win), 0); } static gint toggle_popup () { static gint iconized = 1; if (iconized) { /* Popup window and grab pointer */ gdk_window_show(window->window); gdk_window_raise(window->window); if (gdk_pointer_grab (window->window, FALSE, GDK_POINTER_MOTION_MASK, window->window, NULL, GDK_CURRENT_TIME)==0) printf("grab succeeded\n"); else printf("grab failed\n"); } else { /* Iconize window, release grab */ gdk_pointer_ungrab (GDK_CURRENT_TIME); gdk_window_iconify (window->window); } iconized=!iconized; return TRUE; } int main (int argc, char *argv[]) { 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 ("Hello World"); gtk_container_add (GTK_CONTAINER (window), button); gtk_timeout_add (2 * 1000, toggle_popup, NULL); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (gtk_exit), NULL); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return (0); } From hp@redhat.com Sat Jun 16 11:12:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id E89672BC09 for ; Sat, 16 Jun 2001 11:12:20 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5GFCC825728; Sat, 16 Jun 2001 11:12:12 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: Subject: Re: Help with popup/popdown with pointer grab. References: From: Havoc Pennington Date: 16 Jun 2001 11:12:11 -0400 In-Reply-To: 's message of "Sat, 16 Jun 2001 12:04:15 +0100 (BST)" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > /* Popup window and grab pointer */ > gdk_window_show(window->window); > gdk_window_raise(window->window); > if (gdk_pointer_grab (window->window, > FALSE, GDK_POINTER_MOTION_MASK, > window->window, NULL, GDK_CURRENT_TIME)==0) > printf("grab succeeded\n"); > else This is a race condition. The window manager gets a request to deiconify, and then will map your window. However, the window is probably still unmapped when you do the grab. Remember that X is asynchronous. If gdk_pointer_grab() is returning GrabNotViewable then this is almost certainly the problem. Havoc From mitch@dhcpassigned.uk.sun.com Sat Jun 16 11:30:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from prserv.net (out4.prserv.net [32.97.166.34]) by mail.gnome.org (Postfix) with ESMTP id 4D4392DFA8 for ; Sat, 16 Jun 2001 11:25:59 -0400 (EDT) Received: from dhcpassigned.uk.sun.com (slip139-92-214-176.por.uk.prserv.net[139.92.214.176]) by prserv.net (out4) with ESMTP id <2001061615255720402ikmu9e>; Sat, 16 Jun 2001 15:25:57 +0000 Received: (from mitch@localhost) by dhcpassigned.uk.sun.com (8.11.1/8.11.1) id f5GFS5i04640; Sat, 16 Jun 2001 16:28:05 +0100 Date: Sat, 16 Jun 2001 16:28:04 +0100 (BST) From: X-X-Sender: Reply-To: To: Cc: Havoc Pennington Subject: Re: Help with popup/popdown with pointer grab. 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Havoc, However even putting gdk_flush()'es before the grab doesn't solve the problem. What is the solution then ? How can i wait till window is mapped ? Thanx Mitch -------- Original Message -------- Subject: Re: Help with popup/popdown with pointer grab. Date: 16 Jun 2001 11:12:11 -0400 From: Havoc Pennington To: CC: References: writes: > /* Popup window and grab pointer */ > gdk_window_show(window->window); > gdk_window_raise(window->window); > if (gdk_pointer_grab (window->window, > FALSE, GDK_POINTER_MOTION_MASK, > window->window, NULL, GDK_CURRENT_TIME)==0) > printf("grab succeeded\n"); > else This is a race condition. The window manager gets a request to deiconify, and then will map your window. However, the window is probably still unmapped when you do the grab. Remember that X is asynchronous. If gdk_pointer_grab() is returning GrabNotViewable then this is almost certainly the problem. Havoc _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From jmullen3@nc.rr.com Fri Jun 15 16:56:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail2.nc.rr.com (fe2.southeast.rr.com [24.93.67.49]) by mail.gnome.org (Postfix) with ESMTP id 7971D2DDE9 for ; Fri, 15 Jun 2001 16:56:26 -0400 (EDT) Received: from nc.rr.com ([66.57.30.183]) by mail2.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 15 Jun 2001 16:56:26 -0400 From: Jeff Mullen Reply-To: jmullen3@nc.rr.com Date: Fri, 15 Jun 2001 16:59:01 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: gtk-list@gnome.org Subject: GTK- tutorial MIME-Version: 1.0 Message-Id: <01061516590100.01266@nc.rr.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Greetings, DISCLAIMER: I hope this is the right mailing list... I am trying to learn gtk-- and downloaded a tutorial from the gtkmm.sourceforge.net website. I have typed in the second example in which you press a button to print "Hello World" in the terminal window. However, the code does not compile. Here is the code from the tutorial // button.cc #include #include void hello() { cout << "Hello World" << endl; } main() { Gtk::Button button("Hello World"); button.clicked.connect(slot(&hello)); } The first error I got was "libsigc++ : no such file or directory". So I went to the website and downloaded libsigc++-1.0.1. I ran the configure, make, make check and make install with no problems. I then made a symbolic link ln -s /usr/include/sigc++-config.h /usr/include/sig++/libsigc++ (because this is what I think a FAQ was trying to tell me, I am not sure). Well, now the error (at compile time) is button.cc: In function `int main()': button.cc:18: implicit declaration of function `int slot(...)' button.cc:18: no matching function for call to `Gtk::EmitProxySignal0::connect (int)' /usr/include/gtk--/proxy.h:96: candidates are: class SigC::Connection Gtk::ProxySignal0::connect(const SigC::Slot0 &) The compile command I am issuing is: g++ button.cc -o button `gtkmm-config --cflags --libs` I am at a loss for why this example is not compiling correctly. Can anyone point me in the right direction? --jeff From raphi2@caramail.com Fri Jun 15 23:39:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.caramail.com (mail.caramail.com [195.68.99.70]) by mail.gnome.org (Postfix) with ESMTP id 9F24F2CD27 for ; Fri, 15 Jun 2001 23:39:30 -0400 (EDT) Received: from caramail.com (www34.caramail.com [195.68.99.119]) by mail.caramail.com (8.8.8/8.8.8) with SMTP id FAA14076 for gtk-list@gnome.org; Sat, 16 Jun 2001 05:39:29 +0200 (DST) Posted-Date: Sat, 16 Jun 2001 05:39:29 +0200 (DST) From: raphy7002@caramail.com To: gtk-list@gnome.org Message-ID: <992662769008580@caramail.com> X-Mailer: Caramail - www.caramail.com X-Originating-IP: [163.5.255.8] Mime-Version: 1.0 Subject: GTK + SDL Date: Sat, 16 Jun 2001 05:39:29 GMT+1 Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_008580992662769_ID" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_Caramail_008580992662769_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I'm currently developping a GTK application and I need using SDL to improve my application. I saw an example of GTK + SDL program on www.libsdl.org but this example doesn't help me a lot. In fact I would like to "include" a little SDL window in a big GTK window. (by example to be able to play movies in my GTK application) There are a lot of newsgroups about this problem, but nobody seems to have a real answer to this question. Thanks for your help, Raph ______________________________________________________ Bo=EEte aux lettres - Caramail - http://www.caramail.com --=_NextPart_Caramail_008580992662769_ID-- From pbd@op.net Sat Jun 16 12:41:49 2001 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 B24F92E027 for ; Sat, 16 Jun 2001 12:41:49 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-1e.ppp.op.net [209.152.206.30]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA24914; Sat, 16 Jun 2001 12:41:47 -0400 (EDT) Message-Id: <200106161641.MAA24914@renoir.op.net> To: jmullen3@nc.rr.com Cc: gtk-list@gnome.org Subject: Re: GTK- tutorial In-reply-to: Your message of "Fri, 15 Jun 2001 16:59:01 EDT." <01061516590100.01266@nc.rr.com> Date: Sat, 16 Jun 2001 12:41:31 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >DISCLAIMER: I hope this is the right mailing list... wrong list. try gtkmm-main@lists.sourceforge.net >The first error I got was "libsigc++ : no such file or directory". So I went i've been using libsgic++ for a long time, and i've never used such a header file. try >button.cc:18: implicit declaration of function `int slot(...)' either use SigC::slot or "using namespace SigC" at some appropriate scope. --p From jfbenck@home.nl Sat Jun 16 12:44:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from CP102461-A.home.nl (cp102461-a.landg1.lb.nl.home.com [213.51.21.239]) by mail.gnome.org (Postfix) with ESMTP id EA5B32D21F for ; Sat, 16 Jun 2001 12:44:14 -0400 (EDT) Received: (from jeroen@localhost) by CP102461-A.home.nl (8.11.0/8.11.0) id f5GGjpe02226; Sat, 16 Jun 2001 18:45:51 +0200 X-Authentication-Warning: CP102461-A.home.nl: jeroen set sender to jfbenck@home.nl using -f Subject: Re: GTK + SDL From: Jeroen Benckhuijsen To: raphy7002@caramail.com Cc: gtk-list@gnome.org In-Reply-To: <992662769008580@caramail.com> References: <992662769008580@caramail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.10.99 (Preview Release) Date: 16 Jun 2001 18:45:51 +0200 Message-Id: <992709951.1341.0.camel@CP102461-A.home.nl> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 16 Jun 2001 05:39:29 +0000, raphy7002@caramail.com wrote: > Hello, >=20 > I'm currently developping a GTK application > and I need using SDL to improve my application. >=20 > I saw an example of GTK + SDL program on www.libsdl.org > but this example doesn't help me a lot. >=20 > In fact I would like to "include" a little SDL window in a=20 > big GTK window. (by example to be able to play movies in my=20 > GTK application) >=20 > There are a lot of newsgroups about this problem, but=20 > nobody seems to have a real answer to this question. >=20 > Thanks for your help, >=20 > Raph > =20 > ______________________________________________________ > Bo=EEte aux lettres - Caramail - http://www.caramail.com >=20 AFAIK, there is a Gtk widget which includes a SDL Window. Thought it was simly called GtkSDL. Haven't used it however, so i don't know anything about it.....=20 -- Jeroen Benckhuijsen Software Engineer Phoenix Software From hp@redhat.com Sat Jun 16 17:57:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 60C1B2E9B5 for ; Sat, 16 Jun 2001 17:57:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5GLuuE25996; Sat, 16 Jun 2001 17:56:56 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: Subject: Re: Help with popup/popdown with pointer grab. References: From: Havoc Pennington Date: 16 Jun 2001 17:56:56 -0400 In-Reply-To: 's message of "Sat, 16 Jun 2001 16:28:04 +0100 (BST)" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > > However even putting gdk_flush()'es before the grab > doesn't solve the problem. What is the solution then ? > How can i wait till window is mapped ? > A flush doesn't help - that ensures your show request has gone to the server, but not that the window manager has processed it and actually mapped the window. If it's a toplevel window, I believe you may get a map_event signal on it when it's actually mapped. Note that then you have a race condition if you depend on the grab existing, because it won't exist for a brief moment after you map... but I don't think you can do anything about that. One possibility is to have a GtkInvisible offscreen which you use for grabs that's never unmapped. Depending on what you're doing that may or may not work. Havoc From smurf@CSUA.Berkeley.EDU Sat Jun 16 20:23:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by mail.gnome.org (Postfix) with ESMTP id 521802BAE9 for ; Sat, 16 Jun 2001 20:23:26 -0400 (EDT) Received: (from smurf@localhost) by soda.csua.berkeley.edu (8.11.1/8.11.1) id f5H0NJe40539; Sat, 16 Jun 2001 17:23:19 -0700 (PDT) (envelope-from smurf) Date: Sat, 16 Jun 2001 17:23:19 -0700 From: Scott MacFiggen To: raphy7002@caramail.com Cc: gtk-list@gnome.org Subject: Re: GTK + SDL Message-ID: <20010616172319.A39429@CSUA.Berkeley.EDU> References: <992662769008580@caramail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <992662769008580@caramail.com>; from raphy7002@caramail.com on Sat, Jun 16, 2001 at 05:39:29AM +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, Jun 16, 2001 at 05:39:29AM +0000, raphy7002@caramail.com wrote: > Hello, > > I'm currently developping a GTK application > and I need using SDL to improve my application. > > I saw an example of GTK + SDL program on www.libsdl.org > but this example doesn't help me a lot. > > In fact I would like to "include" a little SDL window in a > big GTK window. (by example to be able to play movies in my > GTK application) The only real solution to this that I can see is to draw another GTK window in the bigger window and pass that windowid to SDL. You need a GtkWidget that has an Xwindow associated with to to pass to SDL (not all Widgets have x-windows, like frames don't). I use a drawing area inside of a frame for my SDL/GTK application. -Scott From omega@temple-baptist.com Sat Jun 16 21:33:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id B17D02E168 for ; Sat, 16 Jun 2001 21:33:01 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id VAA27415 for ; Sat, 16 Jun 2001 21:33:01 -0400 Received: from mail3.aracnet.com (mail3.aracnet.com [216.99.193.38]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5H1Vfb17694 for ; Sat, 16 Jun 2001 21:31:41 -0400 Received: from alpha.temple-baptist.com (temple-baptist.com [216.99.217.68]) by mail3.aracnet.com (8.11.4/8.11.0) with ESMTP id f5H1WuU28005; Sat, 16 Jun 2001 18:32:56 -0700 Received: from localhost (localhost [127.0.0.1]) by alpha.temple-baptist.com (8.11.0/8.8.7) with ESMTP id f5H1X5l29119; Sat, 16 Jun 2001 18:33:05 -0700 Date: Sat, 16 Jun 2001 18:33:05 -0700 (PDT) From: Erik Walthinsen To: Cc: Subject: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Parapraxis (author, paranormal.sourceforge.net) has converted his visualization plugin over to GObject, and has been hanging out in #gstreamer, since I'm just now wrapping up a conversion of GStreamer itself to GObject (more on that in another mail), and he's porting his plugin to GStreamer. He did some profiling of his code, and found that 26% of the CPU time was in g_type_instance_is_a(). Since that's a pretty complex function, I had no idea how to optimize it. But then I looked at the code that calls it, the _G_TYPE_CIT macro, which is the core of G_TYPE_CHECK_INSTANCE_TYPE. I turns out that a really obvious optimization was ignored: #define _G_TYPE_CIT(ip, gt) (g_type_instance_is_a ((GTypeInstance*) ip, gt)) The goal is to determine if the object instance *ip is of type gt. g_type_instance_is_a() goes through a really long list of things to determine if the object is really an interface, or a derived object, or any of the other myriad of possibilities that make the type system actually *useful*. The optimization that was missed is that in many/most cases, the code will be checking a object against its own type. That means that the GType gt will be equal to the 'immediate' type of the object, not a parent type, or any of that. The 'immediate' type of the object is accessible via the g_class pointer that is the first 4 bytes of *every* instance of any type (GTypeInstance). The g_class pointer goes to a structure that has the GType of that object. Therefore we can simply compare the 'immediate' type of the object directly against the type in question: #define _G_TYPE_CIT(ip, gt) \ ( (((GTypeInstance*)ip)->g_class->g_type == (gt)) ? TRUE : \ g_type_instance_is_a ((GTypeInstance*)ip, gt)) That way the only time g_type_instance_is_a() is called is when the comparison is between an object and its parent class, or some similar case. All other cases are two indirections and a compare. Parapraxis found that this reduced the number of calls in his code from 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by g_type_instance_is_a went from 26% to *not measurable*. This won't be quite as dramatic in something like a Gtk+ application, where more checks will be done between an object and one of its parent classes, but I would still expect *at least* a 50% reduction. I'm convinced that similar optimizations could be made to several of the other macros in this file, potentially reducing object type checking time to almost nothing. Parapraxis wondered if multithreading has any impact on this, and I believe it does not. The object is not capable of changing its type, ever, afaik. The GType being compared will almost always come from a _get_type() function that also cannot ever change the GType value. The only reason for the READER_LOCK in g_type_instance_is_a() is to avoid someone else mangling the GLists that are walked through to find the TypeNode in question, afaict. Anyway, if no one can find any other problems with this code, I would like to see it make its way into glib CVS. I have GNOME CVS write access, so if whoever wants me to, I can commit it myself, after posting a full unidiff on the list for confirmation that I'm doing it right. Erik Walthinsen - System Administrator __ / \ GStreamer - The only way to stream! | | M E G A ***** http://gstreamer.net/ ***** _\ /_ From rbultje@ronald.bitfreak.net Sun Jun 17 06:42:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 02DEE2DE88 for ; Sun, 17 Jun 2001 06:42:21 -0400 (EDT) Received: from woonkamer (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with SMTP id f5HBPKF01761; Sun, 17 Jun 2001 13:25:21 +0200 (CEST) From: "Ronald Bultje" To: "Scott MacFiggen" Cc: Subject: RE: GTK + SDL Date: Sun, 17 Jun 2001 12:48:32 +0200 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 V5.00.2919.6700 In-Reply-To: <20010616172319.A39429@CSUA.Berkeley.EDU> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Scott, >I use a drawing area inside of a frame for my SDL/GTK application. I personally use an eventbox because the only goal of an eventbox is to have a X-window associated with it - which is all you'd need. The eventbox is the "most simple" widget for this - isn't a drawing box far too complicated for this goal? Might make a difference of 0,00000001% in performance ;-). Regards, Ronald From timj@gtk.org Sun Jun 17 07:34:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 2AB212BEDC for ; Sun, 17 Jun 2001 07:34:17 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id HAA05792 for ; Sun, 17 Jun 2001 07:34:16 -0400 Received: from hmbg-3e36c350.pool.mediaWays.net (hmbg-3e36c350.pool.mediaWays.net [62.54.195.80]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HBWub04484 for ; Sun, 17 Jun 2001 07:32:56 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HBZFQ2018719; Sun, 17 Jun 2001 13:35:15 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HBZ5S32536; Sun, 17 Jun 2001 13:35:05 +0200 Date: Sun, 17 Jun 2001 13:35:05 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Erik Walthinsen Cc: gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 16 Jun 2001, Erik Walthinsen wrote: > Parapraxis (author, paranormal.sourceforge.net) has converted his > visualization plugin over to GObject, and has been hanging out in > #gstreamer, since I'm just now wrapping up a conversion of GStreamer > itself to GObject (more on that in another mail), and he's porting his > plugin to GStreamer. > > He did some profiling of his code, and found that 26% of the CPU time was > in g_type_instance_is_a(). Since that's a pretty complex function, I had > no idea how to optimize it. But then I looked at the code that calls it, > the _G_TYPE_CIT macro, which is the core of G_TYPE_CHECK_INSTANCE_TYPE. > I turns out that a really obvious optimization was ignored: > > #define _G_TYPE_CIT(ip, gt) (g_type_instance_is_a ((GTypeInstance*) ip, gt)) > > The goal is to determine if the object instance *ip is of type gt. > g_type_instance_is_a() goes through a really long list of things to > determine if the object is really an interface, or a derived object, or > any of the other myriad of possibilities that make the type system > actually *useful*. > > The optimization that was missed is that in many/most cases, the code will > be checking a object against its own type. That means that the GType gt > will be equal to the 'immediate' type of the object, not a parent type, or > any of that. > > The 'immediate' type of the object is accessible via the g_class pointer > that is the first 4 bytes of *every* instance of any type (GTypeInstance). > The g_class pointer goes to a structure that has the GType of that object. > Therefore we can simply compare the 'immediate' type of the object > directly against the type in question: > > #define _G_TYPE_CIT(ip, gt) \ > ( (((GTypeInstance*)ip)->g_class->g_type == (gt)) ? TRUE : \ > g_type_instance_is_a ((GTypeInstance*)ip, gt)) > > That way the only time g_type_instance_is_a() is called is when the > comparison is between an object and its parent class, or some similar > case. All other cases are two indirections and a compare. there's one problem with the above macro, that is, (ip) is evaluated twice, if its anything else than a constant (say a function call, returning an object), this macro implementation is potentially harmfull. > Parapraxis found that this reduced the number of calls in his code from > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > g_type_instance_is_a went from 26% to *not measurable*. ok, that is quite alarming indeed. > This won't be > quite as dramatic in something like a Gtk+ application, where more checks > will be done between an object and one of its parent classes, but I would > still expect *at least* a 50% reduction. i'd second that. > I'm convinced that similar optimizations could be made to several of the > other macros in this file, potentially reducing object type checking time > to almost nothing. feel free to post more suggestions liek this to gtk-devel-list@gnome.org. > Parapraxis wondered if multithreading has any impact on this, and I > believe it does not. The object is not capable of changing its type, > ever, afaik. The GType being compared will almost always come from a > _get_type() function that also cannot ever change the GType value. The > only reason for the READER_LOCK in g_type_instance_is_a() is to avoid > someone else mangling the GLists that are walked through to find the > TypeNode in question, afaict. mostly right. though, using g_type_instance_is_a() has another advantage, e.g. consider: #define ID_NOT_IN_TYPE_SYSTEM (255) static guint id = ID_NOT_IN_TYPE_SYSTEM; static guint *id_p = &id; { /*your version*/_G_TYPE_CIT (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* succeeds */ g_type_instance_is_a (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* fails, ID_NOT_IN_TYPE_SYSTEM is not registered */ } however, considering the speed advatage you report, it might be worth lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, for the supposedly pathological case that the instance is broken in that its class contains a non-registered type-id, _and_ this non-registered type id is being checked for, it returns a false TRUE. we still need to get around the double evaluation of the (ip) arg of _G_TYPE_CIT() though, so we'd have to implement it via an auxillary static inline function. the same kind of optimization can be implemented for the class type-checking macro btw. > Anyway, if no one can find any other problems with this code, I would > like to see it make its way into glib CVS. I have GNOME CVS write access, > so if whoever wants me to, I can commit it myself, after posting a full > unidiff on the list for confirmation that I'm doing it right. > > Erik Walthinsen - System Administrator --- ciaoTJ From otaylor@redhat.com Sun Jun 17 08:32:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id E423E2BCB1 for ; Sun, 17 Jun 2001 08:32:44 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id IAA08423 for ; Sun, 17 Jun 2001 08:32:44 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id F0E39242315; Sun, 17 Jun 2001 08:32:43 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 08:32:43 -0400 In-Reply-To: Tim Janik's message of "Sun, 17 Jun 2001 13:35:05 +0200 (CEST)" Message-ID: Lines: 77 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Tim Janik writes: > On Sat, 16 Jun 2001, Erik Walthinsen wrote: > > > Parapraxis found that this reduced the number of calls in his code from > > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > > g_type_instance_is_a went from 26% to *not measurable*. > > ok, that is quite alarming indeed. > > > This won't be > > quite as dramatic in something like a Gtk+ application, where more checks > > will be done between an object and one of its parent classes, but I would > > still expect *at least* a 50% reduction. > > i'd second that. I'm not sure I would. When I did profiling for GtkObject, a huge number of checks were from gtk_object_ref(), gtk_signal_emit() and such, so the really big win was: #define GTK_IS_OBJECT_CLASS(klass) ( \ (klass) != NULL && \ GTK_FUNDAMENTAL_TYPE (((GtkObjectClass*) (klass))->type) == GTK_TYPE_OBJECT \ ) Of course, GDK and Pango have flatter inheritance trees than GTK+, so, checking against the object type is probably a lot more common than it used to be. But trying to second guess this is completely pointless. Someone needs to add a few lines of instrumentation, run testgtk and report the results. > > Parapraxis wondered if multithreading has any impact on this, and I > > believe it does not. The object is not capable of changing its type, > > ever, afaik. The GType being compared will almost always come from a > > _get_type() function that also cannot ever change the GType value. The > > only reason for the READER_LOCK in g_type_instance_is_a() is to avoid > > someone else mangling the GLists that are walked through to find the > > TypeNode in question, afaict. > > mostly right. though, using g_type_instance_is_a() has another advantage, > e.g. consider: > > #define ID_NOT_IN_TYPE_SYSTEM (255) > static guint id = ID_NOT_IN_TYPE_SYSTEM; > static guint *id_p = &id; > { > /*your version*/_G_TYPE_CIT (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* succeeds */ > g_type_instance_is_a (&ip_p, ID_NOT_IN_TYPE_SYSTEM); /* fails, > ID_NOT_IN_TYPE_SYSTEM is not > registered */ > } This (to me) completely doesn't matter. g_type_instance_is_a() is virtually always called through BLAH_IS_FOO(), and in that case, the ID is going to be in the type system. > however, considering the speed advatage you report, it might be worth > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > for the supposedly pathological case that the instance is broken in that > its class contains a non-registered type-id, _and_ this non-registered > type id is being checked for, it returns a false TRUE. > > we still need to get around the double evaluation of the (ip) arg of > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > static inline function. > the same kind of optimization can be implemented for the class > type-checking macro btw. It's interesting to note that macros such as GTK_OBJECT() have double evaluated for a long time, and nobody has ever noticed/complained. Regards, Owen From timj@gtk.org Sun Jun 17 08:38:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id E8E052DC7F for ; Sun, 17 Jun 2001 08:38:40 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id IAA08824; Sun, 17 Jun 2001 08:38:40 -0400 Received: from hmbg-3e36c52a.pool.mediaWays.net (hmbg-3e36c52a.pool.mediaWays.net [62.54.197.42]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HCbKb06521; Sun, 17 Jun 2001 08:37:20 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HCdfQ2020460; Sun, 17 Jun 2001 14:39:41 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HCdfK10035; Sun, 17 Jun 2001 14:39:41 +0200 Date: Sun, 17 Jun 2001 14:39:41 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Owen Taylor Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 17 Jun 2001, Owen Taylor wrote: > Tim Janik writes: > > however, considering the speed advatage you report, it might be worth > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > for the supposedly pathological case that the instance is broken in that > > its class contains a non-registered type-id, _and_ this non-registered > > type id is being checked for, it returns a false TRUE. > > > > we still need to get around the double evaluation of the (ip) arg of > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > static inline function. > > the same kind of optimization can be implemented for the class > > type-checking macro btw. > > It's interesting to note that macros such as GTK_OBJECT() have double > evaluated for a long time, and nobody has ever noticed/complained. that's why i said "potentially" harmfull ;) i'm sure you agree that we still need to avoid doubleeval, right? > > Regards, > Owen > > --- ciaoTJ From otaylor@redhat.com Sun Jun 17 08:42:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A6B472E2EB for ; Sun, 17 Jun 2001 08:42:29 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 10628242315; Sun, 17 Jun 2001 08:42:29 -0400 (EDT) To: "Ronald Bultje" Cc: "Scott MacFiggen" , Subject: Re: GTK + SDL References: From: Owen Taylor Date: 17 Jun 2001 08:42:28 -0400 In-Reply-To: "Ronald Bultje"'s message of "Sun, 17 Jun 2001 12:48:32 +0200" Message-ID: Lines: 22 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ronald Bultje" writes: > Hi Scott, > > >I use a drawing area inside of a frame for my SDL/GTK application. > > I personally use an eventbox because the only goal of an eventbox is > to have a X-window associated with it - which is all you'd need. The > eventbox is the "most simple" widget for this - isn't a drawing box > far too complicated for this goal? > Might make a difference of 0,00000001% in performance ;-). Not that it matters at all, but actually, GtkDrawingArea is a simpler widget than GtkEventBox. GtkEventBox is a _container_ with a window, so has code for handling a child widget. GtkDrawingArea, on the other hand, is just a widget with a window that the app can draw on. Regards, Owen From otaylor@redhat.com Sun Jun 17 08:53:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id BC2A52DC70 for ; Sun, 17 Jun 2001 08:53:28 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id IAA09469 for ; Sun, 17 Jun 2001 08:53:28 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 23812242315; Sun, 17 Jun 2001 08:53:28 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 08:53:28 -0400 In-Reply-To: Tim Janik's message of "Sun, 17 Jun 2001 14:39:41 +0200 (CEST)" Message-ID: Lines: 52 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Tim Janik writes: > On 17 Jun 2001, Owen Taylor wrote: > > > Tim Janik writes: > > > > however, considering the speed advatage you report, it might be worth > > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > > for the supposedly pathological case that the instance is broken in that > > > its class contains a non-registered type-id, _and_ this non-registered > > > type id is being checked for, it returns a false TRUE. > > > > > > we still need to get around the double evaluation of the (ip) arg of > > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > > static inline function. > > > the same kind of optimization can be implemented for the class > > > type-checking macro btw. > > > > It's interesting to note that macros such as GTK_OBJECT() have double > > evaluated for a long time, and nobody has ever noticed/complained. > > that's why i said "potentially" harmfull ;) > i'm sure you agree that we still need to avoid doubleeval, right? I'm not sure. Considering that inline functions in C or statement expressions aren't portable, and I think GObject should probably perform portably, it's conceivable that the danger is worth it. I think it was worth it for the GTK_OBJECT() macro. It would certainly be good to avoid double evals for cast macros if at all possible. I've certainly written: GTK_ADJUSTMENT (gtk_adjustment_new (...)); Once or twice. Double evals are less harmful for BLAH_IS_FOO() as compared to BLAH_FOO(), because the worst that can happen with a double eval in BLAH_IS_FOO() is a bit of inefficiency - a memory leak can't happen because the instance pointer isn't returned. And aren't very likely to write something along the lines: if (PANGO_IS_LAYOUT (gtk_label_get_layout (label)) layout = gtk_label_get_layout (label); But any time a double eval of a macro can be avoided, the better, of course. Regards, Owen From timj@gtk.org Sun Jun 17 09:04:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id C2FE62E196 for ; Sun, 17 Jun 2001 09:04:56 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id JAA09879; Sun, 17 Jun 2001 09:04:56 -0400 Received: from hmbg-3e36c52a.pool.mediaWays.net (hmbg-3e36c52a.pool.mediaWays.net [62.54.197.42]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5HD3ab07066; Sun, 17 Jun 2001 09:03:36 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5HD5xQ2020973; Sun, 17 Jun 2001 15:05:59 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5HD5w218222; Sun, 17 Jun 2001 15:05:58 +0200 Date: Sun, 17 Jun 2001 15:05:58 +0200 (CEST) From: Tim Janik X-Sender: timj@birgrave.birnet.private To: Owen Taylor Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 17 Jun 2001, Owen Taylor wrote: > Tim Janik writes: > > > On 17 Jun 2001, Owen Taylor wrote: > > > > > Tim Janik writes: > > > > > > however, considering the speed advatage you report, it might be worth > > > > lessening the guarantees that G_TYPE_CHECK_INSTANCE_TYPE() makes, so that, > > > > for the supposedly pathological case that the instance is broken in that > > > > its class contains a non-registered type-id, _and_ this non-registered > > > > type id is being checked for, it returns a false TRUE. > > > > > > > > we still need to get around the double evaluation of the (ip) arg of > > > > _G_TYPE_CIT() though, so we'd have to implement it via an auxillary > > > > static inline function. > > > > the same kind of optimization can be implemented for the class > > > > type-checking macro btw. > > > > > > It's interesting to note that macros such as GTK_OBJECT() have double > > > evaluated for a long time, and nobody has ever noticed/complained. > > > > that's why i said "potentially" harmfull ;) > > i'm sure you agree that we still need to avoid doubleeval, right? > > I'm not sure. Considering that inline functions in C or statement > expressions aren't portable, and I think GObject should probably > perform portably, it's conceivable that the danger is worth it. > I think it was worth it for the GTK_OBJECT() macro. i don't think there's much to worry about compilers that can't inline nowadays. glib ensures that static inline at least works on such systems by providing a non-static linkable version, if static inline isn't supported. so worst-case scenario is that for inline-incapable compilers an extra function call is performed. > > Regards, > Owen > --- ciaoTJ From denisoider@mail.ru Sun Jun 17 13:26:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx7.port.ru (mx7.port.ru [194.67.23.44]) by mail.gnome.org (Postfix) with ESMTP id 7577B2DE4F for ; Sun, 17 Jun 2001 13:26:35 -0400 (EDT) Received: from f8.int ([10.0.0.76] helo=f8.mail.ru) by mx7.port.ru with esmtp (Exim 3.14 #1) id 15BgJm-0002X6-00 for gtk-list@gnome.org; Sun, 17 Jun 2001 21:26:34 +0400 Received: from mail by f8.mail.ru with local (Exim 3.14 #2) id 15BgJm-000OQ3-00 for gtk-list@gnome.org; Sun, 17 Jun 2001 21:26:34 +0400 Received: from [212.45.15.120] by win.mail.port.ru with HTTP; Sun, 17 Jun 2001 17:26:34 +0000 (GMT) From: "Bar Den" To: gtk-list@gnome.org Subject: Widget blinking? Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: unknown via proxy [212.45.15.120] Reply-To: "Bar Den" Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Date: Sun, 17 Jun 2001 21:26:34 +0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I use gtk-1.2.8, the problem is when you move mouse cursor over different widgets, sometimes they blink. What is wrong with it, is it a bug? From otaylor@redhat.com Sun Jun 17 13:40:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 41F9C2CAD7 for ; Sun, 17 Jun 2001 13:40:26 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id NAA26978 for ; Sun, 17 Jun 2001 13:40:25 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id AA0EE242315; Sun, 17 Jun 2001 13:40:25 -0400 (EDT) To: Tim Janik Cc: Erik Walthinsen , gtk-list@redhat.com, Gtk+ Developers , gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: From: Owen Taylor Date: 17 Jun 2001 13:40:25 -0400 In-Reply-To: Owen Taylor's message of "17 Jun 2001 08:32:43 -0400" Message-ID: Lines: 100 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Owen Taylor writes: > Tim Janik writes: > > > On Sat, 16 Jun 2001, Erik Walthinsen wrote: > > > > > Parapraxis found that this reduced the number of calls in his code from > > > 10489576 to 1391, or a 99.987% reduction. The total CPU time taken by > > > g_type_instance_is_a went from 26% to *not measurable*. > > > > ok, that is quite alarming indeed. > > > > > This won't be > > > quite as dramatic in something like a Gtk+ application, where more checks > > > will be done between an object and one of its parent classes, but I would > > > still expect *at least* a 50% reduction. > > > > i'd second that. > > I'm not sure I would. When I did profiling for GtkObject, a huge > number of checks were from gtk_object_ref(), gtk_signal_emit() > and such, so the really big win was: > > #define GTK_IS_OBJECT_CLASS(klass) ( \ > (klass) != NULL && \ > GTK_FUNDAMENTAL_TYPE (((GtkObjectClass*) (klass))->type) == GTK_TYPE_OBJECT \ > ) > > Of course, GDK and Pango have flatter inheritance trees than GTK+, > so, checking against the object type is probably a lot more > common than it used to be. > > But trying to second guess this is completely pointless. Someone > needs to add a few lines of instrumentation, run testgtk and > report the results. Did some checking - patch follows for anybody who wants to try for themselves. For the various tests in testgtk for the type of the object were between 7 and 33% of the total number of BLAH_IS_FOO checks. (Around 15% was typical) G_IS_OBJECT() checks were between 16% and 80% of the total number of checks. (Around 40% was typical) Obviously, it varies a _lot_ depending on what is going on. Regards, Owen Index: gtype.c =================================================================== RCS file: /cvs/gnome/glib/gobject/gtype.c,v retrieving revision 1.27 diff -u -r1.27 gtype.c --- gtype.c 2001/05/10 13:58:40 1.27 +++ gtype.c 2001/06/17 17:35:05 @@ -2479,15 +2479,40 @@ return type; } +static int total = 0; +static int same = 0; +static int gobject = 0; + +void print_perc (void) +{ + g_print ("Percentage of checks 'a is a': %.2f (%d/%d)\n", + 100 * (double)same / total, same, total); + g_print ("Percentage of checks 'a is gobject': %.2f (%d/%d)\n", + 100 * (double)gobject / total, gobject, total); +} + gboolean g_type_instance_is_a (GTypeInstance *type_instance, GType iface_type) { TypeNode *node, *iface; gboolean check; + static gboolean init = FALSE; if (!type_instance || !type_instance->g_class) return FALSE; + + if (!init) + { + init = TRUE; + g_atexit (print_perc); + } + + total++; + if (type_instance->g_class->g_type == iface_type) + same++; + if (G_TYPE_OBJECT == iface_type) + gobject++; G_READ_LOCK (&type_rw_lock); node = lookup_type_node_L (type_instance->g_class->g_type); From ishamael@themes.org Sun Jun 17 15:14:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alpha.techcare.com (unknown [207.89.153.66]) by mail.gnome.org (Postfix) with SMTP id 453B62BEEB for ; Sun, 17 Jun 2001 15:14:12 -0400 (EDT) Received: (qmail 4373 invoked from network); 17 Jun 2001 17:52:47 -0000 Received: from pm538-22.dialip.mich.net (HELO orodruin) (@198.108.161.80) by alpha.techcare.com with SMTP; 17 Jun 2001 17:52:47 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Charlie Schmidt" To: gtk-list@gnome.org Subject: GtkCList & GtkScrolledWindow X-Mailer: Pronto v2.2.6 On linux/mysql Date: 17 Jun 2001 14:57:24 EDT Reply-To: "Charlie Schmidt" Message-Id: <20010617191412.453B62BEEB@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: - im not a big fan of GtkCList, it takes a long long time to insert a lot of rows, but i suppose its all we have, right? so. i was wondering, is there a way to get the CList to request space for X rows, so the ScrolledWindow its in adjusts the scroll bar correctly, or a way to manually set the values in a ScrollBar so it adjusts? this way (at least, in my mind) i could insert the first 20 or so rows that would be required for display, and set the scroll bar so it looks like there are however many inserted, and then thread an insert function to append the rest of the rows. or, alternatively, can anyone tell me that the new GtkTreeView widget is significantly better for inserting, say, 10000-50000 rows all at once? ive tested it a bit in Gtk+-1.3.6, and wasnt very impressed (in fact, it seemed much much slower than GtkCList even). thanks. -- Charlie Schmidt - From hp@redhat.com Sun Jun 17 15:48:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 25FC82DC3A for ; Sun, 17 Jun 2001 15:48:15 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5HJm1432688; Sun, 17 Jun 2001 15:48:01 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Charlie Schmidt" Cc: gtk-list@gnome.org Subject: Re: GtkCList & GtkScrolledWindow References: <20010617191412.453B62BEEB@mail.gnome.org> From: Havoc Pennington Date: 17 Jun 2001 15:48:01 -0400 In-Reply-To: "Charlie Schmidt"'s message of "17 Jun 2001 14:57:24 EDT" Message-ID: Lines: 37 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Charlie Schmidt" writes: > im not a big fan of GtkCList, it takes a long long time to insert a lot > of rows, but i suppose its all we have, right? It's actually pretty fast, i.e. it's not doing a lot of work per-row. It's just that this operation is inherently O(n). You aren't going to get it to scale beyond that. > this way (at least, in my mind) i could insert the first 20 or so rows > that would be required for display, and set the scroll bar so it looks > like there are however many inserted, and then thread an insert function > to append the rest of the rows. > > or, alternatively, can anyone tell me that the new GtkTreeView widget is > significantly better for inserting, say, 10000-50000 rows all at once? > ive tested it a bit in Gtk+-1.3.6, and wasnt very impressed (in fact, it > seemed much much slower than GtkCList even). > It is much slower than the CList. However, there are two things we can do. a) You can write a custom model. So if you already have your row data, you don't actually need to "insert" it. The only issue is how long it takes GtkTreeView to compute the display. b) For computing the display, we can do it incrementally as for GtkTextView. Try putting a lot of text in the text view to see how it works. Basically you compute the onscreen display first and go ahead and show it, and do the rest in the background. Web browsers do this same thing as data streams in. Those two things should remove the O(n) issue, getting stuff onscreen becomes constant-time-ish. Havoc From bloodso@yahoo.com Sun Jun 17 17:09:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bigred.192.168.1.2 (24129136hfc79.tampabay.rr.com [24.129.136.79]) by mail.gnome.org (Postfix) with ESMTP id D28F12BB2D for ; Sun, 17 Jun 2001 17:09:39 -0400 (EDT) Received: from bigred (localhost.localdomain [127.0.0.1]) by bigred.192.168.1.2 (Postfix) with SMTP id 6D56C2A938 for ; Sun, 17 Jun 2001 17:15:09 -0400 (EDT) From: Chris Date: Sun, 17 Jun 2001 17:15:09 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: gtk-list@gnome.org Subject: drawing area in scrolled window MIME-Version: 1.0 Message-Id: <01061717150900.32534@bigred> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I am having trouble using a drawing area in a scrolled window. I am unable to scroll the drawing area. I have tried using a callback for the viewport in the scrolled window to set the vertical and horizontal adjustments for the size of the drawing area but that does not seem to work. Is it possible to scroll a drawing area with a scrolled window or will I have to use vertical and horizontal scrollbars? TIA, Chris From hp@redhat.com Sun Jun 17 20:03:15 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B45D42E298 for ; Sun, 17 Jun 2001 20:03:14 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5I02xT00323; Sun, 17 Jun 2001 20:02:59 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Chris Cc: gtk-list@gnome.org Subject: Re: drawing area in scrolled window References: <01061717150900.32534@bigred> From: Havoc Pennington Date: 17 Jun 2001 20:02:59 -0400 In-Reply-To: Chris's message of "Sun, 17 Jun 2001 17:15:09 -0400" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris writes: > Hello. I am having trouble using a drawing area in a scrolled window. I am > unable to scroll the drawing area. I have tried using a callback for the > viewport in the scrolled window to set the vertical and horizontal > adjustments for the size of the drawing area but that does not seem to work. > Is it possible to scroll a drawing area with a scrolled window or will I have > to use vertical and horizontal scrollbars? > It should work, you have to be sure to use gtk_scrolled_window_add_with_viewport(). Havoc From mseisdedos@cirsa.com Mon Jun 18 03:17:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id 774582BB09 for ; Mon, 18 Jun 2001 03:17:18 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A6F.0027F745; Mon, 18 Jun 2001 09:16:32 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Mon, 18 Jun 2001 09:16:43 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4821@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: icon visible Date: Mon, 18 Jun 2001 09:16:42 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a toolbar with both icons, and label in each button, if i press no sensitive button i get two different situations: a) gtk stock icons, like clear, cut, paste....., works ok: both icon an label get insensitive, b) buttons with my own icons, the lagel gets insensitive but icons remains sensitive. Any body knows why???? From thierry.herbreteau@trium-rd.com Mon Jun 18 04:17:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relais-int8.globalintranet.net (mailgate.globalintranet.net [194.206.181.244]) by mail.gnome.org (Postfix) with ESMTP id 7EFA92CC93 for ; Mon, 18 Jun 2001 04:17:15 -0400 (EDT) Received: from mitsu5.mef-rd.com ([10.255.7.37]) by relais-int8.globalintranet.net (Netscape Messaging Server 4.15) with SMTP id GF49NI00.C2B; Mon, 18 Jun 2001 10:16:30 +0200 Received: from trium-rd.com by mitsu5.mef-rd.com (SMI-8.6/SMI-SVR4) id KAA12961; Mon, 18 Jun 2001 10:15:46 +0200 Message-ID: <3B2DB930.F3A49A0E@trium-rd.com> Date: Mon, 18 Jun 2001 10:17:52 +0200 From: Thierry Herbreteau Reply-To: thierry.herbreteau@trium-rd.com Organization: Mitsubishi Electric Telecom Europe X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en,fr MIME-Version: 1.0 To: Sven Neumann Cc: Simon Budig , gtk-list@gnome.org Subject: Re: "Lightweight GTK+"? References: <20010611011907.A154740@vmax.unix-ag.uni-siegen.de> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sven Neumann wrote: > Actually we need something like GTK+-Embedded but at the moment I don't > see anyone pushing it and we are lacking the resources to do a general > solution at the moment. Hi Sven, I've heard about something developped on the Ipaq called Familiar. I don't know it very much but it seems to be based on GTK+. Do you have any information on it ? What kind of solution is it ? Bye, Thierry. From john.cupitt@ng-london.org.uk Mon Jun 18 07:43:52 2001 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 1925D2E192 for ; Mon, 18 Jun 2001 07:40:44 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN4RN; Mon, 18 Jun 2001 12:40:43 +0100 Message-ID: <3B2DE76D.9C9E6B4D@ng-london.org.uk> Date: Mon, 18 Jun 2001 12:35:09 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Sergio Arregui Ojeda Cc: GTK-List Subject: Re: Help! References: <3B2A5155.9DAB2A@cicese.mx> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sergio Arregui Ojeda wrote: > i have to develop a system that has to plot data that is acquired > trhough the serial port, i have done most of this part using > the realtime plot demo that comes with extragtk, but i have a problem > because it's a lot of data and my machine gets very busy > while plotting, i think that this is 'cause the data does not > get released, instead it keeps it in memory, and i want to know > if theres is a way that this data can be freed (or deallocated) > so this way it speed up things. Hi Sergio, memory should be freed up; if it's not getting freed, you have a bug somewhere. Maybe you're not _unref()ing stuff you should be unrefing? You could try a leak checker to try to track the problem down. memprof is nice and very easy to use: http://people.redhat.com/otaylor/memprof/ Run your program with no input first, and nail the easy leaks. Then start adding more data and see where new leaks appear. If you want something more sophisticated, you could download a trial version of purify: http://www.rational.com (100MB download, solaris/irix/hp-ux only, 15 days only). HTH, John From hp@redhat.com Mon Jun 18 10:24:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B18372BAB6 for ; Mon, 18 Jun 2001 10:24:21 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IENcr01382; Mon, 18 Jun 2001 10:23:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Monserrat Seisdedos =?iso-8859-1?q?Nu=F1ez?= Cc: "gtk (E-mail)" Subject: Re: icon visible References: <01294F3FC12BD41183BD00D0B7176A1D4D4821@srvexch> From: Havoc Pennington Date: 18 Jun 2001 10:23:38 -0400 In-Reply-To: Monserrat Seisdedos =?iso-8859-1?q?Nu=F1ez's?= message of "Mon, 18 Jun 2001 09:16:42 +0200" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Monserrat Seisdedos Nu=F1ez writes: > I have a toolbar with both icons, and label in each button, if i press no > sensitive button i get two different situations: > a) gtk stock icons, like clear, cut, paste....., works ok: both icon > an label get insensitive,=20 > b) buttons with my own icons, the lagel gets insensitive but icons > remains sensitive. > Any body knows why???? >=20 (Assuming GTK 1.3.6) You have to use GtkIconSet if you want the insensitive effect.=20 Register your icons with the stock system, the "Main application window" demo in gtk-demo has an example. Havoc From rwalden@tripos.com Mon Jun 18 10:57:00 2001 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 CC6FF2D41B for ; Mon, 18 Jun 2001 10:56:58 -0400 (EDT) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id JAA26940 for ; Mon, 18 Jun 2001 09:56:52 -0500 (CDT) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma023635; Mon, 18 Jun 01 09:42:28 -0500 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id JAA91630 for ; Mon, 18 Jun 2001 09:42:01 -0500 (CDT) Message-ID: <3B2E1338.3C18A969@tripos.com> Date: Mon, 18 Jun 2001 09:42:00 -0500 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@gnome.org Subject: MDI Interface 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to create a Multiple Document Interface (MDI) (a-la MSWord ) with GTK+? I haven't seen any examples like this, so I am wondering.... -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From andres_giraldo@yahoo.com Mon Jun 18 11:34:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11507.mail.yahoo.com (web11507.mail.yahoo.com [216.136.172.39]) by mail.gnome.org (Postfix) with SMTP id C59672BA98 for ; Mon, 18 Jun 2001 11:34:33 -0400 (EDT) Message-ID: <20010618153433.39415.qmail@web11507.mail.yahoo.com> Received: from [209.205.77.166] by web11507.mail.yahoo.com; Mon, 18 Jun 2001 08:34:33 PDT Date: Mon, 18 Jun 2001 08:34:33 -0700 (PDT) From: "Andrés" Giraldo Subject: gtk_widget_destroy To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm creating a window from a nother window, something like a message box, but when I want to unload this window; should I use gtk_widget_destroy? Because I'm connecting this signal to a button clicked event: gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", GTK_SIGNAL_FUNC (on_btnClose_clicked), NULL) // callback function void on_btnClose_clicked (GtkButton *button, gpointer data) { GtkWidget *window = (GtkWidget *)data; gtk_widget_destory (window); } /*********** It doesn't work, Gtk tells me that window is not an Gtk Widget... There's another way to unload a window or what I'm doing wrong... Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From alexl@redhat.com Mon Jun 18 12:18:25 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 8DB522BB23 for ; Mon, 18 Jun 2001 12:18:25 -0400 (EDT) Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [207.175.42.156]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id MAA26707; Mon, 18 Jun 2001 12:18:25 -0400 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id f5IGINP23616; Mon, 18 Jun 2001 12:18:23 -0400 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 18 Jun 2001 12:18:23 -0400 (EDT) From: Alex Larsson X-X-Sender: To: Tim Janik Cc: Owen Taylor , Erik Walthinsen , , Gtk+ Developers , Subject: Re: Massive speed improvement in GObject type checking code 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sun, 17 Jun 2001, Tim Janik wrote: > > I'm not sure. Considering that inline functions in C or statement > > expressions aren't portable, and I think GObject should probably > > perform portably, it's conceivable that the danger is worth it. > > I think it was worth it for the GTK_OBJECT() macro. > > i don't think there's much to worry about compilers that can't inline > nowadays. glib ensures that static inline at least works on such systems > by providing a non-static linkable version, if static inline isn't supported. > so worst-case scenario is that for inline-incapable compilers an extra > function call is performed. I'd like to point out here that GCC produces better code for macros than inline functions. This will continue to be true in GCC 3.0, and in the future until the tree inliner is ported from the c++ compiler to the c compiler. / Alex From sven@gimp.org Mon Jun 18 12:35:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 905A82E3DF for ; Mon, 18 Jun 2001 12:35:19 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15C1t1-00010y-00; Mon, 18 Jun 2001 18:28:23 +0200 To: "AndrXs" Giraldo Cc: Gtk List Subject: Re: gtk_widget_destroy References: <20010618153433.39415.qmail@web11507.mail.yahoo.com> From: Sven Neumann Date: 18 Jun 2001 18:28:23 +0200 In-Reply-To: <20010618153433.39415.qmail@web11507.mail.yahoo.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "AndrXs" Giraldo writes: > I'm creating a window from a nother window, something > like a message box, but when I want to unload this > window; > > should I use gtk_widget_destroy? > > Because I'm connecting this signal to a button clicked > event: > > gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", > GTK_SIGNAL_FUNC > (on_btnClose_clicked), NULL) > > > // callback function > > void on_btnClose_clicked (GtkButton *button, gpointer > data) > { > GtkWidget *window = (GtkWidget *)data; > > gtk_widget_destory (window); > } > you did not pass the window pointer when connecting your signal. How is this supposed to work ?? Salut, Sven From king@eiffel.com Mon Jun 18 13:42:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 0911C2BB19 for ; Mon, 18 Jun 2001 13:42:27 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C32f-0001oj-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 10:42:25 -0700 Message-ID: <1fe701c0f81f$2752db30$750a000a@naples> From: "Ian King" To: Subject: Scrolled window in ctree Date: Mon, 18 Jun 2001 10:50:25 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone know why the horizontal scrollbar for ctree (scrolled_window_add_with_viewport) is not viewable at all. I also get size allocation warnings everytime I use the ctree? I need to fix this as ctrees are used for our visual debugger. Thanks for your time IEK From rsteinke@w-link.net Mon Jun 18 14:26:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 86F882E00E for ; Mon, 18 Jun 2001 14:26:11 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15C3nZ-0002s8-00 for ; Mon, 18 Jun 2001 11:30:53 -0700 Date: Mon, 18 Jun 2001 11:30:53 -0700 To: gtk-list@gnome.org Subject: Trouble setting GdkEventMask Message-ID: <3B2E48DD.nail8HY11LXHW@yggdrasil> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm trying to connect to the key-press-event of a wigdet derived from GtkDrawingArea. It has a window, and I'm using gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to the GdkEventMask for the widget. Nonetheless, the signal isn't being emitted (it's not even showing up in the default function for the event signal in the derived widget). What am I forgetting? I'm using gtk 1.3, if that matters. Ron Steinke From hp@redhat.com Mon Jun 18 14:34:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 5413B2DEE8 for ; Mon, 18 Jun 2001 14:30:36 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IIULW01615; Mon, 18 Jun 2001 14:30:21 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Scrolled window in ctree References: <1fe701c0f81f$2752db30$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 14:30:21 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 10:50:25 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > Does anyone know why the horizontal scrollbar for ctree > (scrolled_window_add_with_viewport) is not viewable at all. I also get size > allocation warnings everytime I use the ctree? I need to fix this as ctrees > are used for our visual debugger. > > Thanks for your time > Don't use add_with_viewport(), that's only for widgets without "native" scroll support. Just use gtk_container_add(). Havoc From skip@beluga.mojam.com Mon Jun 18 14:36:29 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 927752E011 for ; Mon, 18 Jun 2001 14:36:28 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5IIYuV09781; Mon, 18 Jun 2001 13:34:56 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15150.18895.379738.456168@beluga.mojam.com> Date: Mon, 18 Jun 2001 13:34:55 -0500 To: gtk-list@gnome.org, pygtk@daa.com.au Subject: can I watch all signals being emitted? X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: For debugging and tutorial purposes, is it possible to easily see all signal emissions (or all signal emissions by a particular object)? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From george@clipper.ens.fr Mon Jun 18 11:48:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 25C7F2BDE9 for ; Mon, 18 Jun 2001 11:48:28 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA17639 for ; Mon, 18 Jun 2001 11:48:27 -0400 Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5IFlAb00790 for ; Mon, 18 Jun 2001 11:47:10 -0400 Received: from chaland.ens.fr (chaland.ens.fr [129.199.129.3]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f5IFmK663604 for ; Mon, 18 Jun 2001 17:48:20 +0200 (CEST) Date: Mon, 18 Jun 2001 17:48:20 +0200 (CEST) Received: from (george@localhost) by chaland.ens.fr (8.9.2/jb-1.1) Message-Id: <200106181548.RAA08305@chaland.ens.fr> From: george@clipper.ens.fr (Nicolas George) References: <3B2E1338.3C18A969@tripos.com> Subject: Re: MDI Interface Newsgroups: ens.mailing-lists.gtk.general X-Newsreader: Flrn (0.4.0 - 07/99) To: gtk-list@redhat.com In-Reply-To: <3B2E1338.3C18A969@tripos.com> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden, dans le message <3B2E1338.3C18A969@tripos.com> a écrit : > Is it possible to create a Multiple Document Interface (MDI) > (a-la MSWord ) with GTK+? No, this is not possible. These interfaces are Evil. How do you make them work with multiple virtual desktops? You should use several toplevel windows instead. From king@eiffel.com Mon Jun 18 16:29:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 8CE2C2BB38 for ; Mon, 18 Jun 2001 16:29:12 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C5e0-0004Jj-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 13:29:08 -0700 Message-ID: <211901c0f836$71f778a0$750a000a@naples> From: "Ian King" To: Subject: Visual types Date: Mon, 18 Jun 2001 13:37:08 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: What are the main disadvantages for using a pseudo color visual for all applications written in gtk. Is it that high color images will look all messed up or are their other disadvantages? Thanks for your time. Ian King From pbd@op.net Mon Jun 18 16:32:07 2001 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 72C122DB68 for ; Mon, 18 Jun 2001 16:32:07 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-15.ppp.op.net [209.152.194.117]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA27022; Mon, 18 Jun 2001 16:32:00 -0400 (EDT) Message-Id: <200106182032.QAA27022@renoir.op.net> To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask In-reply-to: Your message of "Mon, 18 Jun 2001 11:30:53 PDT." <3B2E48DD.nail8HY11LXHW@yggdrasil> Date: Mon, 18 Jun 2001 16:31:57 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > I'm trying to connect to the key-press-event of a wigdet >derived from GtkDrawingArea. It has a window, and I'm using >gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to >the GdkEventMask for the widget. Nonetheless, the signal >isn't being emitted (it's not even showing up in the >default function for the event signal in the derived >widget). What am I forgetting? I'm using gtk 1.3, if >that matters. did you set the CAN_FOCUS flag? otherwise, the widget will never receive keyboard focus (i think) ... From hp@redhat.com Mon Jun 18 16:32:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2E3042DB68 for ; Mon, 18 Jun 2001 16:32:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5IKVrk01651; Mon, 18 Jun 2001 16:31:53 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <3B2E48DD.nail8HY11LXHW@yggdrasil> From: Havoc Pennington Date: 18 Jun 2001 16:31:53 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 11:30:53 -0700" Message-ID: Lines: 16 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > I'm trying to connect to the key-press-event of a wigdet > derived from GtkDrawingArea. It has a window, and I'm using > gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to > the GdkEventMask for the widget. Nonetheless, the signal > isn't being emitted (it's not even showing up in the > default function for the event signal in the derived > widget). What am I forgetting? I'm using gtk 1.3, if > that matters. > You need the drawing area to have key focus. Set GTK_CAN_FOCUS flag, gtk_widget_grab_focus() on button press, etc. Havoc From king@eiffel.com Mon Jun 18 17:15:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 9917C2D2E6 for ; Mon, 18 Jun 2001 17:15:11 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C6MY-0003Wk-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 14:15:10 -0700 Message-ID: <215f01c0f83c$e0394630$750a000a@naples> From: "Ian King" To: Subject: Default buttons Date: Mon, 18 Jun 2001 14:23:10 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I change the border size of a button that has been set with the flag GTK_CAN_DEFAULT. Thanks Ian King From hp@redhat.com Mon Jun 18 17:50:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 685872DC09 for ; Mon, 18 Jun 2001 17:50:12 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5ILnpG01675; Mon, 18 Jun 2001 17:49:51 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Visual types References: <211901c0f836$71f778a0$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 17:49:51 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 13:37:08 -0700" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > What are the main disadvantages for using a pseudo color visual for all > applications written in gtk. Is it that high color images will look all > messed up or are their other disadvantages? > There's just no real point using a visual other than the default, ever. Unless your app is written specifically for certain hardware such as an SGI. (The only exception is to use the GdkRGB visual for drawables where you'll draw RGB data, but in GTK 2 this isn't even necessary.) Havoc From raphi2@caramail.com Mon Jun 18 17:54:43 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail2.caramail.com (mail2.caramail.com [195.68.99.69]) by mail.gnome.org (Postfix) with ESMTP id 2A7C52E1B4 for ; Mon, 18 Jun 2001 17:54:43 -0400 (EDT) Received: from caramail.com (www35.caramail.com [195.68.99.214]) by mail2.caramail.com (8.8.8/8.8.8) with SMTP id XAA28311; Mon, 18 Jun 2001 23:54:42 +0200 (DST) Posted-Date: Mon, 18 Jun 2001 23:54:42 +0200 (DST) From: raphi2 raph To: gtk-list@gnome.org Cc: otaylor@redhat.com Message-ID: <992901282019158@caramail.com> X-Mailer: Caramail - www.caramail.com X-Originating-IP: [163.5.255.8] Mime-Version: 1.0 Subject: GTK / SDL bis Date: Mon, 18 Jun 2001 23:54:42 GMT+1 Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_019158992901282_ID" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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_Caramail_019158992901282_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Here is my problem again: I'm currently developping a GTK application and I need using SDL to improve my application. I saw an example of GTK + SDL program on www.libsdl.org but this example doesn't help me a lot. In fact I would like to "include" a little SDL window in a big GTK window. (by example to be able to play movies in my GTK application) I tried to resolve my problem with your advices :) but I have still problems. here is the part of my program with problems: SDL_Thread *thread; GtkWidget *drawing_area; Window xwin; gtk_sess *sess =3D (gtk_sess *)data; sess->new =3D gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize(sess->new, 460, 500); // gtk_widget_show (sess->new); sess->fixed =3D gtk_fixed_new(); gtk_widget_ref (sess->fixed); gtk_widget_show (sess->fixed); gtk_container_add(GTK_CONTAINER(sess->new), sess->fixed); drawing_area =3D gtk_drawing_area_new(); gtk_widget_set_usize(drawing_area, 100, 100); gtk_fixed_put(GTK_FIXED(sess->fixed), drawing_area, 400, 400); gtk_widget_realize(drawing_area); gtk_widget_show(drawing_area); { char SDL_windowhack[32]; sprintf(SDL_windowhack,"SDL_WINDOWID=3D-543170384", GDK_WINDOW_XWINDOW(drawing_area->window)); putenv(SDL_windowhack); } screen =3D SDL_SetVideoMode(100, 100, 0, 0); thread =3D SDL_CreateThread(play_film, sess); if (thread =3D=3D NULL) printf("Probleme avec la thread\n"); // gtk_timeout_add(5, animation, sess); I do the SDL_Init before this in an init function. Do you see something wrong in this code ? Thanks a lot for help Raph _________________________________________________________ Le journal des abonn=E9s Caramail - http://www.carazine.com --=_NextPart_Caramail_019158992901282_ID-- From king@eiffel.com Mon Jun 18 19:47:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 306EF2BCA3 for ; Mon, 18 Jun 2001 19:47:17 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C8jj-0003dD-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 16:47:15 -0700 Message-ID: <220801c0f852$1ffee8a0$750a000a@naples> From: "Ian King" To: Subject: Popup windows Date: Mon, 18 Jun 2001 16:55:17 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: When I have a widget within a popup window, such as a text field, the text field doesn't seem to get the focus. If I then change the window to be a top level window, then the text field works perfectly. Does anyone know why this is? Thanks for your time Ian King From king@eiffel.com Mon Jun 18 20:08:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id EACB12BCBB for ; Mon, 18 Jun 2001 20:08:40 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C94Q-00079D-00 for gtk-list@gnome.org; Mon, 18 Jun 2001 17:08:38 -0700 Message-ID: <221a01c0f855$1c8aa210$750a000a@naples> From: "Ian King" To: References: <220801c0f852$1ffee8a0$750a000a@naples> Subject: Re: Popup windows Date: Mon, 18 Jun 2001 17:16:39 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: In follow up to the previous message, it seems that the key events are not passed through for a popup window, but are for a top level window. Is there a reason for this? Thanks Ian King ----- Original Message ----- From: "Ian King" To: Sent: Monday, June 18, 2001 4:55 PM Subject: Popup windows > When I have a widget within a popup window, such as a text field, the text > field doesn't seem to get the focus. If I then change the window to be a > top level window, then the text field works perfectly. Does anyone know why > this is? > > Thanks for your time > > Ian King > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From hp@redhat.com Mon Jun 18 20:27:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1592D2DD26 for ; Mon, 18 Jun 2001 20:27:56 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J0RfZ01824; Mon, 18 Jun 2001 20:27:41 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Popup windows References: <220801c0f852$1ffee8a0$750a000a@naples> <221a01c0f855$1c8aa210$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 20:27:41 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 17:16:39 -0700" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > In follow up to the previous message, it seems that the key events are not > passed through for a popup window, but are for a top level window. Is there > a reason for this? > Yes, GTK_WINDOW_POPUP windows are not known to the window manager. So the window manager won't ever give them focus. You shouldn't use GTK_WINDOW_POPUP for windows that require focus, only for things like tooltips and menus. Havoc From king@eiffel.com Mon Jun 18 20:40:41 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id DF1F12DBE0 for ; Mon, 18 Jun 2001 20:40:40 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15C9ZO-0003dt-00; Mon, 18 Jun 2001 17:40:38 -0700 Message-ID: <224b01c0f859$94870bb0$750a000a@naples> From: "Ian King" To: "Havoc Pennington" Cc: References: <220801c0f852$1ffee8a0$750a000a@naples><221a01c0f855$1c8aa210$750a000a@naples> Subject: Re: Popup windows Date: Mon, 18 Jun 2001 17:48:39 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to create a window with no decorations, that allows widgets inside it to behave as they do with a normal top level window. Can I create a top level window that 1) Has no decorations and only shows the client area. 2) Cannot be moved or resized by the user (I guess this is done by changing the window policy). I need this for things such as a code autocomplete window that pops up when you enter a keyboard accelerator and this brings up a list of possibilities for you to choose from. Thanks for your time. Ian King ----- Original Message ----- From: "Havoc Pennington" To: "Ian King" Cc: Sent: Monday, June 18, 2001 5:27 PM Subject: Re: Popup windows > > "Ian King" writes: > > In follow up to the previous message, it seems that the key events are not > > passed through for a popup window, but are for a top level window. Is there > > a reason for this? > > > > Yes, GTK_WINDOW_POPUP windows are not known to the window manager. So > the window manager won't ever give them focus. > > You shouldn't use GTK_WINDOW_POPUP for windows that require focus, > only for things like tooltips and menus. > > Havoc > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From rsteinke@w-link.net Mon Jun 18 21:13:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id DC3E52BCA3 for ; Mon, 18 Jun 2001 21:13:21 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CA9d-0003vj-00; Mon, 18 Jun 2001 18:18:05 -0700 Date: Mon, 18 Jun 2001 18:18:05 -0700 To: pbd@Op.Net, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2EA84D.nailBN41M8KO5@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> In-Reply-To: <200106182032.QAA27022@renoir.op.net> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: Paul Davis > > > I'm trying to connect to the key-press-event of a wigdet > >derived from GtkDrawingArea. It has a window, and I'm using > >gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to > >the GdkEventMask for the widget. Nonetheless, the signal > >isn't being emitted (it's not even showing up in the > >default function for the event signal in the derived > >widget). What am I forgetting? I'm using gtk 1.3, if > >that matters. > > did you set the CAN_FOCUS flag? otherwise, the widget will never > receive keyboard focus (i think) ... > I was missing that, so thanks. However, I changed that, and it still doesn't work. What else is missing? Ron Steinke From james@daa.com.au Mon Jun 18 21:18:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from quoll.daa.com.au (quoll.daa.com.au [203.17.251.129]) by mail.gnome.org (Postfix) with ESMTP id 871FC2E1F0 for ; Mon, 18 Jun 2001 21:18:32 -0400 (EDT) Received: from james.daa.com.au (james.daa.com.au [203.17.251.193]) by quoll.daa.com.au (Postfix) with ESMTP id E2ACDC0A4; Tue, 19 Jun 2001 09:18:27 +0800 (WST) Date: Tue, 19 Jun 2001 09:18:26 +0800 (WST) From: James Henstridge To: Skip Montanaro Cc: , Subject: Re: [pygtk] can I watch all signals being emitted? In-Reply-To: <15150.18895.379738.456168@beluga.mojam.com> Message-ID: X-message-flag: ALL YOUR BASE ARE BELONG TO US Reply-By: Sat 01 Jan 2000 00:00:00 +800 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, 18 Jun 2001, Skip Montanaro wrote: > > For debugging and tutorial purposes, is it possible to easily see all signal > emissions (or all signal emissions by a particular object)? There are some debug flags for the GType system, but at the moment the gobject module hard codes this to 0 (no flags). For now, you could change the line in gobjectmodule.c: g_type_init(0); to: g_type_init(G_TYPE_DEBUG_SIGNALS); I haven't really looked at making this configurable, as they were talking about changing this interface a little on gtk-devel-list James. -- Email: james@daa.com.au WWW: http://www.daa.com.au/~james/ From hp@redhat.com Mon Jun 18 22:26:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 3365A2C81E for ; Mon, 18 Jun 2001 22:26:10 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J2PtQ01909; Mon, 18 Jun 2001 22:25:55 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke Cc: pbd@Op.Net, gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> From: Havoc Pennington Date: 18 Jun 2001 22:25:55 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 18:18:05 -0700" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ron Steinke writes: > > I was missing that, so thanks. However, I changed that, > and it still doesn't work. What else is missing? > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus indication if any. GTK 2.0 has default implementations that do this in GtkWidget. Havoc From hp@redhat.com Mon Jun 18 22:29:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 61DDA2DB51 for ; Mon, 18 Jun 2001 22:29:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J2Sht01912; Mon, 18 Jun 2001 22:28:43 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" Cc: Subject: Re: Popup windows References: <220801c0f852$1ffee8a0$750a000a@naples> <221a01c0f855$1c8aa210$750a000a@naples> <224b01c0f859$94870bb0$750a000a@naples> From: Havoc Pennington Date: 18 Jun 2001 22:28:43 -0400 In-Reply-To: "Ian King"'s message of "Mon, 18 Jun 2001 17:48:39 -0700" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Ian King" writes: > I want to create a window with no decorations, that allows widgets inside it > to behave as they do with a normal top level window. > > Can I create a top level window that > > 1) Has no decorations and only shows the client area. > 2) Cannot be moved or resized by the user (I guess this is done by changing > the window policy). > gdk_window_set_decorations (window->window, 0) to disable decorations, gtk_window_set_policy() to turn off resizing, disabling movement is impossible due to the way window management and X work. gdk_window_set_functions() in principle lets you disable movement but AFAIK most window managers ignore that hint. Havoc From cschadl@satan.org.uk Tue Jun 19 00:20:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ryoko.2y.net (235dul123.chartermi.net [206.11.235.123]) by mail.gnome.org (Postfix) with ESMTP id 5912F2BBAE for ; Tue, 19 Jun 2001 00:20:07 -0400 (EDT) Received: from ryoko.leet.org (lain [192.168.0.2]) by ryoko.2y.net (8.11.1/8.11.1) with SMTP id f5JHisi22533 for ; Tue, 19 Jun 2001 12:44:55 -0500 (CDT) (envelope-from cschadl@satan.org.uk) Date: Mon, 18 Jun 2001 23:21:11 -0500 From: Chris Schadl To: gtk-list@gnome.org Subject: Widgets not showing up Message-ID: <20010618232111.A24006@lain.leet.org> Reply-To: cschadl@satan.org.uk Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="AWniW0JNca5xppdA" Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.1.1 Lines: 159 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --AWniW0JNca5xppdA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit I've written a simple UI with a menubar, a hpaned window with a ctree and a clist packed into either side, and a status bar at the bottom of the window. Unfortunatley, only the hpaned container and its child widgets are displayed; the menubar and the status bar are not. Is there something wrong with my code that would cause this? I've writen simmilar interfaces that have worked just fine in the past, but this one has me stumped. --AWniW0JNca5xppdA Content-Type: text/x-c; charset=us-ascii Content-Disposition: attachment; filename="paned-test.c" #include #include void cb_delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { g_print("A delete_event occured.\n"); gtk_main_quit(); } void cb_clist_selection_made(GtkWidget *clist, gint row, gint column, GdkEventButton *event, gpointer data) { gchar *text; gtk_clist_get_text(GTK_CLIST(clist), row, column, &text); printf("%s was selected", text); } GtkWidget *create_main_window(void) { GtkWidget *window; GtkWidget *mainbox; GtkWidget *paned; GtkWidget *vbox; GtkWidget *scrolled_window; GtkWidget *scrolled2; GtkWidget *clist; GtkWidget *ctree; GtkWidget *entry; GtkWidget *status_bar; /* Menubar stuff */ GtkAccelGroup *group; GtkItemFactory *itemfactory; gint nmenu_items; GtkWidget *app_menubar; static GtkItemFactoryEntry menu_items[] = { { "/_File", "F", NULL, 0, "" }, { "/File/File", NULL, NULL, 0, "" }, { "/File/sep1", NULL, NULL, 0, "<Separator>" }, { "/File/_Quit", "<control>Q", gtk_main_quit, 0, "<Item>" } }; static gchar *clist_titles[] = { "Name", "Size" }; /* Containers */ window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize(GTK_WIDGET(window), 640, 480); gtk_window_set_title(GTK_WINDOW(window), "Paned window test"); gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(cb_delete_event), NULL); mainbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); paned = gtk_hpaned_new(); gtk_paned_set_position(GTK_PANED(paned), 200); gtk_container_add(GTK_CONTAINER(window), paned); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); scrolled_window = gtk_scrolled_window_new(NULL, NULL); gtk_container_add(GTK_CONTAINER(window), scrolled_window); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); scrolled2 = gtk_scrolled_window_new(NULL, NULL); gtk_container_add(GTK_CONTAINER(window), scrolled2); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled2), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); /* Widgets */ group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), group); nmenu_items = (sizeof (menu_items) / sizeof (menu_items[0])); itemfactory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "<main>", group); gtk_item_factory_create_items(itemfactory, nmenu_items, menu_items, NULL); app_menubar = gtk_item_factory_get_widget(itemfactory, "<main>"); clist = gtk_clist_new_with_titles(2, clist_titles); gtk_clist_set_shadow_type(GTK_CLIST(clist), GTK_SHADOW_ETCHED_IN); gtk_signal_connect(GTK_OBJECT(clist), "select_row", GTK_SIGNAL_FUNC(cb_clist_selection_made), GTK_CLIST(clist)); ctree = gtk_ctree_new(1,1); entry = gtk_entry_new(); status_bar = gtk_statusbar_new(); /* Pack widgets */ gtk_box_pack_start(GTK_BOX(mainbox), app_menubar, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(mainbox), paned, TRUE, TRUE, 0); gtk_box_pack_end(GTK_BOX(mainbox), status_bar, TRUE, FALSE, 0); gtk_paned_add1(GTK_PANED(paned), vbox); gtk_paned_add2(GTK_PANED(paned), scrolled_window); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), scrolled2, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(scrolled2), ctree); gtk_container_add(GTK_CONTAINER(scrolled_window), clist); /* Okay, all done. */ return(window); } int main(int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = create_main_window(); gtk_widget_show_all(window); gtk_main(); return 0; } --AWniW0JNca5xppdA-- From damon@ximian.com Tue Jun 19 00:42:08 2001 Return-Path: <damon@ximian.com> Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id 380F92CC57 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 00:42:08 -0400 (EDT) Received: from ximian.com (IDENT:damon@karuna.ximian.com [141.154.95.114]) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id AAA25961; Tue, 19 Jun 2001 00:42:06 -0400 Message-ID: <3B2ED7B9.63248AE6@ximian.com> Date: Tue, 19 Jun 2001 00:40:25 -0400 From: Damon Chaplin <damon@ximian.com> X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: cschadl@satan.org.uk Cc: gtk-list@gnome.org Subject: Re: Widgets not showing up References: <20010618232111.A24006@lain.leet.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Chris Schadl wrote: > > I've written a simple UI with a menubar, a hpaned window with a ctree and a > clist packed into either side, and a status bar at the bottom of the > window. Unfortunatley, only the hpaned container and its child widgets are > displayed; the menubar and the status bar are not. Is there something > wrong with my code that would cause this? I've writen simmilar interfaces > that have worked just fine in the past, but this one has me stumped. mainbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); ^^^^^^^^ Did you mean mainbox there? vbox hasn't been created yet! paned = gtk_hpaned_new(); gtk_paned_set_position(GTK_PANED(paned), 200); gtk_container_add(GTK_CONTAINER(window), paned); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); Why are you adding all these to window? A window can only have one child. (Didn't GTK+ complain about this?) Damon From rsteinke@w-link.net Tue Jun 19 00:57:45 2001 Return-Path: <rsteinke@w-link.net> Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 61E002E4F3 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 00:57:44 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CDen-0004T2-00; Mon, 18 Jun 2001 22:02:29 -0700 Date: Mon, 18 Jun 2001 22:02:29 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2EDCE5.nailD7J11VO0N@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> In-Reply-To: <y5wvglt434c.fsf@icon.labs.redhat.com> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke <rsteinke@w-link.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > From: Havoc Pennington <hp@redhat.com> > > Ron Steinke <rsteinke@w-link.net> writes: > > > > I was missing that, so thanks. However, I changed that, > > and it still doesn't work. What else is missing? > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > indication if any. GTK 2.0 has default implementations that do this in > GtkWidget. > But I am using 2.0 (really, 1.3, CVS within the last month or so), so this can't be it either. Ron Steinke From hp@redhat.com Tue Jun 19 02:10:44 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 39FCE2E4F7 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 02:10:44 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5J6ATH01993; Tue, 19 Jun 2001 02:10:29 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke <rsteinke@w-link.net> Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 02:10:29 -0400 In-Reply-To: Ron Steinke's message of "Mon, 18 Jun 2001 22:02:29 -0700" Message-ID: <y5w1yoh3sq2.fsf@icon.labs.redhat.com> Lines: 25 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ron Steinke <rsteinke@w-link.net> writes: > > From: Havoc Pennington <hp@redhat.com> > > > > Ron Steinke <rsteinke@w-link.net> writes: > > > > > > I was missing that, so thanks. However, I changed that, > > > and it still doesn't work. What else is missing? > > > > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > > indication if any. GTK 2.0 has default implementations that do this in > > GtkWidget. > > > > But I am using 2.0 (really, 1.3, CVS within the last month > or so), so this can't be it either. > I'm assuming you actually focus the drawing area (via tab key, or gtk_widget_grab_focus() on button press, or something?) Havoc From rbultje@ronald.bitfreak.net Tue Jun 19 03:24:21 2001 Return-Path: <rbultje@ronald.bitfreak.net> Delivered-To: gtk-list@gnome.org Received: from smtp8.xs4all.nl (smtp8.xs4all.nl [194.109.127.134]) by mail.gnome.org (Postfix) with ESMTP id 3F5D42E413 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 03:24:21 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp8.xs4all.nl (8.9.3/8.9.3) with ESMTP id JAA27822; Tue, 19 Jun 2001 09:24:18 +0200 (CEST) Message-ID: <3B2EFADF.2020404@ronald.bitfreak.net> Date: Tue, 19 Jun 2001 09:10:23 +0200 From: Ronald Bultje <rbultje@ronald.bitfreak.net> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us MIME-Version: 1.0 To: raphi2 raph <raphi2@caramail.com> Cc: gtk-list@gnome.org, otaylor@redhat.com Subject: Re: GTK / SDL bis References: <992901282019158@caramail.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> raphi2 raph wrote: >sprintf(SDL_windowhack,"SDL_WINDOWID=-543170384", > GDK_WINDOW_XWINDOW(drawing_area->window)); > ?????? How about: sprintf(SDL_windowhack,"SDL_WINDOWID=%d", GDK_WINDOW_XWINDOW(drawing_area->window)); Regards, Ronald From smanikandan_76@yahoo.com Tue Jun 19 05:18:38 2001 Return-Path: <smanikandan_76@yahoo.com> 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 1FB352DC01 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:17:58 -0400 (EDT) Received: from unknown (HELO vrpc) (192.122.174.191) by smtp.mail.vip.sc5.yahoo.com with SMTP; 19 Jun 2001 09:17:56 -0000 X-Apparently-From: <smanikandan?76@yahoo.com> Message-ID: <03ad01c0f8a0$c6d3f7d0$bfae7ac0@cisco.com> From: "S.Manikandan" <smanikandan_76@yahoo.com> To: <gtk-list@gnome.org> Subject: Configuration problems Date: Tue, 19 Jun 2001 14:48:15 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_03AA_01C0F8CE.DF4534E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> This is a multi-part message in MIME format. ------=_NextPart_000_03AA_01C0F8CE.DF4534E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , Iam newbie to gtk+ (gnome),i basically wanted to compile gnome,i = used CVS to download the latest sources.i was able to compile glib, but = gtk+ is giving problems,the environment is Solaris 2.6(SUN Sparc u-60) cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh = --prefix=3D/home/sw/gnu/gnome aclocal: /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated = macro `AM_PATH_AUDIOFILE' aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: 10: duplicated macro = `AM_PATH_ESD' gdk-pixbuf/pixops/Makefile.am:8: variable `GLIB_LIBS' not defined loading cache ./config.cache ./configure: syntax error at line 637: `AM_INIT_AUTOMAKE' unexpected Now type 'make' to compile Gtk+. cdsl2:/home/sw/gnu/gnome/src/gtk+>exit Thanks for ur help, Mani. ------=_NextPart_000_03AA_01C0F8CE.DF4534E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>    Iam newbie to gtk+ = (gnome),i=20 basically wanted to compile gnome,i used CVS to download the latest = sources.i=20 was able to compile glib, but gtk+ is giving problems,the environment is = Solaris=20 2.6(SUN Sparc u-60)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = size=3D2>cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh=20 --prefix=3D/home/sw/gnu/gnome<BR>aclocal:=20 /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated macro=20 `AM_PATH_AUDIOFILE'<BR>aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: = 10:=20 duplicated macro `AM_PATH_ESD'<BR>gdk-pixbuf/pixops/Makefile.am:8: = variable=20 `GLIB_LIBS' not defined<BR>loading cache ./config.cache<BR>./configure: = syntax=20 error at line 637: `AM_INIT_AUTOMAKE' unexpected</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Now type 'make' to compile=20 Gtk+.<BR>cdsl2:/home/sw/gnu/gnome/src/gtk+>exit</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for ur help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Mani.</FONT></DIV> <DIV><FONT face=3DArial = size=3D2></FONT> </DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_03AA_01C0F8CE.DF4534E0-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From rwan@cs.mu.oz.au Tue Jun 19 05:52:46 2001 Return-Path: <rwan@cs.mu.oz.au> Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 00AF32CF1C for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:52:41 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id TAA04369 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:52:38 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id B351075AA; Tue, 19 Jun 2001 19:52:37 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 7EFA3AC94 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:52:37 +1000 (EST) Date: Tue, 19 Jun 2001 19:52:37 +1000 (EST) From: Raymond Wan <rwan@cs.mu.oz.au> Reply-To: Raymond Wan <rwan@cs.mu.oz.au> To: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: <y5wsnh2aka7.fsf@icon.labs.redhat.com> Message-ID: <Pine.LNX.3.96.1010619194207.24080A-100000@vike.cs.mu.OZ.AU> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Havoc (or anyone else who knows the answer :) ), About the 1.3.6 release, On 14 Jun 2001, Havoc Pennington wrote: > The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this > release. These are available at: Do I need all three JPEG/PNG/TIFF installed or just one? In either case, does anyone know if I have to have root access to install them? I guess this is related to a question I asked a week ago; I followed the posted instructions and 1.3.5 installed fine, but 1.3.6 doesn't seem as easy. Without them, I only get part way through the GTK installation (GLib, Pango, Atk installed fine). Before I try again, I just want to do a quick check that I can install the above without root access... Thank you! Ray From okuno@blackbird.msr.mei.co.jp Tue Jun 19 07:25:56 2001 Return-Path: <okuno@blackbird.msr.mei.co.jp> Delivered-To: gtk-list@gnome.org Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.25]) by mail.gnome.org (Postfix) with ESMTP id 730EA2BB41 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 07:25:55 -0400 (EDT) Received: by bulls.mei.co.jp (8.11.3/3.7W) with ESMTP id f5JBPrX02247 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 20:25:53 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id UAA29394 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 20:25:51 +0900 (JST) Received: from blackbird.msr.mei.co.jp by msr.mei.co.jp (SMI-8.6/SMI-4.1) id UAA09067; Tue, 19 Jun 2001 20:24:24 +0900 Received: by blackbird.msr.mei.co.jp (Postfix, from userid 2235) id CBBADFB9; Tue, 19 Jun 2001 20:25:52 +0900 (JST) To: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: Your message of "14 Jun 2001 16:17:20 -0400". <y5wsnh2aka7.fsf@icon.labs.redhat.com> From: okuno@msr.mei.co.jp (Katsuhiro Okuno) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22PL4] 2000-05/28(Sun) Message-Id: <20010619112552.CBBADFB9@blackbird.msr.mei.co.jp> Date: Tue, 19 Jun 2001 20:25:52 +0900 (JST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm under Red Hat Linux 7.1 because of the libtool error. --------------------------------------------------------------------- /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' Fatal configuration error. See the libtool docs for more information. --------------------------------------------------------------------- But, I can compile it from pkgconfig-0.7.0.tar.gz without using RPM packaging system. (./configure, make, make install) Why? | A new release of the development versions of GTK+ and associated | libraries (GLib, Pango, Atk) is available at: | | ftp://ftp.gtk.org/pub/gtk/v1.3/ | | The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this | release. These are available at: From bruces@petech.ac.za Tue Jun 19 08:01:38 2001 Return-Path: <bruces@petech.ac.za> Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.37.151.38]) by mail.gnome.org (Postfix) with ESMTP id 979EA2E2A0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:01:35 -0400 (EDT) Received: from what (what.petech.ac.za [10.11.2.62]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id OAA07712 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:01:31 +0200 Message-ID: <01c301c0f8b7$e222a9c0$3e020b0a@petech.ac.za> From: "Bruce A. Smith" <bruces@petech.ac.za> To: <gtk-list@gnome.org> Subject: GTK+ Binding for Visual Basic Date: Tue, 19 Jun 2001 14:03:41 +0200 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.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Does anyone know if there is a VB or VB.Net binding for GTK+, either existing or in the works? Bruce Smith BI Developer/Internet Service Administrator Computer Services Port Elizabeth Technikon Tel: (041) 504-3649 Fax: (041) 504-3189 From bruces@mail.petech.ac.za Tue Jun 19 08:18:53 2001 Return-Path: <bruces@mail.petech.ac.za> Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.37.151.38]) by mail.gnome.org (Postfix) with ESMTP id 2D9AE2E54F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:18:03 -0400 (EDT) Received: from what (what.petech.ac.za [10.11.2.62]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id OAA08240 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:17:58 +0200 Message-ID: <01d901c0f8ba$2ee5ee00$3e020b0a@petech.ac.za> From: "Bruce A. Smith" <bruces@mail.petech.ac.za> To: <gtk-list@gnome.org> Subject: GTK+ Binding for Visual Basic Date: Tue, 19 Jun 2001 14:20:09 +0200 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.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi Does anyone know if there is a VB or VB.Net binding for GTK+, either existing or in the works? Bruce Smith BI Developer/Internet Service Administrator Computer Services Port Elizabeth Technikon Tel: (041) 504-3649 Fax: (041) 504-3189 From mshanmug@cisco.com Tue Jun 19 05:07:53 2001 Return-Path: <mshanmug@cisco.com> Delivered-To: gtk-list@gnome.org Received: from cisco.com (desh.cisco.com [192.122.173.43]) by mail.gnome.org (Postfix) with ESMTP id 195E12BB45 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 05:07:52 -0400 (EDT) Received: from vrpc ([192.122.174.191]) by cisco.com (8.8.8-Cisco List Logging/8.8.8) with SMTP id OAA29164 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:37:23 +0530 (IST) Message-ID: <039001c0f89f$5ce20a20$bfae7ac0@cisco.com> From: "S.Manikandan" <mshanmug@cisco.com> To: <gtk-list@gnome.org> Subject: Configuration problems Date: Tue, 19 Jun 2001 14:38:09 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_038D_01C0F8CD.761E8670" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> This is a multi-part message in MIME format. ------=_NextPart_000_038D_01C0F8CD.761E8670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , Iam newbie to gtk+ (gnome),i basically wanted to compile gnome,i = used CVS to download the latest sources.i was able to compile glib, but = gtk+ is giving problems,the environment is Solaris 2.6(SUN Sparc u-60) cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh = --prefix=3D/home/sw/gnu/gnome aclocal: /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated = macro `AM_PATH_AUDIOFILE' aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: 10: duplicated macro = `AM_PATH_ESD' gdk-pixbuf/pixops/Makefile.am:8: variable `GLIB_LIBS' not defined loading cache ./config.cache ./configure: syntax error at line 637: `AM_INIT_AUTOMAKE' unexpected Now type 'make' to compile Gtk+. cdsl2:/home/sw/gnu/gnome/src/gtk+>exit Thanks for ur help, Mani. ------=_NextPart_000_038D_01C0F8CD.761E8670 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>    Iam newbie to gtk+ = (gnome),i=20 basically wanted to compile gnome,i used CVS to download the latest = sources.i=20 was able to compile glib, but gtk+ is giving problems,the environment is = Solaris=20 2.6(SUN Sparc u-60)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = size=3D2>cdsl2:/home/sw/gnu/gnome/src/gtk+>./autogen.sh=20 --prefix=3D/home/sw/gnu/gnome<BR>aclocal:=20 /home/sw/gnu/gnome/share/aclocal/audiofile.m4: 12: duplicated macro=20 `AM_PATH_AUDIOFILE'<BR>aclocal: /home/sw/gnu/gnome/share/aclocal/esd.m4: = 10:=20 duplicated macro `AM_PATH_ESD'<BR>gdk-pixbuf/pixops/Makefile.am:8: = variable=20 `GLIB_LIBS' not defined<BR>loading cache ./config.cache<BR>./configure: = syntax=20 error at line 637: `AM_INIT_AUTOMAKE' unexpected</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Now type 'make' to compile=20 Gtk+.<BR>cdsl2:/home/sw/gnu/gnome/src/gtk+>exit</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for ur help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Mani.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_038D_01C0F8CD.761E8670-- From otaylor@redhat.com Tue Jun 19 08:28:07 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B6D892E827 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:26:18 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 3372D242315; Tue, 19 Jun 2001 08:26:18 -0400 (EDT) To: okuno@msr.mei.co.jp (Katsuhiro Okuno) Cc: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) References: <20010619112552.CBBADFB9@blackbird.msr.mei.co.jp> From: Owen Taylor <otaylor@redhat.com> Date: 19 Jun 2001 08:26:18 -0400 In-Reply-To: okuno@msr.mei.co.jp's message of "Tue, 19 Jun 2001 20:25:52 +0900 (JST)" Message-ID: <ybeelsg4pw5.fsf@fresnel.labs.redhat.com> Lines: 27 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> okuno@msr.mei.co.jp (Katsuhiro Okuno) writes: > I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm > under Red Hat Linux 7.1 because of the libtool error. > > --------------------------------------------------------------------- > /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la > libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' > Fatal configuration error. See the libtool docs for more information. > --------------------------------------------------------------------- The spec file uses %configure which in turn calls libtoolize. But the libtool on your system is older than that in the package, and this causes problems. You can: - change the specfile not to use %configure - Edit the definition of %configure in /usr/lib/rpm/macros not to run libtoolize - Install newer libtool packages http://people.redhat.com/otaylor/libtool-rpms/ Regards, Owen From timj@gtk.org Tue Jun 19 08:37:46 2001 Return-Path: <timj@gtk.org> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id CA7C92D14D for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:37:45 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id IAA20844; Tue, 19 Jun 2001 08:37:45 -0400 Received: from hmbg-3e36c6d9.pool.mediaWays.net (hmbg-3e36c6d9.pool.mediaWays.net [62.54.198.217]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JCaSb30676; Tue, 19 Jun 2001 08:36:28 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JCd7Q2022431; Tue, 19 Jun 2001 14:39:07 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5JCcu516606; Tue, 19 Jun 2001 14:38:56 +0200 Date: Tue, 19 Jun 2001 14:38:56 +0200 (CEST) From: Tim Janik <timj@gtk.org> X-Sender: timj@birgrave.birnet.private To: Alex Larsson <alexl@redhat.com> Cc: Owen Taylor <otaylor@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <Pine.LNX.4.33.0106181216290.6187-100000@devserv.devel.redhat.com> Message-ID: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On Mon, 18 Jun 2001, Alex Larsson wrote: > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > I'm not sure. Considering that inline functions in C or statement > > > expressions aren't portable, and I think GObject should probably > > > perform portably, it's conceivable that the danger is worth it. > > > I think it was worth it for the GTK_OBJECT() macro. > > > > i don't think there's much to worry about compilers that can't inline > > nowadays. glib ensures that static inline at least works on such systems > > by providing a non-static linkable version, if static inline isn't supported. > > so worst-case scenario is that for inline-incapable compilers an extra > > function call is performed. > > I'd like to point out here that GCC produces better code for macros than > inline functions. This will continue to be true in GCC 3.0, and in the > future until the tree inliner is ported from the c++ compiler to the c > compiler. well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, if that produces better code than using static inline instead, feel free to provide a gcc-special cased patch, once we have the static inlines ;) > > / Alex > --- ciaoTJ From okuno@blackbird.msr.mei.co.jp Tue Jun 19 08:43:38 2001 Return-Path: <okuno@blackbird.msr.mei.co.jp> Delivered-To: gtk-list@gnome.org Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.25]) by mail.gnome.org (Postfix) with ESMTP id 30D1F2E551 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:43:37 -0400 (EDT) Received: by bulls.mei.co.jp (8.11.3/3.7W) with ESMTP id f5JChYX03666; Tue, 19 Jun 2001 21:43:35 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id VAA02345; Tue, 19 Jun 2001 21:43:33 +0900 (JST) Received: from blackbird.msr.mei.co.jp by msr.mei.co.jp (SMI-8.6/SMI-4.1) id VAA10212; Tue, 19 Jun 2001 21:42:07 +0900 Received: by blackbird.msr.mei.co.jp (Postfix, from userid 2235) id 7A2DDFB9; Tue, 19 Jun 2001 21:43:34 +0900 (JST) To: otaylor@redhat.com Cc: gtk-list@gnome.org Subject: Re: New release of GTK+ libraries (1.3.6) In-Reply-To: Your message of "19 Jun 2001 08:26:18 -0400". <ybeelsg4pw5.fsf@fresnel.labs.redhat.com> From: okuno@msr.mei.co.jp (Katsuhiro Okuno) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22PL4] 2000-05/28(Sun) Message-Id: <20010619124334.7A2DDFB9@blackbird.msr.mei.co.jp> Date: Tue, 19 Jun 2001 21:43:34 +0900 (JST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I updated automake & libtool, so I could solve the problem. Thank you for your advice. | > I can't rebuild pkgconfig-0.7.0-3.i386.rpm from pkgconfig-0.7.0-3.src.rpm | > under Red Hat Linux 7.1 because of the libtool error. | > | > --------------------------------------------------------------------- | > /bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la | > libtool: ltconfig version `' does not match ltmain.sh version `1.3.5' | > Fatal configuration error. See the libtool docs for more information. | > --------------------------------------------------------------------- | | The spec file uses %configure which in turn calls libtoolize. But | the libtool on your system is older than that in the package, | and this causes problems. | | You can: | | - change the specfile not to use %configure | - Edit the definition of %configure in /usr/lib/rpm/macros not | to run libtoolize | - Install newer libtool packages | http://people.redhat.com/otaylor/libtool-rpms/ | | Regards, | Owen From markus.kuehni@trilab.ch Tue Jun 19 08:43:38 2001 Return-Path: <markus.kuehni@trilab.ch> Delivered-To: gtk-list@gnome.org Received: from mta1n.bluewin.ch (mta1n.bluewin.ch [195.186.1.210]) by mail.gnome.org (Postfix) with ESMTP id 6F4152E554 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 08:43:38 -0400 (EDT) Received: from vpower (195.186.130.224) by mta1n.bluewin.ch (Bluewin AG MX engine 5.5.031) id 3B2F46B000000373 for gtk-list@gnome.org; Tue, 19 Jun 2001 14:43:37 +0200 From: =?iso-8859-1?Q?Markus_K=FChni?= <markus.kuehni@trilab.ch> To: <gtk-list@gnome.org> Subject: Delta between GTK+ and Gnome Date: Tue, 19 Jun 2001 14:45:05 +0200 Message-ID: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> 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 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? What I already know (tested on Gnome 1.4): - a GTK+/wxGTK app will adapt to themes/styles - a GTK+/wxGTK app will support copy paste (I plan to use wxWindows/wxGTK) Thanks for all help, Mark From otaylor@redhat.com Tue Jun 19 09:05:15 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 8C2AC2E5A5 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:05:15 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id JAA25078; Tue, 19 Jun 2001 09:05:15 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id EF2FD242315; Tue, 19 Jun 2001 09:05:14 -0400 (EDT) To: Tim Janik <timj@gtk.org> Cc: Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> From: Owen Taylor <otaylor@redhat.com> Date: 19 Jun 2001 09:05:14 -0400 In-Reply-To: Tim Janik's message of "Tue, 19 Jun 2001 14:38:56 +0200 (CEST)" Message-ID: <ybe66ds4o39.fsf@fresnel.labs.redhat.com> Lines: 30 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Tim Janik <timj@gtk.org> writes: > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > expressions aren't portable, and I think GObject should probably > > > > perform portably, it's conceivable that the danger is worth it. > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > i don't think there's much to worry about compilers that can't inline > > > nowadays. glib ensures that static inline at least works on such systems > > > by providing a non-static linkable version, if static inline isn't supported. > > > so worst-case scenario is that for inline-incapable compilers an extra > > > function call is performed. > > > > I'd like to point out here that GCC produces better code for macros than > > inline functions. This will continue to be true in GCC 3.0, and in the > > future until the tree inliner is ported from the c++ compiler to the c > > compiler. > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > if that produces better code than using static inline instead, feel > free to provide a gcc-special cased patch, once we have the static inlines ;) 'static inline' is, of course, very much a GCC extension. Owen From andres_giraldo@yahoo.com Tue Jun 19 09:38:47 2001 Return-Path: <andres_giraldo@yahoo.com> Delivered-To: gtk-list@gnome.org Received: from web11502.mail.yahoo.com (web11502.mail.yahoo.com [216.136.172.47]) by mail.gnome.org (Postfix) with SMTP id 119832CA0E for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:38:33 -0400 (EDT) Message-ID: <20010619133832.32971.qmail@web11502.mail.yahoo.com> Received: from [209.205.77.166] by web11502.mail.yahoo.com; Tue, 19 Jun 2001 06:38:32 PDT Date: Tue, 19 Jun 2001 06:38:32 -0700 (PDT) From: "Andrés" Giraldo <andres_giraldo@yahoo.com> Subject: A Modal Window To: Gtk List <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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi! I need to call a window that shows 2 options in buttons, yes or no, and I need to wait for that answer, something like a vbModal in MS-Visual Basic... A window that waits until it's unloaded How can I do this? Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ From timj@gtk.org Tue Jun 19 09:47:49 2001 Return-Path: <timj@gtk.org> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 6E1DA2E11D for <gtk-list@gnome.org>; Tue, 19 Jun 2001 09:47:39 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id JAA00601; Tue, 19 Jun 2001 09:47:39 -0400 Received: from hmbg-3e36c6d9.pool.mediaWays.net (hmbg-3e36c6d9.pool.mediaWays.net [62.54.198.217]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JDkMb04418; Tue, 19 Jun 2001 09:46:22 -0400 Received: from birgrave.birnet.private (birgrave.birnet.private [10.0.111.33]) by gw.birnet.private (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JDn3Q2024345; Tue, 19 Jun 2001 15:49:03 +0200 Received: (from timj@localhost) by birgrave.birnet.private (8.11.1/8.11.1/Debian 8.11.0-6) id f5JDn3312003; Tue, 19 Jun 2001 15:49:03 +0200 Date: Tue, 19 Jun 2001 15:49:02 +0200 (CEST) From: Tim Janik <timj@gtk.org> X-Sender: timj@birgrave.birnet.private To: Owen Taylor <otaylor@redhat.com> Cc: Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <ybe66ds4o39.fsf@fresnel.labs.redhat.com> Message-ID: <Pine.LNX.4.21.0106191547090.11924-100000@birgrave.birnet.private> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On 19 Jun 2001, Owen Taylor wrote: > > Tim Janik <timj@gtk.org> writes: > > > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > > expressions aren't portable, and I think GObject should probably > > > > > perform portably, it's conceivable that the danger is worth it. > > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > > > i don't think there's much to worry about compilers that can't inline > > > > nowadays. glib ensures that static inline at least works on such systems > > > > by providing a non-static linkable version, if static inline isn't supported. > > > > so worst-case scenario is that for inline-incapable compilers an extra > > > > function call is performed. > > > > > > I'd like to point out here that GCC produces better code for macros than > > > inline functions. This will continue to be true in GCC 3.0, and in the > > > future until the tree inliner is ported from the c++ compiler to the c > > > compiler. > > > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > > if that produces better code than using static inline instead, feel > > free to provide a gcc-special cased patch, once we have the static inlines ;) > > 'static inline' is, of course, very much a GCC extension. huh? that'd be new to me, "extern inline" is, but "static inline" should be handled by any compiler that's capable of handling inline functions. > > Owen > --- ciaoTJ From Sander.Vesik@Sun.COM Tue Jun 19 10:05:51 2001 Return-Path: <Sander.Vesik@Sun.COM> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 5F6C42DE95 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:05:51 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id KAA06296; Tue, 19 Jun 2001 10:05:50 -0400 Received: from patan.sun.com (patan.Sun.COM [192.18.98.43]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JE4Yb06603; Tue, 19 Jun 2001 10:04:35 -0400 Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA11805; Tue, 19 Jun 2001 08:05:42 -0600 (MDT) Received: from blossom (blossom [129.156.238.67]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.1p1) with ESMTP id PAA04783; Tue, 19 Jun 2001 15:05:43 +0100 (BST) Date: Tue, 19 Jun 2001 15:05:43 +0100 (BST) From: Sander Vesik <Sander.Vesik@Sun.COM> X-Sender: sv117949@blossom To: Tim Janik <timj@gtk.org> Cc: Owen Taylor <otaylor@redhat.com>, Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code In-Reply-To: <Pine.LNX.4.21.0106191547090.11924-100000@birgrave.birnet.private> Message-ID: <Pine.GSO.4.10.10106191458140.4596-100000@blossom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On Tue, 19 Jun 2001, Tim Janik wrote: > On 19 Jun 2001, Owen Taylor wrote: > > huh? that'd be new to me, "extern inline" is, but "static inline" should > be handled by any compiler that's capable of handling inline functions. > One would hope. It's unfortunately not the case though. On the other side of the coin: * compilers are allowed to totally inline any static function * it doesn't really make any sense to use anything but static scope for inline functions (making 'static inline' redundant) * I fail to see what an 'extern inline' would be, esp. in a world where the only toolchain doing link time optimisations died out long ago > > > > Owen > > > > --- > ciaoTJ > Sander One day a tortoise will learn to fly -- Terry Pratchett, 'Small Gods' From rsteinke@w-link.net Tue Jun 19 10:26:39 2001 Return-Path: <rsteinke@w-link.net> Delivered-To: gtk-list@gnome.org Received: from yggdrasil (usw3620-11-205-162-12-34.w-link.net [205.162.12.34]) by mail.gnome.org (Postfix) with ESMTP id 3226B2D2C3 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:26:39 -0400 (EDT) Received: from rsteinke by yggdrasil with local (Exim 3.22 #1 (Debian)) id 15CMXP-0005oz-00; Tue, 19 Jun 2001 07:31:27 -0700 Date: Tue, 19 Jun 2001 07:31:27 -0700 To: hp@redhat.com, rsteinke@w-link.net Subject: Re: Trouble setting GdkEventMask Cc: gtk-list@gnome.org Message-ID: <3B2F623F.nailH6K1ZB6VV@yggdrasil> References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> <y5w1yoh3sq2.fsf@icon.labs.redhat.com> In-Reply-To: <y5w1yoh3sq2.fsf@icon.labs.redhat.com> User-Agent: nail 9.26 2/17/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ron Steinke <rsteinke@w-link.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > From: Havoc Pennington <hp@redhat.com> > Ron Steinke <rsteinke@w-link.net> writes: > > > From: Havoc Pennington <hp@redhat.com> > > > Ron Steinke <rsteinke@w-link.net> writes: > > > > > > > > I was missing that, so thanks. However, I changed that, > > > > and it still doesn't work. What else is missing? > > > > > > > > > > Ah, I forgot this is GTK 1.2. You need to implement focus_in_event and > > > focus_out_event handlers that set GTK_HAS_FOCUS and redraw the focus > > > indication if any. GTK 2.0 has default implementations that do this in > > > GtkWidget. > > > > > > > But I am using 2.0 (really, 1.3, CVS within the last month > > or so), so this can't be it either. > > > > I'm assuming you actually focus the drawing area (via tab key, or > gtk_widget_grab_focus() on button press, or something?) That was it. Thanks. Perhaps a short lecture on the way focus works in GTK is in order? Ron Steinke From skip@beluga.mojam.com Tue Jun 19 10:39:49 2001 Return-Path: <skip@beluga.mojam.com> Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (beluga.mojam.com [199.249.165.173]) by mail.gnome.org (Postfix) with ESMTP id EE2B52E58F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 10:39:48 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5JEddb03921; Tue, 19 Jun 2001 09:39:39 -0500 From: Skip Montanaro <skip@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15151.25642.289448.283702@beluga.mojam.com> Date: Tue, 19 Jun 2001 09:39:38 -0500 To: James Henstridge <james@daa.com.au> Cc: <gtk-list@gnome.org>, <pygtk@daa.com.au> Subject: Re: [pygtk] can I watch all signals being emitted? In-Reply-To: <Pine.LNX.4.33.0106190906310.21072-100000@james.daa.com.au> References: <15150.18895.379738.456168@beluga.mojam.com> <Pine.LNX.4.33.0106190906310.21072-100000@james.daa.com.au> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> James> g_type_init(G_TYPE_DEBUG_SIGNALS); Thanks, this is just what I need. I'll whip up some configurability for my own needs. Skip From corsepiu@faw.uni-ulm.de Tue Jun 19 11:16:46 2001 Return-Path: <corsepiu@faw.uni-ulm.de> Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id CAEF32DB78 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:16:46 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA27297 for <gtk-list@lacrosse.redhat.com>; Tue, 19 Jun 2001 11:16:46 -0400 Received: from www.faw.uni-ulm.de (www.faw.uni-ulm.de [134.60.100.4]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f5JFFSb17064 for <gtk-list@redhat.com>; Tue, 19 Jun 2001 11:15:29 -0400 Received: (qmail 17758 invoked from network); 19 Jun 2001 15:16:41 -0000 Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (134.60.101.174) by www-intern.faw.uni-ulm.de with SMTP; 19 Jun 2001 15:16:41 -0000 Received: (qmail 4006 invoked by uid 0); 19 Jun 2001 15:16:38 -0000 Received: from dialin13.faw.uni-ulm.de (HELO faw.uni-ulm.de) (corsepiu@172.18.1.13) by mailserv.faw.uni-ulm.de with SMTP; 19 Jun 2001 15:16:38 -0000 Message-ID: <3B2F6CCC.68CE885E@faw.uni-ulm.de> Date: Tue, 19 Jun 2001 17:16:28 +0200 From: Ralf Corsepius <corsepiu@faw.uni-ulm.de> Reply-To: corsepiu@faw.uni-ulm.de Organization: Ralf Corsepius X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.4-4GB-SMP i686) X-Accept-Language: de-DE, en MIME-Version: 1.0 To: Owen Taylor <otaylor@redhat.com> Cc: Tim Janik <timj@gtk.org>, Alex Larsson <alexl@redhat.com>, Erik Walthinsen <omega@temple-baptist.com>, gtk-list@redhat.com, Gtk+ Developers <gtk-devel-list@gnome.org>, gstreamer-devel@lists.sourceforge.net Subject: Re: Massive speed improvement in GObject type checking code References: <Pine.LNX.4.21.0106191436400.16604-100000@birgrave.birnet.private> <ybe66ds4o39.fsf@fresnel.labs.redhat.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Owen Taylor wrote: > > Tim Janik <timj@gtk.org> writes: > > > On Mon, 18 Jun 2001, Alex Larsson wrote: > > > > > On Sun, 17 Jun 2001, Tim Janik wrote: > > > > > > > > I'm not sure. Considering that inline functions in C or statement > > > > > expressions aren't portable, and I think GObject should probably > > > > > perform portably, it's conceivable that the danger is worth it. > > > > > I think it was worth it for the GTK_OBJECT() macro. > > > > > > > > i don't think there's much to worry about compilers that can't inline > > > > nowadays. glib ensures that static inline at least works on such systems > > > > by providing a non-static linkable version, if static inline isn't supported. > > > > so worst-case scenario is that for inline-incapable compilers an extra > > > > function call is performed. > > > > > > I'd like to point out here that GCC produces better code for macros than > > > inline functions. This will continue to be true in GCC 3.0, and in the > > > future until the tree inliner is ported from the c++ compiler to the c > > > compiler. > > > > well, for gcc you can use the ({ TYPE var = (arg); retval; }) extension, > > if that produces better code than using static inline instead, feel > > free to provide a gcc-special cased patch, once we have the static inlines ;) > > 'static inline' is, of course, very much a GCC extension. No, but you're right, it is non-portable. However, you know how to write portability macros, don't you? Ralf From hp@redhat.com Tue Jun 19 11:57:22 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A16F32D2D1 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:57:22 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JFv6H02331; Tue, 19 Jun 2001 11:57:06 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ron Steinke <rsteinke@w-link.net> Cc: gtk-list@gnome.org Subject: Re: Trouble setting GdkEventMask References: <200106182032.QAA27022@renoir.op.net> <3B2EA84D.nailBN41M8KO5@yggdrasil> <y5wvglt434c.fsf@icon.labs.redhat.com> <3B2EDCE5.nailD7J11VO0N@yggdrasil> <y5w1yoh3sq2.fsf@icon.labs.redhat.com> <3B2F623F.nailH6K1ZB6VV@yggdrasil> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 11:57:06 -0400 In-Reply-To: Ron Steinke's message of "Tue, 19 Jun 2001 07:31:27 -0700" Message-ID: <y5wbsnkh38t.fsf@icon.labs.redhat.com> Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ron Steinke <rsteinke@w-link.net> writes: > That was it. Thanks. Perhaps a short lecture on the way focus works > in GTK is in order? > Well, it isn't really that complicated from this standpoint - if you want your widget to get focus you set GTK_CAN_FOCUS, then whenever you get the focus (normally from tab key or a mnemonic, or widgets can implement button_press handlers), then you will get key events. The more complicated issues are: - how GTK decides on the tab order (GtkWidget::focus method) - the overall key event handling (Owen has a diagram somewhere) Basically, key events go first to the focus widget, if not used there they go to the toplevel window. If you want "global" hotkeys, then you want to connect to key_press_event on the toplevel, rather than on a child widget. Havoc From hp@redhat.com Tue Jun 19 12:04:01 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 381A82DBF0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 12:04:01 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JG3i602338; Tue, 19 Jun 2001 12:03:44 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Markus =?iso-8859-1?q?K=FChni?= <markus.kuehni@trilab.ch> Cc: <gtk-list@gnome.org> Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 12:03:44 -0400 In-Reply-To: Markus =?iso-8859-1?q?K=FChni's?= message of "Tue, 19 Jun 2001 14:45:05 +0200" Message-ID: <y5w7ky8h2xr.fsf@icon.labs.redhat.com> Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Markus K=FChni <markus.kuehni@trilab.ch> writes: >=20 > If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? >=20 For GTK 1.2, you are missing GnomeCanvas, GnomeDialog, stock icons.=20 Also unless you use gdk-pixbuf you're missing image loading. For GTK 2.0, you are missing GnomeCanvas but there's a libgnomecanvas separate from other gnome libs. For both GTK's you are missing session management. Those are the things I would personally consider interesting, other people will post more opinions no doubt. ;-) Havoc From Valdis.Kletnieks@vt.edu Tue Jun 19 13:51:36 2001 Return-Path: <Valdis.Kletnieks@vt.edu> 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 DA2342E621 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 13:51:35 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5JHpSg07250; Tue, 19 Jun 2001 13:51:28 -0400 Message-Id: <200106191751.f5JHpSg07250@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: Havoc Pennington <hp@redhat.com> Cc: Ian King <king@eiffel.com>, gtk-list@gnome.org Subject: Re: Visual types In-Reply-To: Your message of "Mon, 18 Jun 2001 17:49:51 EDT." <y5wzob5jw5c.fsf@icon.labs.redhat.com> 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[<!v4-0bVIpaxF#-) %9#a9h6JXI|T|8o6t\V?kGl]Q!1V]GtNliUtz:3},0"hkPeBuu%E,j(:\iOX-P,t7lRR# References: <211901c0f836$71f778a0$750a000a@naples> <y5wzob5jw5c.fsf@icon.labs.redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-989886808P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 19 Jun 2001 13:51:28 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> --==_Exmh_-989886808P Content-Type: text/plain; charset=us-ascii On Mon, 18 Jun 2001 17:49:51 EDT, Havoc Pennington said: > There's just no real point using a visual other than the default, > ever. Unless your app is written specifically for certain hardware > such as an SGI. > > (The only exception is to use the GdkRGB visual for drawables where > you'll draw RGB data, but in GTK 2 this isn't even necessary.) The other exception is where your default visual is 24 bit, but you are trying to optimize for speed, and thus want to use a 8 or 16 bit visual. There was a review of XFree86 4.1.0, which showed this effect: http://www.thedukeofurl.org/reviews/misc/xfree86410/4.shtml Look at the XBench results for 16 and 32 bit. And of course, if you're trying to use X-over-ssh or lbxproxy or just remote display of an X window, and are pumping all the pixmaps over an actual wire, cutting 60% of your network traffic by ysing an 8-bit visual rather than 24-bit may be *really* crucial... -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-989886808P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOy+RIHAt5Vm009ewEQK1bQCg8NDjHPiy4+MWNaHIzFzPgfL5ht4AoK7a Wb5okkD3TF7t2xdV5OF9IFkG =hN3+ -----END PGP SIGNATURE----- --==_Exmh_-989886808P-- From rbultje@ronald.bitfreak.net Tue Jun 19 14:11:37 2001 Return-Path: <rbultje@ronald.bitfreak.net> Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 5C9BD2BB95 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:11:37 -0400 (EDT) Received: from [192.168.0.45] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5JIsIF21849; Tue, 19 Jun 2001 20:54:18 +0200 (CEST) Subject: Re: Delta between GTK+ and Gnome From: Ronald Bultje <rbultje@ronald.bitfreak.net> To: Havoc Pennington <hp@redhat.com> Cc: Markus =?ISO-8859-1?Q?K=FChni?= <markus.kuehni@trilab.ch>, gtk-list@gnome.org In-Reply-To: <y5w7ky8h2xr.fsf@icon.labs.redhat.com> References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 19 Jun 2001 20:11:28 +0200 Message-Id: <992974289.755.2.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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> On 19 Jun 2001 12:03:44 -0400, Havoc Pennington wrote: > Markus Kühni <markus.kuehni@trilab.ch> writes: > > > > If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? > > > > For GTK 1.2, you are missing GnomeCanvas, GnomeDialog, stock icons. > Also unless you use gdk-pixbuf you're missing image loading. Side-note: I thought gdk-pixbuf depends on Gnome so you're missing it anyway? > Those are the things I would personally consider interesting, other > people will post more opinions no doubt. ;-) Uniform style. The fact that every "New document" button in a toolbar looks the same in each and every app, and the same for "save", "load", "cut", "copy" and so on. That's what makes Gnome so attractive imho, most users (if not all) really appreciate having a uniform style throughout the whole graphical interface they use. Regards, Ronald -- - .-. - /V\ | Ronald Bultje <rbultje@ronald.bitfreak.net> - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From sven@gimp.org Tue Jun 19 14:35:46 2001 Return-Path: <sven@gimp.org> Delivered-To: gtk-list@gnome.org Received: from bender (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id A69872BD9F for <gtk-list@gnome.org>; Tue, 19 Jun 2001 14:35:46 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15CQEs-00087s-00; Tue, 19 Jun 2001 20:28:34 +0200 To: Ronald Bultje <rbultje@ronald.bitfreak.net> Cc: gtk-list@gnome.org Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> <992974289.755.2.camel@tux> From: Sven Neumann <sven@gimp.org> Date: 19 Jun 2001 20:28:34 +0200 In-Reply-To: <992974289.755.2.camel@tux> Message-ID: <yfxwv68uxwt.fsf@gimp.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, Ronald Bultje <rbultje@ronald.bitfreak.net> writes: > Side-note: I thought gdk-pixbuf depends on Gnome so you're missing it > anyway? who told you that? It's plain wrong. Salut, Sven From deekshit.mantampady@wipro.com Tue Jun 19 15:03:32 2001 Return-Path: <deekshit.mantampady@wipro.com> 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 E1ED42CF0A for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:03:30 -0400 (EDT) Received: from m2hub.mail.wipro.com (m2hub.wipro.com [164.164.27.50]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with ESMTP id f5K0gBZ19556 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 00:42:11 GMT Received: from m2vwall2.wipro.com ([164.164.27.52]) by m2hub.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GF6Y0M00.SNG for <gtk-list@gnome.org>; Wed, 20 Jun 2001 00:27:58 +0530 Received: from wipro.com ([192.168.22.180]) by sarovar.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GF69PQ00.8R6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:43:02 +0530 Message-ID: <3B2F2499.2803AA34@wipro.com> Date: Tue, 19 Jun 2001 03:08:25 -0700 From: Deekshit Mantampady <deekshit.mantampady@wipro.com> X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: GTK List <gtk-list@gnome.org> Subject: Run time errors..... 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, I installed the development version of gtk(1.3.5), with the corresponding development version of glib. After that I tried to compile the frame.c file, which is available with the gtk1.3.5 pakage (Path : gtk+-1.3.5\exapmles\frame\frame.c), using the Make file, which I have pased at the end. The compiltaion was success. But while executing, it gave me the following run-time errors. I don't know how to solve the problem. I tested the same before installing the gtk 1.3.5. using the Makefile, whic was there in the same folder of frame.c. It was working fine. I installed this version of gtk only to use the GdkGC, which was not properly implemented in the stable version(The only member of the GdkGC class is glong dummy_var, which I think doesn't do anything. Can anybody help me to solve the problem. I am using Redhat 6.2 version of Linux. -------------------- Makefile ----------------------------- PKG_CONFIG_PATH=/root CC = gcc frame: frame.c $(CC) `pkg-config --cflags gtk+-2.0` frame.c -o frame \ `pkg-config --libs gtk+-2.0` clean: rm -f *.o frame -------------------------------------------------------- -------------------------- Error--------------------------- Gtk-Message: YOU ARE USING THE DEVEL BRANCH 1.3.x OF GTK+ WHICH IS CURRENTLY UNDER HEAVY DEVELOPMENT AND FREQUENTLY INTRODUCES INSTABILITIES. if you don't know why you are getting this, you probably want to use the stable branch which can be retrived from ftp://ftp.gtk.org/pub/gtk/v1.2/ or via CVS with cvs checkout -r glib-1-2 glib; cvs checkout -r gtk-1-2 gtk+ ** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" ** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (ob ject)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject' GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref): assertion `G_IS_OBJECT (obje ct)' failed ** CRITICAL **: file pango-context.c: line 666 (fallback_engine_shape): assertion `font != NUL L' failed ** ERROR **: file shape.c: line 57 (pango_shape): assertion failed: (glyphs->num_glyphs > 0)ab orting... Trace/breakpoint trap (core dumped) From hp@redhat.com Tue Jun 19 15:39:05 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 74FEE2D3B5 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 15:39:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JJchn02420; Tue, 19 Jun 2001 15:38:43 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje <rbultje@ronald.bitfreak.net> Cc: Markus =?iso-8859-1?q?K=FChni?= <markus.kuehni@trilab.ch>, gtk-list@gnome.org Subject: Re: Delta between GTK+ and Gnome References: <CJEFKKDPILGMLLAOBAGNEEJJCEAA.markus.kuehni@trilab.ch> <y5w7ky8h2xr.fsf@icon.labs.redhat.com> <992974289.755.2.camel@tux> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 15:38:43 -0400 In-Reply-To: Ronald Bultje's message of "19 Jun 2001 20:11:28 +0200" Message-ID: <y5wg0cwfef0.fsf@icon.labs.redhat.com> Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Ronald Bultje <rbultje@ronald.bitfreak.net> writes: > Uniform style. The fact that every "New document" button in a toolbar > looks the same in each and every app, and the same for "save", "load", > "cut", "copy" and so on. > That's what makes Gnome so attractive imho, most users (if not all) > really appreciate having a uniform style throughout the whole graphical > interface they use. > This is what I meant by "stock icons," for GTK 2 it's in GTK. Havoc From jan_teubel@gmx.net Tue Jun 19 16:36:29 2001 Return-Path: <jan_teubel@gmx.net> Delivered-To: gtk-list@gnome.org Received: from einhorn.in-berlin.de (einhorn.colt.in-berlin.de [213.61.118.8]) by mail.gnome.org (Postfix) with ESMTP id 7FD032DF87 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:36:28 -0400 (EDT) Received: from gmx.net (DialIN077.colt.vr.in-berlin.de [213.61.119.205]) (authenticated (0 bits)) by einhorn.in-berlin.de (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id f5JKaRP27383 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 22:36:27 +0200 X-Envelope-From: jan_teubel@gmx.net X-Envelope-To: <gtk-list@gnome.org> X-Authentication-Warning: einhorn.in-berlin.de: Host DialIN077.colt.vr.in-berlin.de [213.61.119.205] claimed to be gmx.net Message-ID: <3B2FB7BA.6060304@gmx.net> Date: Tue, 19 Jun 2001 22:36:10 +0200 From: "J. Teubel" <jan_teubel@gmx.net> User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Compiling Gtk+ 1.3.6 on Debian 2.2r3 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hello, I try to compile Gtk+ 1.3.6 on Debian 2.2r3. I downloaded the all-in-one package. gdkdrawable-x11.c complains that Xft.h is not found on my system. I searched trough my entire harddisk, this file is nowhere. xlib dev is installed and all the other libs needed for compiling. I also searched through debian.org and google but nothing helps me. What's wrong? Thanks for your help, Jan From wolfgang@contre.com Tue Jun 19 16:46:42 2001 Return-Path: <wolfgang@contre.com> Delivered-To: gtk-list@gnome.org Received: from cogito.cam.org (cogito.cam.org [198.168.100.2]) by mail.gnome.org (Postfix) with ESMTP id 422E02BEB0 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:42 -0400 (EDT) Received: from dialup-98-44-84-199.hip.cam.org (root@dialup-98-44-84-199.hip.cam.org [199.84.44.98]) by cogito.cam.org (8.11.0/8.11.0.Beta1) with ESMTP id f5JKkeE08275 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:40 -0400 Received: from debian.home (wolfgang@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f5JKkbCA000800 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 16:46:39 -0400 Date: Tue, 19 Jun 2001 16:46:37 -0400 Message-ID: <85ithskxjm.wl@debian.home> From: Wolfgang Sourdeau <wolfgang@contre.com> To: gtk-list@gnome.org Subject: Re: Compiling Gtk+ 1.3.6 on Debian 2.2r3 Mail-Followup-To: "J. Teubel" <jan_teubel@gmx.net>, gtk-list@gnome.org Mail-Reply-To: wolfgang@contre.com In-Reply-To: <3B2FB7BA.6060304@gmx.net> References: <3B2FB7BA.6060304@gmx.net> User-Agent: Wanderlust/2.5.8 (Smooth) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.0.103 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > gdkdrawable-x11.c complains that Xft.h is not found on my system. I > searched trough my entire harddisk, this file is nowhere. xlib dev is > installed and all the other libs needed for compiling. I also searched > through debian.org and google but nothing helps me. Xft.h is part of XFree 4 which is currently only available in Debian unstable (or maybe testing as well). W. From king@eiffel.com Tue Jun 19 17:35:49 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id E2C2B2BC88 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 17:35:47 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CT9k-0000QW-00 for gtk-list@gnome.org; Tue, 19 Jun 2001 14:35:28 -0700 Message-ID: <245f01c0f907$e760ec30$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Changing focus from one window to another Date: Tue, 19 Jun 2001 14:36:30 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, I have a program that has two top level windows, one with a button, one with a text entry in it. It is set up so that when I click the button, the focus is set to the text entry in the other window using gtk_widget_set_focus(entry_widget). However, the window containing the entry widget doesn't receive the focus. Am I doing something wrong? Thanks for your time. Ian King From bachn@LESTERELECTRICAL.com Tue Jun 19 17:49:50 2001 Return-Path: <bachn@LESTERELECTRICAL.com> Delivered-To: gtk-list@gnome.org Received: from nt_le.Lesterelectrical.com (h216-170-003-037.adsl.navix.net [216.170.3.37]) by mail.gnome.org (Postfix) with ESMTP id 8D1B62CFED for <gtk-list@gnome.org>; Tue, 19 Jun 2001 17:49:49 -0400 (EDT) Received: by NT_LE with Internet Mail Service (5.5.2448.0) id <JHS81VR1>; Tue, 19 Jun 2001 16:49:50 -0500 Message-ID: <A1393E9B8AE3D111AA970008C724A20B945953@NT_LE> From: Bach Ngo <bachn@LESTERELECTRICAL.com> To: "'gtk-list@gnome.org'" <gtk-list@gnome.org> Subject: How can I make a gtk window become active at starting up? Date: Tue, 19 Jun 2001 16:49:48 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi, When I run a gtk application from an xterm, that gtk application window is not active but the xterm window. I have to click on the title bar of the gtk applicatio window to make it become active. Please help me to solve that. Bach Ngo From hp@redhat.com Tue Jun 19 18:25:24 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4458C2BCB6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:25:24 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JMP0M02692; Tue, 19 Jun 2001 18:25:00 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Changing focus from one window to another References: <245f01c0f907$e760ec30$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 18:25:00 -0400 In-Reply-To: "Ian King"'s message of "Tue, 19 Jun 2001 14:36:30 -0700" Message-ID: <y5wwv68ds5f.fsf@icon.labs.redhat.com> Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > > I have a program that has two top level windows, one with a button, one with > a text entry in it. It is set up so that when I click the button, the focus > is set to the text entry in the other window using > gtk_widget_set_focus(entry_widget). However, the window containing the > entry widget doesn't receive the focus. Am I doing something wrong? > GTK can't change the focus between toplevel windows, only the window manager can do that. (You can try calling XSetInputFocus() as a low-level hack, but if the user is using focus-follows-mouse or something it won't work out very well.) Havoc From hp@redhat.com Tue Jun 19 18:26:04 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 30B1C2BCB6 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:26:04 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JMPld02695; Tue, 19 Jun 2001 18:25:47 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Bach Ngo <bachn@LESTERELECTRICAL.com> Cc: "'gtk-list@gnome.org'" <gtk-list@gnome.org> Subject: Re: How can I make a gtk window become active at starting up? References: <A1393E9B8AE3D111AA970008C724A20B945953@NT_LE> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 18:25:47 -0400 In-Reply-To: Bach Ngo's message of "Tue, 19 Jun 2001 16:49:48 -0500" Message-ID: <y5wsngwds44.fsf@icon.labs.redhat.com> Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Bach Ngo <bachn@LESTERELECTRICAL.com> writes: > > When I run a gtk application from an xterm, that gtk application window is > not active but the xterm window. I have to click on the title bar of the > gtk applicatio window to make it become active. > > Please help me to solve that. > Get a window manager that focuses windows when they're created. Or configure your existing WM to do that if possible. Havoc From king@eiffel.com Tue Jun 19 18:33:29 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id A437F2D2B8 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 18:33:28 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CU3m-00024S-00; Tue, 19 Jun 2001 15:33:22 -0700 Message-ID: <25bb01c0f90f$fd965f50$750a000a@naples> From: "Ian King" <king@eiffel.com> To: "Havoc Pennington" <hp@redhat.com> Cc: <gtk-list@gnome.org> References: <245f01c0f907$e760ec30$750a000a@naples> <y5wwv68ds5f.fsf@icon.labs.redhat.com> Subject: Re: Changing focus from one window to another Date: Tue, 19 Jun 2001 15:34:22 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> > > "Ian King" <king@eiffel.com> writes: > > > > I have a program that has two top level windows, one with a button, one with > > a text entry in it. It is set up so that when I click the button, the focus > > is set to the text entry in the other window using > > gtk_widget_set_focus(entry_widget). However, the window containing the > > entry widget doesn't receive the focus. Am I doing something wrong? > > > > GTK can't change the focus between toplevel windows, only the window > manager can do that. > > (You can try calling XSetInputFocus() as a low-level hack, but > if the user is using focus-follows-mouse or something it won't work > out very well.) > > Havoc Does that mean the gtk_widget_set_focus (window) will never work? If so, then an autocomplete window that comes up when you are typing code would then surely be impossible to implement, or is there another way? Thanks Ian King From hp@redhat.com Tue Jun 19 19:36:26 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 7FFA52CE82 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 19:36:19 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5JNa2c02835; Tue, 19 Jun 2001 19:36:02 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Changing focus from one window to another References: <245f01c0f907$e760ec30$750a000a@naples> <y5wwv68ds5f.fsf@icon.labs.redhat.com> <25bb01c0f90f$fd965f50$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 19 Jun 2001 19:36:01 -0400 In-Reply-To: "Ian King"'s message of "Tue, 19 Jun 2001 15:34:22 -0700" Message-ID: <y5wbsnkdov2.fsf@icon.labs.redhat.com> Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > Does that mean the gtk_widget_set_focus (window) will never work? If so, > then an autocomplete window that comes up when you are typing code would > then surely be impossible to implement, or is there another way? > gtk_widget_set_focus() does something else, not what you are hoping for here. It's a semi-internal function. gdk_keyboard_grab(), or just getting the keypresses on your editor widget and updating the complete widget appropriately, would be two ways to do this. Havoc From vicki@dialupnet.com Wed Jun 20 12:31:47 2001 Return-Path: <vicki@dialupnet.com> Delivered-To: gtk-list@gnome.org Received: from opus (user-24-214-88-99.knology.net [24.214.88.99]) by mail.gnome.org (Postfix) with ESMTP id A54182DF69 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 12:31:46 -0400 (EDT) Received: from localhost (IDENT:vicki@localhost [127.0.0.1]) by opus (8.11.0/8.11.0) with ESMTP id f5KGV6610324 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 11:31:06 -0500 Date: Wed, 20 Jun 2001 11:31:03 -0500 (CDT) From: Vicki Stanfield <vicki@dialupnet.com> To: GTK-List <gtk-list@gnome.org> Subject: Getting widgets children Message-ID: <Pine.LNX.4.33.0106201129430.10314-100000@opus> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I know that I can get the parent of a widget, but if I have only the parent widget, can I get the children? I need to unrealize most of the widgets to change the window. Have a good day! - -Vicki +-----------------------------------------------------------------+ | E-mail: vicki@thepenguin.org | | My public key - http://www.thepenguin.org/vicki/key.txt | | My Linux page - http://www.thepenguin.org | +-----------------------------------------------------------------+ **The best things in life aren't things. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7MM/KvFwCsl/kaSARApmCAJ9tZkTki6f24cQEUk+BOiblFPaGfwCeNXJu eD4hRaosxJ9aZxTmRXBYKgo= =ivw0 -----END PGP SIGNATURE----- From john.cupitt@ng-london.org.uk Wed Jun 20 12:43:20 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 3B9762D1BA for <gtk-list@gnome.org>; Wed, 20 Jun 2001 12:43:20 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNYWF; Wed, 20 Jun 2001 17:43:19 +0100 Message-ID: <3B30D159.66D593F4@ng-london.org.uk> Date: Wed, 20 Jun 2001 17:37:45 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Vicki Stanfield <vicki@dialupnet.com> Cc: GTK-List <gtk-list@gnome.org> Subject: Re: Getting widgets children References: <Pine.LNX.4.33.0106201129430.10314-100000@opus> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Vicki Stanfield wrote: > I know that I can get the parent of a widget, but if I have only the > parent widget, can I get the children? I need to unrealize most of the > widgets to change the window. Hi, if it's a subclass of container, you can loop over widget->children. Something like: /* Set a name for a widget and all its children. */ void set_name( GtkWidget *widget, const char *name ) { gtk_widget_set_name( widget, name ); if( GTK_IS_CONTAINER( widget ) ) gtk_container_foreach( GTK_CONTAINER( widget ), (GtkCallback) set_name, (char *) name ); } You can do a for(;;) loop as well (slightly less clean): if( GTK_IS_CONTAINER( widget ) ) { GSList *p; for( p = GTK_CONTAINER( widget )->children; p; p = p->next ) { GtkWidget *child = GTK_WIDGET( p->data ); ... } } That's what I do anyway. John From netlu@visto.com Wed Jun 20 13:59:54 2001 Return-Path: <netlu@visto.com> Delivered-To: gtk-list@gnome.org Received: from qmail5.visto.com (unknown [209.185.20.135]) by mail.gnome.org (Postfix) with SMTP id D16CD2BACE for <gtk-list@gnome.org>; Wed, 20 Jun 2001 13:59:53 -0400 (EDT) Received: (qmail 27577 invoked by alias); Received: from unknown (HELO mps2) (206.79.140.175) by 0 with SMTP; 20 Jun 2001 10:59:43 -0700 Reply-To: netlu@visto.com From: "Louis Lu" <netlu@visto.com> Subject: memory map io function Date: Wed, 20 Jun 2001 10:59:43 -0700 X-Mailer: Visto To: gtk-list@gnome.org MIME-Version: 1.0 X-Mailer: Visto Server Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <20010620175953.D16CD2BACE@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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hi: I just wondering whether or not anyone who has the experiences on memo= ry map io function before?=20 My code is as following: int *base; unsigned int fd; fd =3D open("dev/mem", O_RDWR); base =3D mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800= 000); =20 (and I tried to write a value to a certian register of vga) *(int *)(base+0x60000/4) =3D 0x30f027f; munmap(base, 0x800000); close(fd); The compile is ok, but when I runt it, I got segmentation fault (core dum= p). I bassically need to write around 13 of them and I have even tried to cha= nge the size from 0x800000 to 0x8fffffff. I still got core dump though. So, I appreciate it if there is anyone who can teach me how to correct my= problem here. =20 Louis _________________________________________________________________________= __ Visit http://www.visto.com/info, your free web-based communications cente= r. Visto.com. Life on the Dot. From king@eiffel.com Wed Jun 20 15:41:01 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id B8E8D2DF72 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 15:41:00 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CnqV-0006Sr-00 for gtk-list@gnome.org; Wed, 20 Jun 2001 12:40:59 -0700 Message-ID: <01b101c0f9c1$13f3c100$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Widget size Date: Wed, 20 Jun 2001 12:42:02 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I have a small example of a button within a hbox. The hbox has, say a height of 100 pixels, the button has a minimum height of 25 pixels. When the button is in the hbox, it also has an allocated height of 100 pixels. When I take it out of the hbox, its allocated height is 25 pixels, however when I put the button back in the hbox (this is all done on-screen), the allocated height is still 25. Why is this and how do I get the allocation to update immediately. Thanks for your time Ian King From david.robin@st.com Wed Jun 20 16:08:10 2001 Return-Path: <david.robin@st.com> Delivered-To: gtk-list@gnome.org Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mail.gnome.org (Postfix) with ESMTP id 2A3B82E776 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:07:02 -0400 (EDT) Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id 7686348D0 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 20:07:01 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id A07BC4B09; Wed, 20 Jun 2001 20:07:04 +0000 (GMT) Received: from eux100.sgp.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 65AC8184E for <gtk-list@gnome.org>; Wed, 20 Jun 2001 20:07:04 +0000 (GMT) Received: from st.com (fenix.nvg.sgp.st.com [164.129.227.19]) by eux100.sgp.st.com (8.8.6 (PHNE_17190)/8.8.6) with ESMTP id WAA01635 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:07:00 +0200 (METDST) Message-ID: <3B310384.5FFF5E0F@st.com> Date: Wed, 20 Jun 2001 22:11:48 +0200 From: David Robin <david.robin@st.com> X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: to score threads? 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> As I was looking for bug-killing technics through the mailing-list archives, I found this: http://mail.gnome.org/archives/gtk-list/2001-June/msg00173.html This thread resolved all the problems I had for long weeks. It has info I found in no other ressources. So it made me think that maybe it would be a good idea to allow the M.L. archive users to vote for threads (slashdot style). With this feature, If a thread has a very high score, it will certainly mean that its contents give informations that were not in the other gtk online ressources. Therefore, this scoring system would give to gtk documentation maintainers indications on how to improve their effort. David. From brandon@ovnet.com Wed Jun 20 16:25:29 2001 Return-Path: <brandon@ovnet.com> Delivered-To: gtk-list@gnome.org Received: from riker.mountain.net (smtp.mountain.net [66.118.64.15]) by mail.gnome.org (Postfix) with ESMTP id 222972CEEA for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:25:29 -0400 (EDT) Received: from ovnet.com ([198.77.41.138]) by riker.mountain.net (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id net; Wed, 20 Jun 2001 16:22:45 -0400 Message-ID: <3B3107CD.6010606@ovnet.com> Date: Wed, 20 Jun 2001 16:30:05 -0400 From: Brandon McCombs <brandon@ovnet.com> User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5 i686; en-US; m18) Gecko/20001107 Netscape6/6.0 X-Accept-Language: en MIME-Version: 1.0 To: Sven Neumann <sven@gimp.org> Cc: AndrXs Giraldo <andres_giraldo@yahoo.com>, Gtk List <gtk-list@gnome.org> Subject: Re: gtk_widget_destroy References: <20010618153433.39415.qmail@web11507.mail.yahoo.com> <yfxsngxbvmg.fsf@gimp.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Sven Neumann wrote: > Hi, > > "AndrXs" Giraldo <andres_giraldo@yahoo.com> writes: > > >> I'm creating a window from a nother window, something >> like a message box, but when I want to unload this >> window; >> >> should I use gtk_widget_destroy? >> >> Because I'm connecting this signal to a button clicked >> event: >> >> gtk_signal_connect (GTK_OBJECT (btnClose), "clicked", >> GTK_SIGNAL_FUNC >> (on_btnClose_clicked), NULL) >> >> >> // callback function >> >> void on_btnClose_clicked (GtkButton *button, gpointer >> data) >> { >> GtkWidget *window = (GtkWidget *)data; >> >> gtk_widget_destory (window); >> } >> > > > you did not pass the window pointer when connecting > your signal. How is this supposed to work ?? true however he also didn't spell gtk_widget_destroy correctly....he needs to fix that typo as well. From otaylor@redhat.com Wed Jun 20 16:42:27 2001 Return-Path: <otaylor@redhat.com> Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id D7E332E665 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 16:42:27 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 5E110242319; Wed, 20 Jun 2001 16:42:27 -0400 (EDT) To: David Robin <david.robin@st.com> Cc: gtk-list@gnome.org Subject: Re: to score threads? References: <3B310384.5FFF5E0F@st.com> From: Owen Taylor <otaylor@redhat.com> Date: 20 Jun 2001 16:42:27 -0400 In-Reply-To: David Robin's message of "Wed, 20 Jun 2001 22:11:48 +0200" Message-ID: <ybe8zimkhn0.fsf@fresnel.labs.redhat.com> Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> David Robin <david.robin@st.com> writes: > As I was looking for bug-killing technics through the mailing-list > archives, I found this: > > http://mail.gnome.org/archives/gtk-list/2001-June/msg00173.html > > This thread resolved all the problems I had for long weeks. It has info > I found in no other ressources. > So it made me think that maybe it would be a good idea to allow the M.L. > archive users to vote for threads (slashdot style). > With this feature, If a thread has a very high score, it will certainly > mean that its contents give informations that were not in the other gtk > online ressources. > Therefore, this scoring system would give to gtk documentation > maintainers indications on how to improve their effort. If you find something interesting in the archives, why don't you submit an entry to the FAQ (send it to trog@gtk.org) that summarizes it. You can include a link to the mailing list thread in the entry. Regards, Owen From king@eiffel.com Wed Jun 20 18:21:00 2001 Return-Path: <king@eiffel.com> Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 8905A2E0DB for <gtk-list@gnome.org>; Wed, 20 Jun 2001 18:20:59 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15CqLG-0000ub-00 for gtk-list@gnome.org; Wed, 20 Jun 2001 15:20:54 -0700 Message-ID: <025901c0f9d7$6b9e5f80$750a000a@naples> From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Subject: Fw: Widget size Date: Wed, 20 Jun 2001 15:21:58 -0700 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> In response to my previous message, how do I tell gtk to automatically recompute all of the widget allocations immediately, will gtk_widget_draw (hbox) do this, or is there some other function I can use? The allocation of the button does update but not immediately, it is usually updated within 100 ms. Thanks for your time, I would love to fix this `bug'. Ian King ----- Original Message ----- From: "Ian King" <king@eiffel.com> To: <gtk-list@gnome.org> Sent: Wednesday, June 20, 2001 12:42 PM Subject: Widget size > I have a small example of a button within a hbox. The hbox has, say a > height of 100 pixels, the button has a minimum height of 25 pixels. When > the button is in the hbox, it also has an allocated height of 100 pixels. > When I take it out of the hbox, its allocated height is 25 pixels, however > when I put the button back in the hbox (this is all done on-screen), the > allocated height is still 25. Why is this and how do I get the allocation > to update immediately. > > Thanks for your time > > Ian King > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From uckelman@scylla.ellipsis.cx Wed Jun 20 22:14:35 2001 Return-Path: <uckelman@scylla.ellipsis.cx> Delivered-To: gtk-list@gnome.org Received: from scylla.ellipsis.cx (unknown [64.109.29.58]) by mail.gnome.org (Postfix) with SMTP id 6AB792BAB4 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:14:34 -0400 (EDT) Received: (qmail 22596 invoked by uid 500); 21 Jun 2001 02:14:34 -0000 Message-ID: <20010621021434.22594.qmail@scylla.ellipsis.cx> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: viewports, anchored icons From: Joel Uckelman <uckelman@nomic.net> Reply-To: uckelman@nomic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 20 Jun 2001 21:14:34 -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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I've been working on a graphical system for playing wargames by email, and I've run up against a problem that has me stumped. What I want to do is anchor certain small windows (the playing pieces) to a pixmap (the game board) in a large scrolling window such that the pieces follow the map when it's scrolled---even out of the viewport, if need be. The effect I want is something similar to the way it looks when selected areas are scrolled in and out of the viewport in Gimp. I know this can be done somehow; I'd be grateful for suggestions as to how I should go about it. Thanks! -- J. From hp@redhat.com Wed Jun 20 22:33:09 2001 Return-Path: <hp@redhat.com> Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 70D232BAB1 for <gtk-list@gnome.org>; Wed, 20 Jun 2001 22:33:09 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5L2X5j00851; Wed, 20 Jun 2001 22:33:05 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Ian King" <king@eiffel.com> Cc: <gtk-list@gnome.org> Subject: Re: Fw: Widget size References: <025901c0f9d7$6b9e5f80$750a000a@naples> From: Havoc Pennington <hp@redhat.com> Date: 20 Jun 2001 22:33:05 -0400 In-Reply-To: "Ian King"'s message of "Wed, 20 Jun 2001 15:21:58 -0700" Message-ID: <y5wofripnoe.fsf@icon.labs.redhat.com> Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> "Ian King" <king@eiffel.com> writes: > In response to my previous message, how do I tell gtk to automatically > recompute all of the widget allocations immediately, will gtk_widget_draw > (hbox) do this, or is there some other function I can use? The allocation > of the button does update but not immediately, it is usually updated within > 100 ms. > It would probably break GTK to try and do this, and be really slow. Sizes are recomputed in an idle handler. There's probably an easier way to do whatever you are trying to do. Havoc From lsetia78@yahoo.com Thu Jun 21 02:56:12 2001 Return-Path: <lsetia78@yahoo.com> 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 4514B2BB13 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 02:56:12 -0400 (EDT) Received: from unknown (HELO yahoo.com) (203.200.123.129) by smtp.mail.vip.sc5.yahoo.com with SMTP; 21 Jun 2001 06:56:10 -0000 X-Apparently-From: <lsetia78@yahoo.com> Message-ID: <3B3199C5.2010601@yahoo.com> Date: Thu, 21 Jun 2001 12:22:53 +0530 From: Lokesh Setia <lsetia78@yahoo.com> User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; rv:0.9.1) Gecko/20010607 Netscape6/6.1b1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Allocating a lot of colors 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Hello, I'm writing a Image processing application, in which I need to show intermediate results of my calculations as an image in a window, nothing more. First of all, I will like to ask whether drawing_area widget with a backing pixmap is the best choice for this? I will have to call gdk_draw_point{s}( ) in this case I guess Second, when the image changes (it does after every 50 msec), colors may need to be allocated/deallocated. Doing gdk_colormap_alloc_color() in a loop seems to be a grossly inefficient way of doing this. Is there any other option? BTW, since the application is only meant for internal use, I do not have to make it work for 8-bit displays if it helps in any way :) Regards, Lokesh _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From mtnweb@mac.com Thu Jun 21 02:56:46 2001 Return-Path: <mtnweb@mac.com> Delivered-To: gtk-list@gnome.org Received: from smtp.commspeed.net (unknown [216.19.50.6]) by mail.gnome.org (Postfix) with SMTP id 433992BB13 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 02:56:45 -0400 (EDT) Received: (qmail 86640 invoked from network); 21 Jun 2001 06:56:18 -0000 Received: from unknown (HELO ?63.169.80.58?) (63.169.80.58) by 0 with SMTP; 21 Jun 2001 06:56:18 -0000 User-Agent: Microsoft-Entourage/9.0.1.3108 Date: Wed, 20 Jun 2001 23:56:43 -0700 Subject: Error compiling Glib 1.2.10 From: Terry Lynch <mtnweb@mac.com> To: gtk list <gtk-list@gnome.org> Message-ID: <B756E8BA.20DC%mtnweb@mac.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> I got the following error compiling Glib. I need to install Glib, then GTK+, so I can use BasiliskII (Macintosh Emulator), but I got stuck here. Configure worked okay--no warnings. Then I typed 'make' and got this error after a few minutes of making. /bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c giounix.c cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c giounix.c -o giounix.o giounix.c:1317: bad macro argument list cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make[2]: *** [giounix.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 Thanks, Terry From john.cupitt@ng-london.org.uk Thu Jun 21 07:39:57 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 3FD6A2BD56 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 07:39:57 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNZ6L; Thu, 21 Jun 2001 12:39:56 +0100 Message-ID: <3B31DBBD.E9DE880F@ng-london.org.uk> Date: Thu, 21 Jun 2001 12:34:21 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Lokesh Setia <lsetia78@yahoo.com> Cc: gtk-list@gnome.org Subject: Re: Allocating a lot of colors References: <3B3199C5.2010601@yahoo.com> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Lokesh Setia wrote: > First of all, I will like to ask whether drawing_area widget with a > backing pixmap is the best choice for this? Hi Lokesh, the way to do this by hand is to use gdk_rgb_*(). Take a look at testrgb.c in the gtk source area. gdk_rgb_*() does all the horrible X stuff for you: it finds an appropriate visual, opens a shared memory area (if possible), and takes care of all the dithering that might be necessary to get nice looking colour. You just make a big RGB array, and call gdk_draw_rgb_image(). It's pretty quick too: I get 10 Mpixels/sec on my (modest) system, so you should be OK for your 50ms timeslot. If you want something higher level, then gdk-pixbuf is your baby. It adds things like rescale and image load and save. > I will have to call > gdk_draw_point{s}( ) in this case I guess. > Second, when the image changes (it does after every 50 msec), colors may > need to be allocated/deallocated. Doing gdk_colormap_alloc_color() in a > loop seems to be a grossly inefficient way of doing this. Is there any > other option? /me falls over This will be rather slow :-) John From john.cupitt@ng-london.org.uk Thu Jun 21 07:55:35 2001 Return-Path: <john.cupitt@ng-london.org.uk> 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 1A8772BB31 for <gtk-list@gnome.org>; Thu, 21 Jun 2001 07:55:35 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQNZ7P; Thu, 21 Jun 2001 12:55:33 +0100 Message-ID: <3B31DF66.5A49E31D@ng-london.org.uk> Date: Thu, 21 Jun 2001 12:49:58 +0100 From: John Cupitt <john.cupitt@ng-london.org.uk> Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: netlu@visto.com Cc: gtk-list@gnome.org Subject: Re: memory map io function References: <20010620175953.D16CD2BACE@mail.gnome.org> 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.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> Louis Lu wrote: > I just wondering whether or not anyone who has the experiences on memory map io function before? > > My code is as following: > int *base; > unsigned int fd; > fd = open("dev/mem", O_RDWR); > base = mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800000); > > (and I tried to write a value to a certian register of vga) > > *(int *)(base+0x60000/4) = 0x30f027f; > munmap(base, 0x800000); > close(fd); > > The compile is ok, but when I runt it, I got segmentation fault (core dump). Hi Louis, I guess it's a permission thing. Are you running this as root? Add some checks to the results of open() and mmap(), and see where its failing, and what error you get from the system. if( (fd = open( "/dev/mem", O_RDWR )) == -1 ) { fprintf( stderr, "open /dev/mem failed: %s\n", strerror( errno ) ); exit( -1 ); } if( (base = mmap( ... )) == (void *) -1 ) { fprintf( stderr, "mmap failed: %s\n", strerror( errno ) ); exit( -1 ); } etc. This sounds incredibly dangerous :-) You are in extreme danger of toasting your system. Good luck, John From Esteban.Quijano@artinsoft.com Tue Jun 19 11:08:14 2001 Return-Path: <Esteban.Quijano@artinsoft.com> Delivered-To: gtk-list@gnome.org Received: from freedom-srv.intranet (unknown [196.40.21.166]) by mail.gnome.org (Postfix) with ESMTP id 5AC092D412 for <gtk-list@gnome.org>; Tue, 19 Jun 2001 11:07:52 -0400 (EDT) Received: by FREEDOM-SRV with Internet Mail Service (5.5.2653.19) id <M8F7QHF3>; Tue, 19 Jun 2001 08:59:39 -0600 Message-ID: <C3AF23EBD276D411B0D500B0D020E68074A42B@FREEDOM-SRV> From: Esteban Quijano Vincenzi <Esteban.Quijano@artinsoft.com> To: gtk-list@gnome.org Subject: RE: A Modal Window Date: Tue, 19 Jun 2001 08:59:38 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0F8D0.7623AF30" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: <mailto:gtk-list-request@gnome.org?subject=help> List-Post: <mailto:gtk-list@gnome.org> List-Subscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=subscribe> List-Id: General discussion of GTK+ <gtk-list.gnome.org> List-Unsubscribe: <http://mail.gnome.org/mailman/listinfo/gtk-list>, <mailto:gtk-list-request@gnome.org?subject=unsubscribe> List-Archive: <http://mail.gnome.org/archives/gtk-list/> 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_01C0F8D0.7623AF30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, there are two ways for doing this: 1) Call gtk_main() again so you enter in a second event loop. When you = press an "ok" or "cancel" button just call gtk_main_quit(). You will return = to the main event loop. 2) Do something like this: =20 while (exit_modal !=3D TRUE) gtk_main_iteration(); and in your callback function do exit_modal =3D TRUE somewhere Esteban Quijano Vincenzi. Quality Assurance - Intel project Artinsoft corp. -----Original Message----- From: Andr=E9s" Giraldo [mailto:andres_giraldo@yahoo.com] Sent: Tuesday, June 19, 2001 7:39 AM To: Gtk List Subject: A Modal Window Hi! I need to call a window that shows 2 options in buttons, yes or no, and I need to wait for that answer, something like a vbModal in MS-Visual Basic... A window that waits until it's unloaded How can I do this? Thanks! __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C0F8D0.7623AF30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2653.12"> <TITLE>RE: A Modal Window

Hi, there are two ways for doing this:
1) Call gtk_main() again so you enter in a second = event loop. When you press an "ok" or "cancel" = button just call gtk_main_quit(). You will return to the main event = loop.

2) Do something like this:
  
   while (exit_modal !=3D TRUE) = gtk_main_iteration();

and in your callback function do exit_modal =3D TRUE = somewhere

Esteban Quijano Vincenzi.
Quality Assurance - Intel project
Artinsoft corp.


-----Original Message-----
From: Andr=E9s" Giraldo [mailto:andres_giraldo@yahoo.com= ]
Sent: Tuesday, June 19, 2001 7:39 AM
To: Gtk List
Subject: A Modal Window


Hi!

I need to call a window that shows 2 options = in
buttons, yes or no, and I need to wait for = that
answer, something like a vbModal in MS-Visual = Basic...

A window that waits until it's unloaded

How can I do this?

Thanks!

__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and = more.
http://buzz.yahoo.com/

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

------_=_NextPart_001_01C0F8D0.7623AF30-- From dermot@glade.perl.connectfree.co.uk Wed Jun 20 02:21:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 422982D394; Wed, 20 Jun 2001 02:21:55 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id CAA08055; Wed, 20 Jun 2001 02:21:54 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5K6Keb29913; Wed, 20 Jun 2001 02:20:40 -0400 Received: from higrade.botwrights.farm (ppp-121.ispgas04.minx.net.uk [212.85.246.121]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id HAA12947; Wed, 20 Jun 2001 07:54:47 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id HAA01154; Wed, 20 Jun 2001 07:21:44 +0100 Message-ID: <3B3040F8.6FDF5F86@glade.perl.connectfree.co.uk> Date: Wed, 20 Jun 2001 07:21:44 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: [Glade-devel] ANNOUNCE: Glade-Perl 0.58 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I am terribly sorry about this but I quoted an out-of date URL for my module on CPAN. The correct directory URL is: ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but it is better to go to your local mirror. Apologies aganin, Dermot From dermot@glade.perl.connectfree.co.uk Wed Jun 20 02:06:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 02D4F2BB47; Wed, 20 Jun 2001 02:06:51 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id CAA06701; Wed, 20 Jun 2001 02:06:51 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5K65ab29002; Wed, 20 Jun 2001 02:05:37 -0400 Received: from higrade.botwrights.farm (ppp-121.ispgas04.minx.net.uk [212.85.246.121]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id HAA12426; Wed, 20 Jun 2001 07:39:26 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id HAA01096; Wed, 20 Jun 2001 07:06:20 +0100 Message-ID: <3B303D5C.BF231640@glade.perl.connectfree.co.uk> Date: Wed, 20 Jun 2001 07:06:20 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: ANNOUNCE: Glade-Perl 0.58 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I have just uploaded perl module Glade-Perl-0.58.tar.gz to CPAN ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/Glade/ Until it is mirrored around the world it is available on my websites. http://www.glade.perl.connectfree.co.uk/index.html http://freespace.virgin.net/dermot.musgrove/computers/perl/index.html Glade-Perl generates perl source code from a Glade file - Glade is Damon Chaplin's beautiful Gtk+/Gnome UI builder. Glade-Perl can display the UI as it is built and/or generate source code and it can be called directly from Glade's 'Build' button. It can also generate code to use libglade if you prefer. Regards, Dermot snipped from the Changelog: ------------------------------------------------------------ Fri Apr 13 01:01:22 BST 2001 - Dermot Musgrove - Version 0.58 - Mimimum requirements increased to Gtk-Perl-0.7000 and gnome-libs-1.2.0 These have been around for a year or more now and fix many problems. - All packages - Extensive tidying of options handling with a new data structure. Old format options files will be read as before but project options will be saved in the new hierarchically nested structure. - The options handling and diagnostics utilities have been moved to Glade::PerlRun so that you can use them in your own apps. - PerlUI - some variables updated for Gtk-Perl-0.7004 and later. - Some changes to generated comments and source code. - glade2perl - removed redundant 'use English' call New, more meaningful 'set_by' value and New (2nd) arg to specify verbosity in glade2perl call eg. 'glade2perl Project.glade 2' Simplified usage so that a separate Glade::PerlGenerate->options() call is not needed and the options can be specified to Form_from_File() Also, undefined glade_filename causes most recently used file stored in your user options file to run. - PerlRun->reload_any_altered_modules() is a new sub for app testing to reload any modules that have been edited. This idea is from Stas Bekman and gives you the ability to edit and reload any signal handlers and support modules without closing down the app and restarting it. This is not possible if you regenerate the UI module and reload it. Your app will crash in flames if you try this. Simply call '__PACKAGE__->reload_any_altered_modules;' in a handler for any widget/signal you like (I usually use a Refresh button). - PerlGenerate->Form_from_Glade_File() amended to call two new subs parse_form() and build_form() to allow use in future Glade::Helper app. - PerlGenerate->about_Form() fixed to use proper pixmap option - PerlGenerate->Form_from_Proto() now only generates subclass for simple AUTOLOAD style runs. - PerlRun->load_translations() amended to look for .mo files in several possible places if a catalog path is not specified. - An extra form element is now returned from generated UI constructor so that you can call $form->{'TOPLEVEL'} in any signal handler to get a toplevel form widget - ie. use $form->{'TOPLEVEL'}->get_filename() to get the file name entered in a fileselection dialog from the 'on_ok_button_clicked' signal handler. - PerlUI->my_gtk_perl_can_do() now also checks for particular versions that are known to be flawed in certain ways. - FAQ split into 3 files - all old FAQs are available on the website. FAQ - Frequently asked questions (general) FAQ.i18n - FAQs relating to internationalisation (I18N) issues. FAQ.old - FAQs relating to old/flawed software versions - PerlSource->perl_about() generates `gnome-config --version` call in Gnome about_Form() sub in App/SubApp. If the gnome-libs-devel RPM is not installed the gnome-libs version number will not be reported. - PerlSource now generates lines in app_run to load translations. - Glade-Perl.spec file based on one from George, the mp3 organiser. This one works I think and allows RPM builds from the tarball by calling eg. 'rpm -ta Glade-Perl-0.58.tar.gz'. - PerlUI->new_accelerator() - accelerator key now defaults to ''. PerlUIExtra->new_GtkPixmapMenuItem() also defaults key to '' PerlProject->use_Glade_Project() now escapes double quotes in author. Thanks for bug reports for the above reports to Joe "Markus" Clark. ------------------------------------------------------------ From Valdis.Kletnieks@vt.edu Thu Jun 21 10:13:32 2001 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 B0AD62C89A for ; Thu, 21 Jun 2001 10:13:32 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5LEDVg15478; Thu, 21 Jun 2001 10:13:31 -0400 Message-Id: <200106211413.f5LEDVg15478@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: netlu@visto.com Cc: gtk-list@gnome.org Subject: Re: memory map io function In-Reply-To: Your message of "Wed, 20 Jun 2001 10:59:43 PDT." <20010620175953.D16CD2BACE@mail.gnome.org> 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_1738061022P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 21 Jun 2001 10:13:30 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1738061022P Content-Type: text/plain; charset=us-ascii On Wed, 20 Jun 2001 10:59:43 PDT, Louis Lu said: > Hi: > > I just wondering whether or not anyone who has the experiences on memory map io function before? > > My code is as following: > int *base; > unsigned int fd; > fd = open("dev/mem", O_RDWR); > base = mmap(0, 0x80000, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd800000); Note that 0x80000 and 0xd8000000 are *VIRTUAL* addresses. This *WILL* screw you to the wall. Also, you're missing a MAP_FIXED - Very Bad Juju will result. Also, you're confusing two meanings of "memory mapped". The 'mmap()' system call creates a mapping between *virtual addresses* that possibly belong to different processes. Memory Mapped I/O means "instead of using an IN or OUT opcode to write data to/from an I/O port, the device is set up to look like memory. So storing to a specific memory location becomes an OUTput, and reading it becomes an INput, and so on". This is an Incredibly Bad Thing to do from user-land - in particular, you're quite likely to get hosed by virtual/physical address mapping (hint - what happens if the virtual page gets paged out? You didn't lock it anyplace ;), and a whole host of other things that can go wrong. The Better Way to implement this would be with a device driver - you would open /dev/yourdev, and issue read() and write() and ioctl() as needed. Inside the kernel, the (for example) write() call would go into the device driver, which would then check the buffer location/size, sanity-check all the other paramaters to write(), lock the pages in memory so the VM manager doesn't move them around, set an internal lock so other read()/write() to that device block until this operation finishes, and then finally move data from the user buffer to the I/O address(es). Depending on the hardware design, you may be able to get away with an strcpy() (if the card provides address space for an entire buffer) or you may need a loop like this: char *dest = (char *) 0x800ffff; /* or whatever address */ for (i=buflen;i;i--) *dest = *userbuf++; /* *NO* ++ on dest */ Many such cards have restrictions that you have to write only bytes, or only 4/8/16 bytes at a time, or that writes have to be aligned, etc. Your device driver will also have to deal with error conditions, the existence of read-only and write-only status/control bits, and so on. I won't get into issues like cache coherency (what happens when the data that's in the memory-mapped I/O card doesn't match what your CPU has in its L1/L2 cache), how to make it work right on a SMP system, and so on. You may wish to ask the card vendor if they have a device driver for your system already.... -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_1738061022P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzIBCnAt5Vm009ewEQLAtgCePd0O3JYjwRTalZ2Z61V79PH9iuwAoNTV CkDJVZPgDtzFhrESQKx/o0UD =NTzH -----END PGP SIGNATURE----- --==_Exmh_1738061022P-- From topper@virginia.edu Thu Jun 21 18:34:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id D60442BEF2 for ; Thu, 21 Jun 2001 18:34:33 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id ab00554; 21 Jun 2001 18:34 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id SAA22362; Thu, 21 Jun 2001 18:34:32 -0400 (EDT) Message-ID: <3B32755F.4D700ACA@virginia.edu> Date: Thu, 21 Jun 2001 18:29:51 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > "David J. Topper" writes: > > > > I mean a window, they are GtkWindows, not popups. I'm using them to get > > parameters for items created on the fly (eg., length, width, height) and > > I don't want the "windows" to drop in back when I accidentally move the > > mouse off them. > > > > I don't understand why they're moving to the back - is your window > manager using focus-follows-mouse and raise-on-focus? Exactly right. This is a problem in other applications too. But I've seen some get around it (eg., KDEs desktop background color selector). It at least won't drop behind the calling application. Something like that would be fine ... but I'm not sure how to do it. Maybe a callback for the window in question ... to check if it's raised or lowered ... or of that status has changed? Then just always raise it? I'm guessing here. DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From topper@virginia.edu Thu Jun 21 19:39:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id ADA482CC04 for ; Thu, 21 Jun 2001 19:39:47 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa15818; 21 Jun 2001 19:39 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id TAA04840 for ; Thu, 21 Jun 2001 19:39:46 -0400 (EDT) Message-ID: <3B3284A8.1133DCE3@virginia.edu> Date: Thu, 21 Jun 2001 19:35:05 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Signal help needed (gtk_signal_new?) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I've gotten some feedback on this, but still need help. From what I gather, signals are specific to types. So a gtk adjustment, for example, has two signals associated with it: "changed" and "value changed". Fine. I've been looking for another kind of signal, perhaps rarely used, or something I surely won't use in my program. The best name I can think of for it is "activate." I bascially want to trigger signals from one adjustment, to a tree of connected adjustments. But I can find no such signal. So I thought I'd hack up a new one, just getting all the relevant info as follows: for (i=1;i<128;i++) { sig_info = gtk_signal_query(i); if (strcmp(sig_info->signal_name, "changed") == 0) { /* I'd insert mine here */ continue; } } since I was unable to find a GtkType for an adjustment, and hence unable to use gtk_signal_lookup(). But even if I capture the relevant info for "changed" I can't use it to create a new signal. The arguments for gtk_signal_new() are elusive to me. I'd basically like to create something very similar to the "value_changed" and "changed" signals, named "activate." It would be the equivalent of a pulse that gets sent whenever the value changes from 0-1 or 1-0. Thanks, DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From hp@redhat.com Thu Jun 21 21:51:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 345402BA85 for ; Thu, 21 Jun 2001 21:51:11 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5M1pFB28323; Thu, 21 Jun 2001 21:51:15 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to keep (force) window focus? References: <3B213847.BBB97D7B@virginia.edu> <3B252ABD.FFF37A9D@virginia.edu> <3B32755F.4D700ACA@virginia.edu> From: Havoc Pennington Date: 21 Jun 2001 21:51:15 -0400 In-Reply-To: "David J. Topper"'s message of "Thu, 21 Jun 2001 18:29:51 -0400" Message-ID: Lines: 29 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" writes: > > I don't understand why they're moving to the back - is your window > > manager using focus-follows-mouse and raise-on-focus? > > Exactly right. This is a problem in other applications too. But I've seen > some get around it (eg., KDEs desktop background color selector). It at > least won't drop behind the calling application. Something like that would > be fine ... but I'm not sure how to do it. Perhaps they set the TRANSIENT_FOR hint (gtk_window_set_transient_for()), many WM's will keep transients on top of their parents. > Maybe a callback for the window in question ... to check if it's raised or > lowered ... or of that status has changed? Then just always raise > it? That would produce a nice flicker effect, and maybe even an infinite loop as you fought with the window manager. ;-) You generally don't want to get into "try to undo what the WM is doing" mode, better to just rethink the GUI or live with the problem or something. My opinion is that the focus-follows-mouse/raise-on-focus combination is a somewhat broken window management policy, but I'm sure reasonable people will disagree. Havoc From jean-michel.rouet@philips.com Fri Jun 22 08:03:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gw-nl4.philips.com (gw-nl4.philips.com [212.153.190.6]) by mail.gnome.org (Postfix) with ESMTP id 0A57D2D61F for ; Fri, 22 Jun 2001 08:03:27 -0400 (EDT) Received: from smtpscan-nl3.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl4.philips.com with ESMTP id OAA12092 for ; Fri, 22 Jun 2001 14:03:20 +0200 (MEST) (envelope-from jean-michel.rouet@philips.com) From: jean-michel.rouet@philips.com Received: from smtpscan-nl3.philips.com(130.139.36.23) by gw-nl4.philips.com via mwrap (4.0a) id xma012086; Fri, 22 Jun 01 14:03:20 +0200 Received: from smtprelay-nl1.philips.com (localhost [127.0.0.1]) by smtpscan-nl3.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA10990 for ; Fri, 22 Jun 2001 14:03:17 +0200 (MET DST) Received: from notessmtp-nl1.philips.com (notessmtp-nl1.philips.com [130.139.36.10]) by smtprelay-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA12296 for ; Fri, 22 Jun 2001 14:03:15 +0200 (MET DST) Received: from EMLMS01.DIAMOND.PHILIPS.COM (emlms01sv1.diamond.philips.com [130.143.165.213]) by notessmtp-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA26383 for ; Fri, 22 Jun 2001 14:02:44 +0200 (MET DST) Received: by EMLMS01.DIAMOND.PHILIPS.COM (Soft-Switch LMS 4.0) with snapi via EMEA1 id 0056900018720401; Fri, 22 Jun 2001 14:16:38 +0200 To: Subject: Graph data structures Message-ID: <0056900018720401000002L012*@MHS> Date: Fri, 22 Jun 2001 14:16:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="MEMO 06/22/01 13:35:58" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear gtk-list :-) Although I've been looking through google and also over this mailing list archive, I've not found what I was looking for. My question is: is there anywhere a free and efficient graph data structure handling library that I can use in plain C. I thought that glib was the answer, but unfortunately it seems to only provide a support for trees (binary and n-way) but not for graphs. Is there an ongoing project in glib to add this kind of data type ? Does any body know an other free library that might provide such a data= type ? JM --=20 Jean-Michel Rouet (PhD) | Tel : +33 147 28 36 13 Philips Research LEP | Fax : +33 147 28 36 05 51, rue Carnot | email : Jean-Michel.Rouet@philips= .com BP 301 - 92156 Suresnes Cedex = From skip@beluga.mojam.com Fri Jun 22 13:38:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 376F92E318 for ; Fri, 22 Jun 2001 13:38:01 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MHato25605; Fri, 22 Jun 2001 12:36:55 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.33329.825838.235400@beluga.mojam.com> Date: Fri, 22 Jun 2001 12:36:49 -0500 To: gtk-list@gnome.org Subject: The g_object_{set,get} class of functions seem strange X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: In trying to figure out how I can get a list of property names for an object, I came across the g_object_set and g_object_get functions and their _valist versions. Their signatures seem rather bizarre to me. The get functions are declared to return void while the set functions are declared to return a gpointer. How does g_object_get return values to its caller (g_object_get_valist does something weird with its var_args argument)? Why doesn't it just allocate an array of gpointers and return them? Why does g_object_set need to return its first argument to its caller? -- Skip Montanaro (skip@pobox.com) (847)971-7098 From hp@redhat.com Fri Jun 22 14:08:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 867B22BBA9 for ; Fri, 22 Jun 2001 14:08:43 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MI8cD30052; Fri, 22 Jun 2001 14:08:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: The g_object_{set,get} class of functions seem strange References: <15155.33329.825838.235400@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 14:08:38 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 12:36:49 -0500" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > In trying to figure out how I can get a list of property names for an > object, I came across the g_object_set and g_object_get functions and their > _valist versions. Their signatures seem rather bizarre to me. The get > functions are declared to return void while the set functions are declared > to return a gpointer. How does g_object_get return values to its caller > (g_object_get_valist does something weird with its var_args argument)? Why > doesn't it just allocate an array of gpointers and return them? Why does > g_object_set need to return its first argument to its caller? > The return value is a conspiracy by Tim to confuse people. ;-) Well, it is to support some kind of bizarre coding style: g_object_set (object, "child_object", g_object_set (object2, "foo", 10, NULL), NULL); Basically my recommendation is to pretend it returns void. g_object_get() works like this, say "foo" is an integer property: int val; g_object_get (object, "foo", &val, NULL); To get a list of properties that exist for an object you'd use something like g_object_class_list_properties(). Havoc From skip@beluga.mojam.com Fri Jun 22 14:28:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id BDA7F2BC8C for ; Fri, 22 Jun 2001 14:28:33 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MIR6C01085; Fri, 22 Jun 2001 13:27:06 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.36344.42598.420023@beluga.mojam.com> Date: Fri, 22 Jun 2001 13:27:04 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: The g_object_{set,get} class of functions seem strange In-Reply-To: References: <15155.33329.825838.235400@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc, Thanks for the explanation of the get/set oddities. You also wrote: Havoc> To get a list of properties that exist for an object you'd use Havoc> something like g_object_class_list_properties(). Thanks for the pointer. I imagine that will do the trick. It must be a brand new function. I had to "cvs up" to find it. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From weigelt@metux.de Fri Jun 22 15:03:44 2001 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 0F4312E2CE for ; Fri, 22 Jun 2001 15:03:42 -0400 (EDT) Received: from nibiru.oberonhq.net (nibiru.oberonhq.net [194.122.210.42]) by annwfn.erfurt.thur.de (8.11.4/8.10.1) with ESMTP id f5MJ39V27424 for ; Fri, 22 Jun 2001 21:03:10 +0200 Received: from metux.de (oberonhq@localhost [127.0.0.1]) by nibiru.oberonhq.net (8.9.3/8.9.3) with ESMTP id VAA08533 for ; Fri, 22 Jun 2001 21:03:08 +0200 Message-ID: <3B33966B.56E8E790@metux.de> Date: Fri, 22 Jun 2001 21:03:07 +0200 From: Enrico Weigelt Reply-To: weigelt@nibiru.thur.de Organization: meTUX IT services X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.4.0 i686) X-Accept-Language: en, de-DE MIME-Version: 1.0 To: GTK Mailing List Subject: garbage collection 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: has anyone thought about integrating an garbage collector in glib/gtk ? this would reduce the chance of broken pointers and wasted memory dramatically. ~-n _____________________________________ meTUX IT + Communication Services Enrico Weigelt www: www.metux.de email: weigelt@metux.de phone: +49 36207 51833 cellphone: +49 174 7066481 _____________________________________ From Valdis.Kletnieks@vt.edu Fri Jun 22 15:14:02 2001 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 C75302BD90 for ; Fri, 22 Jun 2001 15:14:01 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5MJDrg29837; Fri, 22 Jun 2001 15:13:53 -0400 Message-Id: <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: weigelt@nibiru.thur.de Cc: GTK Mailing List Subject: Re: garbage collection In-Reply-To: Your message of "Fri, 22 Jun 2001 21:03:07 +0200." <3B33966B.56E8E790@metux.de> 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_-1931908673P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 22 Jun 2001 15:13:53 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1931908673P Content-Type: text/plain; charset=us-ascii On Fri, 22 Jun 2001 21:03:07 +0200, Enrico Weigelt said: > has anyone thought about integrating an garbage collector > in glib/gtk ? Has anybody thought about the difficulties of implementing a garbage collector for C, when the user is free to do malloc()/free() and alias pointers to each other when the GC code isn't in control? > this would reduce the chance of broken pointers and wasted > memory dramatically. Not really. Remember that memory would *STILL* get wasted even with a garbage collector, if there isn't something imposing rules. If the programmer doesn't call free(), the memory won't get freed with a garbage collector, because there will still be a reference (the pointer that wasn't free()ed). Garbage collectors, in general, really blow major chunks unless you're coding in a Lisp or Java type language where it's *ENFORCED*. But that wouldn't be C/C++. -- Valdis Kletnieks Operating Systems Analyst Virginia Tech --==_Exmh_-1931908673P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzOY8XAt5Vm009ewEQKsfgCgjo5QxPhCEtAxe+JYUmxV4bi9trkAn1rL IkVScosrNV5LJdZctXk/VFxp =/tID -----END PGP SIGNATURE----- --==_Exmh_-1931908673P-- From king@eiffel.com Fri Jun 22 15:18:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pompeii.ise (troy.eiffel.com [198.68.147.5]) by mail.gnome.org (Postfix) with ESMTP id 15B0E2DFCA for ; Fri, 22 Jun 2001 15:18:56 -0400 (EDT) Received: from naples.ise ([10.0.10.117] helo=naples) by pompeii.ise with smtp (Exim 3.02 #2) id 15DWSE-0002k8-00 for gtk-list@gnome.org; Fri, 22 Jun 2001 12:18:54 -0700 Message-ID: <085001c0fb50$58c3b430$750a000a@naples> From: "Ian King" To: Subject: Prelight problems Date: Fri, 22 Jun 2001 12:20:06 -0700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Does anyone else have prelight problems on buttons with no relief set? It seems that in some circumstances they do not function correctly an d buttons are lit when the mouse is nowhere near the widget itself. Does anyone know of a fix for this? Thanks for your time Ian King From otaylor@redhat.com Fri Jun 22 15:23:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id F2A0B2E29C for ; Fri, 22 Jun 2001 15:23:20 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id D367124231A; Fri, 22 Jun 2001 15:23:19 -0400 (EDT) To: weigelt@nibiru.thur.de Cc: GTK Mailing List Subject: Re: garbage collection References: <3B33966B.56E8E790@metux.de> From: Owen Taylor Date: 22 Jun 2001 15:23:19 -0400 In-Reply-To: Enrico Weigelt's message of "Fri, 22 Jun 2001 21:03:07 +0200" Message-ID: Lines: 20 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Enrico Weigelt writes: > has anyone thought about integrating an garbage collector > in glib/gtk ? > > this would reduce the chance of broken pointers and wasted > memory dramatically. Yes, its been discussed. If you hunt through the gtk-devel-list archives, you'll find a post from Havoc Pennington where he discusses some experiments he made using the Boehm GC. The trouble with depending on a garbage collector is one of integrating with other software which doesn't use a garbage collector, or uses an incompatible garbage collector. For that reason, it's not practical at the present time to depend on one for GTK+. Regards, Owen From skip@beluga.mojam.com Fri Jun 22 15:54:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id DA2372BAE9 for ; Fri, 22 Jun 2001 15:54:20 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MJqoD17173; Fri, 22 Jun 2001 14:52:50 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.41490.155957.939096@beluga.mojam.com> Date: Fri, 22 Jun 2001 14:52:50 -0500 To: Valdis.Kletnieks@vt.edu Cc: weigelt@nibiru.thur.de, GTK Mailing List Subject: Re: garbage collection In-Reply-To: <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> References: <3B33966B.56E8E790@metux.de> <200106221913.f5MJDrg29837@foo-bar-baz.cc.vt.edu> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Valdis> Not really. Remember that memory would *STILL* get wasted even Valdis> with a garbage collector, if there isn't something imposing Valdis> rules. If the programmer doesn't call free(), the memory won't Valdis> get freed with a garbage collector, because there will still be Valdis> a reference (the pointer that wasn't free()ed). On the other hand, coupling garbage collection of containers with the current reference counting scheme might make sense if it can be pulled off. Python is reference counted. In 2.0 a garbage collector was added to reclaim circular garbage. -- Skip Montanaro (skip@pobox.com) (847)971-7098 From iain@trna.ximian.com Fri Jun 22 16:18:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from trna.ximian.com (trna.ximian.com [141.154.95.22]) by mail.gnome.org (Postfix) with ESMTP id 738B72BAFB for ; Fri, 22 Jun 2001 16:18:50 -0400 (EDT) Received: from localhost (iain@localhost) by trna.ximian.com (8.9.3/8.9.3) with ESMTP id QAA17248; Fri, 22 Jun 2001 16:18:01 -0400 Date: Fri, 22 Jun 2001 16:18:00 -0400 (EDT) From: Iain Holmes To: raphi2 raph Cc: gtk-list@gnome.org, otaylor@redhat.com Subject: Re: GTK / SDL bis In-Reply-To: <992901282019158@caramail.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > In fact I would like to "include" a little SDL window in a > big GTK window. (by example to be able to play movies in my > GTK application) Okay, you can do it with the hack below, but you have to do the putenv hack *before* you call SDL_Init. Also from what I understood about SDL you can only have one window per process, at least only one window embedded in a GTK window as the putenv hack is global.=20 I dunno if it's possible with threads to get more than one SDL window into a GTK one, but it's possibly the ugliest hack I've seen yet. Plus when you start trying to do this stuff with bonobo controls, then you have fun about waiting for windows to be realised before calling sdlinit. iain >=20 >=20 >=20 > I tried to resolve my problem with your advices :) but I > have still problems. here is the part of my program with > problems: >=20 >=20 > SDL_Thread *thread; > GtkWidget=09*drawing_area; > Window=09xwin; >=20 > gtk_sess *sess =3D (gtk_sess *)data; >=20 > sess->new =3D gtk_window_new(GTK_WINDOW_TOPLEVEL); > gtk_widget_set_usize(sess->new, 460, 500); > // gtk_widget_show (sess->new); >=20 > sess->fixed =3D gtk_fixed_new(); > gtk_widget_ref (sess->fixed); > gtk_widget_show (sess->fixed); > gtk_container_add(GTK_CONTAINER(sess->new), sess->fixed); >=20 > drawing_area =3D gtk_drawing_area_new(); > gtk_widget_set_usize(drawing_area, 100, 100); > gtk_fixed_put(GTK_FIXED(sess->fixed), drawing_area, 400, > 400); > gtk_widget_realize(drawing_area); > gtk_widget_show(drawing_area); >=20 >=20 > { char SDL_windowhack[32]; > sprintf(SDL_windowhack,"SDL_WINDOWID=3D-543170384", > =09 GDK_WINDOW_XWINDOW(drawing_area->window)); > putenv(SDL_windowhack); > } >=20 > screen =3D SDL_SetVideoMode(100, 100, 0, 0); > thread =3D SDL_CreateThread(play_film, sess); > if (thread =3D=3D NULL) > printf("Probleme avec la thread\n"); > // gtk_timeout_add(5, animation, sess); >=20 >=20 > I do the SDL_Init before this in an init function. >=20 > Do you see something wrong in this code ? >=20 > Thanks a lot for help >=20 > Raph > _________________________________________________________ > Le journal des abonn=E9s Caramail - http://www.carazine.com >=20 >=20 From jurkech@shadow.sk Fri Jun 22 16:26:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from main.alternet.sk (gts-gw.alternet.sk [62.168.107.43]) by mail.gnome.org (Postfix) with ESMTP id 77A622CA07 for ; Fri, 22 Jun 2001 16:26:05 -0400 (EDT) Received: from shadow.sk (roman@jurkech.alternet.sk [194.145.136.133]) by main.alternet.sk (8.9.3/8.9.3) with ESMTP id WAA03658 for ; Fri, 22 Jun 2001 22:26:02 +0200 Message-ID: <3B33A9F6.998293EC@shadow.sk> Date: Fri, 22 Jun 2001 22:26:30 +0200 From: jurkech@shadow.sk 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: Custom font when locale is not iso-8859-1 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i found a strange behavior of gtk when using locale settings for a non iso-8859-1 language. In my case I specify LC_CTYPE=sk_SK so I'm able to use Slovak keyboard. But when I do this, gtk will read /etc/gtk/gtkrc.sk which is linked to /etc/gtk/gtkrc.iso-8859-2. This contains specifications for fonts to use. But whatever font is set in $HOME/.gtkrc it will not be used at all. I'm not sure if this is meant to be this way but I hope not. I think the system should be working like this: First of all gtk should be concerned with LC_MESSAGES only! Any other LC_XXX settings are not important because they have no connection with fonts that gtk uses. In my case I have only LC_CTYPE secified cuz I just need to use Slovak keyboard but everything else I expect in English. Still, gtk will go for /etc/gtkrc.sk for no real reason. If LC_MESSAGES is set to a non iso-8859-1 setting then gtk will verify that custom font specified by user is of the same charset. If it's not then gtk would try to get the same font with the required charset. And only if this fails it would use the font specified in /etc/gtkrc.xy Roman From skip@beluga.mojam.com Fri Jun 22 16:43:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 35FEC2BDF1 for ; Fri, 22 Jun 2001 16:43:52 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MKh5721603; Fri, 22 Jun 2001 15:43:06 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.44504.705944.498691@beluga.mojam.com> Date: Fri, 22 Jun 2001 15:43:04 -0500 To: gtk-list@gnome.org Subject: autogen.sh not expanding some variables X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After running autogen.sh on the gtk+ cvs source, I am left with a top-level Makefile containing the following unexpanded variables: host_alias = @host_alias@ AS = @AS@ DLLTOOL = @DLLTOOL@ GENCAT = @GENCAT@ GT_NO = @GT_NO@ GT_YES = @GT_YES@ INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@ OBJDUMP = @OBJDUMP@ l = @l@ When I try to make, I get an error message about not being able to find @AS@. I zapped all my files and updated from CVS again, but encounter the same problem. Autogen.sh's output is not perfectly clean, but I have no clue what the problem might be. Its output is: I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. autoheader: error: shell error while sourcing /tmp/ahR6lLVI/traces.sh configure.in: 89: required file `./config.h.in' not found demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_BEGIN@' demos/gtk-demo/Makefile.am:60: gtk_demo_SOURCES includes configure substitution `@STRIP_END@' tests/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/faq/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' docs/tutorial/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gdk-pixbuf/Makefile.am:94: libpixbufloader_xbm_la_LDFLAGS multiply defined in condition TRUE libpixbufloader_xbm_la_LDFLAGS (User, where = 94) = { TRUE => -version-info 1:0:0 -module } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_FALSE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { TRUE => $(builtin_objs) } gdk-pixbuf/Makefile.am:214: libgdk_pixbuf_1_3_la_DEPENDENCIES was already defined in condition TRUE, which implies condition BUILD_DYNAMIC_MODULES_TRUE TRUE libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 214) = { BUILD_DYNAMIC_MODULES_FALSE TRUE => pixops/libpixops.la TRUE => $(builtin_objs) } automake: gdk-pixbuf/pixops/Makefile.am: Assembler source seen but `ASFLAGS' not defined in `configure.in' gdk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gdk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:138: libgdk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:128: libgdk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gdk/Makefile.am:118: libgdk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+=' gtk/Makefile.am: EXTRA_DIST must be set with `=' before using `+=' gtk/Makefile.am: CLEANFILES must be set with `=' before using `+=' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:509: libgtk_linux_fb_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:504: libgtk_nanox_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_BEGIN@' gtk/Makefile.am:499: libgtk_x11_1_3_la_SOURCES includes configure substitution `@STRIP_END@' gtk/stock-icons/Makefile.am: CLEANFILES must be set with `=' before using `+=' configure.in:25: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:97: warning: AC_CANONICAL_HOST invoked multiple times configure.in:101: /usr/bin/m4: Non-numeric argument to built-in `divert' configure.in:158: warning: AC_COMPILE_IFELSE was called before AC_ISC_POSIX ... bunch of configure messages elided ... configure: creating ./config.status ... bunch of config.status messages elided ... config.status: error: cannot find input file: config.h.in Now type 'make' to compile Gtk+. I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. Any ideas what my problem is? Thx, -- Skip Montanaro (skip@pobox.com) (847)971-7098 From celston@corky.sapien.net Fri Jun 22 16:59:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from corky.sapien.net (corky.sapien.net [208.224.15.95]) by mail.gnome.org (Postfix) with ESMTP id 8A7662BCB2 for ; Fri, 22 Jun 2001 16:59:02 -0400 (EDT) Received: from localhost (celston@localhost) by corky.sapien.net (8.11.2/8.11.2) with ESMTP id f5MKx1W32666 for ; Fri, 22 Jun 2001 16:59:01 -0400 Date: Fri, 22 Jun 2001 16:59:01 -0400 (EDT) From: Chris Elston To: Subject: First post with a Question... 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, my name is Chris. This is my first post to this list so be gentle. :) I'm working with Gtk-Perl but I'm pretty sure this idea applies to all versions of Gtk. I'm trying to design a GTree stucture so that if I right click a tree item, a menu comes up. I'm able to get the menu to come up easy, but the problem is that Gtk (at least in perl) has mapped the middle mouse button to expanding subtrees and the right to collapsing them. I want to be able to turn off this added "feature" so that when a subtree is right clicked, only my menu comes up. Any suggestions? -- Chris Elston celston@corky.sapien.net --------------------------------- Nucleus Communications Web Script Programmer From hp@redhat.com Fri Jun 22 17:31:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 1FA5E2BB2D for ; Fri, 22 Jun 2001 17:31:06 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MLV7N14107; Fri, 22 Jun 2001 17:31:07 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables References: <15155.44504.705944.498691@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 17:31:07 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 15:43:04 -0500" Message-ID: Lines: 9 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > After running autogen.sh on the gtk+ cvs source, I am left with a top-level > Makefile containing the following unexpanded variables: > Are you using some weird CVS automake/autoconf? Havoc From skip@beluga.mojam.com Fri Jun 22 17:56:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id D238B2BB2D for ; Fri, 22 Jun 2001 17:56:11 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MLtr822007; Fri, 22 Jun 2001 16:55:53 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.48873.299898.869595@beluga.mojam.com> Date: Fri, 22 Jun 2001 16:55:53 -0500 To: Havoc Pennington Cc: skip@pobox.com (Skip Montanaro), gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables In-Reply-To: References: <15155.44504.705944.498691@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> After running autogen.sh on the gtk+ cvs source, I am left with a >> top-level Makefile containing the following unexpanded variables: Havoc> Are you using some weird CVS automake/autoconf? Not that I'm aware of. As I mentioned: I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. Looking at the names in "cvs log README" for automake, I don't see anything "Release-1-4g", however, so maybe I am. I'll try using "Release-1-4-p1", which I've seen mentioned places. *sigh* Skip From hp@redhat.com Fri Jun 22 18:06:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 476DF2DB54 for ; Fri, 22 Jun 2001 18:06:36 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5MM6c714122; Fri, 22 Jun 2001 18:06:38 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: skip@pobox.com (Skip Montanaro) Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables References: <15155.44504.705944.498691@beluga.mojam.com> <15155.48873.299898.869595@beluga.mojam.com> From: Havoc Pennington Date: 22 Jun 2001 18:06:37 -0400 In-Reply-To: Skip Montanaro's message of "Fri, 22 Jun 2001 16:55:53 -0500" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Skip Montanaro writes: > >> After running autogen.sh on the gtk+ cvs source, I am left with a > >> top-level Makefile containing the following unexpanded variables: > > Havoc> Are you using some weird CVS automake/autoconf? > > Not that I'm aware of. As I mentioned: > > I have automake 1.4g, autoconf 2.50a and libtool 1.4 installed. > > Looking at the names in "cvs log README" for automake, I don't see anything > "Release-1-4g", however, so maybe I am. I'll try using "Release-1-4-p1", > which I've seen mentioned places. > Yep, you're using weird CVS stuff. Not expected to work. ;-) Havoc From skip@beluga.mojam.com Fri Jun 22 18:20:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from beluga.mojam.com (el04-24-163-253-242.ce.mediaone.net [24.163.253.242]) by mail.gnome.org (Postfix) with ESMTP id 9D3F82DB8B for ; Fri, 22 Jun 2001 18:20:53 -0400 (EDT) Received: (from skip@localhost) by beluga.mojam.com (8.11.3/8.11.3) id f5MMKYG03936; Fri, 22 Jun 2001 17:20:34 -0500 From: Skip Montanaro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15155.50350.415823.279988@beluga.mojam.com> Date: Fri, 22 Jun 2001 17:20:30 -0500 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: autogen.sh not expanding some variables In-Reply-To: References: <15155.44504.705944.498691@beluga.mojam.com> <15155.48873.299898.869595@beluga.mojam.com> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: skip@pobox.com (Skip Montanaro) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc> Yep, you're using weird CVS stuff. Not expected to work. ;-) I have the damndest time trying to keep all these build tools straight. Would someone please send me (off-list) the version numbers of automake, autoconf and libtool they are using to build the current CVS gtk/glib stuff? Thx, Skip From netlu@visto.com Fri Jun 22 22:30:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from qmail1.visto.com (unknown [209.185.20.131]) by mail.gnome.org (Postfix) with SMTP id 834892BBC0 for ; Fri, 22 Jun 2001 22:30:57 -0400 (EDT) Received: (qmail 4340 invoked by alias); Received: from unknown (HELO mps3) (206.79.140.175) by 0 with SMTP; 22 Jun 2001 19:30:44 -0700 Reply-To: netlu@visto.com From: "Louis Lu" Subject: font size change on buttons Date: Fri, 22 Jun 2001 19:27:42 -0700 X-Mailer: Visto To: gtk-list@gnome.org MIME-Version: 1.0 X-Mailer: Visto Server Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <20010623023057.834892BBC0@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi: I created a dialog box with 4 push buttons on it and I would like the label (on the button)to have a bigger font=20 size. Could any one tell me how to do this in my program? Thanks for your help and time. Louis _________________________________________________________________________= __ Visit http://www.visto.com/info, your free web-based communications cente= r. Visto.com. Life on the Dot. From reinhard.mueller@bytewise.at Thu Jun 21 18:37:30 2001 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 DC0C02E213 for ; Thu, 21 Jun 2001 18:37:29 -0400 (EDT) Received: (qmail 12570 invoked from network); 21 Jun 2001 22:37:28 -0000 Received: from n802p023.adsl.highway.telekom.at (HELO bytewise.at) ([62.47.44.55]) (envelope-sender ) by qmail2.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 21 Jun 2001 22:37:28 -0000 Message-ID: <3B32797C.4080207@bytewise.at> Date: Fri, 22 Jun 2001 00:47:24 +0200 From: Reinhard Mueller Organization: GNU Enterprise User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; 0.8.1) Gecko/20010421 X-Accept-Language: de, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Logging functions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, is there a reason why there are the functions g_error g_critical g_warning g_message but not g_info g_debug ? Something like #define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) #ifdef G_DEBUG #define g_debug(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) #else #define g_debug(...) #endif could be helpful. Just an idea. :) -- Reinhard Mueller GNU Enterprise project http://www.gnue.org From S.Geerken@ping.de Sat Jun 23 10:38:57 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lilly.ping.de (lilly.ping.de [62.72.90.2]) by mail.gnome.org (Postfix) with SMTP id 635BA2D00B for ; Sat, 23 Jun 2001 10:38:56 -0400 (EDT) Received: (qmail 30863 invoked from network); 23 Jun 2001 14:38:53 -0000 Received: (ofmipd 62.72.92.20); 23 Jun 2001 14:38:31 -0000 Received: by sg.local via sendmail from stdin id (Debian Smail3.2.0.102) for gtk-list@gnome.org; Sat, 23 Jun 2001 16:43:38 +0200 (CEST) Date: 23 Jun 2001 16:43:38 +0200 Message-ID: <20010623164338.A2551@sg.local> From: "Sebastian Geerken" Mail-Followup-To: "Sebastian Geerken" , gtk-list@gnome.org To: gtk-list@gnome.org Subject: long menus 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, are there plans, or already implementations (I haven't looked yet at 1.3) on how to let the user control large menus which don't fit on the screen, e.g. by scrolling? Or does this depend on themes? I'm currently using a workaround, connecting the "select" signal of all menu items to this (unfinished) function: void justify_menu_item (GtkWidget *widget) { int y, h, mx, my, sh; y = widget->allocation.y; h = widget->allocation.height; gdk_window_get_geometry (widget->parent->parent->window, &mx, &my, NULL, NULL, NULL); sh = gdk_screen_height (); if (y + my < 0) gdk_window_move (widget->parent->parent->window, mx, - y + 1); else if (y + my > sh - h) gdk_window_move (widget->parent->parent->window, mx, sh - h - y - 1); } It works for me, but is really a bit hackish. Are there pitfalls why it may not work under certain circumstances? Sebastian From otaylor@redhat.com Sat Jun 23 10:59:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 3796D2BB3D for ; Sat, 23 Jun 2001 10:59:30 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 61F54242319; Sat, 23 Jun 2001 10:59:26 -0400 (EDT) To: "Sebastian Geerken" Cc: gtk-list@gnome.org Subject: Re: long menus References: <20010623164338.A2551@sg.local> From: Owen Taylor Date: 23 Jun 2001 10:59:26 -0400 In-Reply-To: "Sebastian Geerken"'s message of "23 Jun 2001 16:43:38 +0200" Message-ID: Lines: 40 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Sebastian Geerken" writes: > Hi, > > are there plans, or already implementations (I haven't looked yet at > 1.3) on how to let the user control large menus which don't fit on the > screen, e.g. by scrolling? Yes, scrolling menus hav been added in GTK+-1.3 Or does this depend on themes? I'm > currently using a workaround, connecting the "select" signal of all > menu items to this (unfinished) function: > > void justify_menu_item (GtkWidget *widget) > { > int y, h, mx, my, sh; > > y = widget->allocation.y; > h = widget->allocation.height; > gdk_window_get_geometry (widget->parent->parent->window, > &mx, &my, NULL, NULL, NULL); > sh = gdk_screen_height (); > > if (y + my < 0) > gdk_window_move (widget->parent->parent->window, mx, - y + 1); > else if (y + my > sh - h) > gdk_window_move (widget->parent->parent->window, mx, sh - h - y - 1); > } > > It works for me, but is really a bit hackish. Are there pitfalls why > it may not work under certain circumstances? You can find a workaround hack in the GNOME panel - I don't know how general it is. Other people have used netscape-bookmarks style continuation submenus. Regards, Owen From daniel.elstner@gmx.net Sat Jun 23 13:14:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by mail.gnome.org (Postfix) with SMTP id 0B62E2BA98 for ; Sat, 23 Jun 2001 13:14:45 -0400 (EDT) Received: (qmail 14006 invoked by uid 0); 23 Jun 2001 17:14:39 -0000 Received: from 217-9-43-124.lsd.berlikomm.net (HELO server.daniel.homenet) (217.9.43.124) by mail.gmx.net (mail06) with SMTP; 23 Jun 2001 17:14:39 -0000 Received: from master.daniel.homenet (master.daniel.homenet [192.168.1.1]) by server.daniel.homenet (8.9.3/8.9.3) with ESMTP id TAA13619 for ; Sat, 23 Jun 2001 19:11:17 +0200 Received: from master (localhost [127.0.0.1]) by master.daniel.homenet (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with SMTP id f5NHFo029704 for ; Sat, 23 Jun 2001 19:15:51 +0200 X-Authentication-Warning: master.daniel.homenet: Host localhost [127.0.0.1] claimed to be master Date: Sat, 23 Jun 2001 19:15:50 +0200 From: Daniel Elstner To: gtk-list@gnome.org Subject: [PATCH] glib.h + gcc-3.0 + -pedantic Message-Id: <20010623191550.67f9183e.daniel@master.daniel.homenet> X-Mailer: Sylpheed version 0.5.0pre1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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. --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, gcc 3.0 gives me a bunch of annoying warnings when compiling with the -pedantic option, because there are several macros (e.g. g_error) which are either too new (c99) or GNU extensions. I cannot compile with -std=c99 since that doesn't work with C++. With the attached patch (for glib-1.2.10) things are fine (at least for me). The changes are a check for __STRICT_ANSI__ triggering fallback to the function implementations, and an extra check for __GNUC__ detecting wether inlining va_arg functions is possible. It compiles fine with `g++ -ansi -pedantic -O2 -W -Wall -Winline'. Is the patch ok for you to apply? Regards, --Daniel --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88 Content-Type: application/octet-stream; name="glib.h.patch" Content-Disposition: attachment; filename="glib.h.patch" Content-Transfer-Encoding: base64 LS0tIGdsaWIuaC5vcmlnCVN1biBKdW4gMTcgMTg6Mzg6MjAgMjAwMQorKysgZ2xpYi5oCVNhdCBK dW4gMjMgMTg6MDU6MjMgMjAwMQpAQCAtMTMwNCw3ICsxMzA0LDcgQEAKICNkZWZpbmUJZ193YXJu aW5nKC4uLikJZ19sb2cgKEdfTE9HX0RPTUFJTiwgICAgICAgICBcCiAJCQkgICAgICAgR19MT0df TEVWRUxfV0FSTklORywgIFwKIAkJCSAgICAgICBfX1ZBX0FSR1NfXykKLSNlbGlmIGRlZmluZWQg KF9fR05VQ19fKQorI2VsaWYgZGVmaW5lZCAoX19HTlVDX18pICYmICFkZWZpbmVkIChfX1NUUklD VF9BTlNJX18pCiAjZGVmaW5lCWdfZXJyb3IoZm9ybWF0Li4uKQlnX2xvZyAoR19MT0dfRE9NQUlO LCAgICAgICAgIFwKIAkJCQkgICAgICAgR19MT0dfTEVWRUxfRVJST1IsICAgIFwKIAkJCQkgICAg ICAgZm9ybWF0KQpAQCAtMTMxNyw4ICsxMzE3LDEzIEBACiAjZGVmaW5lCWdfd2FybmluZyhmb3Jt YXQuLi4pCWdfbG9nIChHX0xPR19ET01BSU4sICAgICAgICAgXAogCQkJCSAgICAgICBHX0xPR19M RVZFTF9XQVJOSU5HLCAgXAogCQkJCSAgICAgICBmb3JtYXQpCi0jZWxzZQkvKiAhX19HTlVDX18g Ki8KLXN0YXRpYyB2b2lkCisjZWxzZQkvKiAhX19HTlVDX18gfHwgX19TVFJJQ1RfQU5TSV9fICov CisjICBpZiAoX19HTlVDX18pCisjICAgIGRlZmluZSBHX1ZBX0lOTElORSBpbmxpbmUKKyMgIGVs c2UKKyMgICAgZGVmaW5lIEdfVkFfSU5MSU5FCisjICBlbmRpZgorc3RhdGljIEdfVkFfSU5MSU5F IHZvaWQKIGdfZXJyb3IgKGNvbnN0IGdjaGFyICpmb3JtYXQsCiAJIC4uLikKIHsKQEAgLTEzMjcs NyArMTMzMiw3IEBACiAgIGdfbG9ndiAoR19MT0dfRE9NQUlOLCBHX0xPR19MRVZFTF9FUlJPUiwg Zm9ybWF0LCBhcmdzKTsKICAgdmFfZW5kIChhcmdzKTsKIH0KLXN0YXRpYyB2b2lkCitzdGF0aWMg R19WQV9JTkxJTkUgdm9pZAogZ19tZXNzYWdlIChjb25zdCBnY2hhciAqZm9ybWF0LAogCSAgIC4u LikKIHsKQEAgLTEzMzYsNyArMTM0MSw3IEBACiAgIGdfbG9ndiAoR19MT0dfRE9NQUlOLCBHX0xP R19MRVZFTF9NRVNTQUdFLCBmb3JtYXQsIGFyZ3MpOwogICB2YV9lbmQgKGFyZ3MpOwogfQotc3Rh dGljIHZvaWQKK3N0YXRpYyBHX1ZBX0lOTElORSB2b2lkCiBnX3dhcm5pbmcgKGNvbnN0IGdjaGFy ICpmb3JtYXQsCiAJICAgLi4uKQogewo= --Multipart_Sat__23_Jun_2001_19:15:50_+0200_08312b88-- From otaylor@redhat.com Sat Jun 23 13:47:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EC03C2BF9C for ; Sat, 23 Jun 2001 13:47:25 -0400 (EDT) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 982B0242319; Sat, 23 Jun 2001 13:47:25 -0400 (EDT) To: Daniel Elstner Cc: gtk-list@gnome.org, gtk-devel-list@gtk.org Subject: Re: [PATCH] glib.h + gcc-3.0 + -pedantic References: <20010623191550.67f9183e.daniel@master.daniel.homenet> From: Owen Taylor Date: 23 Jun 2001 13:47:25 -0400 In-Reply-To: Daniel Elstner's message of "Sat, 23 Jun 2001 19:15:50 +0200" Message-ID: Lines: 43 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Daniel Elstner writes: > Hi, > > gcc 3.0 gives me a bunch of annoying warnings when compiling > with the -pedantic option, because there are several macros > (e.g. g_error) which are either too new (c99) or GNU extensions. > > I cannot compile with -std=c99 since that doesn't work with C++. > With the attached patch (for glib-1.2.10) things are fine (at > least for me). > > The changes are a check for __STRICT_ANSI__ triggering fallback > to the function implementations, and an extra check for __GNUC__ > detecting wether inlining va_arg functions is possible. It > compiles fine with `g++ -ansi -pedantic -O2 -W -Wall -Winline'. > > Is the patch ok for you to apply? [ see the README in GTK+ for information about submitting patches, in general patches should go to bugzilla.gnome.org, and/or gtk-devel-list ] Considering that the function implementations are much inferior to the macro implementations, I don't consider this patch appropriate. A possibly better way of going about this that was suggested is to use: #pragma GCC system_header For the glib header files - this turns off a lot of warnings. After all, GLib _does_ turn off the GCC extensions when compiling on something other than GCC, so there's no point in being told about them when compiling some project that uses GLib. You might want to experiment with this. Regards, Owen From daniel.elstner@gmx.net Sat Jun 23 15:22:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by mail.gnome.org (Postfix) with SMTP id 536C72C865 for ; Sat, 23 Jun 2001 15:22:38 -0400 (EDT) Received: (qmail 19763 invoked by uid 0); 23 Jun 2001 19:22:36 -0000 Received: from 217-9-43-124.lsd.berlikomm.net (HELO server.daniel.homenet) (217.9.43.124) by mail.gmx.net (mp005-rz3) with SMTP; 23 Jun 2001 19:22:36 -0000 Received: from master.daniel.homenet (master.daniel.homenet [192.168.1.1]) by server.daniel.homenet (8.9.3/8.9.3) with ESMTP id VAA14001; Sat, 23 Jun 2001 21:18:47 +0200 Received: from master (localhost [127.0.0.1]) by master.daniel.homenet (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with SMTP id f5NJNu018040; Sat, 23 Jun 2001 21:23:56 +0200 X-Authentication-Warning: master.daniel.homenet: Host localhost [127.0.0.1] claimed to be master Date: Sat, 23 Jun 2001 21:23:55 +0200 From: Daniel Elstner To: Owen Taylor Cc: gtk-list@gnome.org, gtk-devel-list@gtk.org Subject: Re: [PATCH] glib.h + gcc-3.0 + -pedantic Message-Id: <20010623212355.0a90bb46.daniel@master.daniel.homenet> In-Reply-To: References: <20010623191550.67f9183e.daniel@master.daniel.homenet> X-Mailer: Sylpheed version 0.5.0pre1 (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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 23 Jun 2001 13:47:25 -0400 Owen Taylor wrote: > A possibly better way of going about this that was suggested > is to use: > > #pragma GCC system_header > > For the glib header files - this turns off a lot of warnings. > After all, GLib _does_ turn off the GCC extensions when > compiling on something other than GCC, so there's no > point in being told about them when compiling some project > that uses GLib. > > You might want to experiment with this. That was also suggested by a gcc team member. I just thought you wouldn't like entirely disabling any warnings. But you're right - glib is mature enough to use this approach. Regards, --Daniel From popeofpop@softhome.net Sun Jun 24 09:30:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by mail.gnome.org (Postfix) with SMTP id B2C762CF0B for ; Sun, 24 Jun 2001 09:30:34 -0400 (EDT) Received: (qmail 27751 invoked by uid 417); 24 Jun 2001 13:33:51 -0000 Received: from port101.ds1-vbr.adsl.cybercity.dk (HELO livingroom) (212.242.58.40) by i-softhome-tango with SMTP; 24 Jun 2001 13:33:51 -0000 From: "Chris Hansen" To: Subject: Icons Date: Sun, 24 Jun 2001 15:31:18 +0200 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 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to put an icon in the titlebar of the window with GTk? I'm working on a Windows machine and I know there aren't icons in some window managers on XFree, but Windows uses icons so I thought it could be done with GTk rather than Windows API. Best regards Chris Hansen From george@clipper.ens.fr Sun Jun 24 14:57:20 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id D9EBF2BEB8 for ; Sun, 24 Jun 2001 14:57:19 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id OAA12330 for ; Sun, 24 Jun 2001 14:57:19 -0400 Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5OIuCb08259 for ; Sun, 24 Jun 2001 14:56:12 -0400 Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f5OIvHp53635 for ; Sun, 24 Jun 2001 20:57:17 +0200 (CEST) Received: from (george@localhost) by clipper.ens.fr (8.9.2/jb-1.1) Date: Sun, 24 Jun 2001 20:57:17 +0200 From: Nicolas George To: gtk-list@redhat.com Subject: gdk-pixbuf: partial image loading Message-ID: <20010624205717.A9739@clipper.ens.fr> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible, with gdk pixbuf, tu partially load an image? By that, I mean to get a pixbuf with only a sub-image or a shrinked image, without loading all in memory. This would be really useful in order to load parts of huges high resolution images, or scaled to fit on the screen, without filling the memory. From rbultje@ronald.bitfreak.net Sun Jun 24 16:19:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id E3EC62E07C for ; Sun, 24 Jun 2001 16:14:43 -0400 (EDT) Received: from [192.168.0.126] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5OKuuF05538 for ; Sun, 24 Jun 2001 22:56:56 +0200 (CEST) Subject: render texts to a buffer/drawable From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 24 Jun 2001 22:14:32 +0200 Message-Id: <993413682.26475.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi people, does Gtk or any other lib offer the option to render texts to a drawable or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it would work something like some_function(char *font, char *text) (font being the font as provided by the gtk-font-selection-dialog (-courier-new-bla--bla-*-*-*-*-) and text being the string to be rendered) and render the text to a gdk-pixbuf :-) I tried gimp until now but I didn't get any further than #include and add `gimp-config --cflags` to my LDFLAGS, after which the application complained about a missing reference to PLUG_IN_INFO (although I did have a GimpPlugInInfo PLUG_IN_INFO = { NULL, NULL, NULL, NULL}; in my application) so I'm probably doing something wrong there... Anyway, any help on going from GtkFontSelectionDialog to a text rendered in a GdkPixbuf would be appreciated. Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From dermot@glade.perl.connectfree.co.uk Sat Jun 23 11:52:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 5DD862BAB6; Sat, 23 Jun 2001 11:52:18 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id LAA06514; Sat, 23 Jun 2001 11:52:18 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5NFp9b02505; Sat, 23 Jun 2001 11:51:09 -0400 Received: from higrade.botwrights.farm (ppp-1-157.cvx1.telinco.net [212.1.136.157]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id RAA04102; Sat, 23 Jun 2001 17:25:31 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id QAA01200; Sat, 23 Jun 2001 16:51:58 +0100 Message-ID: <3B34B95E.9FDB558B@glade.perl.connectfree.co.uk> Date: Sat, 23 Jun 2001 16:44:30 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@redhat.com" , "gtk-perl-list@redhat.com" , glade-devel Subject: ANNOUNCE: Glade-Perl 0.59 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, This is especially for all perl 5.6 users - I am sorry if you had problems with a missing DESTROY() sub. I have just uploaded perl module Glade-Perl-0.59.tar.gz to CPAN ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but please your local mirror (see ftp://ftp.cpan.org/pub/perl/CPAN/MIRRORED.BY) Until it is mirrored around the world it is available on my website. http://www.glade.perl.connectfree.co.uk/index.html Glade-Perl generates perl source code from a Glade file - Glade is Damon Chaplin's beautiful Gtk+/Gnome UI builder. Glade-Perl can display the UI as it is built and/or generate source code and it can be called directly from Glade's 'Build' button. It can also generate code to use libglade if you prefer. Regards, Dermot snipped from the Changelog: ------------------------------------------------------------ Wed Jun 20 14:48:25 BST 2001 Dermot Musgrove - Version 0.59 - All modules now have empty DESTROY() sub as perl 5.6 demands. PerlRun->AUTOLOAD() also caters for (ignores) AUTOLOADED DESTROY() call. PerlRun perldoc corrected to lose warnings in pod2man. Thanks to Jim Edwards for the super-fast reports and patches. - PerlRun->lookup_widget() is a new method that accesses a window or a form's widget by name. It prints an error if the widget does not exist. e.g. my $widget = $window->lookup_widget('clist1'); OR my $form = $window->FORM; # or use $form in signal handlers my $widget = $form->lookup_widget('clist1'); - Glade-Perl will now create skeleton documentation files if they do not already exist. These default to directory 'Documentation' files called COPYING, Changelog, FAQ, INSTALL, NEWS, README, ROADMAP and TODO If you don't want to generate the doc files add a line to site or project options file: 0 - Glade-Perl will now create skeleton distribution files if they do not already exist. These default to - Makefile.PL, MANIFEST.SKIP, Project.spec and test.pl - so you should be able to call: 'perl Makefile.PL; make manifest; make dist;' and then either 'rpm -ta Project-0.01.tar.gz' to build a RPM or the normal perl methods of 'make test' and 'make install'. This is all at a very early stage and will probably fail in many cases but you should, at least, have some files to edit :) If you don't want to generate the dist files add a line to site or project options file: 0 ------------------------------------------------------------ From uckelman@scylla.ellipsis.cx Mon Jun 25 01:15:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from scylla.ellipsis.cx (unknown [64.109.29.58]) by mail.gnome.org (Postfix) with SMTP id A95D92BB38 for ; Mon, 25 Jun 2001 01:15:51 -0400 (EDT) Received: (qmail 13911 invoked by uid 500); 25 Jun 2001 05:15:51 -0000 Message-ID: <20010625051551.13909.qmail@scylla.ellipsis.cx> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: copying pixmaps From: Joel Uckelman Reply-To: uckelman@nomic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 25 Jun 2001 00:15:51 -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I writing something for which I need two separate copies of the same GdkPixmap--one of which will be drawn to, while the other is used to restore areas of the first to their initial state. Since the XPMs I'm loading to make GdkPixmaps have the potential to be rather large, it would be nice if I could load them once and then make copies in memory instead of calling gdk_pixmap_create_from_xpm twice. I presume there is some simple way to do this, but I don't see any copy functions. Is there a way to get the dimensions of a GdkPixmap after creating it from an arbitrarily-sized XPM? If I could do that my problem would be solved, since I could create a blank GdkPixmap of the appropriate size and use gdk_draw_pixmap to copy from one to the other. Any help would be greatly appreciated. -- J. From backes@hlrwm.rhrk.uni-kl.de Mon Jun 25 01:53:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 766CA2BE1F; Mon, 25 Jun 2001 01:53:33 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id BAA17503; Mon, 25 Jun 2001 01:53:32 -0400 Received: from mail.uni-kl.de (mail.uni-kl.de [131.246.137.52]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5P5qQb10515; Mon, 25 Jun 2001 01:52:27 -0400 Received: from hlrwm.rhrk.uni-kl.de (IDENT:root@hlrwm.rhrk.uni-kl.de [131.246.91.18]) by mail.uni-kl.de (8.11.0/8.11.0) with ESMTP id f5P5rJC28224; Mon, 25 Jun 2001 07:53:19 +0200 (MET DST) Received: (from backes@localhost) by hlrwm.rhrk.uni-kl.de (8.11.0/8.11.0) id f5P5rJO21223; Mon, 25 Jun 2001 07:53:19 +0200 Message-ID: X-Mailer: XFMail 1.5.0 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3B34B95E.9FDB558B@glade.perl.connectfree.co.uk> Date: Mon, 25 Jun 2001 07:53:19 +0200 (CEST) X-Face: B^`ajbarE`qo`-u#R^.)e]6sO?X)FpoEm\>*T:H~b&S;U/h$2>my}Otw5$+BDxh}t0TGU?> O8Bg0/jQW@P"eyp}2UMkA!lMX2QmrZYW\F,OpP{/s{lA5aG'0LRc*>n"HM@#M~r8Ub9yV"0$^i~hKq P-d7Vz;y7FPh{XfvuQA]k&X+CDlg"*Y~{x`}U7Q:;l?U8C,K\-GR~>||pI/R+HBWyaCz1Tx]5 Reply-To: Joachim Backes Organization: University of Kaiserslautern, Computer Center [Supercomputing division] From: Joachim Backes To: Dermot Musgrove Subject: RE: ANNOUNCE: Glade-Perl 0.59 Cc: glade-devel , "gtk-perl-list@redhat.com" , "gtk-list@redhat.com" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 23-Jun-2001 Dermot Musgrove wrote: > Hi all, > > This is especially for all perl 5.6 users - I am sorry if you had > problems with a missing DESTROY() sub. > > I have just uploaded perl module Glade-Perl-0.59.tar.gz to CPAN > ftp://ftp.cpan.org/CPAN/modules/by-module/Glade/ but please Hi, Dermot, address seems to be : ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Glade/ ^^^ ftp> cd /CPAN/modules/by-module/Glade/ 550 CPAN/modules/by-module/Glade/: No such file or directory ftp> cd /pub/CPAN/modules/by-module/Glade/ 250 CWD command successful. Regards Joachim Backes -- Joachim Backes | Univ. of Kaiserslautern Computer Center, High Performance Computing | Phone: +49-631-205-2438 D-67653 Kaiserslautern, PO Box 3049, Germany | Fax: +49-631-205-3056 ---------------------------------------------+------------------------ WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html From hoshem@mel.comcen.com.au Mon Jun 25 06:25:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id A9FE82CF34 for ; Mon, 25 Jun 2001 06:25:56 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id GAA18548 for ; Mon, 25 Jun 2001 06:25:56 -0400 Received: from BuffyRox.localdomain (modem031.mnementh.comcen.com.au [203.23.238.90]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5PAOlb24792 for ; Mon, 25 Jun 2001 06:24:48 -0400 Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5PAg8N02457; Mon, 25 Jun 2001 20:42:08 +1000 Date: Mon, 25 Jun 2001 20:42:07 +1000 From: Helmethead To: Nicolas George Cc: gtk-list@redhat.com Subject: Re: gdk-pixbuf: partial image loading Message-ID: <20010625204207.A2445@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Nicolas George , gtk-list@redhat.com References: <20010624205717.A9739@clipper.ens.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010624205717.A9739@clipper.ens.fr>; from nicolas.george@ens.fr on Sun, Jun 24, 2001 at 08:57:17PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sun, Jun 24, 2001 at 08:57:17PM +0200, Nicolas George wrote: > Is it possible, with gdk pixbuf, tu partially load an image? By that, I > mean to get a pixbuf with only a sub-image or a shrinked image, without > loading all in memory. This would be really useful in order to load parts > of huges high resolution images, or scaled to fit on the screen, without > filling the memory. You would have to load the whole image in memory, then scale or crop it as you like (gdk-pixbuf comes with functions for this). From hoshem@mel.comcen.com.au Mon Jun 25 06:48:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from BuffyRox.localdomain (modem031.mnementh.comcen.com.au [203.23.238.90]) by mail.gnome.org (Postfix) with ESMTP id F2F1E2BAB6 for ; Mon, 25 Jun 2001 06:48:15 -0400 (EDT) Received: (from helmet@localhost) by BuffyRox.localdomain (8.11.0/8.11.0) id f5PB4UF02544; Mon, 25 Jun 2001 21:04:30 +1000 Date: Mon, 25 Jun 2001 21:04:30 +1000 From: Helmethead To: Joel Uckelman Cc: gtk-list@gnome.org Subject: Re: copying pixmaps Message-ID: <20010625210430.A2463@BuffyRox.localdomain> Mail-Followup-To: Helmethead , Joel Uckelman , gtk-list@gnome.org References: <20010625051551.13909.qmail@scylla.ellipsis.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010625051551.13909.qmail@scylla.ellipsis.cx>; from uckelman@nomic.net on Mon, Jun 25, 2001 at 12:15:51AM -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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, Jun 25, 2001 at 12:15:51AM -0500, Joel Uckelman wrote: > Hi, > > I writing something for which I need two separate copies of the same > GdkPixmap--one of which will be drawn to, while the other is used to > restore areas of the first to their initial state. Since the XPMs I'm > loading to make GdkPixmaps have the potential to be rather large, it would > be nice if I could load them once and then make copies in memory instead of > calling gdk_pixmap_create_from_xpm twice. I presume there is some simple > way to do this, but I don't see any copy functions. > > Is there a way to get the dimensions of a GdkPixmap after creating it from > an arbitrarily-sized XPM? If I could do that my problem would be solved, > since I could create a blank GdkPixmap of the appropriate size and use > gdk_draw_pixmap to copy from one to the other. > > Any help would be greatly appreciated. You can pass -1 to the width and height arguments of gdk_draw_pixmap, and the entire pixmap will be copied From craig.emery@3glab.com Mon Jun 25 06:50:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 8E6602DEEF for ; Mon, 25 Jun 2001 06:50:16 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15ETwb-0002Oe-00 for gtk-list@gnome.org; Mon, 25 Jun 2001 11:50:13 +0100 Message-ID: <3B371746.4050506@3glab.com> Date: Mon, 25 Jun 2001 11:49:42 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010624 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: A Modal Window References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15ETwb-0002Oe-00*OV0fWc8N5go* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Esteban Quijano Vincenzi wrote: > Hi, there are two ways for doing this: > 1) Call gtk_main() again so you enter in a second event loop. When you > press an "ok" or "cancel" button just call gtk_main_quit(). You will > return to the main event loop. > > 2) Do something like this: > > while (exit_modal != TRUE) gtk_main_iteration(); > > and in your callback function do exit_modal = TRUE somewhere > > Esteban Quijano Vincenzi. > This is good enough but not great. I understand that other windows in your application can still be raised on top of your modal window. I asked about this (kinda) recently and Havoc pointed me at gtk_grab_add () / gtk_grab_remove ()which you should call AS WELL as gtk_main (). See the FAQ at http://www.gtk.org/faq/#AEN556 for more info. Craig. From john.cupitt@ng-london.org.uk Mon Jun 25 07:14:21 2001 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 1AA0F2DBEE for ; Mon, 25 Jun 2001 07:14:21 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN9JQ; Mon, 25 Jun 2001 12:14:18 +0100 Message-ID: <3B371BB8.5453B91A@ng-london.org.uk> Date: Mon, 25 Jun 2001 12:08:40 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ronald Bultje Cc: GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje wrote: > does Gtk or any other lib offer the option to render texts to a drawable > or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it > would work something like some_function(char *font, char *text) (font > being the font as provided by the gtk-font-selection-dialog > (-courier-new-bla--bla-*-*-*-*-) and text being the string to be > rendered) and render the text to a gdk-pixbuf :-) Hi Ronald, you can do this with a bunch of gdk: - gdk_font_load() the font you want - gdk_text_extents() to work out how big your string will be (in pixels) - gdk_pixmap_new() to make a pixmap large enough to hold rendered text - make a black/white GC to render with - clear the pixmap to the background colour - gdk_draw_string() to draw the text into the pixmap - gdk_image_get() to read the image from the server as a GdkImage* - malloc yor RGB buffer, and unpack the GdkImage into that About 4 pages of code :-( I believe this is what gimp does (or it did last time I looked). I'm sure you can link against freetype or something and do the rendering on the client side, but I've not tried that. John From john.cupitt@ng-london.org.uk Mon Jun 25 07:29:24 2001 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 C51662DD79 for ; Mon, 25 Jun 2001 07:29:23 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQN9LD; Mon, 25 Jun 2001 12:29:22 +0100 Message-ID: <3B371F40.FC078870@ng-london.org.uk> Date: Mon, 25 Jun 2001 12:23:44 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: Signal help needed (gtk_signal_new?) References: <3B3284A8.1133DCE3@virginia.edu> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "David J. Topper" wrote: > But even if I capture the relevant info for "changed" I can't use it to > create a new signal. The arguments for gtk_signal_new() are elusive to > me. I'd basically like to create something very similar to the > "value_changed" and "changed" signals, named "activate." It would be > the equivalent of a pulse that gets sent whenever the value changes from > 0-1 or 1-0. Hi David, take a look at the source for gtkadjustment, you can copy out the bits you need. You need to: - make a new class, inheriting from GtkData - have a member for your signal - haev a static array of signal ids in your implementation - build the signal in _class_init with gtk_signal_new() - attach the signal to your class with gtk_object_class_add_signals() - provide a function which emits your signal from an instance John From celston@corky.sapien.net Mon Jun 25 09:30:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from corky.sapien.net (corky.sapien.net [208.224.15.95]) by mail.gnome.org (Postfix) with ESMTP id CBAB72DC4E for ; Mon, 25 Jun 2001 09:30:54 -0400 (EDT) Received: from localhost (celston@localhost) by corky.sapien.net (8.11.2/8.11.2) with ESMTP id f5PDUrR08194 for ; Mon, 25 Jun 2001 09:30:53 -0400 Date: Mon, 25 Jun 2001 09:30:53 -0400 (EDT) From: Chris Elston To: Subject: Re: First post with a Question... In-Reply-To: <20010622141436.1a6c5e8c.golubenkoj@columbiafunds.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sorry, still very new at working with Gtk. What do you mean by bind? What I'm doing currently is using the "signal_connect" function to the "button_press_event". I was originally using the signal_connect to the "select" event. I have recently commented that out and am using the button_press_event. Still no progress. There isn't a way to just "turn it off"? Any more help? Chris On Fri, 22 Jun 2001, John Golubenko wrote: > Do you think you can bind this button to do whatever you want? This maybe a solution. > > On Fri, 22 Jun 2001 16:59:01 -0400 (EDT) > "Chris Elston" wrote: > > > Hey, my name is Chris. This is my first post to this list so be gentle. > > :) > > > > I'm working with Gtk-Perl but I'm pretty sure this idea applies to all > > versions of Gtk. I'm trying to design a GTree stucture so that if I right > > click a tree item, a menu comes up. I'm able to get the menu to come up > > easy, but the problem is that Gtk (at least in perl) has mapped the middle > > mouse button to expanding subtrees and the right to collapsing them. I > > want to be able to turn off this added "feature" so that when a subtree is > > right clicked, only my menu comes up. Any suggestions? > > > > -- > > > > Chris Elston > > celston@corky.sapien.net > > --------------------------------- > > Nucleus Communications > > Web Script Programmer > > > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. > > -- Chris Elston celston@corky.sapien.net --------------------------------- Nucleus Communications Web Script Programmer From otaylor@redhat.com Mon Jun 25 10:23:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 1108F2DDE3 for ; Mon, 25 Jun 2001 10:23:46 -0400 (EDT) Received: from fresnel.labs.redhat.com (IDENT:mail@fresnel.labs.redhat.com [207.175.42.57]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id KAA32708 for ; Mon, 25 Jun 2001 10:23:45 -0400 Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id ED5C624231B; Mon, 25 Jun 2001 10:23:44 -0400 (EDT) To: Nicolas George Cc: gtk-list@redhat.com Subject: Re: gdk-pixbuf: partial image loading References: <20010624205717.A9739@clipper.ens.fr> From: Owen Taylor Date: 25 Jun 2001 10:23:44 -0400 In-Reply-To: Nicolas George's message of "Sun, 24 Jun 2001 20:57:17 +0200" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Nicolas George writes: > Is it possible, with gdk pixbuf, tu partially load an image? By that, I > mean to get a pixbuf with only a sub-image or a shrinked image, without > loading all in memory. This would be really useful in order to load parts > of huges high resolution images, or scaled to fit on the screen, without > filling the memory. No, not possible currently. It's in bugzilla as a RFE: http://bugzilla.gnome.org/show_bug.cgi?id=53726 Whether this is useful or not depends a lot on the format - for a lot of formats, this doesn't buy you anything, but for, say, thumbnailing JPEGs, it can be a big win. Regards, Owen From hp@redhat.com Mon Jun 25 10:26:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id BCA112E42C for ; Mon, 25 Jun 2001 10:26:39 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5PEQWN21639; Mon, 25 Jun 2001 10:26:32 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: uckelman@nomic.net Cc: gtk-list@gnome.org Subject: Re: copying pixmaps References: <20010625051551.13909.qmail@scylla.ellipsis.cx> From: Havoc Pennington Date: 25 Jun 2001 10:26:32 -0400 In-Reply-To: Joel Uckelman's message of "Mon, 25 Jun 2001 00:15:51 -0500" Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Joel Uckelman writes: > Is there a way to get the dimensions of a GdkPixmap after creating it from > an arbitrarily-sized XPM? If I could do that my problem would be solved, > since I could create a blank GdkPixmap of the appropriate size and use > gdk_draw_pixmap to copy from one to the other. gdk_drawable_get_size(). The way you copy a pixmap is to just draw it to another pixmap, as you say. Havoc From zb197@yahoo.com Mon Jun 25 13:20:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11605.mail.yahoo.com (web11605.mail.yahoo.com [216.136.172.57]) by mail.gnome.org (Postfix) with SMTP id 369412C90D for ; Mon, 25 Jun 2001 13:20:06 -0400 (EDT) Message-ID: <20010625172005.58660.qmail@web11605.mail.yahoo.com> Received: from [65.200.176.160] by web11605.mail.yahoo.com; Mon, 25 Jun 2001 10:20:05 PDT Date: Mon, 25 Jun 2001 10:20:05 -0700 (PDT) From: ZB Subject: writing to GUI from 2+ threads 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am trying to write to the GUI from more than one thread and it works with LINUX but not win32. I made a stub program by modifying the threaded hello world program (http://www.gtk.org/faq/#AEN462) from the gtk site. The program creates a window and then starts a thread and i modified the thread to show a second window. In LINUX, it works great. In win32.. the second window freezes halfway shown and the app gets stuck. (for win32.. i am using the DLLs posted 12/26 at http://user.sgic.fi/~tml/gimp/win32/downloads.html) I also downloaded the 1.3.6 GTK and compiled the latest DLLs for windows. The same problem still persists and the window remains half shown. I am always using gdk_thread_enter and leave within my thread. My question is how do you write to the GUI from more than one thread? I thought that the gdk_thread_enter and leave should do the trick. Is this a bug? I did a little reseach in the forums and found that you can call the gtk_add_timeout function to get the window to show. Is this the best way? Is there something cleaner? I can post my stub if that will help. I also tried running a backtrace from gdb when it froze and it told me that it could access the memory when i typed 'bt'. Thanks, Zev. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From rbultje@ronald.bitfreak.net Mon Jun 25 17:28:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id B44BA2BA83 for ; Mon, 25 Jun 2001 17:28:39 -0400 (EDT) Received: from [192.168.0.98] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5PMAhF19656; Tue, 26 Jun 2001 00:10:44 +0200 (CEST) Subject: Re: render texts to a buffer/drawable From: Ronald Bultje To: John Cupitt Cc: GTK Mailing List In-Reply-To: <3B371BB8.5453B91A@ng-london.org.uk> References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Jun 2001 23:28:38 +0200 Message-Id: <993504519.1645.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi John, On 25 Jun 2001 12:08:40 +0100, John Cupitt wrote: > - gdk_font_load() the font you want > - gdk_text_extents() to work out how big your string will be (in pixels) > - gdk_pixmap_new() to make a pixmap large enough to hold rendered text > - make a black/white GC to render with > - clear the pixmap to the background colour > - gdk_draw_string() to draw the text into the pixmap > - gdk_image_get() to read the image from the server as a GdkImage* > - malloc yor RGB buffer, and unpack the GdkImage into that Thanks for the tips, I feel like I'm almost there. Basically, I do see the text, there's just two problem, the color of the text is changing all the time and I'm not sure how to get the background transparent. > About 4 pages of code :-( I believe this is what gimp does (or it did > last time I looked). Not that bad, actually.... I'll give the code as I got it now: GdkColor color; GdkGC *gc; GdkPixmap *pixmap; GdkPixbuf *image; gdouble colors[3]; int w,h,x,y; GdkFont *font; guchar *data; char *text; guint32 pixel; //some initializing [...] color.red = (guint16)(options->colors[0]*65535.0); color.green = (guint16)(options->colors[1]*65535.0); color.blue = (guint16)(options->colors[2]*65535.0); font = gdk_font_load(options->font); w = gdk_text_width(font, text, strlen(text)); h = gdk_text_height(font, text, strlen(text)); pixmap = gdk_pixmap_new(NULL, w, h, 24); gc = gdk_gc_new(pixmap); gdk_gc_set_foreground(gc, &color); gdk_draw_string(pixmap, font, gc, 0, h, text); image = gdk_image_get(pixmap, 0,0,w,h); data = malloc(sizeof(guchar)*w*h*4); for (y=0;yimage = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, 1, 8, w, h, w*4, NULL, NULL); (and here I unref it all) The outcome pixbuf has an alpha of 255 everywhere because I'm not sure how to find out whether it should be transparent at that pixel or not. Second problem is, as I said, that the text of both the background (which makes sense because it's just a random data background) and the text changes everytime I create the pixmap. Is there an error in my "calculate-color-from-data"? And do you have an idea on how to see transparency? My idea is to read the background color (just do a gdk_draw_rectangle() with different colors) and if the background color matches the color in the GdkPixbuf, we have transparency - but maybe there's a better way? Anyway, thanks a lot for all the help for now, I'm almost there :-). Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From iainmf2000@yahoo.com Mon Jun 25 21:36:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web12505.mail.yahoo.com (web12505.mail.yahoo.com [216.136.173.197]) by mail.gnome.org (Postfix) with SMTP id 9F8FE2D46B for ; Mon, 25 Jun 2001 21:36:09 -0400 (EDT) Message-ID: <20010626013608.41493.qmail@web12505.mail.yahoo.com> Received: from [62.7.94.163] by web12505.mail.yahoo.com; Mon, 25 Jun 2001 18:36:08 PDT Date: Mon, 25 Jun 2001 18:36:08 -0700 (PDT) From: Iain Subject: configure on Win9x 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi. I'm trying to configure glib, but when I try to make it, it fails. When I look at the log for configure, I get the following error messages: configure:3741: checking for wctype.h configure:3748: C:/cygwin/bin/gcc -E conftest.c >/dev/null 2>conftest.out configure:3744: wctype.h: No such file or directory /cygdrive/c/glib/obj/configure:3886: undefined reference to `iswalnum' configure: In function `main': configure:5366: too many arguments to function `pthread_getspecific' configure: failed program was: #line 5363 "configure" configure:5426: warning: unused variable `tval' configure: failed program was: #line 5421 "configure" [end snippets] I have tried building with both cygwin and djgpp, and yes, I am using GNU make. Either there are errors in the configure file, or it won't compile with the two compilers I'm using. Why not? Thanks. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From hp@redhat.com Mon Jun 25 23:46:04 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 8788E2BAB4 for ; Mon, 25 Jun 2001 23:46:04 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5Q3jvo08654; Mon, 25 Jun 2001 23:45:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> From: Havoc Pennington Date: 25 Jun 2001 23:45:52 -0400 In-Reply-To: Ronald Bultje's message of "25 Jun 2001 23:28:38 +0200" Message-ID: Lines: 26 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > pixmap = gdk_pixmap_new(NULL, w, h, 24); Not sure if you are trying to be portable across machines, but this could easily fail, not all X servers have 24-bit. > for (y=0;y { > for (x=0;x { > pixel = gdk_image_get_pixel(image,x,y); > data[(y*w+x)*4] = pixel/(256^3); > data[(y*w+x)*4+1] = (pixel/(256^2))%256; > data[(y*w+x)*4+2] = (pixel/256)%(256^2); > data[(y*w+x)*4+3] = 255; > } > } Here you're assuming far more than you reasonably can about the image format. gdk_pixbuf_get_from_drawable() does this for you and handles all the image formats and bit depths. Havoc From paul@paulandjamie.com Tue Jun 26 00:06:31 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from usbizmap.com (unknown [198.145.120.15]) by mail.gnome.org (Postfix) with ESMTP id C4C562BAB1 for ; Tue, 26 Jun 2001 00:06:30 -0400 (EDT) Received: from production [63.165.229.33] by usbizmap.com [198.145.120.19] with SMTP (MDaemon.v3.5.0.R) for ; Mon, 25 Jun 2001 21:21:19 -0700 Message-ID: <000d01c0fdf5$9524b6c0$21e5a53f@production> From: "Paul Singleton" To: Subject: very basic question about glib Date: Mon, 25 Jun 2001 21:07:56 -0700 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.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-MDRemoteIP: 63.165.229.33 X-Return-Path: paul@paulandjamie.com X-MDaemon-Deliver-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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. As you'll soon see, I'm a newbie. I installed Caldera eDesktop 2.4 and I think it's really cool. Seeking to free myself from the grips of Microsoft, I'm trying to find Windows-equivalent tools for Linux. The first one was an ftp app. I found gFTP. gFTP uses gtk+ so I needed to install glib1.2.8 and gtk1.2.8. Sounded easy enough. Seeking to learn, I avoided the rpms and went for the source. I downloaded everything. I extracted each of the three archives into their own folders under home/paul/desktop and followed instructions: glib says to go into the directory, type './configure' then 'make' then 'make install' that was easy enough. But when I went to do the same for gtk, it said it couldn't find a new enough version of glib!!! Well that made me upset, cause I don't know my way around linux, and the instructions didn't work. [by the way I've gotten past all this by using rpms but I'm none the wiser] My question: how do i remove COMPLETELY an old version of glib (or anything else for that matter) so that I know I don't have two or more versions of a library on my system. For instance, I found that I could use ./configure --prefix=/usr/ and glib would be installed over the top of the old version in /usr/lib instead of usr/local/lib. When I tried that, it still didn't seem to work. That lead me to my question. If I knew where to wipe out libraries and where they are being pointed to, etc, I would feel much more comfortable. I'm quite capable in DOS and of course Windows, so new venture is exciting but frustrating. I thank you much for your help--- and patience. -=Paul =Paul From pbd@op.net Tue Jun 26 00:29:12 2001 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 E61242CEB5 for ; Tue, 26 Jun 2001 00:29:11 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-0f.ppp.op.net [209.152.206.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id AAA14047; Tue, 26 Jun 2001 00:29:03 -0400 (EDT) Message-Id: <200106260429.AAA14047@renoir.op.net> To: "Paul Singleton" Cc: gtk-list@gnome.org Subject: Re: very basic question about glib In-reply-to: Your message of "Mon, 25 Jun 2001 21:07:56 PDT." <000d01c0fdf5$9524b6c0$21e5a53f@production> Date: Tue, 26 Jun 2001 00:29:00 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >that was easy enough. But when I went to do the same for gtk, it said it >couldn't find a new enough version of glib!!! Well that made me upset, cause >I don't know my way around linux, and the instructions didn't work. What exactly was the error message you got when you tried this? --p From zoey@xenonbase.net Tue Jun 26 00:50:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from host31.hostingcheck.com (host31.hostingcheck.com [209.239.36.147]) by mail.gnome.org (Postfix) with ESMTP id AD1C42BB20 for ; Tue, 26 Jun 2001 00:50:05 -0400 (EDT) Received: from xenonbase.net (co3007127-a.thorn1.nsw.optushome.com.au [203.164.22.188]) by host31.hostingcheck.com (8.10.2/8.10.2) with ESMTP id f5Q4o4917699 for ; Tue, 26 Jun 2001 00:50:04 -0400 Message-ID: <3B390317.7E82B4DA@xenonbase.net> Date: Tue, 26 Jun 2001 14:48:07 -0700 From: Zoey X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@gnome.org" Subject: Diff versions? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I recently downloaded GTK and installed it - the library first and the other stuff second. However, it persists in telling me the library version is an earlier one to the one I just installed. Any suggestions on how to fix the conflict? (I'm running Corel linux) zoey@xenonbase.net From pranjal@lgsi.co.in Tue Jun 26 01:14:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from polaris.lgsi.co.in (unknown [202.54.13.206]) by mail.gnome.org (Postfix) with ESMTP id CEDD82CE3E for ; Tue, 26 Jun 2001 01:14:01 -0400 (EDT) Received: from pranjal ([202.54.13.195]) by polaris.lgsi.co.in (Netscape Messaging Server 4.15) with ESMTP id GFIUUT00.O70 for ; Tue, 26 Jun 2001 10:50:53 +0530 From: "Pranjal Saikia" To: Subject: Latest version of GTK+, GLIB and Pango !! Date: Tue, 26 Jun 2001 11:29:13 +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.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <20010626050002.04DCD2D368@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi !! I wanted to know the latest versions of GTK+, Glib and Pango. Actually I wanted to run my application with Frame Buffer enabled. Please help to proceed. Please let me know, the availability of these packages. Regards Pranjal From rwan@cs.mu.oz.au Tue Jun 26 01:20:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by mail.gnome.org (Postfix) with ESMTP id 6DC372DB86 for ; Tue, 26 Jun 2001 01:18:49 -0400 (EDT) Received: from vike.cs.mu.OZ.AU (postfix@vike.cs.mu.OZ.AU [128.250.36.73]) by mumnunah.cs.mu.OZ.AU with ESMTP id PAA25242; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 0C65375AA; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 0BB7AAC94; Tue, 26 Jun 2001 15:17:27 +1000 (EST) Date: Tue, 26 Jun 2001 15:17:27 +1000 (EST) From: Raymond Wan To: Pranjal Saikia Cc: gtk-list@gnome.org Subject: Re: Latest version of GTK+, GLIB and Pango !! 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, 26 Jun 2001, Pranjal Saikia wrote: > I wanted to know the latest versions of GTK+, Glib and Pango. Actually I > wanted to run my application with Frame Buffer enabled. Please help to > proceed. Please let me know, the availability of these packages. Hi, Take a look at: http://www.gtk.org/ for more information. In particular, take a look at: http://www.gtk.org/download/ to obtain the latest versions. You probably want the latest stable release of 1.2.X . Ray From deepika.sikri@wipro.com Tue Jun 26 02:36:59 2001 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 A182A2BB36 for ; Tue, 26 Jun 2001 02:36:55 -0400 (EDT) Received: from ecvwall11.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id f5QGuFj16098 for ; Tue, 26 Jun 2001 11:56:15 -0500 (GMT) Received: from deepika ([192.168.42.222]) by itplmail.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GFIY9Y00.QF7 for ; Tue, 26 Jun 2001 12:04:46 +0530 Message-ID: <008a01c0fda5$5ea3d400$de2aa8c0@wipro.com> From: "Deepika Sikri" To: Subject: Newbie question Date: Tue, 26 Jun 2001 00:03:45 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------InterScan_NT_MIME_Boundary" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 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. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----=_NextPart_000_0087_01C0FDD3.77EFB9A0" ------=_NextPart_000_0087_01C0FDD3.77EFB9A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm working on a project for making a UI in GTK+ and we need to display = the thumbnail images when URL's is specified.The screen shud be able = have multiple images(thumbnail). I'm a Newbie in this and just wanted to ask whether we can achieve it = thru GTK+ and pls if u can do send me pointers of where i can get info = for doing so which might be helpful.Any help will be appreciated ! Thanks, Deepika ------=_NextPart_000_0087_01C0FDD3.77EFB9A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
 
Hi,
 
 I'm working on a project for making a UI in = GTK+ and we=20 need to display the thumbnail images when URL's is specified.The screen = shud be=20 able have multiple images(thumbnail).
 
I'm a Newbie in this and just wanted to ask whether=20 we can achieve it thru GTK+ and pls if u can = do send me=20 pointers of where i can get info for doing so which might be helpful.Any = help=20 will be appreciated !
 
Thanks,
Deepika
 
 
------=_NextPart_000_0087_01C0FDD3.77EFB9A0-- --------------InterScan_NT_MIME_Boundary Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" The Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@wipro.com --------------InterScan_NT_MIME_Boundary-- From mseisdedos@cirsa.com Tue Jun 26 03:09:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntdes.cirsa.com (unknown [195.77.234.5]) by mail.gnome.org (Postfix) with SMTP id 8ED202CA7C for ; Tue, 26 Jun 2001 03:09:38 -0400 (EDT) Received: from srvexch.LOTERIAS ([192.168.189.181]) by ntdes.cirsa.com (Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) with SMTP id C1256A77.002746B5; Tue, 26 Jun 2001 09:09:00 +0200 Received: by srvexch with Internet Mail Service (5.5.2448.0) id ; Tue, 26 Jun 2001 09:09:53 +0200 Message-ID: <01294F3FC12BD41183BD00D0B7176A1D4D4839@srvexch> From: =?iso-8859-1?Q?Monserrat_Seisdedos_Nu=F1ez?= To: "gtk (E-mail)" Subject: RV: Undeliverable message Date: Tue, 26 Jun 2001 09:09:52 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Hello every body: > > a core always happens to me when i close a window. I have a > button, when i > click it, a new window with a canvas and a plot is opened, i > can click the > button every time i want, but if i close one of the windows > and then try to > click the button to get another plot i get a gnome coredump. > I think is something related to register different objects > with the same > name, or something like that. > Thanks in advance > > > From sven@gimp.org Tue Jun 26 03:12:55 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A3B.dip.t-dialin.net [217.80.26.59]) by mail.gnome.org (Postfix) with ESMTP id 33E432DF28 for ; Tue, 26 Jun 2001 03:12:55 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15EmuJ-0001Q3-00 for ; Tue, 26 Jun 2001 09:05:07 +0200 To: gtk-list@gnome.org Subject: Re: Latest version of GTK+, GLIB and Pango !! References: From: Sven Neumann Date: 26 Jun 2001 09:05:07 +0200 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Raymond Wan writes: > > I wanted to know the latest versions of GTK+, Glib and Pango. Actually I > > wanted to run my application with Frame Buffer enabled. Please help to > > proceed. Please let me know, the availability of these packages. > > Take a look at: http://www.gtk.org/ for more information. In > particular, take a look at: http://www.gtk.org/download/ to obtain the > latest versions. You probably want the latest stable release of 1.2.X . he/she probably wants to use the unstable branch since the intention is to use the framebuffer device. You will find the unstable version at the same place but beware that this is unstable development software. Another place to grab the latest packages from is http://www.directfb.org/ where you will find a hardware accelerated version of GTK+ for the Linux framebuffer. Of course the same warning applies here: this is unstable development stuff. You have been warned. Salut, Sven From brandon@ovnet.com Tue Jun 26 03:23:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from riker.mountain.net (smtp.mountain.net [66.118.64.15]) by mail.gnome.org (Postfix) with ESMTP id 7437E2BF1E for ; Tue, 26 Jun 2001 03:23:52 -0400 (EDT) Received: from ovnet.com ([198.77.41.116]) by riker.mountain.net (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id net; Tue, 26 Jun 2001 03:21:00 -0400 Message-ID: <3B38399C.66AA057B@ovnet.com> Date: Tue, 26 Jun 2001 03:28:28 -0400 From: Brandon McCombs X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: ru,en MIME-Version: 1.0 To: Paul Singleton Cc: gtk-list@gnome.org Subject: Re: very basic question about glib References: <000d01c0fdf5$9524b6c0$21e5a53f@production> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Singleton wrote: > > Hello. As you'll soon see, I'm a newbie. I installed Caldera eDesktop 2.4 > and I think it's really cool. > > Seeking to free myself from the grips of Microsoft, I'm trying to find > Windows-equivalent tools for Linux. The first one was an ftp app. I found > gFTP. > > gFTP uses gtk+ so I needed to install glib1.2.8 and gtk1.2.8. Sounded easy > enough. Seeking to learn, I avoided the rpms and went for the source. I > downloaded everything. > > I extracted each of the three archives into their own folders under > home/paul/desktop and followed instructions: > glib says to go into the directory, type './configure' then 'make' then > 'make install' > > that was easy enough. But when I went to do the same for gtk, it said it > couldn't find a new enough version of glib!!! Well that made me upset, cause > I don't know my way around linux, and the instructions didn't work. > run /sbin/ldconfig as root and then run ./configure for gtk From rbultje@ronald.bitfreak.net Tue Jun 26 03:30:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id 1E1412BD47 for ; Tue, 26 Jun 2001 03:30:09 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id JAA21064; Tue, 26 Jun 2001 09:30:05 +0200 (CEST) Message-ID: <3B3836A8.50305@ronald.bitfreak.net> Date: Tue, 26 Jun 2001 09:15:52 +0200 From: Ronald Bultje User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us MIME-Version: 1.0 To: Havoc Pennington Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: >Ronald Bultje writes: > >> pixmap = gdk_pixmap_new(NULL, w, h, 24); >> > >Not sure if you are trying to be portable across machines, but this >could easily fail, not all X servers have 24-bit. > Uhm... Never thought about that, really :-) Is there any way to get a 24-bit drawable form the server on non-24-bit X-servers? Is it possible at all to have 24-bit drawables on non-24-bit X-servers? Or would I haev to use something else (client-side) for this? (like freetype, as John suggested). >> for (y=0;y> { >> for (x=0;x> { >> pixel = gdk_image_get_pixel(image,x,y); >> data[(y*w+x)*4] = pixel/(256^3); >> data[(y*w+x)*4+1] = (pixel/(256^2))%256; >> data[(y*w+x)*4+2] = (pixel/256)%(256^2); >> data[(y*w+x)*4+3] = 255; >> } >> } >> > >Here you're assuming far more than you reasonably can about the image >format. > >gdk_pixbuf_get_from_drawable() does this for you and handles all the >image formats and bit depths. > The problem I encountered with gdk_pixbuf_from_drawable is that it needed a colormap. However, trying to get a colormap from the pixmap resulted in an error that it could not get a colormap from a pixmap.... Or should I use gdk_colormap_get_system() (which could be different from the colormap of the pixmap...)? Regards, Ronald From switk@yahoo.com Tue Jun 26 06:14:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx03.cluster1.charter.net (dc-mx03.cluster0.hsacorp.net [209.225.8.13]) by mail.gnome.org (Postfix) with ESMTP id 0D5192C858 for ; Tue, 26 Jun 2001 06:14:21 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx03.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 5709764; Tue, 26 Jun 2001 06:20:28 -0400 Subject: Re: very basic question about glib From: Stephen Witkop To: Paul Singleton Cc: gtk-list@gnome.org In-Reply-To: <000d01c0fdf5$9524b6c0$21e5a53f@production> References: <000d01c0fdf5$9524b6c0$21e5a53f@production> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 26 Jun 2001 06:14:16 -0400 Message-Id: <993550460.816.1.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 25 Jun 2001 21:07:56 -0700, Paul Singleton wrote: > > that was easy enough. But when I went to do the same for gtk, it said it > couldn't find a new enough version of glib!!! Well that made me upset, cause > I don't know my way around linux, and the instructions didn't work. > > [by the way I've gotten past all this by using rpms but I'm none the wiser] > > My question: how do i remove COMPLETELY an old version of glib (or anything > else for that matter) so that I know I don't have two or more versions of a > library on my system. For instance, I found that I could use > ./configure --prefix=/usr/ and glib would be installed over the top of the > old version in /usr/lib instead of usr/local/lib. When I tried that, it > still didn't seem to work. That lead me to my question. > You should remove the old rpm packages for gtk+ and glib before you build the new ones. The rpms that Caldera packages might put things in different places than a 'make install' after configuring for '--prefix=/usr', most likely the glib-config and gtk-config scripts. Stephen From wilhelmi@ira.uka.de Tue Jun 26 06:29:05 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from iraun1.uka.de (iraun1.uka.de [129.13.10.90]) by mail.gnome.org (Postfix) with ESMTP id 217912E52C for ; Tue, 26 Jun 2001 06:29:05 -0400 (EDT) Received: from i80fs2.ira.uka.de by iraun1 (PP) with ESMTP; Tue, 26 Jun 2001 12:22:46 +0200 Received: from ira.uka.de (actually i81pc4) by i8fs1 (PP) with ESMTP; Tue, 26 Jun 2001 12:22:54 +0200 Message-ID: <3B386274.C0CD993B@ira.uka.de> Date: Tue, 26 Jun 2001 12:22:44 +0200 From: Sebastian Wilhelmi Organization: IRF Uni Karlsruhe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17 i586) X-Accept-Language: en MIME-Version: 1.0 To: ZB Cc: gtk-list@gnome.org Subject: Re: writing to GUI from 2+ threads References: <20010625172005.58660.qmail@web11605.mail.yahoo.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > I am trying to write to the GUI from more than one > thread and it works with LINUX but not win32. I made a > stub program by modifying the threaded hello world > program (http://www.gtk.org/faq/#AEN462) from the gtk > site. The program creates a window and then starts a > thread and i modified the thread to show a second > window. In LINUX, it works great. In win32.. the > second window freezes halfway shown and the app gets > stuck. > (for win32.. i am using the DLLs posted 12/26 at > http://user.sgic.fi/~tml/gimp/win32/downloads.html) > I also downloaded the 1.3.6 GTK and compiled the > latest DLLs for windows. The same problem still > persists and the window remains half shown. > I am always using gdk_thread_enter and leave within my > thread. There might be a deadlock in GTK+ for win32. You can find out by compiling the test program with -DG_ERRORCHECK_MUTEXES. If that really confirms, that there is a deadlock, I would also compile GLib and GTK+ with -DG_ERRORCHECK_MUTEXES to find out where that deadlock is. Bye, Sebastian -- Sebastian Wilhelmi mailto:wilhelmi@ira.uka.de http://goethe.ira.uka.de/~wilhelmi From andrej.prsa@guest.arnes.si Tue Jun 26 07:36:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from razor.arnes.si (razor.arnes.si [193.2.1.80]) by mail.gnome.org (Postfix) with ESMTP id 2C4612D31A for ; Tue, 26 Jun 2001 07:36:58 -0400 (EDT) Received: from arnes.si (ar10-169i.dial-up.arnes.si [194.249.12.169]) by razor.arnes.si (Postfix) with SMTP id 35EBBE5F5; Tue, 26 Jun 2001 13:34:04 +0200 (MET DST) Date: Tue, 26 Jun 2001 13:36:00 +0200 From: Andrej Prsa To: "Paul Singleton" Cc: gtk-list@gnome.org Subject: Re: very basic question about glib Message-Id: <20010626133600.6366e238.andrej.prsa@guest.arnes.si> In-Reply-To: <000d01c0fdf5$9524b6c0$21e5a53f@production> References: <000d01c0fdf5$9524b6c0$21e5a53f@production> Organization: University of Astrophysics X-Mailer: Sylpheed version 0.4.99 (GTK+ 1.2.9; 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello! > My question: how do i remove COMPLETELY an old version of glib (or anything > else for that matter) so that I know I don't have two or more versions of a > library on my system. If you installed it from tarball (.tar.gz), you should type "make clean" to clear the package from installed directory, or "make distclean" to delete everything except the source (all .o files, executables, ...). Afterwards you can make them again by "make" and install them by "make install". If you installed the package from rpm (eg. rpm -Uvh rpm-name.rpm), you may query it for its name with "rpm -q rpm_name" (eg. rpm -q gtk+) and delete it with "rpm -e rpm_name (eg. rpm -e gtk+). That does the trick thoroughly. ;) > If I knew where to wipe out libraries and where they are being pointed to, > etc, I would feel much more comfortable. I'm quite capable in DOS and of > course Windows, so new venture is exciting but frustrating. Use /sbin/ldconfig. Bye! Andrej From john.cupitt@ng-london.org.uk Tue Jun 26 07:48:30 2001 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 83D782BD08 for ; Tue, 26 Jun 2001 07:48:30 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M5SQ3ALW; Tue, 26 Jun 2001 12:48:29 +0100 Message-ID: <3B38753A.5DAF5550@ng-london.org.uk> Date: Tue, 26 Jun 2001 12:42:50 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ronald Bultje Cc: GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ronald, Ronald Bultje wrote: > color.red = (guint16)(options->colors[0]*65535.0); > color.green = (guint16)(options->colors[1]*65535.0); > color.blue = (guint16)(options->colors[2]*65535.0); In my app, I use a 1 bit pixmap (bitmap), since every server supports that (and there's less data to copy from the server to the client). Just use 0x0 for the background, and 0x1 for the foreground. > w = gdk_text_width(font, text, strlen(text)); > h = gdk_text_height(font, text, strlen(text)); I use text_extents, I think it's a little quicker. > pixmap = gdk_pixmap_new(NULL, w, h, 24); You can bitdepth 1 here I think. > gc = gdk_gc_new(pixmap); > gdk_gc_set_foreground(gc, &color); > gdk_draw_string(pixmap, font, gc, 0, h, text); I think you need to clear the background before you render the text ... draw a filled rectangle in the background colour. > image = gdk_image_get(pixmap, 0,0,w,h); > data = malloc(sizeof(guchar)*w*h*4); > > for (y=0;y { > for (x=0;x { > pixel = gdk_image_get_pixel(image,x,y); > data[(y*w+x)*4] = pixel/(256^3); > data[(y*w+x)*4+1] = (pixel/(256^2))%256; > data[(y*w+x)*4+2] = (pixel/256)%(256^2); > data[(y*w+x)*4+3] = 255; > } > } I think this will be slow and unreliable :-( For 1 bit XImages, you can unpack yourself pretty easily (this is Xlib, you'll need to change the names for gdk): -- static void unpack_image( XImage *xim, unsigned char *msk ) { int x, y, b, i; unsigned char *p, q; for( i = 0, y = 0; y < xim->height; y++ ) { p = (unsigned char *) xim->data + y * xim->bytes_per_line; q = *p++; for( b = 0, x = 0; x < xim->width; x++, b++, i++ ) { if( b == 8 ) { b = 0; q = *p++; } if( xim->bitmap_bit_order == LSBFirst ) { if( q & 0x1 ) msk[i] = 255; else msk[i] = 0; q = q >> 1; } else { if( q & 0x80 ) msk[i] = 255; else msk[i] = 0; q = q << 1; } } } } -- I'm sure there are things to handle these conversions for you in the newer pixbuf libraries ... I hacked this a while ago. Something else you might consider is anti-aliasing ... gimp 1.1 asks for a font twice the size required, then does a 2x2 block average. Not the best way to anti-alias, but very easy, and it does look better. I guess you should consider using XRender really (is this wrapped by gdk yet? not sure). Good luck, John From timo.savola@iki.fi Sun Jun 24 18:14:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp-2.hut.fi (smtp-2.hut.fi [130.233.228.92]) by mail.gnome.org (Postfix) with ESMTP id 93D742BC88 for ; Sun, 24 Jun 2001 18:14:11 -0400 (EDT) Received: from smtp.hut.fi (timo@cc-dialin1-3.hut.fi [130.233.251.3]) by smtp-2.hut.fi (8.9.3/8.9.3) with SMTP id BAA34774; Mon, 25 Jun 2001 01:14:08 +0300 (EEST) Date: Mon, 25 Jun 2001 01:16:35 +0300 From: Timo Savola To: Reinhard Mueller Cc: gtk-list@gnome.org Subject: Re: Logging functions Message-ID: <20010625011635.A7126@whiz-bang> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 0.6.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > is there a reason why there are the functions > g_error > g_critical > g_warning > g_message > but not > g_info > g_debug > ? I've been wondering about the same thing. > #define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) > > #ifdef G_DEBUG > #define g_debug(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) > #else > #define g_debug(...) > #endif Here's what I use to extend GLib: #ifdef NDEBUG # define debug(msg) # define debugf(fmt, args...) #else # ifdef __GNUC__ # define debug(msg) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d %s: " msg, \ __FILE__, __LINE__, __PRETTY_FUNCTION__) # define debugf(fmt, args...) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d %s: " fmt, \ __FILE__, __LINE__, __PRETTY_FUNCTION__, ##args) # else # define debug(msg) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d: " msg, \ __FILE__, __LINE__) # define debugf(fmt, args...) \ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:%d: " fmt, \ __FILE__, __LINE__, ##args) # endif #endif Tell me how I can merge the debug(msg) and debugf(fmt, args...) macros. :) Timo Savola From Valdis.Kletnieks@vt.edu Tue Jun 26 10:29:00 2001 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 C66472BDF9 for ; Tue, 26 Jun 2001 10:28:59 -0400 (EDT) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.11.3/8.11.3) with ESMTP id f5QESqg31417; Tue, 26 Jun 2001 10:28:53 -0400 Message-Id: <200106261428.f5QESqg31417@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4+dev To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable In-Reply-To: Your message of "Mon, 25 Jun 2001 23:28:38 +0200." <993504519.1645.0.camel@tux> 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[ <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-369087844P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 26 Jun 2001 10:28:52 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-369087844P Content-Type: text/plain; charset=us-ascii On Mon, 25 Jun 2001 23:28:38 +0200, Ronald Bultje said: You're missing at least one error check here: > pixmap = gdk_pixmap_new(NULL, w, h, 24); /* This can lose if the X server doesn't have 24-bit visuals */ if (!pixmap) { sprintf(stderr,"Whoops gdk_pixmap_new blew chunks!"); return; } /* OK.. We got a pixmap, use it */ > gc = gdk_gc_new(pixmap); /Valdis --==_Exmh_-369087844P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Exmh version 2.2 06/16/2000 iQA/AwUBOzicJHAt5Vm009ewEQJiWACgt15rGCPnd9rBBCqcetDk94TB8L4An1tm EUXvhKxioeGYYshaxaaL4vlN =rLUp -----END PGP SIGNATURE----- --==_Exmh_-369087844P-- From hp@redhat.com Tue Jun 26 12:40:10 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2CFB22E644 for ; Tue, 26 Jun 2001 12:39:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5QGcvO09050; Tue, 26 Jun 2001 12:38:57 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: John Cupitt , GTK Mailing List Subject: Re: render texts to a buffer/drawable References: <993413682.26475.0.camel@tux> <3B371BB8.5453B91A@ng-london.org.uk> <993504519.1645.0.camel@tux> <3B3836A8.50305@ronald.bitfreak.net> From: Havoc Pennington Date: 26 Jun 2001 12:38:57 -0400 In-Reply-To: Ronald Bultje's message of "Tue, 26 Jun 2001 09:15:52 +0200" Message-ID: Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > Uhm... Never thought about that, really :-) > Is there any way to get a 24-bit drawable form the server on > non-24-bit X-servers? > > Is it possible at all to have 24-bit drawables on non-24-bit > X-servers? Nope and nope. Server-side objects such as images and pixmaps are raw-to-the-hardware. If the hardware lacks 24-bit mode you have no 24-bit available. However as John points out, you could use a bitmap. All X servers support 1-bit pixmaps (bitmaps). > Or would I haev to use something else (client-side) for this? (like > freetype, as John suggested). That's a cleaner solution, yes. > The problem I encountered with gdk_pixbuf_from_drawable is that it > needed a colormap. For 1-bit, you would call gdk_colormap_new() using a 1-bit visual obtained with gdk_visual_get_best_with_depth(). Otherwise you need to know the colormap used to allocate the color you used to render text to the pixmap. Havoc From lestat.lioncourt@innocent.com Tue Jun 26 18:25:48 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-5-115.abo.wanadoo.fr [193.252.11.115]) by mail.gnome.org (Postfix) with ESMTP id 1277A2E706 for ; Tue, 26 Jun 2001 18:24:09 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id C0238BFA4 for ; Wed, 27 Jun 2001 00:24:02 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Tue, 26 Jun 2001 22:24:02 +0000 From: "David Goncalves" To: Subject: gtk_clist_remove : bug or undocumented feature ;) MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010626222402.C0238BFA4@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm currently experiencing a strange reaction from a gtk_clist. I have a gtk_clist configured with GTK_SELECTION_BROWSE and when i use gtk_clist_remove to remove the LAST row, an invisible row stay in the list and is unusable... If anyone knows about this reaction... thanks. From ardm2@cam.ac.uk Tue Jun 26 13:56:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from yellow.csi.cam.ac.uk (yellow.csi.cam.ac.uk [131.111.8.67]) by mail.gnome.org (Postfix) with ESMTP id AB6922CF1F for ; Tue, 26 Jun 2001 13:56:51 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] helo=ardm2 ident=alex) by yellow.csi.cam.ac.uk with smtp (Exim 3.22 #1) id 15Ex51-0001sf-00 for gtk-list@gnome.org; Tue, 26 Jun 2001 18:56:51 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Alexandre Mathy To: gtk-list@gnome.org Subject: stacking pixmaps Date: Tue, 26 Jun 2001 18:58:59 +0000 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01062618585902.27164@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi.. I'm building an inteface for which I need stackable pixmaps.. Now I have read that this can't be achieved using a gtk_pixmap, and that I'd have to use Gdk stuff instead. However, these pixmaps need to be able to recieve click events etc... Is there an easy way to achieve this? cheers, Alex Mathy From dermot@glade.perl.connectfree.co.uk Tue Jun 26 20:37:42 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154]) by mail.gnome.org (Postfix) with ESMTP id 77AD22E723; Tue, 26 Jun 2001 20:37:29 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by lacrosse.corp.redhat.com (8.9.3/8.9.3) with SMTP id UAA26010; Tue, 26 Jun 2001 20:37:28 -0400 Received: from radius.connectfree.net (ns1.connectfree.co.uk [212.1.130.32]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5R0aPb04012; Tue, 26 Jun 2001 20:36:26 -0400 Received: from higrade.botwrights.farm (ppp-1-50.cvx6.telinco.net [212.1.156.50]) by radius.connectfree.net (8.9.1/8.9.0) with ESMTP id CAA19226; Wed, 27 Jun 2001 02:11:18 +0100 Received: from glade.perl.connectfree.co.uk (IDENT:dermot@localhost [127.0.0.1]) by higrade.botwrights.farm (8.9.3/8.9.3) with ESMTP id BAA00992; Wed, 27 Jun 2001 01:35:50 +0100 Message-ID: <3B391642.55ED3F98@glade.perl.connectfree.co.uk> Date: Wed, 27 Jun 2001 00:09:54 +0100 From: Dermot Musgrove X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-10 i586) X-Accept-Language: en MIME-Version: 1.0 To: Joachim Backes Cc: glade-devel , "gtk-perl-list@redhat.com" , "gtk-list@redhat.com" Subject: Re: ANNOUNCE: Glade-Perl 0.59 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Joachim Backes wrote: > [...] > address seems to be : ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Glade/ > ^^^ Thanks Joachim - sorry to anyone who got lost. Regards, Dermot From zoey@xenonbase.net Wed Jun 27 03:46:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from host31.hostingcheck.com (host31.hostingcheck.com [209.239.36.147]) by mail.gnome.org (Postfix) with ESMTP id 559032BEA5 for ; Wed, 27 Jun 2001 03:46:52 -0400 (EDT) Received: from xenonbase.net (co3007127-a.thorn1.nsw.optushome.com.au [203.164.22.188]) by host31.hostingcheck.com (8.10.2/8.10.2) with ESMTP id f5R7kno29994 for ; Wed, 27 Jun 2001 03:46:50 -0400 Message-ID: <3B3A7DFE.EA659075@xenonbase.net> Date: Wed, 27 Jun 2001 17:44:46 -0700 From: Zoey X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: "gtk-list@gnome.org" Subject: Backtrack on Diff. Versions 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Running ./configure, I got the following message just after I'd installed glib 1.2.10 cheking for GLIB - version >= 1.2.8... *** 'glib-config --version' returned 1.2.10, but GLIB (1.2.6) *** was found! If glib-config was correct, then it is best *** to remove the old version of GLIB. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH environment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If glib-config was wrong, set the environment variable GLIB_CONFIG *** to point to the correct copy of glib-config, and remove the fil config.cache *** before re-running configure On useing rpm, I tried. However, it too gave me an error message. I -think- that might be because Corel is based on debian?? Thanks for all the replies! (and the patience. ;)) Zoey. From rbultje@ronald.bitfreak.net Wed Jun 27 04:35:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id EF3122CB80 for ; Wed, 27 Jun 2001 04:35:00 -0400 (EDT) Received: from ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id KAA12370; Wed, 27 Jun 2001 10:34:57 +0200 (CEST) Message-ID: <3B399AAC.1060907@ronald.bitfreak.net> Date: Wed, 27 Jun 2001 10:34:52 +0200 From: Ronald Bultje Organization: Textinfo Technologies User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: nl, nl-be, en MIME-Version: 1.0 To: Zoey Cc: "gtk-list@gnome.org" Subject: Re: Backtrack on Diff. Versions problem. References: <3B3A7DFE.EA659075@xenonbase.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Zoey wrote: >Running ./configure, I got the following message just after I'd >installed glib 1.2.10 > >cheking for GLIB - version >= 1.2.8... >*** 'glib-config --version' returned 1.2.10, but GLIB (1.2.6) >*** was found! If glib-config was correct, then it is best >*** to remove the old version of GLIB. You may also be able to fix the >error >*** by modifying your LD_LIBRARY_PATH environment variable, or by >editing >*** /etc/ld.so.conf. Make sure you have run ldconfig if that is >*** required on your system. >*** If glib-config was wrong, set the environment variable GLIB_CONFIG >*** to point to the correct copy of glib-config, and remove the fil >config.cache >*** before re-running configure > Remove /usr/include/glib.h and/or /usr/include/glib/glib.h. don't remove /usr/include/glib-1.2/anything, that's 1.2.10 :-) Ronald From linuxfun@163.com Wed Jun 27 06:14:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp4.163.com (unknown [202.108.44.226]) by mail.gnome.org (Postfix) with ESMTP id DFB512DC6B for ; Wed, 27 Jun 2001 06:14:38 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp4.163.com (Postfix) with SMTP id 15F911D2EDB9C for ; Wed, 27 Jun 2001 17:38:39 +0800 (CST) Message-ID: <001c01c0feed$430577f0$8002a8c0@SHECA.COM> From: "linuxfun" To: Subject: test Date: Wed, 27 Jun 2001 17:40:53 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01C0FF30.50639330" 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.5 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_0019_01C0FF30.50639330 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 dGVzdA0K ------=_NextPart_000_0019_01C0FF30.50639330 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj50ZXN0PC9GT05UPjwvRElWPjwv Qk9EWT48L0hUTUw+DQo= ------=_NextPart_000_0019_01C0FF30.50639330-- From ardm2@cam.ac.uk Wed Jun 27 07:31:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from orange.csi.cam.ac.uk (orange.csi.cam.ac.uk [131.111.8.77]) by mail.gnome.org (Postfix) with ESMTP id 055CF2E7C2 for ; Wed, 27 Jun 2001 07:30:41 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by orange.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FDWq-0005P4-00 for gtk-list@gnome.org; Wed, 27 Jun 2001 12:30:40 +0100 Subject: mouse motion redraws From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 27 Jun 2001 12:33:09 +0000 Message-Id: <993645192.2364.1.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm currently writing an app in which pixmaps (Gdk, not Gtk)in a GtkDrawingArea can be dragged by using the mouse.To achieve this, I connect to the usual mouse signals. My problem is that the motion of the pixmaps is sluggish. The weird thing is, if I run the program at the same time I run "Dia" (gtk drawing program), the motion of my program all of a sudden becomes acceptable. I've looked through "Dia'"s source, but cannot find what it's doing. Cheers, Alex Mathy here's the code: gtk_signal_connect (GTK_OBJECT (canvas), "motion_notify_event", GTK_SIGNAL_FUNC (canvas_motion_notify_event), NULL); gtk_signal_connect (GTK_OBJECT (canvas), "button_press_event", GTK_SIGNAL_FUNC (canvas_button_press_event), NULL); gtk_signal_connect (GTK_OBJECT (canvas), "button_release_event", GTK_SIGNAL_FUNC (canvas_button_release_event), NULL); gtk_widget_set_events (GTK_WIDGET (canvas), GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_BUTTON_RELEASE_MASK ); . . . gint canvas_button_press_event (GtkWidget *widget, GdkEventButton *event) { if (event->button == 1){ int i; for (i=0;i<*(compCount);i++){ circObj* component; component=getComponent(components,i); if (isInComponent(component,event->x,event->y)==TRUE){ //start dragging! selectedObj=component; dragging=TRUE; xInObj=event->x-component->x; yInObj=event->y-component->y; selectedType=SELECTED_COMPONENT; gtk_timeout_remove(threadid); return TRUE; } else { } } } return TRUE; } gint canvas_button_release_event (GtkWidget *widget, GdkEventButton *event) { if (event->button == 1){ if (dragging==TRUE){ dragging=FALSE; threadid=gtk_timeout_add(DELAY,circuitLoop,canvas); //snap to grid: } } return TRUE; } gint canvas_motion_notify_event (GtkWidget *widget, GdkEventMotion *event) { int x, y; GdkModifierType state; if (event->is_hint) { gdk_window_get_pointer (event->window, &x, &y, &state); } else { x = event->x; y = event->y; state = event->state; } if (state & GDK_BUTTON1_MASK){ if (dragging==TRUE){ if (selectedType=SELECTED_COMPONENT){ circObj* component=(circObj*)selectedObj; component->x=event->x - xInObj; component->y=event->y - yInObj; redrawCanvas(canvas); } } } return TRUE; } From john.cupitt@ng-london.org.uk Wed Jun 27 07:38:17 2001 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 E718B2E7CD for ; Wed, 27 Jun 2001 07:38:06 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WJ1Q; Wed, 27 Jun 2001 12:38:06 +0100 Message-ID: <3B39C44C.6BB97EF2@ng-london.org.uk> Date: Wed, 27 Jun 2001 12:32:28 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: stacking pixmaps References: <01062618585902.27164@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy wrote: > I'm building an inteface for which I need stackable pixmaps.. > Now I have read that this can't be achieved using a gtk_pixmap, > and that I'd have to use Gdk stuff instead. > However, these pixmaps need to be able to recieve click events etc... I think the gtk_canvas widget does what you want: http://www.atai.org/gtk-canvas/ I don't know if this is the most recent version. It's a port of GnomeCanvas back to plain gtk, so you can just look up the GnomeCanvas docs. HTH, John From kodis@jagunet.com Wed Jun 27 08:35:21 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from skydiver.jaguNET.com (skydiver.jaguNET.com [209.133.192.8]) by mail.gnome.org (Postfix) with ESMTP id 9950C2E80D for ; Wed, 27 Jun 2001 08:34:03 -0400 (EDT) Received: from kodis.jagunet.com (kodis.jaguNET.com [209.133.192.48]) by skydiver.jaguNET.com (8.9.3/jag-2.6) with ESMTP id IAA13861 for ; Wed, 27 Jun 2001 08:33:40 -0400 (EDT) Received: (from kodis@localhost) by kodis.jagunet.com (8.11.2/8.11.2) id f5RCWsO02304 for gtk-list@gnome.org; Wed, 27 Jun 2001 08:32:54 -0400 X-Authentication-Warning: papa.jagunet.com: kodis set sender to kodis@jagunet.com using -f Date: Wed, 27 Jun 2001 08:32:53 -0400 From: John Kodis To: gtk-list@gnome.org Subject: Re: gtk_clist_remove : bug or undocumented feature ;) Message-ID: <20010627083253.A2262@papa.jagunet.com> Mail-Followup-To: John Kodis , gtk-list@gnome.org References: <20010626222402.C0238BFA4@transylvania> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010626222402.C0238BFA4@transylvania>; from lestat.lioncourt@innocent.com on Tue, Jun 26, 2001 at 10:24:02PM +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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, Jun 26, 2001 at 10:24:02PM +0000, David Goncalves wrote: > I'm currently experiencing a strange reaction from a gtk_clist. > I have a gtk_clist configured with GTK_SELECTION_BROWSE and > when i use gtk_clist_remove to remove the LAST row, an invisible > row stay in the list and is unusable... It could be that the unusable last row is just blank space left in the clist's enclosing window. Try setting the policy of the window that holds the clist to allow-shrink and auto-shrink using the gtk_window_set_policy() routine. -- John Kodis. From pbd@op.net Wed Jun 27 09:28:01 2001 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 761392BBBA for ; Wed, 27 Jun 2001 09:28:01 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-07.ppp.op.net [209.152.194.103]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA27351 for ; Wed, 27 Jun 2001 09:27:59 -0400 (EDT) Message-Id: <200106271327.JAA27351@renoir.op.net> To: gtk-list@gnome.org Subject: Re: stacking pixmaps In-reply-to: Your message of "Wed, 27 Jun 2001 12:32:28 BST." <3B39C44C.6BB97EF2@ng-london.org.uk> Date: Wed, 27 Jun 2001 09:28:15 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I think the gtk_canvas widget does what you want: > > http://www.atai.org/gtk-canvas/ > >I don't know if this is the most recent version. It's a port of >GnomeCanvas back to plain gtk, so you can just look up the GnomeCanvas >docs. At the cost of repeating myself, the GtkCanvas is perhaps the most useful and most powerful widget available under Gtk. Is there *any* way we can shame/cajole/bribe/convict/persuade the GTK+ team to remove it from GNOME and follow the example of the back-port by including it in GTK+ 1.3/2.0 ? --p From hp@redhat.com Wed Jun 27 10:26:46 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A8B882E2DA for ; Wed, 27 Jun 2001 10:26:46 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5REQaa18318; Wed, 27 Jun 2001 10:26:36 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> From: Havoc Pennington Date: 27 Jun 2001 10:26:36 -0400 In-Reply-To: Paul Davis's message of "Wed, 27 Jun 2001 09:28:15 -0400" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > At the cost of repeating myself, the GtkCanvas is perhaps the most > useful and most powerful widget available under Gtk. Is there *any* > way we can shame/cajole/bribe/convict/persuade the GTK+ team to remove > it from GNOME and follow the example of the back-port by including it > in GTK+ 1.3/2.0 ? > libgnomecanvas is in a separate library for GNOME 2, not dependent on any other libs except GTK (and libart). We don't want to move it to GTK with a rename, instead we want to wait until we add a vector graphics API and then have a canvas widget that uses that. Havoc From bonjour@ime.unicamp.br Wed Jun 27 12:12:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pretoria.ime.unicamp.br (pretoria.ime.unicamp.br [143.106.22.7]) by mail.gnome.org (Postfix) with ESMTP id A9C332DCF5 for ; Wed, 27 Jun 2001 12:12:23 -0400 (EDT) Received: from goiania.ime.unicamp.br (goiania.ime.unicamp.br [143.106.96.188]) by pretoria.ime.unicamp.br (8.9.0/8.9.0) with ESMTP id NAA14778 for ; Wed, 27 Jun 2001 13:12:58 -0300 (EST) Date: Wed, 27 Jun 2001 12:56:21 -0300 (EST) From: Filipe Bonjour To: GTK List Subject: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm just starting programming with GTK, and I'm having problems with events. Specifically, I'm writing a program (using GTK/Gnome built by Glade) to visualize data in 2D/3D using a GtkGlArea widget (a subclass of GtkDrawingArea). In short, I have several drawing options, and I want to send the GtkGlArea widget an expose event when the user changes any of these options. I have tried things like: gtk_signal_emit_by_name(glarea, "expose_event"); gtk_signal_emit_by_name(glarea, "expose-event"); (which cause a SIGSEGV) and gtk_signal_emit(glarea, 32); gtk_signal_emit(glarea, GDK_EXPOSE); gtk_signal_emit(glarea, gtk_signal_lookup("expose_event", GTK_TYPE_GL_AREA)); gtk_signal_emit(glarea, gtk_signal_lookup("expose-event", GTK_TYPE_GL_AREA)); which are at best ignored. So I have a few questions... 1) Where are the signal numbers and names defined? I couldn't find them anywhere. For gtk_signal_emit I find it hard to believe that we are expected to give an actual number, I thought there would be some defined symbols, such as "#define GTK_SIGNAL_EXPOSE 32" or something. 2) I guess I could create a bogus event and call the signal-handling routine directly, but that's ugly and I'm pretty sure there's a better and more elegant way. How? Any help would be very appreciated, TIA, Fil +-----------------------------------------------------------------------+ | Dr. Fil Bonjour | Fil Bonjour | | UNICAMP, IMECC, DMA - Room 328 | Rua Alberto de Salvo 53 | | 13081-970 Campinas SP Brazil | 13084-670 Campinas SP Brazil | | Phone: (++55.19) 3788.60.44 | Phone: (+55.19) 3289.77.84 | | Fax: (++55.19) 3289.14.66 | | | Email: bonjour@ime.unicamp.br | Email: fbonjour@uol.com.br | | http://www.ime.unicamp.br/~bonjour| | +-----------------------------------------------------------------------+ From ardm2@cam.ac.uk Wed Jun 27 12:35:47 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from red.csi.cam.ac.uk (red.csi.cam.ac.uk [131.111.8.70]) by mail.gnome.org (Postfix) with ESMTP id 906F42E196 for ; Wed, 27 Jun 2001 12:35:47 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by red.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FII6-0000Px-00 for gtk-list@gnome.org; Wed, 27 Jun 2001 17:35:46 +0100 Subject: gnome/gtkcanvas From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 27 Jun 2001 17:38:17 +0000 Message-Id: <993663497.11889.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey.. Ok so I've decided to go with gnomecanvas. I'm having trouble drawing images to the canvas though... Here's the code: GdkImlibImage *Image = gdk_imlib_load_image ("mypng.png"); /* create a new canvas */ gtk_widget_push_visual (gdk_imlib_get_visual ()); gtk_widget_push_colormap (gdk_imlib_get_colormap ()); canvas = gnome_canvas_new(); gtk_widget_pop_visual(); gtk_widget_pop_colormap(); . . . . gnome_canvas_item_new (gnome_canvas_root(canvas), gnome_canvas_image_get_type (), "image", Image, "x", 0, "y", 0, "width",(double)Image->rgb_width, "height", (double)Image->rgb_height, NULL); The image does not display, i.e. the canvas remains empty except for non-image objects I draw to it... What am I doing wrong? Cheers, Alex Mathy From emonsler@beamreachnetworks.com Wed Jun 27 12:48:02 2001 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 6B1102E86C for ; Wed, 27 Jun 2001 12:48:02 -0400 (EDT) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.40]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J50PXXM7; Wed, 27 Jun 2001 09:46:53 -0700 Message-ID: <3B3A0EFD.7E89282C@beamreachnetworks.com> Date: Wed, 27 Jun 2001 09:51:09 -0700 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > libgnomecanvas is in a separate library for GNOME 2, not dependent on > any other libs except GTK (and libart). What is the libgnomecanvas license? IIRC, GNOME is GPL, vs. the LGPL of GTK. (I tried to check the license from the gnome.org site, but there were lots of references to "free" software and FSF links, but no license info immediately available) It's not just size that keeps everyone from using the GNOME libs. Eric From hp@redhat.com Wed Jun 27 13:31:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 4EF302CF3A for ; Wed, 27 Jun 2001 13:31:44 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5RHVOC18397; Wed, 27 Jun 2001 13:31:24 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Eric M. Monsler" Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> <3B3A0EFD.7E89282C@beamreachnetworks.com> From: Havoc Pennington Date: 27 Jun 2001 13:31:24 -0400 In-Reply-To: "Eric M. Monsler"'s message of "Wed, 27 Jun 2001 09:51:09 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Eric M. Monsler" writes: > What is the libgnomecanvas license? > > IIRC, GNOME is GPL, vs. the LGPL of GTK. No, this is completely untrue - GNOME libraries have always been LGPL. > It's not just size that keeps everyone from using the GNOME libs. It's also suckiness for much of libgnomeui - but with libgnomecanvas split out, neither size nor suckiness should be an issue for using the canvas. Havoc From emonsler@beamreachnetworks.com Wed Jun 27 13:38:00 2001 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 BA2252CC8D for ; Wed, 27 Jun 2001 13:37:59 -0400 (EDT) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.40]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J50PXXPK; Wed, 27 Jun 2001 10:36:52 -0700 Message-ID: <3B3A1AB8.9EE5C5C7@beamreachnetworks.com> Date: Wed, 27 Jun 2001 10:41:12 -0700 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: Paul Davis , gtk-list@gnome.org Subject: Re: stacking pixmaps References: <200106271327.JAA27351@renoir.op.net> <3B3A0EFD.7E89282C@beamreachnetworks.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "Eric M. Monsler" writes: > > IIRC, GNOME is GPL, vs. the LGPL of GTK. > > No, this is completely untrue - GNOME libraries have always been LGPL. Well, always happy to lose a fundamental misunderstanding! From john.cupitt@ng-london.org.uk Wed Jun 27 13:41:11 2001 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 068252E8E2 for ; Wed, 27 Jun 2001 13:40:00 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WJ0R; Wed, 27 Jun 2001 18:39:58 +0100 Message-ID: <3B3A191C.E67F1052@ng-london.org.uk> Date: Wed, 27 Jun 2001 18:34:20 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Filipe Bonjour Cc: GTK List Subject: Re: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour wrote: > II have several drawing options, and I want to send the > GtkGlArea widget an expose event when the user changes any of these > options. Hi Filipe, I think you can just do: gtk_widget_queue_draw( widget ); This deals with all of the signal stuff for you. HTH, John From elrin@mclink.it Wed Jun 27 13:43:28 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.mclink.it (net128-007.mclink.it [195.110.128.7]) by mail.gnome.org (Postfix) with ESMTP id 6D6162E8E2 for ; Wed, 27 Jun 2001 13:43:27 -0400 (EDT) Received: from localhost.localdomain (net147-015.mclink.it [195.110.147.15]) by mail.mclink.it (8.11.0/8.11.0) with SMTP id f5RHhP307810 for ; Wed, 27 Jun 2001 19:43:25 +0200 (CEST) From: Daniele Guerrieri To: gtk-list@gnome.org Date: Wed, 27 Jun 2001 19:39:31 +0200 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <01062719422701.00714@localhost.localdomain> Content-Transfer-Encoding: 8bit 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm a beginner of Gtk. I would like know how move a button in a fixed widget using the GdkSignals Thank you! From golubenkoj@columbiafunds.com Wed Jun 27 13:52:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 2DF1B2E249; Wed, 27 Jun 2001 13:52:16 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 10:50:30 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 10:50:30 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: "'gtk-list@gnome.org'" , "'gtk-devel-list@gnome.org'" Subject: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 10:50:29 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724C36C27394-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, quick question, does anyone know editor with syntax highlighting for GTK+/GNOME API? Thanks, John. -----Original Message----- From: Eric M. Monsler [mailto:emonsler@beamreachnetworks.com] Sent: Wednesday, June 27, 2001 10:41 AM To: Havoc Pennington Cc: Paul Davis; gtk-list@gnome.org Subject: Re: stacking pixmaps Havoc Pennington wrote: > > "Eric M. Monsler" writes: > > IIRC, GNOME is GPL, vs. the LGPL of GTK. > > No, this is completely untrue - GNOME libraries have always been LGPL. Well, always happy to lose a fundamental misunderstanding! _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From alfons@proteus.demon.nl Wed Jun 27 14:00:30 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from proteus.demon.nl (proteus.demon.nl [212.238.30.186]) by mail.gnome.org (Postfix) with ESMTP id 2A0272E8FB; Wed, 27 Jun 2001 14:00:02 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=proteus.demon.nl ident=alfons) by proteus.demon.nl with smtp (Exim 3.22 #1) id 15FJvc-00007y-00; Wed, 27 Jun 2001 20:20:40 +0200 Date: Wed, 27 Jun 2001 20:20:40 +0200 From: Alfons Hoogervorst To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Message-Id: <20010627202040.22b0356b.alfons@proteus.demon.nl> In-Reply-To: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> References: <0E402AD0FEACD411B7C100508BCDF6110108A0E6@cmc-exchange.columbiafunds.com> Organization: Doubtful X-Mailer: Sylpheed version 0.5.0claws3 (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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Lo John, On Wed, 27 Jun 2001 10:50:29 -0700 you wrote: JG>Hey, quick question, JG>does anyone know editor with syntax highlighting for GTK+/GNOME API? Yeah, Scintilla... Bye. -- the ancient ruins the former wasted they shall all rise up and restore the ruined cities desolate now for generations From golubenkoj@columbiafunds.com Wed Jun 27 14:19:08 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id CB5C92BC97; Wed, 27 Jun 2001 14:19:07 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 11:17:22 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 11:17:22 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E7@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 11:17:22 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724FCB828641-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks Alfons, but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. I've wrote a little plugin for Jext (jext.org) editor, to highlight GTK+/GNOME API, but it's written in Java, so it's frustrating because of Java's slow GUI, etc. (http://65.4.117.16/projects/jext/ - 2 screenies). If I can find editor that does that kind of highlighting (written for Linux ;-), it'll be very helpfull. But, I like this SciTE editor a lot, it's seems very good. Thanks again, John. -----Original Message----- From: Alfons Hoogervorst [mailto:alfons@proteus.demon.nl] Sent: Wednesday, June 27, 2001 11:21 AM To: John Golubenko Cc: gtk-list@gnome.org; gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Lo John, On Wed, 27 Jun 2001 10:50:29 -0700 you wrote: JG>Hey, quick question, JG>does anyone know editor with syntax highlighting for GTK+/GNOME API? Yeah, Scintilla... Bye. -- the ancient ruins the former wasted they shall all rise up and restore the ruined cities desolate now for generations NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From pbd@op.net Wed Jun 27 14:27:40 2001 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 158262E917; Wed, 27 Jun 2001 14:27:25 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-20.ppp.op.net [209.152.206.32]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA28109; Wed, 27 Jun 2001 14:27:06 -0400 (EDT) Message-Id: <200106271827.OAA28109@renoir.op.net> To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-reply-to: Your message of "Wed, 27 Jun 2001 11:17:22 PDT." <0E402AD0FEACD411B7C100508BCDF6110108A0E7@cmc-exchange.columbiafunds.com> Date: Wed, 27 Jun 2001 14:27:07 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thanks Alfons, >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. the GTK+ and GNOME API's are written in C. what on earth does it mean to "highlight" the API of a particular library? emacs can do what you want to. obviously, since emacs is turing-complete. --p From golubenkoj@columbiafunds.com Wed Jun 27 14:36:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 1537B2E92B; Wed, 27 Jun 2001 14:35:01 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 11:33:12 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 11:33:12 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 11:33:11 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724F96229368-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I meant that those editors hightligh only int, float, char, etc., a common keywords, but not keywords like GtkObject, GtkWidget, gtk_main_quit, etc. Also you can see what i'm talking about by visiting the url i've posted, and look at [before] and [after] screenshots. The one named [before] shows what every editor out there does, and [after] shows highlighting that i want. Emacs doesn't do it either. Of course I can modify the sources to make it work, but it's another story. Also I don't feel good about discussing it on this public list, sinse it's kinda offtopic... anyway, thanks a lot, john. -----Original Message----- From: Paul Davis [mailto:pbd@Op.Net] Sent: Wednesday, June 27, 2001 11:27 AM To: John Golubenko Cc: gtk-list@gnome.org; gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API >Thanks Alfons, >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. the GTK+ and GNOME API's are written in C. what on earth does it mean to "highlight" the API of a particular library? emacs can do what you want to. obviously, since emacs is turing-complete. --p NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From trutkin@physics.clarku.edu Wed Jun 27 15:19:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from planck.clarku.edu (planck.clarku.edu [140.232.2.12]) by mail.gnome.org (Postfix) with ESMTP id 8BEC72BCF5 for ; Wed, 27 Jun 2001 15:19:25 -0400 (EDT) Received: from trutkin (helo=localhost) by planck.clarku.edu with local-smtp (Exim 3.12 #1 (Debian)) id 15FKqR-0004fD-00 for ; Wed, 27 Jun 2001 15:19:23 -0400 Date: Wed, 27 Jun 2001 15:19:23 -0400 (EDT) From: Taybin Rutkin X-Sender: trutkin@planck.clarku.edu Reply-To: Taybin Rutkin To: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-Reply-To: <200106271827.OAA28109@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 27 Jun 2001, Paul Davis wrote: > >Thanks Alfons, > >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. > > the GTK+ and GNOME API's are written in C. what on earth does it mean > to "highlight" the API of a particular library? I know what he's asking for. I used to use a basic editor for the macintosh called FutureBasic that highlight all the macintosh system calls as well as the reserved words. Try glimmer. It seems to highlight certain gtk+ calls. Or at least it is intelligent to recognize macros and highlight those. Also, gide support two or three scripting languages to customize highlighting. That would probably be the easiest way to get what you want. And if you write a script to do that yourself, don't forget to release it; I think I might be interested in such a feature. Taybin Rutkin From sven@gimp.org Wed Jun 27 15:28:37 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9055BC4.dip.t-dialin.net [217.5.91.196]) by mail.gnome.org (Postfix) with ESMTP id 986642E848; Wed, 27 Jun 2001 15:28:36 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15FKri-0001Wb-00; Wed, 27 Jun 2001 21:20:42 +0200 To: "John Golubenko" Cc: gtk-list@gnome.org, gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API References: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> From: Sven Neumann Date: 27 Jun 2001 21:20:42 +0200 In-Reply-To: <0E402AD0FEACD411B7C100508BCDF6110108A0E8@cmc-exchange.columbiafunds.com> Message-ID: Lines: 29 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "John Golubenko" writes: > Emacs doesn't do it either. Of course I can modify the sources to make it > work, but it's another story. you don't need to modify any source. Just add a few lines to your .emacs. Something like: (custom-set-variables '(c-font-lock-extra-types (quote ("gint" "gfloat" "gchar" "gint8" "gint16" "gint32" "guint" "guint8" "guint16" "guint32" "guchar" "glong" "gboolean" "gshort" "gushort" "gulong" "gdouble" "gldouble" "gpointer" "G_\\w+" "GList" "GSList" "GFunc" "GPOINTER_\\w+" "GINT_\\w+" "GUINT_\\w+" "Gtk\\w+" "Gdk\\w+" "GTK\\w+" "GDK\\w+" "NULL" "Gimp\\w+" "GIMP\\w+" "FT_\\w+" "Pango\\w+" "PANGO\\w+" "->" "FALSE" "TRUE" "FILE" "MIN" "MAX" "CLAMP" "ABS" "DIR" "\\sw+_t" "GCim\\w+"))) You will want to modify/extend this list a bit and I'm sure there are better ways to do this, but this one works reasonably well. Salut, Sven From golubenkoj@columbiafunds.com Wed Jun 27 15:30:17 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cmc-exchange.columbiafunds.com (mail1.columbiafunds.com [209.162.223.70]) by mail.gnome.org (Postfix) with SMTP id 2FD6D2E887 for ; Wed, 27 Jun 2001 15:30:17 -0400 (EDT) Received: from 10.1.0.61 by cmc-exchange.columbiafunds.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Wed, 27 Jun 2001 12:28:31 -0700 X-Server-Uuid: f8bf8a56-859d-11d3-a23d-00805f2535ba Received: by cmc-exchange.columbiafunds.com with Internet Mail Service ( 5.5.2653.19) id ; Wed, 27 Jun 2001 12:28:31 -0700 Message-ID: <0E402AD0FEACD411B7C100508BCDF6110108A0FC@cmc-exchange.columbiafunds.com> From: "John Golubenko" To: "'Taybin Rutkin'" , gtk-list@gnome.org Subject: RE: editor with syntax highlighting for GTK+/GNOME API Date: Wed, 27 Jun 2001 12:28:30 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1724EC5531657-01-01 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Taybin, You are very right. Like I've said, i've wrote an update for jext, that has GTK+ API highlighting. It took me a while to find all API calls I can find. Still, i've missed a lot. But sinse it's written in Java, and uses GUI, it's not something I'm going to use, because of slow performance of Java on the front end, etc. I've just started to write GTK+ applications, and I love it. Thanks, John. -----Original Message----- From: Taybin Rutkin [mailto:trutkin@physics.clarku.edu] Sent: Wednesday, June 27, 2001 12:19 PM To: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API On Wed, 27 Jun 2001, Paul Davis wrote: > >Thanks Alfons, > >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. > > the GTK+ and GNOME API's are written in C. what on earth does it mean > to "highlight" the API of a particular library? I know what he's asking for. I used to use a basic editor for the macintosh called FutureBasic that highlight all the macintosh system calls as well as the reserved words. Try glimmer. It seems to highlight certain gtk+ calls. Or at least it is intelligent to recognize macros and highlight those. Also, gide support two or three scripting languages to customize highlighting. That would probably be the easiest way to get what you want. And if you write a script to do that yourself, don't forget to release it; I think I might be interested in such a feature. Taybin Rutkin _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. From pbd@op.net Wed Jun 27 15:34:29 2001 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 09FF22D315 for ; Wed, 27 Jun 2001 15:34:29 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-20.ppp.op.net [209.152.206.32]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA06308; Wed, 27 Jun 2001 15:34:20 -0400 (EDT) Message-Id: <200106271934.PAA06308@renoir.op.net> To: Taybin Rutkin Cc: gtk-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API In-reply-to: Your message of "Wed, 27 Jun 2001 15:19:23 EDT." Date: Wed, 27 Jun 2001 15:34:39 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >Thanks Alfons, >> >but it doesnt hightlight GTK+/GNOME API, it does for regular C, etc. >> >> the GTK+ and GNOME API's are written in C. what on earth does it mean >> to "highlight" the API of a particular library? > >I know what he's asking for. I used to use a basic editor for the >macintosh called FutureBasic that highlight all the macintosh system calls >as well as the reserved words. OK. For emacs: (font-lock-add-keywords 'c-mode '(("gtk_widget_new" 1 font-lock-function-name-face t) ("gtk_widget_whatever" 1 font-lock-function-name-face t) .... ("GtkWidget" 1 font-lock-keyword-face t) ("GtkFrame" 1 font-lock-keyword-face t) .... )) By using etags to build a list of function names, then sed/awk/perl to transform this into an elisp statement like the one above, the job could be done extremely quickly. I don't know how quick emacs would handle this for a library with hundreds of functions but I imagine it would work pretty well. --p (who prefers his source code raw, not burnt to a multicolored crisp) From nhodgson@bigpond.net.au Wed Jun 27 18:51:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailin5.bigpond.com (juicer02.bigpond.com [139.134.6.78]) by mail.gnome.org (Postfix) with ESMTP id EB0CA2DDF4; Wed, 27 Jun 2001 18:51:33 -0400 (EDT) Received: from neil ([144.135.24.81]) by mailin5.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GFM2FC00.JPK; Thu, 28 Jun 2001 08:57:12 +1000 Received: from CPE-144-132-204-10.nsw.bigpond.net.au ([144.132.204.10]) by bwmam05.mailsvc.email.bigpond.com(MailRouter V2.9g 8335/16534); 28 Jun 2001 08:52:18 Message-ID: <033201c0ff5b$9a21b120$0acc8490@neil> From: "Neil Hodgson" To: Cc: References: <20010627193601.7F45C2E39D@mail.gnome.org> Subject: Re: editor with syntax highlighting for GTK+/GNOME API Date: Thu, 28 Jun 2001 08:50:45 +1000 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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: John Golubenko: > If I can find editor that does that kind of highlighting > (written for Linux ;-), it'll be very helpfull. But, I like > this SciTE editor a lot, it's seems very good. The current prerelease versions of Scintilla and SciTE 1.39 support a second set of keywords in the C lexer. It does not support regular expressions or prefix based keyword matching although a prefix matcher would be fairly easy to add. I'd be concerned at the performance implications of using regular expressions for this. If you want to modify the C lexer to support prefix based keyword matching scintilla/src/LexCPP.cxx is the file to modify. Prerelease 1.39 available from the Scintilla CVS at https://sourceforge.net/cvs/?group_id=2439 or as a source zip at http://www.scintilla.org/scite.zip To add the keywords in SciTE add this property listing all the keywords: keywords2.$(file.patterns.cpp)=GtkWidget GtkItemFactory GtkAccelGroup \ ... Neil From lestat.lioncourt@innocent.com Wed Jun 27 19:02:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from transylvania (APh-Aug-101-1-5-115.abo.wanadoo.fr [193.252.11.115]) by mail.gnome.org (Postfix) with ESMTP id 999C32BB2D for ; Wed, 27 Jun 2001 19:02:56 -0400 (EDT) Received: from innocent.com (localhost [127.0.0.1]) by transylvania (Postfix) with SMTP id 6FE04C0D2; Thu, 28 Jun 2001 01:02:54 +0200 (CEST) X-Mailer: Yagpa 0.2alpha with lib gmime 0.4.0 X-Priority: 3 Date: Wed, 27 Jun 2001 23:02:54 +0000 From: "David Goncalves" To: Cc: Subject: Re: Re: gtk_clist_remove : bug or undocumented feature ;) MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Message-Id: <20010627230254.6FE04C0D2@transylvania> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, > > I'm currently experiencing a strange reaction from a gtk_clist. > > I have a gtk_clist configured with GTK_SELECTION_BROWSE and > > when i use gtk_clist_remove to remove the LAST row, an invisible > > row stay in the list and is unusable... > > It could be that the unusable last row is just blank space left in the > clist's enclosing window. Try setting the policy of the window that > holds the clist to allow-shrink and auto-shrink using the > gtk_window_set_policy() routine. I don't think that the last row is just a blank space because this row is clickable but when you try to get informations, from this row it fails. And i only have this problem when i remove the last line of the clist. I don't understand what's appening ;( From nhodgson@bigpond.net.au Wed Jun 27 19:22:13 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailin8.bigpond.com (juicer39.bigpond.com [139.134.6.96]) by mail.gnome.org (Postfix) with ESMTP id 34C102D200; Wed, 27 Jun 2001 19:22:11 -0400 (EDT) Received: from neil ([144.135.24.81]) by mailin8.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GFM3UD00.D85; Thu, 28 Jun 2001 09:27:49 +1000 Received: from CPE-144-132-204-10.nsw.bigpond.net.au ([144.132.204.10]) by bwmam05.mailsvc.email.bigpond.com(MailRouter V2.9g 8335/43883); 28 Jun 2001 09:22:55 Message-ID: <03a801c0ff5f$e1381960$0acc8490@neil> From: "Neil Hodgson" To: Cc: , Subject: Re: editor with syntax highlighting for GTK+/GNOME AP Date: Thu, 28 Jun 2001 09:21:22 +1000 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.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Neil (me): > If you want to modify the C lexer to support prefix based > keyword matching scintilla/src/LexCPP.cxx is the file > to modify. Such an easy feature that its now in and available from the previously mentioned locations. Uses '^' to indicate a prefix by analogy with start-of-line regexps. Try: keywords2.$(file.patterns.cpp)=GtkWidget ^GTK_ ^gtk_ This does lose some functionality over listing all the calls which shows when you have misspelt a call by not highlighting. Neil From zaloi@yahoo.com Wed Jun 27 23:30:52 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14505.mail.yahoo.com (web14505.mail.yahoo.com [216.136.224.68]) by mail.gnome.org (Postfix) with SMTP id 606662E7A5 for ; Wed, 27 Jun 2001 23:30:20 -0400 (EDT) Message-ID: <20010628033019.95035.qmail@web14505.mail.yahoo.com> Received: from [161.142.78.84] by web14505.mail.yahoo.com; Wed, 27 Jun 2001 20:30:19 PDT Date: Wed, 27 Jun 2001 20:30:19 -0700 (PDT) From: mr zali Subject: gtkfilesel.c To: gtk-list@gnome.org In-Reply-To: <20010618070228.62817.qmail@web14508.mail.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear friend, I want to edit the 'GTK file selector' so that the user can browse their 'home' directory only. I have a problem with gtk-menu-option(at top of of the 'file selector' dialog box). How I want to edit the gtkfilesel.c source code so that the gtk-menu-option, display 'home directory' and forward only. Can u guide me.. :-) regards, __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From deekshit.mantampady@wipro.com Thu Jun 28 00:20:37 2001 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 00DF92C983 for ; Thu, 28 Jun 2001 00:20:31 -0400 (EDT) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.27.52]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id f5S9wtc13271 for ; Thu, 28 Jun 2001 09:58:55 GMT Received: from wipro.com ([192.168.22.180]) by sarovar.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GFMG4L00.G5X for ; Thu, 28 Jun 2001 09:23:09 +0530 Message-ID: <3B3AA907.11DE77FB@wipro.com> Date: Wed, 27 Jun 2001 20:48:23 -0700 From: Deekshit Mantampady X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: How to make menu insensitive 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am using "GtkItemFactory" to create menus. I want to know How I enable or disable, make it visible or invisible, dynamically. Can anybody help me to find out solution. Regards Deekshit M From suzhe@gnuchina.org Thu Jun 28 00:35:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gnuchina.org (unknown [210.73.87.125]) by mail.gnome.org (Postfix) with ESMTP id 8D0212E81D for ; Thu, 28 Jun 2001 00:35:53 -0400 (EDT) Received: from gnuchina.org ([166.111.148.127]) by gnuchina.org (8.11.3/8.9.3) with ESMTP id f5S4XI929392 for ; Thu, 28 Jun 2001 12:33:18 +0800 Message-ID: <3B3AB3FA.6090801@gnuchina.org> Date: Thu, 28 Jun 2001 12:35:06 +0800 From: James Su Reply-To: suzhe@gnuchina.org User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5-1.4 i686; en-US; rv:0.9.1) Gecko/20010612 X-Accept-Language: zh-cn, zh, en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Can I get the screen resolution via Gdk/Gtk ? Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I want to get the screen resolution (dpi), but how can I do it within gdk/gtk? Regards, James Su From hp@redhat.com Thu Jun 28 01:03:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B31A92E95A for ; Thu, 28 Jun 2001 01:03:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5S53bG07866; Thu, 28 Jun 2001 01:03:37 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: suzhe@gnuchina.org Cc: gtk-list@gnome.org Subject: Re: Can I get the screen resolution via Gdk/Gtk ? References: <3B3AB3FA.6090801@gnuchina.org> From: Havoc Pennington Date: 28 Jun 2001 01:03:37 -0400 In-Reply-To: James Su's message of "Thu, 28 Jun 2001 12:35:06 +0800" Message-ID: Lines: 15 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: James Su writes: > > I want to get the screen resolution (dpi), but how can I do it within > gdk/gtk? > gdk_screen_width_mm() gives size in millimeters, gdk_screen_width() size in pixels, the math to get pixels per millimeter is pretty simple. Beware though, for many X servers the millimeter size will be completely bogus. Havoc From pranjal@lgsi.co.in Thu Jun 28 01:08:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from polaris.lgsi.co.in (unknown [202.54.13.206]) by mail.gnome.org (Postfix) with ESMTP id 520B32E974 for ; Thu, 28 Jun 2001 01:08:05 -0400 (EDT) Received: from pranjal ([202.54.13.195]) by polaris.lgsi.co.in (Netscape Messaging Server 4.15) with ESMTP id GFMJWX00.QNV for ; Thu, 28 Jun 2001 10:44:57 +0530 From: "Pranjal Saikia" To: Subject: GTK FB !! Date: Thu, 28 Jun 2001 11:26:19 +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.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi !! I'm trying to develop one application using GTK FB for embedded system. Can anyone tell me abt the steps to Install as well as the verions of GTK + FB ? Regards Pranjal From linuxfun@163.com Thu Jun 28 02:27:35 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.163.com (unknown [202.108.44.225]) by mail.gnome.org (Postfix) with ESMTP id EDCE72BD60 for ; Thu, 28 Jun 2001 02:27:34 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp3.163.com (Postfix) with SMTP id 61A811D30C234 for ; Thu, 28 Jun 2001 14:19:51 +0800 (CST) Message-ID: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> From: "linuxfun" To: "GTK+" Subject: Hi Date: Thu, 28 Jun 2001 14:25:39 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C0FFDE.347EC640" 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.5 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_0013_01C0FFDE.347EC640 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGkNCkkgYW0gdGhlIGJlZ2lubmVyIG9nIEdUSysgYnV0IEkgbG92ZSBpdCB2ZXJ5IG11Y2guSGVy ZSBpcyBteSBwcm9ibGVvbToNCkkgY2Fubm90IGNvbXBpbGUgbXkgR1RLIHByb2dyYW1tIGhlbGxv LmMgaW4gUmVkaGF0IDYuMSx1c2UgZ2NjIGhlbGxvLmMgLW8gaGVsbG8gJ2d0ay1jb25maWctLWNm bGFncy0tbGlicycsd2h5PyBJIGluc3RhbGxlZCB3b3Jrc3RhdGlvbiByZWRoYXQuDQoNCnRoYW5r IGFsbCBvZiB5b3UhIA0K ------=_NextPart_000_0013_01C0FFDE.347EC640 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj5IaTwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgc2l6ZT0yPkkgYW0gdGhlIGJlZ2lubmVyIG9nIEdUSysgYnV0IEkgbG92ZSBpdCB2 ZXJ5IG11Y2guSGVyZSBpcyBteSANCnByb2JsZW9tOjwvRk9OVD48L0RJVj4NCjxESVY+PEZPTlQg c2l6ZT0yPkkgY2Fubm90IGNvbXBpbGUgbXkgR1RLIHByb2dyYW1tIGhlbGxvLmMgaW4gUmVkaGF0 IDYuMSx1c2UgZ2NjIA0KaGVsbG8uYyAtbyBoZWxsbyAnZ3RrLWNvbmZpZy0tY2ZsYWdzLS1saWJz Jyx3aHk/IEkgaW5zdGFsbGVkIHdvcmtzdGF0aW9uIA0KcmVkaGF0LjwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgc2l6ZT0yPjwvRk9OVD4mbmJzcDs8L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0yPnRo YW5rIGFsbCBvZiB5b3UhIDwvRk9OVD48L0RJVj48L0JPRFk+PC9IVE1MPg0K ------=_NextPart_000_0013_01C0FFDE.347EC640-- From Florent.Devin@lifl.fr Thu Jun 28 02:57:01 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by mail.gnome.org (Postfix) with ESMTP id 785AE2DC95 for ; Thu, 28 Jun 2001 02:57:00 -0400 (EDT) Received: from lifl.fr (brakina.lifl.fr [134.206.10.212]) by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id IAA01960 ; Thu, 28 Jun 2001 08:56:34 +0200 (MET DST) Message-ID: <3B3AD5A1.7070502@lifl.fr> Date: Thu, 28 Jun 2001 08:58:41 +0200 From: "Florent.Devin" User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: gnome/gtkcanvas References: <993663497.11889.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy wrote: > Hey.. > Ok so I've decided to go with gnomecanvas. > I'm having trouble drawing images to the canvas though... > Here's the code: > > GdkImlibImage *Image = gdk_imlib_load_image ("mypng.png"); > > /* create a new canvas */ > gtk_widget_push_visual (gdk_imlib_get_visual ()); > gtk_widget_push_colormap (gdk_imlib_get_colormap ()); > canvas = gnome_canvas_new(); > gtk_widget_pop_visual(); > gtk_widget_pop_colormap(); > . > . > . > . > gnome_canvas_item_new (gnome_canvas_root(canvas), > gnome_canvas_image_get_type (), > "image", Image, > "x", 0, > "y", 0, > "width",(double)Image->rgb_width, > "height", (double)Image->rgb_height, > NULL); > You should use "x", 0.0, "y", 0.0, This is to respect the correct type an int is not a float... and perhaps put an anchor for your image, I can't remember if it's necessary. "anchor", GTK_ANCHOR_... -- Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL) LIFL, Laboratoire d'Informatique Fondamentale de LILLE USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex From Florent.Devin@lifl.fr Thu Jun 28 03:02:09 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by mail.gnome.org (Postfix) with ESMTP id 1ECF62E381 for ; Thu, 28 Jun 2001 03:02:07 -0400 (EDT) Received: from lifl.fr (brakina.lifl.fr [134.206.10.212]) by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id JAA02326 ; Thu, 28 Jun 2001 09:02:03 +0200 (MET DST) Message-ID: <3B3AD6EB.5070405@lifl.fr> Date: Thu, 28 Jun 2001 09:04:11 +0200 From: "Florent.Devin" User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: en MIME-Version: 1.0 To: Filipe Bonjour Cc: GTK List Subject: Re: Signals 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour wrote: > Hi, > > I'm just starting programming with GTK, and I'm having problems with > events. Specifically, I'm writing a program (using GTK/Gnome built by > Glade) to visualize data in 2D/3D using a GtkGlArea widget (a subclass > of GtkDrawingArea). > > In short, I have several drawing options, and I want to send the > GtkGlArea widget an expose event when the user changes any of these > options. I have tried things like: > > gtk_signal_emit_by_name(glarea, "expose_event"); > gtk_signal_emit_by_name(glarea, "expose-event"); > > (which cause a SIGSEGV) and > > gtk_signal_emit(glarea, 32); > gtk_signal_emit(glarea, GDK_EXPOSE); > gtk_signal_emit(glarea, gtk_signal_lookup("expose_event", > GTK_TYPE_GL_AREA)); > gtk_signal_emit(glarea, gtk_signal_lookup("expose-event", > GTK_TYPE_GL_AREA)); > > which are at best ignored. So I have a few questions... > > 1) Where are the signal numbers and names defined? I couldn't find them > anywhere. For gtk_signal_emit I find it hard to believe that we are > expected to give an actual number, I thought there would be some > defined symbols, such as "#define GTK_SIGNAL_EXPOSE 32" or something. > gtk_signal_emit_by_name (GTK_OBJECT (widget), "expose_event", widget); which mean that you have to provide all parameter of the function which is call when the signal is emited. In my case the prototype is : gint f (GtkWidget *widget, GdkEventExpose *event, gpointer userdata) Hope this help -- Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL) LIFL, Laboratoire d'Informatique Fondamentale de LILLE USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex From craig.emery@3glab.com Thu Jun 28 03:13:33 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 1AD1D2E80D for ; Thu, 28 Jun 2001 03:13:33 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15FVzW-0004Vy-00 for gtk-list@gnome.org; Thu, 28 Jun 2001 08:13:30 +0100 Message-ID: <3B3AD8F4.50905@3glab.com> Date: Thu, 28 Jun 2001 08:12:52 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010626 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK List Subject: Re: How to make menu insensitive References: <3B3AA907.11DE77FB@wipro.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15FVzW-0004Vy-00*xrg5tS1097w* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After setting up the menu with the item factory I use gtk_item_factory_get_widget () to get the widget that's created with the path of the item I want. Then (if, say, it's a check-box item) you can call gtk_check_menu_item_set_active (...) might not be the best method, but works for me. Craig. Deekshit Mantampady wrote: >Hi, > > I am using "GtkItemFactory" to create menus. I want to know How I >enable or disable, make it visible or invisible, dynamically. Can >anybody help me to find out solution. > >Regards >Deekshit M > From craig.emery@3glab.com Thu Jun 28 04:03:23 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from onix.3glab.com (golem.3glab.com [62.254.217.161]) by mail.gnome.org (Postfix) with ESMTP id 604CB2BD26 for ; Thu, 28 Jun 2001 04:03:21 -0400 (EDT) Received: from cemery.3glab.com ([10.0.0.209] helo=3glab.com ident=cemery) by onix.3glab.com with esmtp (Exim 3.22 #1) id 15FWlj-0008S8-00 for gtk-list@gnome.org; Thu, 28 Jun 2001 09:03:19 +0100 Message-ID: <3B3AE4A2.9050903@3glab.com> Date: Thu, 28 Jun 2001 09:02:42 +0100 From: Craig Emery User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.1+) Gecko/20010626 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK+ Subject: Re: Hi References: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Scanner: exiscan *15FWlj-0008S8-00*9PQ7TU4YBSY* http://duncanthrax.net/exiscan/ Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yup. Looks like you're using the wrong quotes in your compile command. You've got "single quotation marks" (i.e. ' ) but you need apostrophies (i.e. ` ) On my keyboard, the apostrophy is up by the non-keypad 1 key. Apostrophies (I've heard them called ticks too; that's only one sylable, much easier to "talk") mean: "run this command and put it's output **here**" So the output of the call to gtk-config (that gives the compiler flags, in your case, for bith #include directives and linking) will be supplied to gcc. This is failrly simple shell stuff and, incidentally, nothing to do with GTK+. The shell is your friend. Learn it well. Craig. linuxfun wrote: > Hi > > I am the beginner og GTK+ but I love it very much.Here is my probleom: > > I cannot compile my GTK programm hello.c in Redhat 6.1,use gcc hello.c > -o hello 'gtk-config--cflags--libs',why? I installed workstation redhat. > > thank all of you! > From sven@gimp.org Thu Jun 28 05:01:26 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD9501A24.dip.t-dialin.net [217.80.26.36]) by mail.gnome.org (Postfix) with ESMTP id 832F22DEA3 for ; Thu, 28 Jun 2001 05:01:26 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15FX6T-000892-00; Thu, 28 Jun 2001 10:24:45 +0200 To: "Florent.Devin" Cc: Filipe Bonjour , GTK List Subject: Re: Signals References: <3B3AD6EB.5070405@lifl.fr> From: Sven Neumann Date: 28 Jun 2001 10:24:45 +0200 In-Reply-To: <3B3AD6EB.5070405@lifl.fr> Message-ID: Lines: 19 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "Florent.Devin" writes: > gtk_signal_emit_by_name (GTK_OBJECT (widget), "expose_event", widget); > > which mean that you have to provide all parameter of the function which > is call when the signal is emited. > > In my case the prototype is : > gint f (GtkWidget *widget, GdkEventExpose *event, gpointer userdata) and you still should _not_ create synthetic expose events, but use gtk_widget_queue_draw() instead. Salut, Sven From john.cupitt@ng-london.org.uk Thu Jun 28 06:57:55 2001 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 822572DBB9 for ; Thu, 28 Jun 2001 06:57:55 -0400 (EDT) Received: from ng-london.org.uk (cima.ng-london.org.uk [193.60.236.69]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NWH9WKZX; Thu, 28 Jun 2001 11:57:54 +0100 Message-ID: <3B3B0C5F.A714E371@ng-london.org.uk> Date: Thu, 28 Jun 2001 11:52:15 +0100 From: John Cupitt Organization: The National Gallery X-Mailer: Mozilla 4.72 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Craig Emery Cc: GTK List Subject: Re: How to make menu insensitive References: <3B3AA907.11DE77FB@wipro.com> <3B3AD8F4.50905@3glab.com> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Craig Emery wrote: > > After setting up the menu with the item factory I use > gtk_item_factory_get_widget () > to get the widget that's created with the path of the item I want. > > Then (if, say, it's a check-box item) you can call > > gtk_check_menu_item_set_active (...) > > might not be the best method, but works for me. > > Craig. > > Deekshit Mantampady wrote: > > >Hi, > > > > I am using "GtkItemFactory" to create menus. I want to know How I > >enable or disable, make it visible or invisible, dynamically. Can > >anybody help me to find out solution. > > > >Regards > >Deekshit M Hi, you can also use gtk_widget_show()/gtk_widget_hide() to make menu items appear and disappear, and gtk_widget_set_sensitive() to make items grey out/not grey out. John From maiano@ensma.fr Thu Jun 28 07:06:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from graal.ensma.fr (graal.ensma.fr [193.55.167.3]) by mail.gnome.org (Postfix) with ESMTP id 353C52DE4C for ; Thu, 28 Jun 2001 07:06:06 -0400 (EDT) Received: from lisi-linux.ensma.fr (lisi-linux.ensma.fr [193.55.163.95]) by graal.ensma.fr (8.9.1b+Sun/8.9.1) with SMTP id NAA02999 for ; Thu, 28 Jun 2001 13:04:57 +0100 (WET DST) From: S M Date: Thu, 28 Jun 2001 11:05:07 GMT Message-ID: <20010628.11050700@lisi-linux.ensma.fr> Subject: Drag and Drop To: gtk-list@gnome.org X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Linux) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary= "------------=_4D4800C722E808580338" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------=_4D4800C722E808580338 Content-Description: filename="text1.txt" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I have got few questions about Drag and Drop: First, At which time are released the following signals: =AB drag-begin = =BB,=20 =AB drag-end =BB, =AB drag-data-get =BB, =AB drag-data-received =BB, =AB= drag-motion =BB,=20 =AB drag-drop =BB, =AB drag-leave =BB, =AB drag-data-delete =BB? Then, What do we exactly obtain in GdkDragContext? And, How do we get the destination tree position when we perform a Drag = and Drop?=20 What about the use of x and y in =AB drag-data-received =BB callback, fo= r a=20 tree? ? S. Maiano --------------=_4D4800C722E808580338 Content-Description: filename="text1.html" Content-Type: text/html Content-Transfer-Encoding: quoted-printable Drag and Drop
Hi,

  I have got few questions about Drag and Drop:

First, At which time are released the following signals:
« drag-begin », =
« drag-end », « drag-data-get &raq=
uo;,
« drag-data-received », « drag-motion&n=
bsp;», « drag-drop », « drag-leav=
e »,
« drag-data-delete »?

Then, What do we exactly obtain in Gdk=
DragContext?


And, How do we get the destination tre=
e position when we perform a Drag
and Drop?=20
What about the use of x and y in « drag-data-received &r=
aquo; callback, for a
tree? ?

S. Maiano
--------------=_4D4800C722E808580338-- From mark@winksmith.com Thu Jun 28 09:35:27 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from internal.winksmith.com (dsl254-080-158.nyc1.dsl.speakeasy.net [216.254.80.158]) by mail.gnome.org (Postfix) with ESMTP id 5CDA22CE47 for ; Thu, 28 Jun 2001 09:35:27 -0400 (EDT) Received: from alpha.winksmith.com (IDENT:root@alpha.winksmith.com [192.168.1.10]) by internal.winksmith.com (8.11.0/8.11.0) with ESMTP id f5SDYvo10136; Thu, 28 Jun 2001 09:34:57 -0400 Received: (from mark@localhost) by alpha.winksmith.com (8.11.0/8.11.0) id f5SDZAL18031; Thu, 28 Jun 2001 09:35:10 -0400 Date: Thu, 28 Jun 2001 09:35:07 -0400 From: mark@winksmith.com To: gtk-list@gnome.org Cc: Judd Montgomery Subject: calendar widget on alpha/rh7.0 Message-ID: <20010628093507.A18013@winksmith.com> Reply-To: mark@winksmith.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using a great application called jpilot on my DEC alpha. The operating system is RH7.0 (gtk+1.2.8). The program works pretty good except for the GtkCalendar widget. It gets all vertically squeezed. This only occurs on the alpha architecture. gtk 1.2.8 works as expected on intel. I have a small-ish program (supplied by judd, email listed above) which creates the defect. I can also supply 4-5k jpg snapshots of the squeezing effect. I researched the bugzilla database on rh and for gtk, did a google search, and searched the mail archives, but couldn't find any mention of this phenomenon. Is anyone familiar with this? can anyone help me? -- Mark Smith mark@winksmith.com From rbultje@ronald.bitfreak.net Thu Jun 28 16:30:16 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 5CA192BD2A for ; Thu, 28 Jun 2001 16:30:16 -0400 (EDT) Received: from [192.168.0.112] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5SLC0F04230 for ; Thu, 28 Jun 2001 23:12:00 +0200 (CEST) Subject: bug? From: Ronald Bultje To: GTK Mailing List Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Jun 2001 22:30:05 +0200 Message-Id: <993760215.9692.2.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi people, I have a window of two buttons and one label in a hbox. If I change the text in the label, as a reaction on a signal, the hbox will suddenly enlarge and be much larger than it should be... Code of the window: hbox2 = gtk_hbox_new(FALSE, 10); button = gtk_button_new(); //_with_label("Stop []"); /* kill */ pixmap_widget = gtk_widget_from_xpm_data(editor_stop_xpm); gtk_container_add(GTK_CONTAINER(button), pixmap_widget); gtk_widget_show (pixmap_widget); gtk_tooltips_set_tip(tooltip, button, "Stop Preview Video Stream", NULL); gtk_widget_set_usize(button, 32, 32); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(stop_scene_transition), NULL); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE,FALSE, 0); gtk_widget_show (button); button = gtk_button_new(); //_with_label("Play |>"); /* lavpipe | yuvplay */ pixmap_widget = gtk_widget_from_xpm_data(editor_play_xpm); gtk_container_add(GTK_CONTAINER(button), pixmap_widget); gtk_widget_show (pixmap_widget); gtk_tooltips_set_tip(tooltip, button, "Preview the Scene Transition", NULL); gtk_widget_set_usize(button, 32, 32); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(play_scene_transition), (gpointer)options); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE,FALSE, 0); gtk_widget_show (button); sprintf(temp, "0 / %d - 0:00:00.00", GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1); preview_frame_count_label = gtk_label_new(temp); gtk_box_pack_start (GTK_BOX (hbox2), preview_frame_count_label, TRUE,FALSE, 0); gtk_widget_show (preview_frame_count_label); gtk_box_pack_start (GTK_BOX (vbox2), hbox2, TRUE, FALSE, 0); gtk_widget_show(hbox2); The signal does the following: char temp[64]; int d,h,m,s,f; sscanf(msg, "Playing frame %d - %d:%d:%d.%d", &d, &h, &m, &s, &f); sprintf(temp, "%d / %d - %d:%2.2d:%2.2d.%2.2d", d, GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1, h,m,s,f); gtk_label_set_text(GTK_LABEL(preview_frame_count_label), temp); And the first time this signal is called, the hbox enlarges. After that, I can resize the window and it will stay small until I get back to another callback which sets it back to the original state: char temp[64]; sprintf(temp, "0 / %d - 0:00:00.00" , GTK_IMAGEPLUG(image[current_image])->stopscene - GTK_IMAGEPLUG(image[current_image])->startscene + 1); gtk_label_set_text(GTK_LABEL(preview_frame_count_label), temp); Then, it gets big again. Is this a (known) bug? And is there a way to solve this? Regards, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From pbd@op.net Thu Jun 28 17:32:40 2001 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 A83072BB01 for ; Thu, 28 Jun 2001 17:32:39 -0400 (EDT) Received: from someip.ppp.op.net (d-bm6-16.ppp.op.net [209.152.206.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id RAA03942; Thu, 28 Jun 2001 17:32:30 -0400 (EDT) Message-Id: <200106282132.RAA03942@renoir.op.net> To: Ronald Bultje Cc: GTK Mailing List Subject: Re: bug? In-reply-to: Your message of "28 Jun 2001 22:30:05 +0200." <993760215.9692.2.camel@tux> Date: Thu, 28 Jun 2001 17:32:59 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have a window of two buttons and one label in a hbox. >If I change the text in the label, as a reaction on a signal, the hbox >will suddenly enlarge and be much larger than it should be... labels (and containers) expand to display their contents unless told otherwise. whats the bug? if you want the box to be of a fixed size, use gtk_widget_set_usize(). --p From ardm2@cam.ac.uk Thu Jun 28 20:53:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from orange.csi.cam.ac.uk (orange.csi.cam.ac.uk [131.111.8.77]) by mail.gnome.org (Postfix) with ESMTP id 3CD1A2CA8C for ; Thu, 28 Jun 2001 20:53:44 -0400 (EDT) Received: from ardm2.trin.cam.ac.uk ([131.111.213.116] ident=alex) by orange.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15FmXX-0006sq-00 for gtk-list@gnome.org; Fri, 29 Jun 2001 01:53:43 +0100 Subject: GC's From: Alexandre Mathy To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 29 Jun 2001 01:56:16 +0000 Message-Id: <993779777.4838.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hey, I'm trying to get the hang of GdkGC's but I can't find any decent documentation... For example, if I wanted to draw something in, say, red on a pixmap, how would I go about that? I currently do this, but it doesn't seem to work GdkGc selectedGC; //I think the following line is the problem // I have tried this with the pixmap instead of widget->window // but then the colormap is null.. with this code, nothing happens GdkColormap *cmap = gdk_window_get_colormap (widget->window); GdkColor cred; cred.red =1.0; cred.green = 0; cred.blue = 0; gdk_color_alloc (cmap, &cred); selectedGC = gdk_gc_new (pictureBuff); gdk_gc_set_foreground (selectedGC, &cred); cheers, Alex Mathy From linuxfun@163.com Thu Jun 28 21:47:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.163.com (unknown [202.108.44.225]) by mail.gnome.org (Postfix) with ESMTP id B47C92BB98 for ; Thu, 28 Jun 2001 21:47:06 -0400 (EDT) Received: from reich (unknown [202.96.220.193]) by smtp3.163.com (Postfix) with SMTP id 94ED11D4D35B0; Fri, 29 Jun 2001 09:27:32 +0800 (CST) Message-ID: <001701c1003b$8155d140$8002a8c0@SHECA.COM> From: "linuxfun" To: "Craig Emery" , "GTK+" References: <001601c0ff9b$280d7c00$8002a8c0@SHECA.COM> <3B3AE4A2.9050903@3glab.com> Subject: Re: Hi Date: Fri, 29 Jun 2001 09:33:24 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: RGVhciBDcmFpZyBFbWVyeToNClRoYW5rIHlvdSB2ZXJ5IG11Y2ggZm9yIHlvdXIgcmVwbHkuDQpJ IGFtIGEgQ2hpbmVzZSBib3kgYW5kIGJlZ2luIHRvIGxlYXJuIHByb2dyYW1taW5nIG9uIExpbnV4 Lkl0J3MgbXkgaW50ZXJlc3QuQnV0IGF0IHRoZSB2ZXJ5IGJlZ2lubmluZyAsZXZlcnl0aGluZyBz ZWVtcyB0b28gZGlmZmljdWx0LjopIEFueXdheSBJIGxvdmUgdGhpcy4NCmF0ICMgLEkgdHlwZSBn dGstY29uZmlnIC0tdmVyc2lvbiAsaXQgcmVwbHlzIDoxLjIuNSxzbyBpdCBzZWVtcyB0aGF0IHRo ZSBHVEsrIGlzIGdvaW5nIHdlbGw/DQphbmQgSSAjbWFuIGd0ay1jb25maWcgdG8gZ2V0IGhlbHAu QnV0IEkgZG8gbm90IGtub3cgdGhlIHJlbGF0aW9uc2hpcCBiZXR3ZWVuICIjZ2NjIC1vIGRlc3Qu YyBzb3VyY2UuYyBgZ3RrLWNvbmcuLi4uLi4uYCIgYW5kIGNvbW1hbmQgImd0ay1jb25maWciLGNv dWxkIHlvdSB0ZWxsIG1lIHdoZW4geW91IGFyZSBmcmVlPw0KdGhhbmtzIGEgbG90IQ0KUFM6Zm9y Z2l2ZSBtZSB0aGF0IG15IGVuZ2xpc2ggaXMgbm90IGZsdWVudC4NCg0KLS0tLS0gT3JpZ2luYWwg TWVzc2FnZSAtLS0tLSANCkZyb206ICJDcmFpZyBFbWVyeSIgPGNyYWlnLmVtZXJ5QDNnbGFiLmNv bT4NClRvOiAiR1RLKyIgPGd0ay1saXN0QGdub21lLm9yZz4NClNlbnQ6IFRodXJzZGF5LCBKdW5l IDI4LCAyMDAxIDQ6MDIgUE0NClN1YmplY3Q6IFJlOiBIaQ0KDQoNCj4gWXVwLiBMb29rcyBsaWtl IHlvdSdyZSB1c2luZyB0aGUgd3JvbmcgcXVvdGVzIGluIHlvdXIgY29tcGlsZSBjb21tYW5kLg0K PiANCj4gWW91J3ZlIGdvdCAic2luZ2xlIHF1b3RhdGlvbiBtYXJrcyIgKGkuZS4gJyApIGJ1dCB5 b3UgbmVlZCBhcG9zdHJvcGhpZXMNCj4gKGkuZS4gYCApDQo+IE9uIG15IGtleWJvYXJkLCB0aGUg YXBvc3Ryb3BoeSBpcyB1cCBieSB0aGUgbm9uLWtleXBhZCAxIGtleS4NCj4gDQo+IEFwb3N0cm9w aGllcyAoSSd2ZSBoZWFyZCB0aGVtIGNhbGxlZCB0aWNrcyB0b287IHRoYXQncyBvbmx5IG9uZSBz eWxhYmxlLA0KPiBtdWNoIGVhc2llciB0byAidGFsayIpIG1lYW46ICJydW4gdGhpcyBjb21tYW5k IGFuZCBwdXQgaXQncyBvdXRwdXQgKipoZXJlKioiDQo+IA0KPiBTbyB0aGUgb3V0cHV0IG9mIHRo ZSBjYWxsIHRvIGd0ay1jb25maWcgKHRoYXQgZ2l2ZXMgdGhlIGNvbXBpbGVyIGZsYWdzLA0KPiBp biB5b3VyIGNhc2UsIGZvciBiaXRoICNpbmNsdWRlIGRpcmVjdGl2ZXMgYW5kIGxpbmtpbmcpIHdp bGwgYmUgc3VwcGxpZWQNCj4gdG8gZ2NjLg0KPiANCj4gVGhpcyBpcyBmYWlscmx5IHNpbXBsZSBz aGVsbCBzdHVmZiBhbmQsIGluY2lkZW50YWxseSwgbm90aGluZyB0byBkbyB3aXRoDQo+IEdUSysu DQo+IA0KPiBUaGUgc2hlbGwgaXMgeW91ciBmcmllbmQuIExlYXJuIGl0IHdlbGwuDQo+IA0KPiBD cmFpZy4NCj4gDQo+IGxpbnV4ZnVuIHdyb3RlOg0KPiANCj4gPiBIaQ0KPiA+DQo+ID4gSSBhbSB0 aGUgYmVnaW5uZXIgb2cgR1RLKyBidXQgSSBsb3ZlIGl0IHZlcnkgbXVjaC5IZXJlIGlzIG15IHBy b2JsZW9tOg0KPiA+DQo+ID4gSSBjYW5ub3QgY29tcGlsZSBteSBHVEsgcHJvZ3JhbW0gaGVsbG8u YyBpbiBSZWRoYXQgNi4xLHVzZSBnY2MgaGVsbG8uYw0KPiA+IC1vIGhlbGxvICdndGstY29uZmln LS1jZmxhZ3MtLWxpYnMnLHdoeT8gSSBpbnN0YWxsZWQgd29ya3N0YXRpb24gcmVkaGF0Lg0KPiA+ DQo+ID4gdGhhbmsgYWxsIG9mIHlvdSENCj4gPg0KPiANCj4gDQo+IA0KPiBfX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPiBndGstbGlzdCBtYWlsaW5nIGxp c3QNCj4gZ3RrLWxpc3RAZ25vbWUub3JnDQo+IGh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFu L2xpc3RpbmZvL2d0ay1saXN0DQo= From topper@virginia.edu Thu Jun 28 22:45:22 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by mail.gnome.org (Postfix) with SMTP id 9BF9B2DBE0 for ; Thu, 28 Jun 2001 22:45:22 -0400 (EDT) Received: from neon.mail.virginia.edu by mail.virginia.edu id aa27826; 28 Jun 2001 22:45 EDT Received: from virginia.edu (pawn.music.Virginia.EDU [128.143.140.146]) by neon.mail.Virginia.EDU (8.9.3/8.9.3) with ESMTP id WAA12245 for ; Thu, 28 Jun 2001 22:45:20 -0400 (EDT) Message-ID: <3B3BE054.45BDDCFA@virginia.edu> Date: Thu, 28 Jun 2001 21:56:37 -0400 From: "David J. Topper" X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to set gtk_entry size? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm creating a small window that takes in parameters for the creation of objects on the fly. So I'm using a bunch of gtk_entrys to grab those settings. But I seem unable to control the actual (physical) width of these entries. Using gtk_entry_max_length() has no effect on that. I *guess* I could use gtk_widget_set_usize() but would rather not since it uses pixel values. Thanks, DT -- Technical Director - Virginia Center for Computer Music http://www.virginia.edu/music/vccm.html From pbd@op.net Thu Jun 28 23:20:02 2001 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 B684E2EA5A for ; Thu, 28 Jun 2001 23:19:44 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-1a.ppp.op.net [209.152.194.122]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA01237; Thu, 28 Jun 2001 23:19:10 -0400 (EDT) Message-Id: <200106290319.XAA01237@renoir.op.net> To: "David J. Topper" Cc: gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "Thu, 28 Jun 2001 21:56:37 EDT." <3B3BE054.45BDDCFA@virginia.edu> Date: Thu, 28 Jun 2001 23:19:49 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I'm creating a small window that takes in parameters for the creation of >objects on the fly. So I'm using a bunch of gtk_entrys to grab those >settings. But I seem unable to control the actual (physical) width of >these entries. Using gtk_entry_max_length() has no effect on that. > >I *guess* I could use gtk_widget_set_usize() but would rather not since >it uses pixel values. my approach to this is to: 1) determine the longest string that will appear in the entry 2) use gdk_string_extents to get the width of that string in the particular style in use for the entry widget 3) use gtk_widget_set_usize to that size to demonstrate this function (which i trust made it into GTK+ 1.3), i enclose (once again): /* Copyright (C) 1998-99 Paul Barton-Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. $Id: gtkutils.c,v 1.1 1999/11/29 18:38:11 pbd Exp $ */ #include void gtk_widget_set_usize_to_display_given_text (GtkWidget *w, const gchar *text, gint hpadding, gint vpadding) { guint width; guint lbearing; guint rbearing; guint ascent; guint descent; gdk_string_extents (w->style->font, text, &lbearing, &rbearing, &width, &ascent, &descent); gtk_widget_set_usize (w, width+hpadding, ascent+descent+vpadding); } From rbultje@ronald.bitfreak.net Fri Jun 29 02:39:12 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by mail.gnome.org (Postfix) with ESMTP id 689E02BEA6 for ; Fri, 29 Jun 2001 02:39:11 -0400 (EDT) Received: from Ronald.ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id IAA24943; Fri, 29 Jun 2001 08:39:07 +0200 (CEST) Message-Id: <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> X-Sender: rbultje@ronald.bitfreak.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 29 Jun 2001 08:38:55 +0200 To: Paul Davis From: Ronald Bultje Subject: Re: bug? Cc: gtk-list@gnome.org In-Reply-To: <200106282132.RAA03942@renoir.op.net> References: 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: At 17:32 28-06-2001 -0400, you wrote: > >I have a window of two buttons and one label in a hbox. > >If I change the text in the label, as a reaction on a signal, the hbox > >will suddenly enlarge and be much larger than it should be... > >labels (and containers) expand to display their contents unless told >otherwise. > >whats the bug? > >if you want the box to be of a fixed size, use gtk_widget_set_usize(). The content of the label is *much* smaller than the size is expands to, that's the bug/problem. The content or "size of content" does not change. It has the same number of characters, even. But the hbox still expands and directly after that I can make the window smaller so it expands to a higher size than it needs...... That does not sound like how it should be to me, but I could be wrong of course. Anyway, I'll try using the set_usize, although not the nicest solution. Ronald From rbultje@ronald.bitfreak.net Fri Jun 29 02:42:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.127.132]) by mail.gnome.org (Postfix) with ESMTP id 8E5302EA97 for ; Fri, 29 Jun 2001 02:42:34 -0400 (EDT) Received: from Ronald.ronald.bitfreak.net (213-84-68-128.adsl.xs4all.nl [213.84.68.128]) by smtp3.xs4all.nl (8.9.3/8.9.3) with ESMTP id IAA17002; Fri, 29 Jun 2001 08:42:31 +0200 (CEST) Message-Id: <5.1.0.14.0.20010629084054.00a04670@ronald.bitfreak.net> X-Sender: rbultje@ronald.bitfreak.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 29 Jun 2001 08:42:19 +0200 To: Alexandre Mathy , gtk-list@gnome.org From: Ronald Bultje Subject: Re: GC's In-Reply-To: <993779777.4838.0.camel@ardm2> 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: At 01:56 29-06-2001 +0000, Alexandre Mathy wrote: >cred.red =1.0; That should be 1.0 * 65535.0 GdkColors work with [0-65535] rather than [0.0-1.0]. Ronald From Steph.Fox@btinternet.com Fri Jun 29 06:18:56 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id D00672EACB for ; Fri, 29 Jun 2001 06:18:55 -0400 (EDT) Received: from [213.1.74.67] (helo=t2r1o8) by protactinium with smtp (Exim 3.22 #9) id 15FvMP-00056P-00 for gtk-list@gnome.org; Fri, 29 Jun 2001 11:18:49 +0100 Message-ID: <026c01c10084$e4df3140$c2107bd5@t2r1o8> From: "Steph" To: Subject: GTK WINDOWS PORT Date: Fri, 29 Jun 2001 11:18:43 +0100 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello ppl I come of the PHP-GTK community & have several queries re the windows = port which hopefully someone here can assist with. First off (tester question to see if I'm in the right place) - GtkText = set_line_wrap() is putting \r returns (little black boxes) at every = wrap. =20 We're using 1.3 Any knowledge/comments, anyone? ty Steph From binnema@djcb.dyndns.org Wed Jun 27 15:59:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from djcb.dyndns.org (29dyn214.dh.casema.net [213.17.5.214]) by mail.gnome.org (Postfix) with SMTP id 5C2912DEF0 for ; Wed, 27 Jun 2001 15:59:37 -0400 (EDT) Received: (qmail 30366 invoked by uid 550); 27 Jun 2001 20:00:57 -0000 Received: from unknown (192.168.1.2) by 192.168.1.1 with QMQP; 27 Jun 2001 20:00:57 -0000 Date: Wed, 27 Jun 2001 22:08:31 +0200 From: "Dirk-Jan C. Binnema" To: gtk-list@gnome.org Cc: gtk-devel-list@gnome.org Subject: Re: editor with syntax highlighting for GTK+/GNOME API Message-ID: <20010627220830.A910@mindcrime.djb.nl> Reply-To: bulkmeel@yahoo.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.18i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed Jun 27, 2001 at 09:20:42PM +0200, Sven Neumann wrote: > (custom-set-variables > '(c-font-lock-extra-types (quote ("gint" "gfloat" "gchar" > "gint8" "gint16" "gint32" "guint" "guint8" "guint16" > "guint32" "guchar" "glong" "gboolean" "gshort" "gushort" > "gulong" "gdouble" "gldouble" "gpointer" "G_\\w+" > "GList" "GSList" "GFunc" "GPOINTER_\\w+" "GINT_\\w+" "GUINT_\\w+" > "Gtk\\w+" "Gdk\\w+" "GTK\\w+" "GDK\\w+" "NULL" > "Gimp\\w+" "GIMP\\w+" > "FT_\\w+" > "Pango\\w+" "PANGO\\w+" > "->" "FALSE" "TRUE" "FILE" "MIN" "MAX" "CLAMP" "ABS" "DIR" "\\sw+_t" > "GCim\\w+"))) > > You will want to modify/extend this list a bit and I'm sure there are > better ways to do this, but this one works reasonably well. Indeed; there's an OpenGL mode for emacs that goes a step further, and has built in completion for functions, knows about their args etc. Something like that would certainly be nice for GTK+ (probably best with separate glib.el, gtk.el and gnome.el), but would be a *lot* of work. Well, at least we can use tags. --Dirk-Jan. From andres_giraldo@yahoo.com Fri Jun 29 10:05:40 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11503.mail.yahoo.com (web11503.mail.yahoo.com [216.136.172.35]) by mail.gnome.org (Postfix) with SMTP id 234CD2BB19 for ; Fri, 29 Jun 2001 10:05:40 -0400 (EDT) Message-ID: <20010629140539.42763.qmail@web11503.mail.yahoo.com> Received: from [209.205.77.165] by web11503.mail.yahoo.com; Fri, 29 Jun 2001 07:05:39 PDT Date: Fri, 29 Jun 2001 07:05:39 -0700 (PDT) From: "Andrés" Giraldo Subject: How gtk_widget_hide works? To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I'm trying to set unvisible a window, using: GtkWidget *window; gtk_widget_hide (window); but it doesn't work... I'm just need to hide a window to set it unvisible for a while, so what am I doing wrong? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From pbd@op.net Fri Jun 29 10:35:47 2001 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 77FB42EB0F for ; Fri, 29 Jun 2001 10:35:40 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA14511; Fri, 29 Jun 2001 10:35:36 -0400 (EDT) Message-Id: <200106291435.KAA14511@renoir.op.net> To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug? In-reply-to: Your message of "Fri, 29 Jun 2001 08:38:55 +0200." <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> Date: Fri, 29 Jun 2001 10:36:21 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >The content of the label is *much* smaller than the size is expands to, >that's the bug/problem. >The content or "size of content" does not change. It has the same number of >characters, even. But the hbox still expands and directly after that I can >make the window smaller so it expands to a higher size than it needs...... >That does not sound like how it should be to me, but I could be wrong of >course. is the container set to "homogeneous" ? if so, all of its children are required to be of the same size. did you unset this? also, what padding and expand options did you use? --p From hp@redhat.com Fri Jun 29 10:43:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 296402EB10 for ; Fri, 29 Jun 2001 10:43:54 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEhdb01031; Fri, 29 Jun 2001 10:43:39 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Steph" Cc: Subject: Re: GTK WINDOWS PORT References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> From: Havoc Pennington Date: 29 Jun 2001 10:43:39 -0400 In-Reply-To: "Steph"'s message of "Fri, 29 Jun 2001 11:18:43 +0100" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Steph" writes: > Hello ppl > > I come of the PHP-GTK community & have several queries re the windows port which hopefully someone here can assist with. > > First off (tester question to see if I'm in the right place) - GtkText set_line_wrap() is putting \r returns (little black boxes) at every wrap. > > We're using 1.3 > Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) It's on-topic to ask about GTK win32 here, but I believe the gimp-win32 list (? something like that) may have more people who knows win32-specific answers. Havoc From hp@redhat.com Fri Jun 29 10:45:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id A436A2EB1A for ; Fri, 29 Jun 2001 10:45:18 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEiwP01037; Fri, 29 Jun 2001 10:44:58 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106290319.XAA01237@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 10:44:58 -0400 In-Reply-To: Paul Davis's message of "Thu, 28 Jun 2001 23:19:49 -0400" Message-ID: Lines: 8 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > to demonstrate this function (which i trust made it into GTK+ 1.3), i > enclose (once again): What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). Havoc From andrei@ispi.net Fri Jun 29 10:47:34 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wynton.ispi.net (wynton.ispi.net [206.131.193.10]) by mail.gnome.org (Postfix) with ESMTP id DA0FA2BB41 for ; Fri, 29 Jun 2001 10:47:33 -0400 (EDT) Received: by ispi.net (secure version) id JAA10142; Fri, 29 Jun 2001 09:47:17 -0500 X-Authentication-Warning: cassandra.ispi.prv: andrey set sender to andrei@ispi.net using -f Date: Fri, 29 Jun 2001 09:47:17 -0500 From: Andrei Zmievski To: Havoc Pennington Cc: Steph , gtk-list@gnome.org Subject: Re: GTK WINDOWS PORT Message-ID: <20010629094717.P9196@ispi.net> References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> 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 Fri, Jun 29, 2001 at 10:43:39AM -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, 29 Jun 2001, Havoc Pennington wrote: > > We're using 1.3 > > > > Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to > define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) > > It's on-topic to ask about GTK win32 here, but I believe the > gimp-win32 list (? something like that) may have more people who knows > win32-specific answers. I have to correct her, PHP-GTK users have to use Gtk+ 1.3 for Windows because it's the one with the least bugs -- they don't compile it. -Andrei * We are not a clone. * From hp@redhat.com Fri Jun 29 10:47:42 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 2B2C92BB41 for ; Fri, 29 Jun 2001 10:47:42 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TElRL01040; Fri, 29 Jun 2001 10:47:27 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Alexandre Mathy Cc: gtk-list@gnome.org Subject: Re: GC's References: <993779777.4838.0.camel@ardm2> From: Havoc Pennington Date: 29 Jun 2001 10:47:26 -0400 In-Reply-To: Alexandre Mathy's message of "29 Jun 2001 01:56:16 +0000" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Alexandre Mathy writes: > Hey, > I'm trying to get the hang of GdkGC's but I can't find any decent > documentation... The "scribble" example in the tutorial may help, and the Xlib Programming Manual (vol 1) is good if you want tons of details. > GdkGc selectedGC; > > //I think the following line is the problem > // I have tried this with the pixmap instead of widget->window > // but then the colormap is null.. with this code, nothing happens > GdkColormap *cmap = gdk_window_get_colormap (widget->window); Suggest simply: gtk_widget_get_colormap (widget) > cred.red =1.0; These values are in the range [0,G_MAXUSHORT] Havoc From hp@redhat.com Fri Jun 29 10:49:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id B4A1A2EAFD for ; Fri, 29 Jun 2001 10:49:03 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEmm101043; Fri, 29 Jun 2001 10:48:48 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: Paul Davis , gtk-list@gnome.org Subject: Re: bug? References: <5.1.0.14.0.20010629083627.009efb40@ronald.bitfreak.net> From: Havoc Pennington Date: 29 Jun 2001 10:48:48 -0400 In-Reply-To: Ronald Bultje's message of "Fri, 29 Jun 2001 08:38:55 +0200" Message-ID: Lines: 14 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > The content of the label is *much* smaller than the size is expands to, that's > the bug/problem. > The content or "size of content" does not change. It has the same number of > characters, even. But the hbox still expands and directly after that I can make > the window smaller so it expands to a higher size than it needs...... That does > not sound like how it should be to me, but I could be wrong of > course. No, that shouldn't happen. If you can come up with a test case we can compile, it'd be great if you could file a bug on bugzilla.gnome.org. Havoc From hp@redhat.com Fri Jun 29 10:50:06 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id EB40B2EAFD for ; Fri, 29 Jun 2001 10:50:05 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TEnpp01046; Fri, 29 Jun 2001 10:49:51 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "=?iso-8859-1?q?Andr=E9s?=" Giraldo Cc: Gtk List Subject: Re: How gtk_widget_hide works? References: <20010629140539.42763.qmail@web11503.mail.yahoo.com> From: Havoc Pennington Date: 29 Jun 2001 10:49:51 -0400 In-Reply-To: "=?iso-8859-1?q?Andr=E9s?=" Giraldo's message of "Fri, 29 Jun 2001 07:05:39 -0700 (PDT)" Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Andr s" Giraldo writes: >=20 > I'm trying to set unvisible a window, using: >=20 > GtkWidget *window; >=20 > gtk_widget_hide (window); >=20 > but it doesn't work... I'm just need to hide a window > to set it unvisible for a while, so what am I doing wrong? >=20 gtk_widget_hide() should work, must be something else wrong with the code. Havoc From pbd@op.net Fri Jun 29 10:58:08 2001 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 801B62EB24 for ; Fri, 29 Jun 2001 10:58:08 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16712; Fri, 29 Jun 2001 10:57:54 -0400 (EDT) Message-Id: <200106291457.KAA16712@renoir.op.net> To: Havoc Pennington Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "29 Jun 2001 10:44:58 EDT." Date: Fri, 29 Jun 2001 10:58:39 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> to demonstrate this function (which i trust made it into GTK+ 1.3), i >> enclose (once again): > >What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). That can't be right. The text of characters in some fonts varies widely. If I want an entry to precisely contain "lllllllll", it may be totally different size than if I want it to contain "mxmxmxmxmxmxm". Not to mention issues with non-Latin1 text. Oh well, I guess I'll keep posting gtk_entry_set_usize_from_given_text() :) --p From hp@redhat.com Fri Jun 29 11:30:53 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 9CF4E2EB59 for ; Fri, 29 Jun 2001 11:30:53 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TFURH32606; Fri, 29 Jun 2001 11:30:27 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106291457.KAA16712@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 11:30:26 -0400 In-Reply-To: Paul Davis's message of "Fri, 29 Jun 2001 10:58:39 -0400" Message-ID: Lines: 27 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > >> to demonstrate this function (which i trust made it into GTK+ 1.3), i > >> enclose (once again): > > > >What we have in 1.3 is gtk_entry_set_width_chars(entry, n_chars). > > That can't be right. The text of characters in some fonts varies > widely. If I want an entry to precisely contain "lllllllll", it may be > totally different size than if I want it to contain > "mxmxmxmxmxmxm". Not to mention issues with non-Latin1 text. > > Oh well, I guess I'll keep posting gtk_entry_set_usize_from_given_text() :) > There are no issues with non-Latin1 text. set_width_chars() uses the 'average char width' from the Pango font, which is somewhat a voodoo number, but does consider the existence of non-Latin1. After all that's the point of Pango. set_width_chars() is intended for when you don't know exactly which chars it will contain - if you know the entry will contain "lllllll" then setting the usize is probably right, but also, using a label rather than an entry is probably right. ;-) Havoc From pbd@op.net Fri Jun 29 11:40:31 2001 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 367092EB67 for ; Fri, 29 Jun 2001 11:40:31 -0400 (EDT) Received: from someip.ppp.op.net (d-bm4-0b.ppp.op.net [209.152.194.107]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA20868; Fri, 29 Jun 2001 11:40:28 -0400 (EDT) Message-Id: <200106291540.LAA20868@renoir.op.net> To: Havoc Pennington Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? In-reply-to: Your message of "29 Jun 2001 11:30:26 EDT." Date: Fri, 29 Jun 2001 11:41:13 -0400 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >There are no issues with non-Latin1 text. set_width_chars() uses the >'average char width' from the Pango font, which is somewhat a voodoo >number, but does consider the existence of non-Latin1. After all >that's the point of Pango. > >set_width_chars() is intended for when you don't know exactly which >chars it will contain - if you know the entry will contain "lllllll" >then setting the usize is probably right, but also, using a label >rather than an entry is probably right. ;-) ah, what i failed to notice was that the prefix is "gtk_entry" rather than "gtk_widget". in fact, i failed to notice it so much that i even used the same prefix when referring to the function i posted (which is actually prefixed gtk_widget_...). that helps to explain the approach you've taken. is this going to work for spinbuttons as well? my recollection is that the GtkEntry widget is supposed to be "private", and thus not amenable to tricks to set its width. or do we just violate the privacy rule and set it anyway, since trying it on the overall widget fails miserably due to the (unknowable) width of the controls (typically arrows). --p From hp@redhat.com Fri Jun 29 12:07:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id C144C2CCF3 for ; Fri, 29 Jun 2001 12:07:24 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5TG79O25651; Fri, 29 Jun 2001 12:07:09 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: "David J. Topper" , gtk-list@gnome.org Subject: Re: How to set gtk_entry size? References: <200106291540.LAA20868@renoir.op.net> From: Havoc Pennington Date: 29 Jun 2001 12:07:09 -0400 In-Reply-To: Paul Davis's message of "Fri, 29 Jun 2001 11:41:13 -0400" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > is this going to work for spinbuttons as well? my recollection is that > the GtkEntry widget is supposed to be "private", and thus not amenable > to tricks to set its width. or do we just violate the privacy rule and > set it anyway, since trying it on the overall widget fails miserably > due to the (unknowable) width of the controls (typically arrows). > SpinButton is_a GtkEntry rather than containing one, so it isn't really supposed to be private. (Though the is_a relationship is a bit questionable.) Anyhow, spin buttons now default to basing their size request on MAX (width_of_min_value, width_of_max_value), with a random hardcoded min size of 30 pixels. You can override this with either gtk_entry_set_width_chars() or gtk_widget_set_usize(). Havoc From Steph.Fox@btinternet.com Fri Jun 29 12:35:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rhenium (rhenium.btinternet.com [194.73.73.93]) by mail.gnome.org (Postfix) with ESMTP id E34C32E12E for ; Fri, 29 Jun 2001 12:32:56 -0400 (EDT) Received: from [62.7.121.142] (helo=t2r1o8) by rhenium with smtp (Exim 3.22 #9) id 15G1CK-0003QN-00; Fri, 29 Jun 2001 17:32:49 +0100 Message-ID: <004801c100b9$1fea8ee0$7406073e@t2r1o8> From: "Steph" To: "Havoc Pennington" , "Raymond Wan" Cc: References: <026c01c10084$e4df3140$c2107bd5@t2r1o8> Subject: Re: GTK WINDOWS PORT Date: Fri, 29 Jun 2001 17:32:39 +0100 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks Havoc, I'll go back to basics & get details of what's been = compiled & how for our Windows binary & then check out the list you = referred to. Thanks to you too, Raymond - s'nice to get a quick response! ----- Original Message -----=20 From: "Havoc Pennington" To: "Steph" Cc: Sent: Friday, June 29, 2001 3:43 PM Subject: Re: GTK WINDOWS PORT "Steph" writes: > Hello ppl >=20 > I come of the PHP-GTK community & have several queries re the windows = port which hopefully someone here can assist with. >=20 > First off (tester question to see if I'm in the right place) - GtkText = set_line_wrap() is putting \r returns (little black boxes) at every = wrap. =20 >=20 > We're using 1.3 >=20 Don't use GtkText with 1.3 - it's deprecated. (Didn't you have to define GTK_ENABLE_BROKEN to get GtkText code compiling at all?) It's on-topic to ask about GTK win32 here, but I believe the gimp-win32 list (? something like that) may have more people who knows win32-specific answers. Havoc From bonjour@ime.unicamp.br Fri Jun 29 12:48:45 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pretoria.ime.unicamp.br (pretoria.ime.unicamp.br [143.106.22.7]) by mail.gnome.org (Postfix) with ESMTP id 563EE2E1EF for ; Fri, 29 Jun 2001 12:40:32 -0400 (EDT) Received: from athenas.ime.unicamp.br (athenas.ime.unicamp.br [143.106.22.3]) by pretoria.ime.unicamp.br (8.9.0/8.9.0) with ESMTP id NAA23065 for ; Fri, 29 Jun 2001 13:41:07 -0300 (EST) Date: Fri, 29 Jun 2001 13:40:17 -0300 (EST) From: Filipe Bonjour To: GTK List Subject: Synchronizing X 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Under Xlib you can call XSynchronize to synchronize the X server and catch bugs. Is there a similar call under GTK/GNOME? Otherwise, can I get the display from a gtk/gdk function and pass it to XSyncronize? (How?) Thanks, Fil +-----------------------------------------------------------------------+ | Dr. Fil Bonjour | Fil Bonjour | | UNICAMP, IMECC, DMA - Room 328 | Rua Alberto de Salvo 53 | | 13081-970 Campinas SP Brazil | 13084-670 Campinas SP Brazil | | Phone: (++55.19) 3788.60.44 | Phone: (+55.19) 3289.77.84 | | Fax: (++55.19) 3289.14.66 | | | Email: bonjour@ime.unicamp.br | Email: fbonjour@uol.com.br | | http://www.ime.unicamp.br/~bonjour| | +-----------------------------------------------------------------------+ From robyegiuly@libero.it Fri Jun 29 12:48:54 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mail.gnome.org (Postfix) with ESMTP id B16532E226 for ; Fri, 29 Jun 2001 12:42:41 -0400 (EDT) Received: from mail.libero.it (151.25.37.171) by smtp1.libero.it (5.5.025) id 3AE980E700E7931B for gtk-list@gnome.org; Fri, 29 Jun 2001 18:42:40 +0200 Date: Fri, 29 Jun 2001 18:44:30 +0200 From: Roberto Sobachi To: gtk-list@gnome.org Subject: ICONS!!! Message-ID: <20010629184430.A542@DEBIAN> Reply-To: robyegiuly@libero.it Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.0.pre5 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How can I associate an icon to my application for the task list or the top of the window? -- --------------- Roberto Sobachi From bachn@LESTERELECTRICAL.com Fri Jun 29 12:49:19 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from nt_le.Lesterelectrical.com (h216-170-003-037.adsl.navix.net [216.170.3.37]) by mail.gnome.org (Postfix) with ESMTP id 190C62E2C4 for ; Fri, 29 Jun 2001 12:48:04 -0400 (EDT) Received: by NT_LE with Internet Mail Service (5.5.2448.0) id ; Fri, 29 Jun 2001 11:48:01 -0500 Message-ID: From: Bach Ngo To: "'gtk-list@gnome.org'" Subject: How do I know the version of gtk? Date: Fri, 29 Jun 2001 11:47:55 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi How can I find out what the version of gtk? Bach Ngo From rbultje@ronald.bitfreak.net Fri Jun 29 12:52:36 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ronald.bitfreak.net (ucu-105-116.ucu.uu.nl [131.211.105.116]) by mail.gnome.org (Postfix) with ESMTP id 107192E18B for ; Fri, 29 Jun 2001 12:52:36 -0400 (EDT) Received: from [192.168.0.96] (bultje.demon.nl [212.238.91.169]) by ronald.bitfreak.net (8.10.1/8.10.1) with ESMTP id f5THYDF13014; Fri, 29 Jun 2001 19:34:13 +0200 (CEST) Subject: Re: bug? From: Ronald Bultje To: Paul Davis Cc: GTK Mailing List In-Reply-To: <200106291435.KAA14511@renoir.op.net> References: <200106291435.KAA14511@renoir.op.net> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 29 Jun 2001 20:44:28 +0200 Message-Id: <993840279.968.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 10:36:21 -0400, Paul Davis wrote: > is the container set to "homogeneous" ? if so, all of its children are > required to be of the same size. did you unset this? also, what I set it to FALSE... > padding and expand options did you use? padding of 10 pixels, changing it to 0 made no difference. expand: false as well... Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.4 and OpenBSD 2.8 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From hp@redhat.com Fri Jun 29 13:40:11 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by mail.gnome.org (Postfix) with ESMTP id 40E3D2E204 for ; Fri, 29 Jun 2001 13:40:11 -0400 (EDT) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.2/8.11.2) id f5THdrf04270; Fri, 29 Jun 2001 13:39:53 -0400 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Filipe Bonjour Cc: GTK List Subject: Re: Synchronizing X References: From: Havoc Pennington Date: 29 Jun 2001 13:39:53 -0400 In-Reply-To: Filipe Bonjour's message of "Fri, 29 Jun 2001 13:40:17 -0300 (EST)" Message-ID: Lines: 12 User-Agent: Gnus/5.0807 (Gnus v5.8.7) 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Filipe Bonjour writes: > > Under Xlib you can call XSynchronize to synchronize the X server and > catch bugs. Is there a similar call under GTK/GNOME? Otherwise, can I > get the display from a gtk/gdk function and pass it to XSyncronize? > (How?) > Just start your app with the "--sync" option. Havoc From kodis@jagunet.com Fri Jun 29 16:27:39 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from skydiver.jaguNET.com (skydiver.jaguNET.com [209.133.192.8]) by mail.gnome.org (Postfix) with ESMTP id 051D02CF0A for ; Fri, 29 Jun 2001 16:27:39 -0400 (EDT) Received: from kodis.jagunet.com (kodis.jaguNET.com [209.133.192.48]) by skydiver.jaguNET.com (8.9.3/jag-2.6) with ESMTP id QAA01296 for ; Fri, 29 Jun 2001 16:27:37 -0400 (EDT) Received: (from kodis@localhost) by kodis.jagunet.com (8.11.2/8.11.2) id f5TKRZb12256 for gtk-list@gnome.org; Fri, 29 Jun 2001 16:27:35 -0400 X-Authentication-Warning: papa.jagunet.com: kodis set sender to kodis@jagunet.com using -f Date: Fri, 29 Jun 2001 16:27:34 -0400 From: John Kodis To: gtk-list@gnome.org Subject: Re: ICONS!!! Message-ID: <20010629162734.B12221@papa.jagunet.com> Mail-Followup-To: John Kodis , gtk-list@gnome.org References: <20010629184430.A542@DEBIAN> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010629184430.A542@DEBIAN>; from robyegiuly@libero.it on Fri, Jun 29, 2001 at 06:44:30PM +0200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, Jun 29, 2001 at 06:44:30PM +0200, Roberto Sobachi wrote: > > How can I associate an icon to my application for the task list or the top > of the window? While this might be considered heresy on a gtk list, the only way I know to do this is: gnome_window_icon_set_default_from_file("/path/to/icon.png"); -- John Kodis. From watchthinker@netease.com Fri Jun 29 20:17:44 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp1.netease.com (unknown [202.103.134.10]) by mail.gnome.org (Postfix) with ESMTP id 3C80B2BF20 for ; Fri, 29 Jun 2001 20:17:44 -0400 (EDT) Received: from default (unknown [211.159.47.200]) by smtp1.netease.com (Postfix) with ESMTP id 8AC121C535783 for ; Sat, 30 Jun 2001 08:22:49 +0800 (CST) Date: Sat, 30 Jun 2001 08:15:46 +0800 From: watchthinker To: gtk-list@gnome.org Subject: win32 port In-Reply-To: <20010629145202.E77FD2EB35@mail.gnome.org> References: <20010629145202.E77FD2EB35@mail.gnome.org> Message-Id: <20010630080944.7918.WATCHTHINKER@netease.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.03 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear All: I am new to gtk. I want to use gtk to write win32 programs. But when the complied program run, there is a console window appears. What to do to close the console windows? Thanks! From pfeiffer@cs.nmsu.edu Fri Jun 29 20:37:03 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.CS.NMSU.Edu (cs.CS.NMSU.Edu [128.123.64.2]) by mail.gnome.org (Postfix) with ESMTP id 79EBB2E3AE for ; Fri, 29 Jun 2001 20:37:02 -0400 (EDT) Received: from viper.cs.nmsu.edu (root@viper [128.123.64.113]) by cs.CS.NMSU.Edu (8.8.6/8.8.6) with ESMTP id SAA05026 for ; Fri, 29 Jun 2001 18:37:01 -0600 (MDT) Received: (pfeiffer@localhost) by viper.cs.nmsu.edu (8.10.2/8.6.12) id f5U0b0q11303; Fri, 29 Jun 2001 18:37:00 -0600 Date: Fri, 29 Jun 2001 18:37:00 -0600 Message-Id: <200106300037.f5U0b0q11303@viper.cs.nmsu.edu> X-Authentication-Warning: viper.cs.nmsu.edu: pfeiffer set sender to pfeiffer@cs.nmsu.edu using -f From: Joe Pfeiffer To: gtk-list@gnome.org Subject: focus and notebook tabs? Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using a gtknotebook, and need to have some pages inaccessible depending on the state of the program. I'm using gtk version 1.2.10. My first try at this was to simply get the tab and set it insensitive; when I did that, the tab ``greyed out'' appropriately, but if I clicked on it I went to the tab's page anyway. Following a suggestion on the gtkmm mailing list (I'm actually working in gtkmm, but I think I'm looking at gtk troubles here), I intercepted the page-switch signal, and only let the switch happen if the tab was sensitive. This is working, but I'm having trouble controlling keyboard navigation. I can use the key to set the focus on the greyed-out tab, even though pressing the key when it has the focus has no effect (well, it tries to switch pages, but I'm intercepting that). Following another gtkmm suggestion, I'm using GTK_OBJECT_UNSET_FLAGS to unset the GTK_CAN_FOCUS flag. This is having no effect; it still gets the focus. So... how should I be doing this? -- 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 SWNMRSEF: http://www.nmsu.edu/~scifair From abrice2@home.com Sat Jun 30 02:53:07 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from femail17.sdc1.sfba.home.com (femail17.sdc1.sfba.home.com [24.0.95.144]) by mail.gnome.org (Postfix) with ESMTP id 1D6262BB38 for ; Sat, 30 Jun 2001 02:53:07 -0400 (EDT) Received: from home.com ([24.250.194.198]) by femail17.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010630065306.MLBF13663.femail17.sdc1.sfba.home.com@home.com> for ; Fri, 29 Jun 2001 23:53:06 -0700 Message-ID: <3B3D7840.2804DF71@home.com> Date: Fri, 29 Jun 2001 23:57:04 -0700 From: Aaron Brice X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: XPM collection? 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This probably gets asked a lot but it's not in the FAQ so... Can anyone recommend a good site to get collections of XPM icons? Thanks, Aaron From andres_giraldo@yahoo.com Sat Jun 30 10:06:32 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11501.mail.yahoo.com (web11501.mail.yahoo.com [216.136.172.46]) by mail.gnome.org (Postfix) with SMTP id 8F16D2D438 for ; Sat, 30 Jun 2001 10:06:31 -0400 (EDT) Message-ID: <20010630140630.14259.qmail@web11501.mail.yahoo.com> Received: from [209.205.77.165] by web11501.mail.yahoo.com; Sat, 30 Jun 2001 07:06:30 PDT Date: Sat, 30 Jun 2001 07:06:30 -0700 (PDT) From: "Andrés" Giraldo Subject: gtk_signal_connect To: Gtk List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I created a class that connect 2 signals from 2 widgtes to the same function: class myclass { char *string; myclass { string = "Hello World"; } void some_function () { GtkWidget *button = gtk_new_button_with_label ("Tes") GtkWidget *drawing_area = gtk_drawing_area_new (); ... gtk_widget_show (button); gtk_widget_show (drawing_area); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (on_button_clicked), this) gtk_signal_connect (GTK_OBJECT (drawing_area), "expose_event", GTK_SIGNAL_FUNC (on_drawing_area_expose_event), this) } static void on_button_clicked (GtkButton *button, gpointer arg) { ((myclass *) arg)->test (); } static void on_drawing_area_expose_event (GtkDrawingArea *drawing_area, gpointer arg) { ((myclass *) arg)->test (); } void test () { cout << string << "\n"; } } So... why it works with the "clicked" button's signal, but it doesn't work with the "expose_event" drawing_area's signal? __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From sven@gimp.org Sat Jun 30 12:16:24 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender (pD90020D1.dip.t-dialin.net [217.0.32.209]) by mail.gnome.org (Postfix) with ESMTP id 079812DBEC for ; Sat, 30 Jun 2001 12:16:24 -0400 (EDT) Received: from neo by bender with local (Exim 3.22 #1 (Debian)) id 15GNIK-0000iN-00; Sat, 30 Jun 2001 18:08:28 +0200 To: "AndrXs" Giraldo Cc: Gtk List Subject: Re: gtk_signal_connect References: <20010630140630.14259.qmail@web11501.mail.yahoo.com> From: Sven Neumann Date: 30 Jun 2001 18:08:28 +0200 In-Reply-To: <20010630140630.14259.qmail@web11501.mail.yahoo.com> Message-ID: Lines: 24 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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "AndrXs" Giraldo writes: > static void on_button_clicked (GtkButton *button, > gpointer arg) > > static void on_drawing_area_expose_event > (GtkDrawingArea *drawing_area, gpointer arg) > > So... why it works with the "clicked" button's signal, > but it doesn't work with the "expose_event" > drawing_area's signal? because the "expose_event" signal has a different signature. Your signal handler should look like: static gint on_drawing_area_expose_event (GtkDrawingArea *drawing_area, GdkEventExpose *event, gpointer arg) Salut, Sven From switk@yahoo.com Sat Jun 30 19:15:18 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx01.cluster1.charter.net (dc-mx01.cluster0.hsacorp.net [209.225.8.11]) by mail.gnome.org (Postfix) with ESMTP id 1F8F42BBE4 for ; Sat, 30 Jun 2001 19:15:18 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx01.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 10471282 for gtk-list@gnome.org; Sat, 30 Jun 2001 19:21:35 -0400 Subject: Re: ICONS!!! From: Stephen Witkop To: gtk-list@gnome.org In-Reply-To: <20010629162734.B12221@papa.jagunet.com> References: <20010629184430.A542@DEBIAN> <20010629162734.B12221@papa.jagunet.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <993942786.4037.1.camel@athlon.localdomain> Mime-Version: 1.0 X-Mailer: Evolution/0.10.99 (Preview Release) Date: 30 Jun 2001 19:15:17 -0400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 16:27:34 -0400, John Kodis wrote: > On Fri, Jun 29, 2001 at 06:44:30PM +0200, Roberto Sobachi wrote: > > > > How can I associate an icon to my application for the task list or the top > > of the window? > > While this might be considered heresy on a gtk list, the only way I > know to do this is: > > gnome_window_icon_set_default_from_file("/path/to/icon.png"); > > -- John Kodis. > Luckily we have: void gdk_window_set_icon (GdkWindow *window, GdkWindow *icon_window, GdkPixmap *pixmap, GdkBitmap *mask); Stephen From switk@yahoo.com Sat Jun 30 19:22:50 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dc-mx04.cluster1.charter.net (dc-mx04.cluster0.hsacorp.net [209.225.8.14]) by mail.gnome.org (Postfix) with ESMTP id 1C9782DF4D for ; Sat, 30 Jun 2001 19:22:50 -0400 (EDT) Received: from [24.216.38.22] (HELO athlon.localdomain) by dc-mx04.cluster1.charter.net (CommuniGate Pro SMTP 3.4.6) with ESMTP id 11613095; Sat, 30 Jun 2001 19:28:37 -0400 Subject: Re: How do I know the version of gtk? From: Stephen Witkop To: Bach Ngo Cc: "'gtk-list@gnome.org'" In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.10.99 (Preview Release) Date: 30 Jun 2001 19:22:39 -0400 Message-Id: <993943359.4238.0.camel@athlon.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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 29 Jun 2001 11:47:55 -0500, Bach Ngo wrote: > Hi > > How can I find out what the version of gtk? > > Bach Ngo > > Use the command gtk-config --version. If gtk is installed properly on your system it will return the correct version number. Stephen From popeofpop@softhome.net Sat Jun 30 19:38:59 2001 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by mail.gnome.org (Postfix) with SMTP id 718D02DF59 for ; Sat, 30 Jun 2001 19:38:58 -0400 (EDT) Received: (qmail 1836 invoked by uid 417); 30 Jun 2001 23:43:01 -0000 Received: from gateway.dr.dk (HELO smtp.softhome.net) (129.142.20.129) by i-softhome-tango with SMTP; 30 Jun 2001 23:43:01 -0000 X-Mailer: Ultrafunk Popcorn release 1.04 (13.Jan.2001) X-URL: http://www.ultrafunk.com/products/popcorn Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 Date: Sun, 1 Jul 2001 01:38:55 +0100 (Vesteuropa, normaltid) From: Chris Hansen To: gtk-list@gnome.org Subject: Re: ICONS!!! Reply-To: popeofpop@softhome.net Message-Id: <20010630233858.718D02DF59@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.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Subject: Re: ICONS!!! > From: Stephen Witkop > Date: 30 Jun 2001 19:15:17 -0400 > To: gtk-list@gnome.org > >Luckily we have: > >void gdk_window_set_icon (GdkWindow *window, > GdkWindow *icon_window, > GdkPixmap *pixmap, > GdkBitmap *mask); But how do we use this function with a window created as GtkWidget *window; ? Does anyone have some sample code? Regards Chris Hansen