signals connection

2003-03-20 Thread Axel
I didn' t understood the difference between g_signal_connect() and g_signal_connect_swapped() (even while reading the tutorial), could someone give me a clear explaination? BTW, i ask again if someone knows out to have a relief GtkMenuItem in a GTKMenuBar Thks

Problem of installation of GTK 2.2.1

2003-03-20 Thread MALHERBE
I am using a linux box (Mandrake linux distribution version 9.0). I have downloaded GTK version 2.2.1. I have problem when installing Glib version 2.2.1. When I try to install the dependencies packages prior to the installation of GTK, (for example atk 1.2.0 or pango 1.2.1, I have an error in

Re: Problem of installation of GTK 2.2.1

2003-03-20 Thread Gaƫl CHAMOULAUD
Quoting MALHERBE [EMAIL PROTECTED]: I am using a linux box (Mandrake linux distribution version 9.0). I have downloaded GTK version 2.2.1. I have problem when installing Glib version 2.2.1. When I try to install the dependencies packages prior to the installation of GTK, (for example atk

Re: Problem of installation of GTK 2.2.1

2003-03-20 Thread Sven Neumann
Hi, MALHERBE [EMAIL PROTECTED] writes: I am using a linux box (Mandrake linux distribution version 9.0). I have downloaded GTK version 2.2.1. I have problem when installing Glib version 2.2.1. When I try to install the dependencies packages prior to the installation of GTK, (for example

interaction between widgets

2003-03-20 Thread Axel
basically here is my problem I have a menubar created by : GtkMenubar* create_menubar() I have put in it the g_signal_connect for catch events like activate,for each item of the menu. (maybe it is a wrong place) Next to that I have a notebook, with a few page, and when I click in an item in the

Re: interaction between widgets

2003-03-20 Thread Axel
On Thu, 20 Mar 2003 08:07:13 -0800 (PST) Harring Figueiredo [EMAIL PROTECTED] wrote: When you create your signal fucntion, you can pass a pointer to whatever widget you want. Something like this: g_signal_connect(button_on_toolbar, button_callback_handler, activate, (gpointer)

Installing GTK+-2.2.1

2003-03-20 Thread xuxx
Hi,I'm having trouble installing GTK+-2.2.1I've d/l'd the latest of all the files (atk-1.2.0, glib-2.2.1,gtk+=2.2.1 and Pango-1.2.1, as well as pkgconfig etc.)I've managed to get pkgconfig installed, as well as glib.When I configure atk, it puts out the following:checking for GLIB

Saving Clist using gtk_clist_get_text () is extremly slow

2003-03-20 Thread Marek Drpal
Hello, I'm writing an application for some measuring devices and I've chosen Clist as my data-storage, but I've bad problem - when saving more then aprox. 20.000 lines to a file using gtk_clist_get_text () - it takes minutes and 99% of computing time. There must be a better way how to do it,

Re: signals connection

2003-03-20 Thread Tristan Van Berkom
Axel wrote: I didn' t understood the difference between g_signal_connect() and g_signal_connect_swapped() (even while reading the tutorial), could someone give me a clear explaination? BTW, i ask again if someone knows out to have a relief GtkMenuItem in a GTKMenuBar Thks In the API

Re: interaction between widgets

2003-03-20 Thread Harring Figueiredo
When you create your signal fucntion, you can pass a pointer to whatever widget you want. Something like this: g_signal_connect(button_on_toolbar, button_callback_handler, activate, (gpointer) my_notebook); then one you callback handler, you have: button_callback_handler(GtkWidget*

Re: signals connection

2003-03-20 Thread Evan Martin
On Thu, Mar 20, 2003 at 09:54:09AM -0500, Tristan Van Berkom wrote: Hmmm... it seems to mean that the callback will be called like this: c_handler(G_OBJECT(data), detail, (gpointer) instance); instead of c_handler(G_OBJECT(instance), detail, (gpointer) data); (I guess where detail

Re: interaction between widgets

2003-03-20 Thread Harring Figueiredo
--- Axel [EMAIL PROTECTED] wrote: On Thu, 20 Mar 2003 08:07:13 -0800 (PST) Harring Figueiredo [EMAIL PROTECTED] wrote: When you create your signal fucntion, you can pass a pointer to whatever widget you want. Something like this: g_signal_connect(button_on_toolbar,

Re: How to declare a protected region in a gtk window ?

2003-03-20 Thread Edward-Liu
Owen Taylor wrote: gtk_widget_set_double_buffered (widget, FALSE); gtk_widget_set_app_paintable (widget, TRUE); is probably more to the point. Regards, Owen Thank you for your answer. I tried it. It works. But If I resize/grow the window and call the

GTK Cursor changing displays some garbage data.

2003-03-20 Thread bkna
Hi, I am programming with Gtk+ v1.2 for mouse cursor changing. But I have some garbage displaying on mouse cursor when I do double clicking of mouse buttons many times. Here I attached the codes. Down 3 files are the attached ones too. Did I miss some flushing functions? bkna FILE 1: