Re: gtktreeview

2006-09-21 Thread Tim Müller
On Wed, 2006-08-23 at 14:45 +0200, Andrea Zagli wrote: > is there a way to have various cellrender type for each row for the same > column? Example: > > row 1 with gtkcellrenderertext > row 2 with gtkcellrenderercombo > row 3 with gtkcellrenderertext > row 4 with gtkcellrenderertoggle You _might_

Re: Is there a way to use Pango Markup in GtkTextBuffer

2005-11-16 Thread Tim Müller
On Tue, 2005-11-15 at 15:33 -0600, Douglas Vechinski wrote: > Is there any convenient way to insert text using the Pango Markup > language into a GtkTextBuffer. Such functions exist for GtkLabel and > GtkCellView but I haven't seen any for GtkTextBuffer. If none exist, is > there a reason they d

Re: is there an equivalent of sscanf that uses GString as arguments?

2005-10-15 Thread Tim Müller
On Fri, 2005-10-14 at 18:11 +0100, Yiannis wrote: > is there an equivalent of sscanf that uses GString as arguments? You could just do sscanf (gstring->str, "%04u-%02u-%02u", ..); Cheers -Tim ___ gtk-app-devel-list mailing list gtk-app-devel-l

Re: gtk_tree_store_set

2005-07-28 Thread Tim Müller
On Thursday 28 July 2005 11:41, The Saltydog wrote: > This is my code: > > gtk_tree_store_set(model,&firstiter, > 0, "/", 1, "/", > 3, (gfloat)((g_fs.used*100)/g_fs.total), > 4, calc(g_fs.used), 5, g_fs.used, >

Re: [GObject] Error in unref

2005-07-25 Thread Tim Müller
On Monday 25 July 2005 10:14, Uzytkownik wrote: > #define TEST(name, cau) g_print(#name "...\t%s\n", cau ? "OK" : "Fail") > TEST(Init, parser = g_object_new(WOC_PAGER_PARSER_TYPE, NULL)); > g_print("%p\n", parser->scanner); > g_object_unref(parser); >... > It's print address, but after it's

Re: Having a border for tree view

2005-07-18 Thread Tim Müller
On Monday 18 July 2005 09:25, Yogesh M wrote: > When I display the tree view,it doesnt contain a > border, > it has a white bg but no border. How to draw border. Put it in a GtkScrolledWindow (with gtk_container_add()). Cheers -Tim ___ gtk-app-devel-li

Re: g_param_spec_ ??

2005-07-16 Thread Tim Müller
On Saturday 16 July 2005 16:43, Iago Rubio wrote: > g_param_spec_object with GType GString? > > GParamSpec* g_param_spec_object (const gchar *name, > const gchar *nick, > const gchar *blurb, >

Re: creating a Preference dialog like that of Konquerors

2005-07-14 Thread Tim Müller
On Thursday 14 July 2005 11:05, Yogesh M wrote: > I want the preference dialog to look like this, > left side of the window a list of images describing > the options like font,colour,settings... > and when I like those, the required buttons should > appear on the right, > > I know it can be done w

Re: How compile resource inside .o file?

2005-07-01 Thread Tim Müller
On Friday 01 July 2005 05:18, 顺珉 吴 wrote: > I want all icons and images my programm used be > packaged in to the final execute binary file. > How can I do this? Check out the gdk-pixbuf-csource command line tool that comes with Gtk. Alternatively, you can convert your icons/images into .xpm form

Re: GTK dialog ESC key problem

2005-06-27 Thread Tim Müller
On Monday 27 June 2005 13:53, Colossus wrote: > > It should actually act as if you clicked the Cancel button, ie. emit a > > dialog response with GTK_RESPONSE_CANCEL and return that as value in > > gtk_dialog_run() if you are using gtk_dialog_run(). In other words: you > > probably need to fix you

Re: GTK dialog ESC key problem

2005-06-27 Thread Tim Müller
On Monday 27 June 2005 13:09, Colossus wrote: > I have a gtk-dialog built with glade with the two buttons Cancel and > Ok. When I push the ESC key on the keyboard the code behaves as I > clicked Ok with the mouse on the dialog and this is not correct. > How can I avoid this behaviour ? It should

Re: Segmentation fault in GHashTable

2005-06-24 Thread Tim Müller
On Friday 24 June 2005 16:59, Uzytkownik wrote: > I've problem with GHashTable: > (...) > self->private->check = g_hash_table_new(g_int_hash, g_int_equal); > g_hash_table_insert(self->private->check, GINT_TO_POINTER(3), "%%(.*)"); > (...) g_int_hash() expects a _pointer_ to an int, not an int (see

Re: drawing stuff inside the TreeView

2005-06-22 Thread Tim Müller
On Wednesday 22 June 2005 17:18, Alexei D wrote: > I need to create a Tree widget that has 1 column. > Each row in the column should contain a small circle > and some text (filename) next to it. The color of the > circle represents the file type. I have to draw > circles myself with gdk_draw_arc

Re: segmentation fault when trying to save a pixbuf into a file

2005-06-21 Thread Tim Müller
On Tuesday 21 June 2005 12:59, y g wrote: > I had posted in the past but with no luck about segmentation faults > that I am getting when trying to save a pixbuf into a file. With a bit > more debugging this is the error I am getting when I try: > gdk_pixbuf_save(pixbuf, "temp.bmp", "bmp", NULL); >

Re: Distinguish between G_IO_ERR and G_IO_HUP

2005-05-30 Thread Tim Müller
On Monday 30 May 2005 13:31, Colossus wrote: > I'm trying to catch the returned error message of the unzip > executable with GIOChannel. I use g_spawn_async_with_pipes and > then I create a GIOChannel and then i call g_io_add_watch. I run > unzip with an incomplete zip file so the unzip executable

Re: How to disable the esc key in gtkdialog?

2005-05-13 Thread Tim Müller
On Friday 13 May 2005 02:51, moody_blur wrote: > The gtkdialog destroy itself when get a esc key. How > can I trap the key and disable this feature? Don't add a 'cancel' button or any other action widget/button with a GTK_RESPONSE_CANCEL response value to the dialog and that behaviour will disa

Re: What is "map-event"?

2005-05-04 Thread Tim Müller
On Wednesday 04 May 2005 09:20, ìëí wrote: Hi, > Would you explain what the âmap-eventâ is? > > When does it occur? http://developer.gnome.org/doc/GGAD/z57.html#SEC-REALIZINGSHOWING has a nice explanation. Cheers -Tim ___ gtk-app-devel-list mailing

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: Progress bars and syscalls

2005-04-18 Thread Tim Müller
On Monday 18 April 2005 11:51, Aristidas Vilkaitis wrote: > Since i'm quite new to both C and Gtk, i met a problem which i am not > able to solve. The base of the problem is that i have a task, which > should fetch several files from the internet. When a button is pressed, > a new window wi

Re: Tree view and multiple TreeModels.

2005-04-02 Thread Tim Müller
On Saturday 02 April 2005 14:23, MQ wrote: > > gtk_tree_view_get_model()? > > Not quite. This returns the model currently connected to the View. But if I > have model A and model B, how do I know which is the one returned by > gtk_tree_view_get_model()? You could tag the two models with g_object_

Re: g_spawn_async_with_pipes and g_io_add_watch problem

2005-03-16 Thread Tim Müller
On Wednesday 16 March 2005 21:55, Ole C. wrote: > (snip a lot) I have to admit I have only quickly looked over your text and not read it in much detail, but it sounds like you might not be checking the condition in the g_io_add_watch() callback on a per-flag basis. Your callback could be call

Re: debugging excessive memory usage, after converting to use GArray's

2005-02-18 Thread Tim Müller
On Friday 18 February 2005 16:23, Dave Andruczyk wrote: > Anyone know of any good tools to find out where memory is either 1. > leaking, or 2. excessively allocated? > > I've tried valgrind but it slows things down so much as to make it > completely unusable.. Aside from eating memory like mad, i

Re: Telling a tree_view a model has changed

2005-02-15 Thread Tim Müller
On Tuesday 15 February 2005 13:28, Denis wrote: > I do not see how this can happen since I made my *own* model and do not > do anything which can notify the view. > Is there something I should do in the model to say "Hi everybody, I have > changed" ? You need to call gtk_tree_model_row_changed()

Re: GtkTreeModelFilter question

2005-02-13 Thread Tim Müller
On Sunday 13 February 2005 13:12, Maulet wrote: > I'm having problems with GtkTreeModelFilter. > The following sample program simply builds a window with a tree view > inside. A tree model filter wraps the tree model of the tree view. > The filter uses a visible function that always returns FALSE.

Re: Set number of rows in GtkTreeView

2005-02-09 Thread Tim Müller
On Wednesday 09 February 2005 13:56, Ken Siersma wrote: > I want to specify a number of rows to always display in my > GtkTreeView widget, regardless of how many entities are in my > GtkListStore. I'm using the GtkTreeView to display a list of files. > Sometimes there are no files, sometimes ther

Re: Glib and memory allocation

2005-02-09 Thread Tim Müller
On Tuesday 08 February 2005 17:19, Cristiano Ghirardi wrote: > it's not clear to me what happens when memory has been allocate with > g_new or g_realloc and not freed. I mean: obviously this memory > remains in the user space of the process as an infamous memory leak > but it seems to me that und

Re: Hot to show a non blocking message?

2005-02-02 Thread Tim Müller
On Wednesday 02 February 2005 09:37, Cristiano Ghirardi wrote: > I'm developing an application using gtk+-2.6, in the main_win_show > event I perform many subsystems initializations. I an initialization > fails I'd like to show a message using a gtk_dialog_run. The problem > is that the dialog nev

Re: getting wrong iters when using a TreeModelFilter

2005-01-28 Thread Tim Müller
On Friday 28 January 2005 12:19, Stefan Kost wrote: Hi Stefan, > This drives me mad. I use a TreeModelFilter to hide rows (to show only > every, every 2nd, every 4th,...). When the user presses a key I'd like to > change the content of the model (the real one). I use the code below. The > problem

Re: How best to fetch a web page...

2005-01-25 Thread Tim Müller
On Tuesday 25 January 2005 11:42, Hubert Sokolowski wrote: > > And as an alternative, any suggestions on fundamentally better ways of > > fetching a web page asynchonously? I'm more than willing to do something > > drastically simple instead but dastedly effective, and forgo the whole > > g_spawn