Call to GDK_THREADS_ENTER in gtk_main

2007-01-22 Thread Padraig O'Briain
The function gtk_main contains the code. if (g_main_loop_is_running (main_loops-data)) { GDK_THREADS_LEAVE (); g_main_loop_run (loop); GDK_THREADS_ENTER (); gdk_flush (); } When GDK_THREADS_LEAVE is called do we expect the mutex to be locked? If yes, what code

Hanging on mutex in file chooser

2006-09-27 Thread Padraig O'Briain
I came across a bug where evince hangs when the file chooser dialog is dismissed. I found a recent fix (from Matthias Clasen) in libgnomeui/filechooser/.gtkfilesystemgnomevfs.c which fixes part of the problem. It seems to me that a similar change is required in

Re: QUestion about memory footprint of GTK.

2006-07-04 Thread Padraig O'Briain
On Solaris I get: pmap `pgrep gnome-panel` | grep atk FB0F 96K r-x-- /usr/lib/libatk-1.0.so.0.1114.0 FB116000 16K rwx-- /usr/lib/libatk-1.0.so.0.1114.0 The 16K is the data segment used by libatk. libatk provides accessibility framework for GTK. Padraig David Moffatt wrote: Hi all, I

Re: Signals Callbacks - Help!! Part 2

2005-07-11 Thread Padraig O'Briain
[EMAIL PROTECTED] wrote: I am not an expert in GLIB, but, following your suggestion, I have added the following variables. Notice that it is similar to the one in your example. gchar strMsg; Should be gchar *strMsg; strMsg = g_strdup(Under Comstruction ... );

Re: Button remains pressed until callback function ends

2005-02-16 Thread Padraig O'Briain
Play the sound in an idle handler which is set in the callback function. Padraig Michal Kepien wrote: Hi, I'm quite a newbie to GTK+ and got some trouble with handling button clicks. I've got a callback function which reads in and plays a sound file. This function is connected to the clicked event

Re: Button remains pressed until callback function ends

2005-02-16 Thread Padraig O'Briain
Either use a separate thread or have the idle handler return periodically to allow the main loop to process events. Padraig Michal Kepien wrote: Play the sound in an idle handler which is set in the callback function. That's quite a step forward. What if I want to play the sound in the

Re: coredump. dbx shows gtk internal functions.

2005-02-08 Thread Padraig O'Briain
You need debug versions of the libraries to get line numbers etc. Padraig Mohankumar_SEKHAR/IN/[EMAIL PROTECTED] wrote: coredump. dbx shows gtk internal functions. i cant figure out where why it happens.Please help Hii, I am runnign a multithreaded gtk program, i have followed all the guidlince

Re: GtkCList: number of columns

2004-11-24 Thread Padraig O'Briain
Does the columns field in the GtkClist data structure give you the number of columns? Neil Zanella wrote: Hello, Is there a way to get the number of columns in the deprecated GtkCList widget? Thanks, Neil ___ gtk-list mailing list [EMAIL PROTECTED]

Re: problems with glib and atk

2004-11-15 Thread Padraig O'Briain
Jorge Balbas wrote: hi, i have linux RH9 (kernel 2.4.20-6) on an pentium 3 machine. i am trying to install some applications that require gtk+-2.5.4, so i started installing all the libraries required for gtk+: glib-2.5.4, atk-1.7.2, and pango-1.5.2. glib installs fine, and i can

Re: Problem compiling atk-1.6.1

2004-10-11 Thread Padraig O'Briain
This sort of problem has been reported before but I do not recall which list is was on. The command pkg-config --mod-version glib-2-0 looks in .pc file in pkgconfig directory for the version number. You can run strace to confirm what directory is being looked at. The version of GLIB which is

Re: Overwrite the GtkButton class???

2004-09-07 Thread Padraig O'Briain
Have a look at gnome-panel/gnome-panel/button-widget.c. Julio Javier Cicchelli wrote: Hi everyone! I've been working with GTK+ for two weeks now and I'm actually stuck in a dilemma so I hope any of you can help me to find my answer. I'm in need to use the Button widget without those buttons

