Re: GTK+ performance problem

2006-09-15 Thread James Henstridge
On 15/09/06, mikecorn [EMAIL PROTECTED] wrote: By redundant marks, I meant multiple marks at the same place, with the same name (or no name), and the same gravity. How about changing the create mark function to return the existing mark if the created mark would be the same? A mark can be

Re: [gtk-devel-list] Design decisions for GLib and GTK+ on Win32

2006-08-28 Thread James Henstridge
On 29/08/06, C.J. Adams-Collier [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED], Good thoughts. As more folks make known their need for win95 or win98 support, more care will likely be taken to make such win9x backports (and future backports)

Re: gtkglarea in core gtk+

2006-08-17 Thread James Henstridge
On 16/08/06, C.J. Adams-Collier [EMAIL PROTECTED] wrote: Hey all, Now that gtk+ depends on glitz, I'd like to see an OpenGL widget make its way in to the gtk+ core. I am interested in seeing gtkglarea be used as the base of that widget, since its footprint is small and would be easy to

Re: How to get the image in drawing area as a BMP file ?

2006-05-05 Thread James Henstridge
sadhees kumar wrote: Hi All, For my application i need to get the picture drawn in the drawing area widget as a file.I have written the following code , but it doesnt work .. (i.e) the function - gdk_pixbuf_save() . i can get as a JPEG file but i

Re: Gtk Printing and gtk_dialog_run

2006-04-19 Thread James Henstridge
Matthias Clasen wrote: On 4/19/06, James Henstridge [EMAIL PROTECTED] wrote: Paolo Borelli wrote: I haven't yet looked at the new printing api in detail, but from what I quickly gathered the high level api involves a run() method for the dialog. This may be problematic for many

Re: Unloading sequence of GTK

2006-03-22 Thread James Henstridge
On 22/03/06 17:38, Enrico Weigelt wrote: * Behdad Esfahbod [EMAIL PROTECTED] schrieb: snip Using a GC in glib means every application using glib should drag in the GC in too, which is not what glib developers going to accept I believe. Its easier than people might think, and it

Re: using literal zero for NULL

2006-03-21 Thread James Henstridge
On 21/03/06 11:09, mikecorn wrote: I see your point about the arg-list-end flag. It seems it should be OK to use a zero in place of NULL when the argument is of a type known to the compiler and NULL is a documented way to denote a missing argument (e.g. optional window title string). Agree?

Re: selected text is PRIMARY?

2006-03-10 Thread James Henstridge
Yevgen Muntyan wrote: Brian J. Tarricone wrote: mozilla allows user having multiple selections, and it doesn't clear selection when you select something else. It's not buggy, it's correct (not for everyone, of course). Not according to accepted practice. At the very least (not even

Re: About symbols in gtkfilesystem.h

2006-02-26 Thread James Henstridge
Xuedong Zhang wrote: Hi, I am interested in writing a general DIRECTORY widget for gtk applications. It seems to me that the semi-private interface provided in gtkfilesystem.h is really useful to serve such a purpose. The problem is that the symbol GtkFileSystem *_gtk_file_system_create

Re: GTK_MODULE (G)Option breakage init ordering ...

2006-02-08 Thread James Henstridge
michael meeks wrote: On Tue, 2006-02-07 at 17:04 -0500, Owen Taylor wrote: I have vague memory that modules not getting arguments is intentional rather than an oversight ... that we discussed it at the point of the GOption switch and decided it was fundamentally busted and unsupportable. I

Re: compiling atk

2006-02-05 Thread James Henstridge
electroteque wrote: It looks like a make install solved my issue with glib, i ignored those errors. Ive moved onto atk compiling with ./autogen.sh --prefix=$prefix --disable-gtk-doc gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_DISABLE_DEPRECATED -I/sw/include/glib-2.0

Re: [PATCH] Don't multiply by -1 when assigning memory

