Re: GtkTreeView issues (porting from GtkCList)

2005-06-14 Thread André Pedralho
I was trying to port a GTK1 app toward a GTK2 app. In my GTK1 app I was using a CTree and I had to implement a TreeView in my GTK2 app to show my old tree. I have two questions: 1) There is a way to set the root of the tree? e.g: root > child 1 > child 2 What I want is: in this example,

Re: How can I access gtk_tree_view declared in interface.c from callback.c ?

2005-05-19 Thread André Pedralho
I don't know if it will work, but you may try to use a pointer for user_data like: void on_new1_activate (GtkMenuItem *menuitem, gpointer *user_data) then you can access an internal structure of this... On 5/19/05, R.Rajaram <[EMAIL PROTECTED]> wrote: > Have a look at "lookup_widget" in support.

GtkTreeView X GtkCTree

2005-05-06 Thread André Pedralho
Hi all, I'm updating my app code that used to use a GtkCtree implementation... So, how I said, I'm updating it and GtkCtree is deprecated. The solution finded was use GtkTreeView, GtkTreeModel, GtkTreeStore and GtkTreeSignal to do almost everything we used to do with GtkCTree... After a great battl

GtkTreeView X GtkCTree

2005-05-04 Thread André Pedralho
Hi all, I'm updating my app code that used to use a GtkCtree implementation... So, how I said, I'm updating it and GtkCtree is deprecated. The solution finded was use GtkTreeView, GtkTreeModel, GtkTreeStore and GtkTreeSignal to do almost everything we used to do with GtkCTree... After a great battl

Re: GtkTreeView SIGNALS

2005-05-04 Thread André Pedralho
I was using this for selecting, but I need to use the same selected value in more than one functions and was getting a segmentation fault cause of that... (I don't know why...). Now I'm using the 'changed-cursor' signal and some functions of GtkTreeSelection to get the rows selected values, but I d

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

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: 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: deactivate buttons

2005-04-27 Thread André Pedralho
If you want just to deactivate the buttons (you may click on this) you may use the g_signal_connect for connecting the signal for the button and the g_signal_handler_disconnect for deactivate this. e.g int sigHandler; button instance; /* you may use the button */ sigHandler= g_signal_connect(ins

Re: Progress bars and syscalls

2005-04-18 Thread André Pedralho
You may use the pthread.h C library and use multiples threads to do what you want... I don't know exactly how to do it, but it is a way out for your problem! -- André Pedralho Bachelor in Computer Science Instituto Nokia de Tecnologia On 4/18/05, Aristidas Vilkaitis <[EMAIL PROTECTED]> wrote: >

Re: Pop up Menu

2005-04-18 Thread André Pedralho
You must use the gtk_menu_popup (). The GTK api shows all you may do with this. See it at: http://developer.gnome.org/doc/API/2.0/gtk/GtkMenu.html#gtk-menu-popup Use this function inside your callback for a click on your frame. Then specify the button you clicked (GDK_BUTTON3_MASK for the right cl

Re: Newbie Question

2005-04-05 Thread André Pedralho
You can use the g_signal_connect wich you may pass one or more parameters: look at http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html#g-signal-new On Apr 5, 2005 1:26 PM, Tomaz Canabrava <[EMAIL PROTECTED]> wrote: > i have a function defined by > > void window_createMatrix(int

Re: time interaction

2005-03-10 Thread André Pedralho
is there a way to get the time that a signal is running!? eg. the button of the mouse is being pressed for 10 sec! if (the button of the mouse is being pressed over a button for 10 sec) then do a thing; in mouse case I think I can use the button "pressed" signal and the glib Timers! What do you

time interaction

2005-03-09 Thread André Pedralho
I've heard about a gtk based app that implements some time interactions! e.g. one event occurs 10s from now! I think I'll develop something using this! ;) Someone knows if it is true? And how to do it? thanks and let's play! André Pedralho ___ gtk-app-d

Re: copy file

2005-03-04 Thread André Pedralho
I think it is just like the linux 'mv' command! You can see at man rename: -- DESCRIPTION "rename" renames the filenames supplied according to the rule specified as the first argu- ment. The perlexpr argu

Re: copy file

2005-03-03 Thread André Pedralho
There are a lot of File utilities functions in GLib! You may use the rename() function to do it! http://developer.gnome.org/doc/API/2.0/glib/glib-File-Utilities.html#g-rename look at here for solving your problems! any doubts, I´m here! On Fri, 04 Mar 2005 00:47:57 +0100, ALLs soft <[EMAIL PROTE