Re: How do I remove one row from a GtkTreeStore?

2005-08-19 Thread Andrej Prsa
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

Re: GtkList

2004-03-22 Thread Andrej Prsa
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

Re: Treeviewcolumn event

2004-01-09 Thread Andrej Prsa
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?

Re: GtkTreeView alignment

2003-11-18 Thread Andrej Prsa
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.

GtkTreeView alignement

2003-11-17 Thread Andrej Prsa
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

gdk_draw_string deprecated?

2003-10-14 Thread Andrej Prsa
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

Re: gdk_draw_string deprecated?

2003-10-14 Thread Andrej Prsa
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

Re: gdk_draw_string deprecated?

2003-10-14 Thread Andrej Prsa
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

Re: gdk_draw_string deprecated? SOLVED

2003-10-14 Thread Andrej Prsa
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

Re: GtkCellRendererPixbuf and signals

2003-07-24 Thread Andrej Prsa
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'

GtkCellRendererPixbuf and signals

2003-07-16 Thread Andrej Prsa
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!

GtkCellEditable or a better way?

2003-07-12 Thread Andrej Prsa
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

Getting column index out of GtkTreeViewColumn

2003-07-09 Thread Andrej Prsa
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

Geting a GtkTreeModel out of GtkTreeViewColumn

2003-07-08 Thread Andrej Prsa
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.

Re: Trouble with GtkTreeModel co.

2003-07-05 Thread Andrej Prsa
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

Trouble with GtkTreeModel co.

2003-07-04 Thread Andrej Prsa
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

Re: Trouble with GtkTreeModel co.

2003-07-04 Thread Andrej Prsa
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

A question on pending

2003-06-08 Thread Andrej Prsa
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

Double-clicking on CList

2002-06-25 Thread Andrej Prsa
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

Re: Screen updates while long time running subroutine

2001-07-18 Thread Andrej Prsa
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

gtk_widget_hide problems

2001-07-08 Thread Andrej Prsa
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

Re: very basic question about glib

2001-06-26 Thread Andrej Prsa
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

Re: GDK-PixBuf

2001-06-12 Thread Andrej Prsa
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

GDK-PixBuf

2001-06-11 Thread Andrej Prsa
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

Saving/Restoring

2001-05-21 Thread Andrej Prsa
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

Spin Buttons

2001-05-20 Thread Andrej Prsa
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

Re: Spin Buttons

2001-05-20 Thread Andrej Prsa
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

Re: Spin Buttons

2001-05-20 Thread Andrej Prsa
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

double IEEE precission with spin buttons

2001-05-19 Thread Andrej Prsa
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