about gtk_label_set_text

2004-07-27 Thread He Xiaocheng (Owens)
Title: Message Hello,every,   i found a problem. when i set the following code: gtk_label_set_text(label,"hello"); gtk_widget_hide(fixed); gtk_widget_show (fixed); note: label is put into fixed, other settings about fix and label are ok.     after this setting, i found "hello

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread NavEcos
> Hi, > > "NavEcos" <[EMAIL PROTECTED]> writes: > > > Or why doesn't, say, gdk_threads_enter() say with an ASSERT "hey > > stupid: I noticed that g_thread_init() was never called". > > But that's exactly what the code does: > > void > gdk_threads_init () > { > if (!g_thread_supported ()) > g_

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Sven Neumann
Hi, "NavEcos" <[EMAIL PROTECTED]> writes: > Or why doesn't, say, gdk_threads_enter() say with an ASSERT "hey > stupid: I noticed that g_thread_init() was never called". But that's exactly what the code does: void gdk_threads_init () { if (!g_thread_supported ()) g_error ("g_thread_init()

Re: GTK+ 1.x TTF rendering problems with Xorg (FC2)

2004-07-27 Thread Andre Costa
Hi Michael, On Mon, 26 Jul 2004 17:01:37 -0600 Michael L Torrie <[EMAIL PROTECTED]> wrote: > On Sat, 2004-07-24 at 12:29, Andre Costa wrote: > > Hi, > > > > is this the right place to ask for help about truetype font > > rendering problems with GTK 1.x apps with Xorg (Fedora Core 2)? It > > brok

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread NavEcos
- Original Message - From: "Sven Neumann" <[EMAIL PROTECTED]> To: "Arnaud Charlet" <[EMAIL PROTECTED]> Cc: "NavEcos" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 27, 2004 3:47 AM Subject: Re: Stupid question regarding g_thread_init() and gtk_threads_init() > Hi, > > Arnau

Re: fix for: assignment discards qualifiers from pointer target type

2004-07-27 Thread Carl B. Constantine
* John Cupitt ([EMAIL PROTECTED]) wrote: > On Wed, 14 Jul 2004 20:53:16 -0700, Carl B. Constantine > <[EMAIL PROTECTED]> wrote: > > gchar *userid = NULL; > > > > userid = gtk_entry_get_text(GTK_ENTRY(lookup_widget(logon, "password))); > > Try > > const char *userid = gtk_entry_get_text( GTK_

Re: [gtkmm] win32 port of gtk+ -2.4.x

2004-07-27 Thread Cedric Gustin
Igor Gorbounov wrote: Hi, All! Now, as Todd Kulesza from http://www.dropline.net/gtk/ has dropped the development of his (hers?) GTK+ for Windows packages, would anyone explain, please, which (and how) packages I should use for gtk+ development under win32? I recommend the gladewin32 installer

Re: XGetInputFocus() does not work for GTK based applications

2004-07-27 Thread Kala B
Hi Owen, Thanks a lot for the immediate response. When I use the window id I get in the "focus" parameter of the following call XGetInputFocus(disp,&focus,&revert); as an input to xprop, I donot get any output. that is, say I get the value 0x220001a in focus, xprop -id 0x220001a doesnot give me t

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Arnaud Charlet
Actually, I can probably guess the technical reason why gdk_threads_init does not call g_thread_init: this would require the gdk shared lib to depend on libgthread-2.0, which isn't the case currently... and may require a libgdk-thread. Ugly. Arno ___ gtk

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Arnaud Charlet
> Well, one thing is the vtable that g_thread_init() uses. But I think the Of course, there's a default value: NULL, that pretty much everyone uses (and that would be used in my proposal). > main reason I did it the way I did it was the idea that g_thread_init() > should be the very first thing a

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Owen Taylor
On Tue, 2004-07-27 at 05:06, NavEcos wrote: > Why are there two functions for this? Why doesn't g_thread_init() call > gtk_threads_init()? The equivalent of gdk_threads_init() used to be done at gtk_init() time if g_thread_init() had been called, but it turned out that many applications wanted to

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Owen Taylor
On Tue, 2004-07-27 at 06:41, Arnaud Charlet wrote: > > If gdk_thread_init() would call g_thread_init() you couldn't use GTK+ > > with another library or any code that needs to call g_thread_init() > > before gtk_init(). Doesn't sound like a good idea to me. > > That's misleading: gdk_thread_init w

Re: XGetInputFocus() does not work for GTK based applications

2004-07-27 Thread Owen Taylor
On Tue, 2004-07-27 at 05:43, Kala B wrote: > Hi, > The following code does not give me the correct window id for GTK based applications. > > #include > #include > #include > main() > { > Window focus = 0; > int revet = 0; > Display *disp = XOpenDisplay(0); > assert(disp); >

Re: TreeViewColumn and right-click

2004-07-27 Thread John Gill
Thanks very much for the suggestions. For now I've gone with 2) + I've just submitted a bug request as suggested. http://bugzilla.gnome.org/show_bug.cgi?id=148558 Thanks again for the help, much appreciated. John Suggestions: 1) You can access column->button directly and connect to

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Sven Neumann
Hi, Arnaud Charlet <[EMAIL PROTECTED]> writes: > > If gdk_thread_init() would call g_thread_init() you couldn't use GTK+ > > with another library or any code that needs to call g_thread_init() > > before gtk_init(). Doesn't sound like a good idea to me. > > That's misleading: gdk_thread_init wou

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Arnaud Charlet
> If gdk_thread_init() would call g_thread_init() you couldn't use GTK+ > with another library or any code that needs to call g_thread_init() > before gtk_init(). Doesn't sound like a good idea to me. That's misleading: gdk_thread_init would call g_thread_init if not already done (it already check

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Sven Neumann
Hi, Arnaud Charlet <[EMAIL PROTECTED]> writes: > > > Why are there two functions for this? Why doesn't > > > g_thread_init() call gtk_threads_init()? > > > > g_thread_init() is part of GLib and GLib doesn't know anything about > > GTK+. You don't seriously expect the lower level library to cal

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Yiannis Gatsoulis
if i understand well from the syntax g_thread_init() must be part of glib while gtk_threads_init() is part of gtk+ which are two completely different libraries (although gtk uses glib) one for robustness and portability and the other for designing graphical interfaces. so each one must have its

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Arnaud Charlet
> > Why are there two functions for this? Why doesn't g_thread_init() call > > gtk_threads_init()? > > g_thread_init() is part of GLib and GLib doesn't know anything about > GTK+. You don't seriously expect the lower level library to call > functions in the higher level library, do you? On the

Re: The GtkDrawingArea again...

2004-07-27 Thread Sven Neumann
Hi, Erik Jonsson <[EMAIL PROTECTED]> writes: > Is the GtkDrawingArea using a GdkWindow internaly or is it using > a client side image representation for some implementation reasons? A GtkDrawingArea is just a simple widget with a GdkWindow. It doesn't do any drawing. Whether you do client- or se

Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Sven Neumann
Hi, "NavEcos" <[EMAIL PROTECTED]> writes: > Why are there two functions for this? Why doesn't g_thread_init() call > gtk_threads_init()? g_thread_init() is part of GLib and GLib doesn't know anything about GTK+. You don't seriously expect the lower level library to call functions in the higher

The GtkDrawingArea again...

2004-07-27 Thread Erik Jonsson
Hi again... I'm sorry but I didn't understand your answer. On Mon, Jul 26, 2004 at 05:33:37PM -0400, Tristan Van Berkom wrote: > Erik Jonsson wrote: > >If I create a GtkDrawingArea and only use GdkPixMaps to > >update it. Will all graphics be handled on the server side? > A GdkPixmap is on the X

Re: [gtkmm] win32 port of gtk+ -2.4.x

2004-07-27 Thread Igor Gorbounov
Cedric Gustin wrote: Igor Gorbounov wrote: Hi, All! Now, as Todd Kulesza from http://www.dropline.net/gtk/ has dropped the development of his (hers?) GTK+ for Windows packages, would anyone explain, please, which (and how) packages I should use for gtk+ development under win32? I recommend the

XGetInputFocus() does not work for GTK based applications

2004-07-27 Thread Kala B
Hi, The following code does not give me the correct window id for GTK based applications.   #include #include #include main(){    Window focus = 0;    int revet = 0;    Display *disp = XOpenDisplay(0);    assert(disp);    sleep(2);    XGetInputFocus(disp,&focus,&revert);    printf("Win id is %x\n

Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread NavEcos
Why are there two functions for this? Why doesn't g_thread_init() call gtk_threads_init()? Has this ALWAYS been the case the g_thread_init() has to be followed by gtk_threads_init() because if so, I have a very long standing bug, that's been in my code for years. -Rich _

Re: when are "delete_event" and "motion_notify_event" called?

2004-07-27 Thread Sven Neumann
Hi, "Matt Strange" <[EMAIL PROTECTED]> writes: > I am a gtk newbie working on a widget which consists of 16 toggle > buttons in an hbox. I have sucessfully stopped the emission of > the "event" and button_press/release signals on the toggle buttons > and set up a callback to these event

Re: Why "gtk_toolbar_append_element", "gtk_toolbar_append_widget", ... ... should be deprecated ?

2004-07-27 Thread Sven Neumann
Hi, "åæ" <[EMAIL PROTECTED]> writes: > I am a new commer to gtk programming.Today I got two small questions. > 1. Why "gtk_toolbar_append_element","gtk_toolbar_append_widget", ... > ... should be deprecated ? If I do not use those deprecated > function ,how can I add widget to the GtkToolbar