2006-01-05 Thread James Henstridge
Rodrigo Moya wrote: What Matthias is saying is that in the case of zero args, you don't need to allocate the full size of GtkBindingSignal: you don't need to GtkBindingArg embedded at the end of the struct. So the correct answer would probably be: sizeof (GtkBindingSignal) + n_args * sizeof

Re: [PATCH] Don't multiply by -1 when assigning memory

2006-01-04 Thread James Henstridge
Rodrigo Moya wrote: On Wed, 2006-01-04 at 07:34 -0500, Matthias Clasen wrote: On Wed, 2006-01-04 at 13:18 +0100, Rodrigo Moya wrote: Hi Attached patch fixes a problem I just found out. Running any GTK app showed this: GLib-ERROR **: gmem.c:143: failed to allocate 68719477360 bytes I

Re: g_object_ref_sink and GUnowned

2006-01-01 Thread James Henstridge
Emmanuele Bassi wrote: Hi, On Wed, 2005-12-28 at 12:45 -0500, Havoc Pennington wrote: On Thu, 2005-12-22 at 19:02 +0100, Tim Janik wrote: in fact, there is no technical reason for this. so many people have argued this to be better though (havoc even went so far as to argue why this

Re: Context in translations, Q_() and gettext

2005-12-22 Thread James Henstridge
Mart Raudsepp wrote: Matthias Clasen wrote: On 12/21/05, James Henstridge [EMAIL PROTECTED] wrote: . One issue with this change is that current xgettext releases probably won't extract strings for the Q2_() form. Ah, you are right. We would have to do some extrs step, like extractig

Re: GTK_FLOATING broken in 2.9?

2005-12-20 Thread James Henstridge
Havoc Pennington wrote: On Tue, 2005-12-20 at 17:27 +0100, Tim Janik wrote: GObject: - created with ref_count=1 - not initially floating This is the key I think. The point of my theoretical rant is that I think it's really bad if I do: obj = g_object_new(TYPE_WHATEVER); and don't

Re: GTK_FLOATING broken in 2.9?

2005-12-14 Thread James Henstridge
Murray Cumming wrote: Murray Cumming wrote: On Tue, 13 Dec 2005, Murray Cumming wrote: In GTK+ 2.9, GTK_FLOATING is deprecated and README.in states that it can no longer be used to detect floating objects. I hope nobody is using that. I assume that effort was made to avoid

Re: linking / performance / interposing detection ...

2005-12-13 Thread James Henstridge
Federico Mena Quintero wrote: On Tue, 2005-12-13 at 12:16 -0600, Federico Mena Quintero wrote: Very neat. How do interposed symbols happen? Is it just people forgetting to put a static somewhere? That seems to be the case for parent_class in metal_gtk2_engine.c. Bah, I see now that

Re: goocanvas 0.2

2005-12-06 Thread James Henstridge
Travis Watkins wrote: On 12/5/05, Damon Chaplin [EMAIL PROTECTED] wrote: I've also read the SVG spec (http://www.w3.org/TR/SVG11/), which is very interesting. I wonder if we'll want an SVG widget in GTK+ at some point, and if so, will we want a separate canvas as well? I guess it makes sense

Re: libegg/recentchooser

2005-12-01 Thread James Henstridge
Emmanuele Bassi wrote: Hi Morten, On Wed, 2005-11-30 at 19:58 -0500, Morten Welinder wrote: Uhm, I'll put that code under #idef G_OS_UNIX/#endif guards for the time being, but the getenv(TZ)/setenv(TZ) timezone trick should work on any sufficiently recent POSIX-like system; users of other

Re: Proposal for making the GtkFileChooser code asynchronous

2005-11-08 Thread James Henstridge
On 08/11/05 09:14, Murray Cumming wrote: I would say that it is clear that we are going to break the API completely here, and also not continuing to support the old API. Third party code should not notice anything of these changes, except for third party code using the GtkFileSystem API. Since

Re: 10 Questions about Printing

2005-10-10 Thread James Henstridge
Owen Taylor wrote: Some fodder for discussion this weekend: 1. Is there a cross-platform printing user interface? Actually, what we are interested in is not the printing user interface per-se, but the points of interaction between the application user interface and the printing user

Re: GObject reference counting / lack of sink issue

2005-10-03 Thread James Henstridge
Tim Janik wrote: you are right, GObject is widely used these days out of GtkObject contexts, and anywhere in C land (where memory book keeping or reference house keeping can't be automized) when objects are created and ownership is passed on, a floating flag is strongly desired (and forces

Re: RecentManager and win32

2005-10-03 Thread James Henstridge
Emmanuele Bassi wrote: * Strategy == Obviously, we can't have two APIs, so the best thing that I could come up with was: 1. we use, for the recently used resources list, the same storage system on both Unix *and* win32: a dot file inside $HOME, which stores everything using an XBEL

Re: A cross-platform status icon api

2005-08-30 Thread James Henstridge
Colin Walters wrote: On Tue, 2005-08-30 at 11:37 +0800, James Henstridge wrote: I believe part of the reason for having the notification area pop up the balloons was to give a consistent visual appearance for the balloons. Isn't that generally addressed by having the widget in GTK

Re: A cross-platform status icon api

2005-08-29 Thread James Henstridge
Matthias Clasen wrote: - There are quite a few details which the implementation currently doesn't handle currently: * the bubble needs to be repositioned if the user changes panel orientation * the bubble stem needs to be redrawn if the tray icon moves because another status

Re: A cross-platform status icon api

2005-08-29 Thread James Henstridge
Matthias Clasen wrote: On Tue, 2005-08-30 at 10:02 +0800, James Henstridge wrote: Matthias Clasen wrote: - There are quite a few details which the implementation currently doesn't handle currently: * the bubble needs to be repositioned if the user changes panel orientation

Re: GNOME 2.11/2.12 targeting GTK+ 2.8 (ie cairo based)

2005-06-09 Thread James Henstridge
Frederic Crozat wrote: Hi all, I only discovered this morning by looking at James commit for jhbuild that GNOME 2.11/2.12 is supposed to ship with GTK+ 2.8 (and therefore Cairo) which might not have been obvious for anybody reading http://live.gnome.org/RoadMap (since there is only a reference

Re: Tootaly free memory used by mem_chunk!!??

2005-03-29 Thread James Henstridge
Mathieu LUGIEZ wrote: Hello!! I'm a french student so I want to prevent that my english is quite bad (Sorry)!! I used glib for a C project based on HashTable. I must totaly free all the dynamiquely allocated memory. For test it I use the GMemVTable, but I realized that Glib doesn't free all

Re: introspection and broken API

2005-03-28 Thread James Henstridge
Havoc Pennington wrote: On Fri, 2005-03-25 at 00:45 -0500, Havoc Pennington wrote: - put the main loop only in the GLib layer, no gtk_main visible - hide color allocation, just always use the GdkRGB stuff - fix some of the other examples of weird X features leaking through -

Re: g_object_class_install_property, but no g_object_class_remove_property

2005-03-03 Thread James Henstridge
Stefan Kost wrote: Tristan Van Berkom wrote: snip Stefan, maybe I'm off track but is it saner OO coding to say that you should have a GStreamerInstrumentClass with the properties: waveform, filter-type etc. and then derive your GStreamerGuitarClass GStreamerTrumpetClass to add more specific

Re: UNC paths, glib, and the file chooser

2005-02-07 Thread James Henstridge
Federico Mena Quintero wrote: Hi, Sven just filed this bug for Glib: http://bugzilla.gnome.org/show_bug.cgi?id=166577 And there's a related thing for the Unix backend of the file chooser: http://bugzilla.gnome.org/show_bug.cgi?id=135877 The Glib bug is about not doing the right conversion. The