Re: Some problems in compiling atk

2004-02-23 Thread padraig o'briain
What error does configure script for ATK give? Does settting PKG_CONFIG_PATH to /usr/local help? Padraig Kendl Tibor wrote: Dear list members, GTK team! I've found some problems in compiling atk-1.5.3. ./configure script exits with an error that it cannot find the glib. Ok. I've compiled

Re: gui in fonction

2003-03-18 Thread Padraig O'Briain
I think that you need to make create_window() return a GtkWidget* instead of void. The way your code is currently written the value of window passed to gtk_window_show() is unitialized. Padraig hi I have a problem with fonction. basically, i d like to use fonction to build my gui, so here

Re: Newbie looking for help configuring gtk+-2.2.1

2003-02-25 Thread Padraig O'Briain
In addition to glib, you need atk and pango built in order to build gtk+. Padraig I'm way over my heading in this, but started out trying to get my scanner to work on RedHat Linux 7.1 I saw somewhere that I needed glib and gtk+ to get sane to work. I've downloaded both, was able to

Re: Glib-GObject-Warning invalid cast null to unknown error

2003-02-24 Thread Padraig O'Briain
If you run your program in a debugger and put a break point in g_log you will see where the messages are coming from. Padraig hi i am trying to create a static executable using gtkmm-2.0.2, gtk-2.0.6, glib-2.0.9, libsigc++-1.2 the static build gave no errors...but when i run the

Re: configuring GTK 2.2

2003-01-13 Thread Padraig O'Briain
Hubert, libatk-1.0.so should not be calling g_value_get_as_pointer. What version of atk did you download? Please do 1) ls -l /usr/local/lib/libatk* 2) grep for g_value_get_as_pointer in the subdirectory atk/atk in which you built ATK. Padraig Hi, I downloaded the sources of GTK+-2.2.0

Re: configuring GTK 2.2

2003-01-13 Thread Padraig O'Briain
Herbert, This is very strange, The file atk-marshal.c is generated by the build. According to the ChangeLog in glib/gobject the function g_value_get_as_pointer was renamed to g_value_peek_pointer on Februray 21st 2001. I would look very closely at how the file atkmarshal.c is being generated.

Re: possible to get an example of ATK and Pango ?

2003-01-03 Thread Padraig O'Briain
ATK is used in two separate ways. It is used to set accessibility information for a widget, see for example ghex. It is also used by the AT-SPI bridge to obtain accessibility information, about a running application, which is used by assistive technologies. See at-spi/atk-bridge/bridge.c.

Re: possible to get an example of ATK and Pango ?

2003-01-03 Thread Padraig O'Briain
03, 2003 at 10:02:46AM +, Padraig O'Briain wrote: ATK is used in two separate ways. It is used to set accessibility information for a widget, see for example ghex. It is also used by the AT-SPI bridge to obtain accessibility information, about a running application, which

Re: Inheritence without knowing the parent at compile time

2003-01-02 Thread Padraig O'Briain
Andrew, I have had to do someting along these lines whoile implementing Accessible objects for widgets. See, for esxample, gtkhtml2/libgtkhtml/a11y/htmlviewaccessible.c. I wanted the accessible object for HtmlView to inherit behavior from the accessible object for GtkLayout, which is what

Re: Still some question about row column number. (Re: How to get the row column number of cursor in GtkTextView?)

2002-08-26 Thread Padraig O'Briain
To: [EMAIL PROTECTED] Subject: Still some question about row column number. (Re: How to get the row column number of cursor in GtkTextView?) User-Agent: KMail/1.4.1 Cc: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to

Re: key bindings - gtk2

2002-07-17 Thread Padraig O'Briain
Dennis, I have tried to answer the points you raised. To: Padraig O'Briain [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: key bindings - gtk2 MIME-Version: 1.0 On Tue, 16 Jul 2002, Padraig O'Briain wrote: handled or the toplevel is reached. If the keystroke has still not been

Re: key bindings - gtk2

2002-07-16 Thread Padraig O'Briain
Dennis, (with apologies to Owen Taylor for stealing ideas and words from him; any errors are my own) There are two widgets involved for every key press. The first is the top level widget in which the key press occurs. The second is the focus widget within the toplevel widget. This is the

