Re: Trouble adding a lot of rows - Solution

2006-08-02 Thread raul o
--- raul o <[EMAIL PROTECTED]> wrote: > Hello: > ... > In "GTK+ 2.0 Tree View Tutorial" I found the next: > "Secondly, you should make sure that sorting is > disabled while you are doing your mass > insertions..." > but I don't know how disable the sorting when I > adding > the rows. Any suggestion

uimanager popup problem...

2006-08-02 Thread Enrico
Hi at all! I've tried to make a popup menu with uimanager but it doesn't show nothing...where is the mistake? This is part of the code... static const char *ui_description = "" " " " " " " " " ""; static const GtkActionEntry entries[] = { { "MainMenu", NULL, "_File" }, { "Open"

Re: A kind of progress bar ?

2006-08-02 Thread Nacho Martin
I did sometime ago something similar for Gnomebaker. I won't paste all the code here as it's too much. I can tell you that I used cairo directly for the implementation, though. This way I can have full control over the rendering. The code is there and you can take a look at CVS. Feel free to ask m

Re: A kind of progress bar ?

2006-08-02 Thread Yeti
On Wed, Aug 02, 2006 at 12:11:13AM +0200, Olivier Ramare wrote: > Here is the widget I need, with some context: > -- > I have n (say 5000) given positions to evaluate. > Each evaluation takes about a 1/10 of a sec

RE: GtkTextBuffer: (1) save? (2) image inside?

2006-08-02 Thread rk-list
hi, > (1) How can I save its content? I mean, if the > user wants to save it all, I would like a button to read the documentation: http://developer.gnome.org/doc/API/2.0/gtk/GtkTextBuffer.html esp. gtk_text_buffer_get_text () > and so on :-) That's a text buffer but with > col

Re: container implementation

2006-08-02 Thread Paul Pogonyshev
Murray Cumming wrote: > > [...] > > > > I ask, since Gtk::Widget::set_parent() is not available > > from outside... > > Yes, I think it was protected in a previous version of gtkmm, but it's now > public (because someone filed a bug about it). If you are using that older > version of gtkmm then

GtkTextBuffer: (1) save? (2) image inside?

2006-08-02 Thread Olivier Ramare
Dear all, I have a GtkTextBuffer in which my program tells the user what happens. (1) How can I save its content? I mean, if the user wants to save it all, I would like a button to and so on :-) That's a text buffer but with colors / bold stuff :-( I would be happy with

Re: Storing GObject in GtkListStore

2006-08-02 Thread Rick Jones
Tomasz Jankowski wrote: > Hi! > > Generally it isn't a problem, I'm only nosy :P I'd like to know if there is > some other (more recommended) way to store, for example GObject in > GtkListStore/GtkTreeStore. So far I do it, by creating column with type > G_TYPE_INT and storing there pointer to obj

gtk_button_set_relief on Windows

2006-08-02 Thread Ricardo Malafaia
On Windows 2000 and XP, GTK_RELIEF_HALF doesn't seem to work. Is that right or has something to do with themes? although it's using the default theme from the binary distribution... ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http:/

Re: Opening a GtkWindow from a Thread

2006-08-02 Thread Tor Lillqvist
Philip Van Hoof writes: > Does this mean that gdk_threads_enter and _leave doesn't work on > Windows? Auwch ... Well, they do "work" (in the sense that they lock and unlock the gdk_threads_mutex), but that is not the problem. You should realize that Win32 GDI is not a pure network protocol like

Re: Trouble adding a lot of rows

2006-08-02 Thread Philip Van Hoof
On Wed, 2006-08-02 at 05:49 +0100, raul o wrote: > Hello: > > Well, I have a trouble when I add a lot of rows > (+700)in a list. I know that the problem are in the > sort function that I defined using set_sort_function. > > In "GTK+ 2.0 Tree View Tutorial" I found the next: > "Secondly, you shoul

Re: Trouble adding a lot of rows

2006-08-02 Thread raul o
--- Van H Tran <[EMAIL PROTECTED]> wrote: > > Hi, > Have you tried setting the sort func to NULL before > inserting the rows? That should basically disable > the > sorting > Cheers, > TranVan Hoang > This is the right way? : gtk_tree_sortable_set_sort_func (sort, MYCOL, NULL, NULL, NULL); ...

Re: Opening a GtkWindow from a Thread

2006-08-02 Thread Philip Van Hoof
On Wed, 2006-08-02 at 11:07 +0300, Tor Lillqvist wrote: > [EMAIL PROTECTED] writes: > > I am desperatly trying to open a dialog box from a thread on > > Windows XP. > > Using GTK+ from multiple threads doesn't work on Windows, see bug > #60620. (And doing that is usually considered bad design an

Re: Storing GObject in GtkListStore

2006-08-02 Thread Philip Van Hoof
On Wed, 2006-08-02 at 15:51 +0200, Tomasz Jankowski wrote: > Hi! Hey Tomasz! > Generally it isn't a problem, I'm only nosy :P I'd like to know if there is > some other (more recommended) way to store, for example GObject in > GtkListStore/GtkTreeStore. So far I do it, by creating column with type

Re: Storing GObject in GtkListStore

2006-08-02 Thread Lance Dillon
As far as I can tell you can, as per this example: http://developer.gnome.org/doc/API/2.0/gtk/GtkListStore.html#gtk-list-store-new Notice how they set a column as a GDK_TYPE_PIXBUF, which is derived from G_OBJECT. This implies that you can store anything derived from G_OBJECT in a column desi

Storing GObject in GtkListStore

2006-08-02 Thread Tomasz Jankowski
Hi! Generally it isn't a problem, I'm only nosy :P I'd like to know if there is some other (more recommended) way to store, for example GObject in GtkListStore/GtkTreeStore. So far I do it, by creating column with type G_TYPE_INT and storing there pointer to object. -- Pozdrawiam! Tom __

Re: Opening a GtkWindow from a Thread

2006-08-02 Thread Tor Lillqvist
[EMAIL PROTECTED] writes: > I am desperatly trying to open a dialog box from a thread on > Windows XP. Using GTK+ from multiple threads doesn't work on Windows, see bug #60620. (And doing that is usually considered bad design anyway, I think.) Do all your GTK+ calls from the main thread. Use g_i

Opening a GtkWindow from a Thread

2006-08-02 Thread vbutty12
Dear all, I am desperatly trying to open a dialog box from a thread on Windows XP. The dialog box is indeed opening, but when I try to move it from its initial position, the GUI freezes. The only way I could find to let the application work is to create the dialog box at the start of each thr