Re: GtkListStore and Drag&Drop to Nautilus folder

2005-05-03 Thread Freddie Unpenstein
> hey man ... relax ... i think you may be the fisrt in the entire > universe that want to implement something like this ! :D > serius, if no one response you, probably it can be an new attempt to > the most of us :S ... it does not mean disinterest !! Indeed... I for one wouldn't mind adding "D

RE: g_signal_connect

2005-05-03 Thread Freddie Unpenstein
> the g_signal_connect works like what? >g_signal_connect(GTK_WIDGET(widget), >signal("clicked"),G_CALLBACK(Function), >(gpointer) "Data"); > but the callbacks functions have the GtkWidget *Widget as a 1st > parameter, and... well, i simply don't get it. =) Lots of answers, me

Re: g_signal_connect

2005-05-03 Thread Tomaz Canabrava
Tanks vivian and Paul, Really Helped =) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk_combo_box_get_active_text fails ???

2005-05-03 Thread Antonio Gomes
Hi Olivier, first, you must to be care with the requered prototype of each signal . In the case of changed in a gtk_combo_box context, the prototype of the callback associated with this signal must be as following: Signal Prototypes "changed" voiduser_function (GtkComboBox *widget

Re: GtkListStore and Drag&Drop to Nautilus folder

2005-05-03 Thread Antonio Gomes
hey man ... relax ... i think you may be the fisrt in the entire universe that want to implement something like this ! :D serius, if no one response you, probably it can be an new attempt to the most of us :S ... it does not mean disinterest !! regards > thanks for very excellent support from th

Re: X server problem

2005-05-03 Thread Antonio Gomes
Hi abhi ... I'm getting this error too, but i'm running Debian sarge :S . Before read your post, i was not shure about the relation between this trouble and the update of GTK version i did, but now i'm increase my certainty. In my case, there is another obstacle: while I do not remove the /tmp/.X

Re: GtkTreeView SIGNALS

2005-05-03 Thread Gyözö Both
you could also use the button_press_event (and check the event->button value to see which button it was). gyözö I'm trying to use the single click on a GtkTreeView. Is there a way for me? The row-activated signal is activated with a double click... I'm needind one that is launched with just one

Re: GtkTreeView SIGNALS

2005-05-03 Thread John Coppens
On Tue, 3 May 2005 10:48:15 -0400 André Pedralho <[EMAIL PROTECTED]> wrote: > The 'cursor-changed' works very well... Unfortunately the GTK and Glib > tutorials are so poor and don't explain in easy words what we want to > know! Look at 'cursor-changed' topic: > > void user_function (GtkTreeView

Re: GtkTreeView SIGNALS

2005-05-03 Thread Stefan Kost
Hi André, I've submitted an initial patch to bugzilla that adds docs to all treeview signals ;) http://bugzilla.gnome.org/show_bug.cgi?id=302556 For anyone with good treeview knowledge, please review and help me on the missing details. One thing I am not sure is about all the signal that return

Re: GtkTreeView SIGNALS

2005-05-03 Thread André Pedralho
The 'cursor-changed' works very well... Unfortunately the GTK and Glib tutorials are so poor and don't explain in easy words what we want to know! Look at 'cursor-changed' topic: void user_function (GtkTreeView *treeview, gpointer user_data); treeview: the object which received the signal. user_da

Re: GtkTreeView SIGNALS

2005-05-03 Thread Peter Bloomfield
On 05/03/2005 10:34:02 AM, John Coppens wrote: On Tue, 3 May 2005 10:11:49 -0400 André Pedralho <[EMAIL PROTECTED]> wrote: I'm trying to use the single click on a GtkTreeView. Is there a way for me? The row-activated signal is activated with a double click... I'm needind one that is launched wi

Re: GtkTreeView SIGNALS

2005-05-03 Thread Vivien Malerba
On 5/3/05, John Coppens <[EMAIL PROTECTED]> wrote: > On Tue, 3 May 2005 10:11:49 -0400 > André Pedralho <[EMAIL PROTECTED]> wrote: > > > I'm trying to use the single click on a GtkTreeView. Is there a way > > for me? The row-activated signal is activated with a double click... > > I'm needind one

Re: GtkTreeView SIGNALS

2005-05-03 Thread John Coppens
On Tue, 3 May 2005 10:11:49 -0400 André Pedralho <[EMAIL PROTECTED]> wrote: > I'm trying to use the single click on a GtkTreeView. Is there a way > for me? The row-activated signal is activated with a double click... > I'm needind one that is launched with just one click! Check 'cursor_changed' -

GtkTreeView SIGNALS

2005-05-03 Thread André Pedralho
I'm trying to use the single click on a GtkTreeView. Is there a way for me? The row-activated signal is activated with a double click... I'm needind one that is launched with just one click! Thanks in advance, -- André Pedralho Bachelor in Computer Science Instituto Nokia de Tecnologia _

Re: GTK window and thread

2005-05-03 Thread Vivien Malerba
On 5/2/05, Frederic Beck <[EMAIL PROTECTED]> wrote: > Hello > > Here's my problem : i have a daemon running in the background, and i > want it to show popups after some events. > > I'm new in using GTK, so i took a look at the tutorial, and i managed to > create the window and show it. The popup

Re: GList

2005-05-03 Thread Paul Pogonyshev
ÐÐÑÑÐÐÑ wrote: > i think that the result of next code must be 3. > but i have 0 > if uncomment "l=..." it's work correctly > > #include > > int main() > { > GList* l=NULL; > //l=g_list_alloc(); > > g_list_append(l,GINT_TO_POINTER(1)); > g_list_append(l,GINT_TO_POINTER(1));

Re: g_signal_connect

2005-05-03 Thread Vivien Malerba
On 5/3/05, Tomaz Canabrava <[EMAIL PROTECTED]> wrote: > Little trouble here =) > > the g_signal_connect works like what? > g_signal_connect(GTK_WIDGET(widget), signal("clicked"), > G_CALLBACK(Function), (gpointer) "Data"); > > but the callbacks functions have the GtkWidget *Widget as a 1st > para

