Hi,
Now I want to remove the 4th item from the tree. When I put things
into the tree I made a path from the new iter, made a row ref from
the path, and saved it in a table associated with the handle for my
data. So I have a rowref, which I can turn back into a path, and
from there back
Hi!
Hello Felipe
You should use GtkTreeView combined with GtkListStore or GtkTreeStore
Thanks for the answer.
Where I can find an sample
http://developer.gnome.org/doc/API/2.0/gtk/TreeWidgetObjects.html
http://scentric.net/tutorial/treeview-tutorial.html
http://www.google.com (unbelievably
Hi!
I need to retrieve the button number in a clicked event
handler for a treeview column, but I don't know how to
read it from the event data (is there any?). Can someone help?
If I understand correctly, you want to catch clicks on the treeview and
then analyse whick mouse button was used?
Hi!
See
http://mail.gnome.org/archives/gtk-list/2003-October/thread.html
I am following this list closely and I was aware of your discussion about
aligning *text* cells. However, I was wondering if there is generic way to
align whatever contents of the cell, e.g. toggle-buttons and pixbufs.
Hi everyone!
How does one align the contents of a GtkTreeViewColumn? The function
gtk_tree_column_set_alignement applies only to the header, but not to the
actual contents (set by gtk_list_store_set function). So how does one
center or right-flush the column contents?
Thanks,
Andrej
Hi all,
Could anyone tell me what to use if gdk_draw_string and gdk_draw_text are
deprecated? I want to put labels to my graph on a drawable?
Thanks,
Andrej
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
Hi!
Could anyone tell me what to use if gdk_draw_string and
gdk_draw_text are deprecated? I want to put labels to my
graph on a drawable?
PangoLayout, I think. There is some information here:
http://developer.gnome.org/dotplan/porting/ar01s10.html
Thanks; I'm trying to make a
Hello!
I am not sure what you are trying to do but you can get the platform's
default context object for a given layout with pango_layout_get_context.
Well, it's just the other way around; I thought I have to create a context
in order to create a layout in order to put some text on the
Hello everyone!
I managed to replace the obsolete calls with new ones! Thanks very much
for your help, guys! :)
Best wishes,
Andrej
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
Hello!
Could anyone please give me a hint on how to attach a clicked signal
to the pixbuf that is in the GtkTreeView? GtkCellRendererPixbuf
doesn't have any signals?
You should set property mode of parent class GtkCellRenderer to
GTK_CELL_RENDERER_MODE_ACTIVATABLE, then use `activate'
Hello!
Could anyone please give me a hint on how to attach a clicked signal to
the pixbuf that is in the GtkTreeView? GtkCellRendererPixbuf doesn't have
any signals?
Thanks,
Andrej
PS. Thanks, Murray, for your answer(s); I worked my way through editable
cells!
Hi!
I'm still struggling with GtkTreeView co. I'm going to explain my problem
and then perhaps someone may drop a hint...
I need a GtkListStore of six columns:
1 ... a string (filter name)
2 ... a checkbox (should data be plotted)
3 ... a checkbox (should lines be
Hi!
I really missed a function that would return the index of a GtkTreeViewColumn given as
an argument, so I wrote (a very inefficient and probably even messy but functional)
routine myself; maybe someone would use it too, so here it goes:
gint gtk_tree_view_column_get_index
Hello, everyone!
Could anyone please tell me if it's possible to extract the parent
GtkTreeModel out of GtkTreeViewColumn?
Or, if someone could maybe suggest a better way to extract the data from
the selected column in a function where GtkTreeViewColumn *column and int
row are arguments, e.g.
Hi!
Yep, I did something similar:
sprintf (path_str, %d, count);
while (gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (store),
iter, path_str) == TRUE)
{
count++;
sprintf (path_str, %d, count);
}
But it's just so DAMN ugly! ;(
Well, you could at least
Hi, everyone!
I am trying to upgrade from CLists to GtkTreeViews since my transition
from 1.2 to 2.0. I have a spin button that declares how many rows a
GtkTreeModel (with a GtkListStore) should contain; attached to the
changed signal for a spin-button I have a callback that should do this.
While
Heèllo!
El vie, 04-07-2003 a las 11:38, Andrej Prsa escribió:
Hi, everyone!
I am trying to upgrade from CLists to GtkTreeViews since my
transition from 1.2 to 2.0. I have a spin button that declares how
many rows a GtkTreeModel (with a GtkListStore) should contain;
attached
Hi, guys!
I must issue a system call from my program, something like
system (prog);
This operation takes at least a minute, but the time of computation
actually depends on many parameters.
1) How do I keep refreshing the GUI? while (gtk_events_pending) obviously
won't work, I also
Hello!
I have a couple of questions and I hope someone could help me out:
1. Is there an easier (more elegant) way to get the highlighted row of
CList than:
gint selected_row = (gint)((GList *)(GTK_CLIST(list)-selection))-data;
2. What signal do I have to use (and how) to detect double-click
Hello!
okay, but my earlier post (picking up resize events) has the sizing of the
drawables in terms of the gdkwindow size IN the main routine.
so that's not much help, really ..
Anyone???
I'm only going to rephrase the question: what would happen if you have to deal with an
external
Hello, everyone!
Is gtk_widget_hide supposed to mess the signals up? I have a spin button called LCBox
and a value-changed signal connected to its adjustment. Its job is to tell the
program how many lightcurves are available and, as a consequence, how many entry boxes
do we want on the
Hello!
My question: how do i remove COMPLETELY an old version of glib (or anything
else for that matter) so that I know I don't have two or more versions of a
library on my system.
If you installed it from tarball (.tar.gz), you should type make clean to clear the
package from installed
Thank you very much, everybody!
In GTK 2, you could just do:
image = gtk_image_new_from_file (test.jpg);
gtk_container_add (GTK_CONTAINER (window), image);
So look forward to that. ;-)
I am looking forward to that! In the meantime, since there's been a lot of questions
on a working
Hello!
I'm going nuts with GDK-Pixbuf... I searched all over the net for a small example but
failed to find it. The examples I did find utilize gnome.h, which I try to avoid.
Here's my problem: I have to put simple jpg or gif graphics (with known dimensions,
bits, ...) to screen. I tried to
Hello!
1. Is there a way of saving/restoring EVERYTHING in an application? I've created an
application that has about 100 adjustable parameters through combo boxes, spin buttons
and so on. So instead of writting every one of them individually to an ASCII file, is
there a way to flush their
Hello, again!
I'm having trouble with signals; I made a spin button as a counter of input files and
I would like to get its int value (gtk_spin_button_get_value_as_int) whenever the
button's changed in order to use it in another loop to create text entry fields for
filenames. So, if someone
I'm having trouble with signals; I made a spin button as a counter of input fi
les and I would like to get its int value (gtk_spin_button_get_value_as_int) w
henever the button's changed in order to use it in another loop to create text
entry fields for filenames. So, if someone changed the
I've succeeded with Spin Buttons! Thank you very much!
Unfortunately, I've another question:
I've connected a button with File Selection and everything works fine (I followed the
tutorial example). However, I'm clueless on how to store the result in a local string;
I managed to do it by
Hello everyone!
I'm a newbie to gtk+ programming (started only yesterday ;) ), but after few hours of
trying to invent hot water I gave up and figured I should ask:
How do I get double precission with spin buttons? I have to enter Julian dates, which
are something like 2448500.165143, so I
29 matches
Mail list logo