Re: g_malloc overhead

2009-01-26 Thread Owen Taylor
On Mon, 2009-01-26 at 18:30 +0100, Martín Vales wrote: Colin Walters escribió: On Mon, Jan 26, 2009 at 9:12 AM, Behdad Esfahbod beh...@behdad.org wrote: Lets just say that UTF-16 is at best implementation details of Firefox. Well, JavaScript is notably UTF-16. Given that

Re: GTK+ 2.10.7 released

2007-01-06 Thread Owen Taylor
[ Removing gnome-announce-list and gnome-hackers from the Cc ] On Sat, 2007-01-06 at 04:44 -0800, Sergei Steshenko wrote: My memory, of course, is not getting better as years go by, but it still remembers some peculiar things. OK, on the official gtk site one can read:

Re: Problem displaying Japanese Text in GtkEntry/GtkTextView

2006-04-24 Thread Owen Taylor
On Mon, 2006-04-24 at 16:47 +0530, Gaurav Jain wrote: Hello, I have written a small GTK program (attached below), which is supposed to display some japanese text in a GtkEntry and GtkTextView. The text is UTF8, and I have extracted the UTF8 values from an application that contained some

Pango-1.10.1 released

2005-10-03 Thread Owen Taylor
to subsequently drawn strings. [Choe Hwanjin] - Fix bug where error underlines would be drawn 1024 times too big in the Cairo backend. [Luis Villa] - Misc bug and build fixes [Jean Brefort, Matthias Clasen, Behdad Esfahbod, Kazuki Iwamoto] Owen Taylor 3 October 2005

Re: GTKImage displays after long latency

2005-09-01 Thread Owen Taylor
On Wed, 2005-08-31 at 11:37 -0700, Barry Demchak wrote: Hi, Owen -- No luck ... the thing reports 400x400 (pixels) ... ... and when I render it in Internet Explorer, the rendering is instant. Any other ideas?? Well, if something is really slow, running it under a debugger interrupting

Re: GTKImage displays after long latency

2005-08-31 Thread Owen Taylor
On Tue, 2005-08-30 at 14:41 -0700, Barry Demchak wrote: Hi -- This is my first GTK application, and I'm simply trying to display an SVG rendering in a window. I can do this OK, but it appears that there is a latency of ~2000ms between assigning the pixbuf into the GTKImage widget and

Re: GTK+ 2.8.0 released

2005-08-15 Thread Owen Taylor
it out, Owen 2005-08-15 Owen Taylor [EMAIL PROTECTED] * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): * gdk/x11/gdkwindow-x11.c

Re: GTK+ 2.8.0 released

2005-08-15 Thread Owen Taylor
On Mon, 2005-08-15 at 20:59 +0100, Chris Vine wrote: On Monday 15 August 2005 13:52, Owen Taylor wrote: On Sun, 2005-08-14 at 19:50 -0400, Allin Cottrell wrote: One further compatibility issue: the app that I have built and run OK (without warnings) using gtk 2.6, now shouts repeatedly

Re: Providing gtk_main() with asynchronous data

2005-08-02 Thread Owen Taylor
On Sun, 2005-07-31 at 15:44 -0600, Pat Mahoney wrote: (not subscribed; please CC replies) I'm trying to find a way to provide my mainloop with asynchronous data from a thread. I have read this: http://mail.gnome.org/archives/gtk-app-devel-list/2004-July/msg00181.html which describes

Re: Fonts

2005-08-02 Thread Owen Taylor
On Tue, 2005-08-02 at 00:16 +1000, Russell Shaw wrote: Hi, Does all text in gtk/pango get sent to the X server as ascii, or are bitmaps sent too? If sent as ascii, is it 7-bit, 8-bit, or something longer? Does gtk have any control over what renders the fonts at the X server? Is XDrawString

Re: Providing gtk_main() with asynchronous data

2005-08-02 Thread Owen Taylor
On Tue, 2005-08-02 at 06:36 -0600, Pat Mahoney wrote: On Tue, Aug 02, 2005 at 07:47:32AM -0400, Owen Taylor wrote: On Sun, 2005-07-31 at 15:44 -0600, Pat Mahoney wrote: (not subscribed; please CC replies) I'm trying to find a way to provide my mainloop with asynchronous data from

Pango-1.8.2 released

2005-07-26 Thread Owen Taylor
[Sebastien Bacher, Brandon Bergren, Chris Blizzard, Paolo Borelli, Behdad, Harshula, Alex Jones, Aivars Kalvans, Stepan Kasal, Karel Kulhavy, Ryan Lortie, Ben Maurer, Sukhjinder Sidhu, Manish Singh, Emil Soleyman-Zomalan, Morten] Owen Taylor 26 July 2005

Pango-1.9.1 released [unstable]

2005-07-26 Thread Owen Taylor
] * Misc bug and build fixes [Brandon Bergren, Chris Blizzard, Behdad, Harshula, Alex Jones, Karel Kulhavy, Ryan Lortie, Emil Soleyman-Zomalan, Morten] Owen Taylor 26 July 2005 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: width of string rendered by pango font?

