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,
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.
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
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
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
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
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
_
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?
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
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:
>
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
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
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
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
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
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
16 matches
Mail list logo