Re: Tree in GTK

2002-07-02 Thread Padraig O'Briain
Arno, If you are using GTK 2 try GtkTreeView. Padraig Hello, I would like to know how I could do a tree like in ethereal. If I could say, I would like a table tree. I can make a simple tree with the widget : GtkTree and a table with the widget : GtkClist but I don't how to mix them

Re: configure problems for gtk+-2.0.0

2002-03-21 Thread Padraig O'Briain
Is there anything interesting in config.log Padraig Hi guys, I encountered an error when running configure script in gtk+-2.0.0: checking ATK flags... -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -L/usr/local/lib -latk-1.0

Re: Trouble to compile atk-0.12

2002-02-25 Thread Padraig O'Briain
It seems that pkg-config call for glib_genmarshal in glib-2.0 is returing the strange relative directory path ..//home/... What prefix did you specify when configuring glib? Padraig Hi, On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran .configure, here is what I get

Re: Differentiating between Entry and Text

2002-02-07 Thread Padraig O'Briain
if (GTK_IS_ENTRY (widget)) { ... } else if (GTK_IS_TEXT (widget)) { ... } Padraig Hi, I have a function for which I am getting Widget reference from some other function. From this reference, I have to check whether this widget is GtkEntry or GtkText. How can I do it?? Thanks in

Re: ATK-0.8 installation trouble

2002-01-08 Thread Padraig O'Briain
Ronald, The makefile attempted to execute the command below and it returned error code 139. I have never seen this problem before. Working from first principles ... Is glib-mkenums in your path? If so, is it one built from latest glib? Can you figure out from the contents of the directory

Re: Compiling gtk+ as user (non-root)

2002-01-04 Thread Padraig O'Briain
I am not sure what is going on here. I have looked at the tarball atk-0.8.tar.gz on ftp://ftp.gtk.org/pub/gtk/v1.3/. This does not contain a file atk/atkmarshal.c. It _does_ contain the file and atkmarshal.list. The file atkmarshal.c is generated from atkmarshal.list when building. My version

Re: Compiling gtk+ as user (non-root)

2002-01-02 Thread Padraig O'Briain
Torsten, I am the person to contact. I will read your mail and get back to you, probably tomorrow. Padraig Delivered-To: [EMAIL PROTECTED] User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: de, en-us MIME-Version: 1.0 To: gtk-list [EMAIL

Gnome Accessibility

2001-04-27 Thread Padraig O'Briain
Hi, A new mailing list gnome-accessibility-list has been created for engineering discussions of Gnome Accessibility. A new GNOME project, atk, which contains the initial code for ATK (Accessibility Toolkit) was created yesterday. Soon GTK+ will depend on this project. We will shortly be

Re: a segfault-handler?

2001-04-10 Thread Padraig O'Briain
I assume you mean a Unix signal handler, in which case the answer is yes. Padraig Delivered-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: a segfault-handler? Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: [EMAIL PROTECTED] X-Loop: [EMAIL PROTECTED]

Re: Compiler

2001-02-09 Thread Padraig O'Briain
Should those forward quotes be backward quotes? Padraig Delivered-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Compiler Cc: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Sender-Ip: 202.188.63.211 X-BeenThere: [EMAIL PROTECTED] X-Loop: [EMAIL PROTECTED]

Spacing and GtkBox

2001-02-08 Thread Padraig O'Briain
I was looking at the code of GTK+ and I noticed in gtkbox.h the struct _GtkBox contains a catiable called spacing which is gint16. In gtkbbox.h the structure _GtkButtonBox contains a GtkBox and also contains a variable called spacing which is gint. I have two questions: 1) Should the

Accelerators in GTK+

2001-02-07 Thread Padraig O'Briain
Is there any documentation or tutorial on the use of Accelerator keys in GTK+? I found a few paragraphs in the book Developing Linux Applications with GTK+ and GDK by Eric Harlow but did not find anything in the GTK+ tutorial or documentation. Am I correct in assuming that accelerators must