2005-07-13 Thread Owen Taylor
On Wed, 2005-07-13 at 00:40 -0400, Allin Cottrell wrote: On Mon, 11 Jul 2005, David Morse wrote: How does one figure out the width of a certain string in a certain pango font? (Other than abandoning pango fonts and reverting to gdkfonts, of course. ; ) It's a bit of a contortion.

Re: whatever happened to the gtk_kennel?

2005-07-11 Thread Owen Taylor
On Mon, 2005-07-11 at 10:05 -0400, David Morse wrote: Back in the day there were plans to incorporate kennels into gtk - it was a method for sizing widgets without the contraints of the widget heirarchy. I think they were first used in BEAST, but were planned for general consumption. I don't

Re: GtkListStore and Threads problems

2005-06-17 Thread Owen Taylor
On Fri, 2005-06-17 at 11:56 -0300, Lorena Salinas wrote: gdk_threads_leave(); /* release GTK thread lock */ pthread_mutex_unlock(mutex); while (valid) { gtk_tree_model_get (GTK_TREE_MODEL (model), iter, TEST_COL_5,status, And it surprises you that this doesn't work? All GDK and

Re: g_main_context_prepare(): main loop already active in another thread

2005-06-14 Thread Owen Taylor
On Tue, 2005-06-14 at 13:03 +0200, Colossus wrote: Hi, I red the gtk_threads html page. I put the pair gdk_threads_enter() / gdk_threads_leave() inside a function outside the gtk_main loop as showed below: void signalhandler (int signum) { int status; waitpid ( -1,

Re: GtkListStore and Threads problems

2005-06-14 Thread Owen Taylor
On Tue, 2005-06-14 at 14:40 -0300, Lorena Salinas wrote: Hi, This is my app's main function: int main (int argc, char **argv) { /* init threads */ g_thread_init(NULL); gdk_threads_init(); /* init gtk */ gtk_init (argc, argv);

Re: GtkListStore and Threads problems

2005-06-14 Thread Owen Taylor
On Tue, 2005-06-14 at 15:20 -0300, Lorena Salinas wrote: Hi, This is what I do inside the worker_thread function (create_and_start_worker_thread ()) every time I want to update the model: gdk_threads_enter(); /* get GTK thread lock */ gtk_list_store_set (GTK_LIST_STORE

Re: why my program quit when I use g_thread?

2005-05-19 Thread Owen Taylor
On Thu, 2005-05-19 at 18:00 +0200, Daniel Pekelharing wrote: Um, I don't know much about g_thread, but you code is flawed: if (!g_thread_supported()) g_thread_init(); In other words if g_thread is not supported then init g_thread... I think you want: if (g_thread_supported())

Re: How to use the mouse wheel?

2005-05-17 Thread Owen Taylor
On Tue, 2005-05-17 at 19:42 +0200, Daniel Pekelharing wrote: Hi, I'm trying to use the mouse wheel, I already have a mouse callback, I think I just need to know what the GDK_*_MASK definition is for the wheel, I have my widget set up for button press/release:

Re: How to get GtkWindow associed with XID?

2005-05-16 Thread Owen Taylor
On Sun, 2005-05-15 at 15:56 +0200, jacktm wrote: Owen Taylor wrote: If you need to embed a GTK+ widget into a non-GTK+ application you'll need to implement the embedder side of the XEMBED protocol. http://www.freedesktop.org/Standards/xembed-spec Regards

Re: nested gdk_threads_enter() hangs: linux/gcc vs. win32/mingw?

2005-05-15 Thread Owen Taylor
On Sat, 2005-05-14 at 12:26 +0200, Felix Kater wrote: Hi, I am using the same code on win32/mingw and linux/gcc, however, when I execute the code on linux, the programm hangs at the second (nested) call of gdk_threads_enter(), see below. Am I doing something illegal to use nested calls

Re: How to get GtkWindow associed with XID?

2005-05-15 Thread Owen Taylor
On Sun, 2005-05-15 at 13:16 +0200, jacktm wrote: Hello. I need do get the GtkWidget associated with XID. I thought I can do it using gdk_window_foreign_new, but it doesn't work for me. I tried many things, after googling I found something like that: GtkWidget *toplevel =

Re: gdk_window_foreign_new returns NULL

2005-04-22 Thread Owen Taylor
On Fri, 2005-04-22 at 01:19 +0200, jacktm wrote: // Open the display Display *dpy = XOpenDisplay(NIL); assert(dpy); // Get some colors int blackColor = BlackPixel(dpy, DefaultScreen(dpy)); int whiteColor = WhitePixel(dpy, DefaultScreen(dpy));

Re: threads gdk/Xlib

2005-04-11 Thread Owen Taylor
On Mon, 2005-04-11 at 13:06 +0100, Stphane Konstantaropoulos wrote: Hello all, I am programming a testing app for a gtk widget that embeds Xine and I am facing little problems with threads and XLib: the application crashes all the time whith Xlib: unexpected async reply It got fixed only

Re: A bug in Gtk+?

2005-02-23 Thread Owen Taylor
On Wed, 2005-02-23 at 14:31 +0500, Zeeshan Ali wrote: Hello, On Wed, 23 Feb 2005 10:12:07 +0200, Olexiy Avramchenko [EMAIL PROTECTED] wrote: When you create main loop with NULL as context parameter, main loop gets shared default context. Before you create your main loop, default context