Re: g_signal_connect

2005-05-03 Thread Paul Pogonyshev
Tomaz Canabrava wrote: > Little trouble here =) > > the g_signal_connect works like what? > g_signal_connect(GTK_WIDGET(widget), signal("clicked"), > G_CALLBACK(Function), (gpointer) "Data"); > > but the callbacks functions have the GtkWidget *Widget as a 1st > parameter, and... > well, i simply do

Re: GList

2005-05-03 Thread Tim Müller
On Monday 02 May 2005 18:13, ÐÐÑÑÐÐ Ñ wrote: > I think that the result of next code must be 3, but > I have 0. If uncomment "l=..." it's work correctly > > GList* l=NULL; > //l=g_list_alloc(); > > g_list_append(l,GINT_TO_POINTER(1)); > g_list_append(l,GINT_TO_POINTER(1)); >

Re: g_signal_connect

2005-05-03 Thread Peter Bloomfield
On 05/03/2005 09:14:35 AM, Tomaz Canabrava wrote: Little trouble here =) the g_signal_connect works like what? g_signal_connect(GTK_WIDGET(widget), signal("clicked"), G_CALLBACK(Function), (gpointer) "Data"); but the callbacks functions have the GtkWidget *Widget as a 1st parameter, and... well, i

Re: GList

2005-05-03 Thread Vivien Malerba
On 5/2/05, Городничев Денис <[EMAIL PROTECTED]> wrote: > i think that the result of next code must be 3. > but i have 0 > if uncomment "l=..." it's work correctly > > #include > > int main() > { > GList* l=NULL; > //l=g_list_alloc(); > > g_list_append(l,GINT_TO_POINTER(1)); > g

Re: GList

2005-05-03 Thread Peter Bloomfield
On 05/02/2005 01:13:49 PM, ÐÐÑÑÐÐ Ñ wrote: i think that the result of next code must be 3. but i have 0 ...because l is still NULL, and g_list_length(NULL) is 0. g_list_append returns the address of the first item in the list with its appended item, so you should use: if uncomment "l=

Re: g_signal_connect

2005-05-03 Thread André Pedralho
Would you explain better your problem?? Do you want a signal that is not used when you click a button, for example? When will it occur? What event? You may use a NULL there... On 5/3/05, Tomaz Canabrava <[EMAIL PROTECTED]> wrote: > Little trouble here =) > > the g_signal_connect works like what?

Re: GTK window and thread

2005-05-03 Thread stian
> (:20080): GLib-WARNING **: g_main_context_check() called > recursively from within a source's check() or prepare() member. > > (:20080): GLib-WARNING **: g_main_context_prepare() called > recursively from within a source's check() or prepare() member. Read the thread section of the gtk api and t

help_focusRectangle

2005-05-03 Thread Ashok jain
I have created a widget by using gtk APIs like this: //Window creation setupmenu_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (setupmenu_window), "setupmenu_window", setupmenu_window); gtk_widget_set_usize (setupmenu_window, WIN_WIDTH, WIN_HEIGHT); GTK_WIDGET_SET_

GList

2005-05-03 Thread Городничев Денис
i think that the result of next code must be 3. but i have 0 if uncomment "l=..." it's work correctly #include int main() { GList* l=NULL; //l=g_list_alloc(); g_list_append(l,GINT_TO_POINTER(1)); g_list_append(l,GINT_TO_POINTER(1)); g_list_append(l,GINT_TO_POINTER(1));

g_signal_connect

2005-05-03 Thread Tomaz Canabrava
Little trouble here =) the g_signal_connect works like what? g_signal_connect(GTK_WIDGET(widget), signal("clicked"), G_CALLBACK(Function), (gpointer) "Data"); but the callbacks functions have the GtkWidget *Widget as a 1st parameter, and... well, i simply don't get it. =) Does anyone cares to e

.gtkrc

2005-05-03 Thread abhi rocks
hi all, I just wanted to change my application looks. How do i do this. I found the .gtkrc file in my home/name directory. It was as follows # -- THEME AUTO-WRITTEN DO NOT EDIT include "/usr/share/themes/Bluecurve/gtk/gtkrc" # -- THEME AUTO-WRITTEN DO NOT EDIT Even thought i changed Bluecurve to

RE: Window activate

2005-05-03 Thread vishwahg
I think check out for gtk_window_grab_focus(window name) function.. Thanks Vishwa -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Deekshit M Sent: Monday, May 02, 2005 11:04 PM To: gtk-app-devel-list@gnome.org Subject: Window activate Hi all, In my app

RE: idle function + g_usleep = recursion?

2005-05-03 Thread Freddie Unpenstein
> I wonder what g_usleep does if it is called from inside an idle > function. Could that lead to recursion since the idle functions is > called when the cpu has idle time? Idle functions in Glib are basically a kind of timer, with a zero timeout, and a very low priority. The main loop does its