Re: questionfor progress bar

2006-11-05 Thread Van H Tran
Hi, --- Kim Jongha [EMAIL PROTECTED] wrote: /* and the for loop */ double val; for(i = 0; i SOME_NUMBER; i++) { val = (100.0 /SOME_NUMBER)* i /100.0; g_idle_add(show_bar_idle_cb, INT_TO_POINT(val)); **SOMEWORK** } The problem is that timeout events don't occured before

Re: questionfor progress bar

2006-11-04 Thread Van H Tran
I would do it like this, but sorry i haven't got time to confirm it would work. /* pseudo code*/ gboolean * show_bar_idle_cb(pointer val) { gtk_progress_bar_set_fraction(POINT_TO_INT(val)); return FALSE to exit the idle } /* and the for loop */ double val; for(i = 0; i

Re: Trouble adding a lot of rows

2006-08-01 Thread Van H Tran
Hi, Have you tried setting the sort func to NULL before inserting the rows? That should basically disable the sorting Cheers, TranVan Hoang --- raul o [EMAIL PROTECTED] 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

Subject Prefix in the mailing list

2006-06-30 Thread Van H Tran
Hi all, I'm just wondering if gtk-app-devel-list mailing list should include some prefix, something like [gtk-app-dev] before each subject? I'm subscribed to a few mailing lists and it can get quite confusing sometimes. TranVan Hoang, ___

GtkTreeColumn CellRenderer Question!

2006-05-20 Thread Van H Tran
Hi all, I want to have a FIXED_SIZED colum that displays some text, followed immediately by some number. Here is the code: // cell renderers textRenderer = gtk_cell_renderer_text_new(); numberRenderer = gtk_cell_renderer_text_new(); g_object_set(G_OBJECT(textRenderer), ellipsize,

ellipsize PANGO_ELLIPSIZE_END .vs. PANGO_ELLIPSIZE_MIDDLE

2006-05-16 Thread Van H Tran
Hi all, I am trying to make my Gtktreeview able to truncate the long text rows by doing this textRenderer = gtk_cell_renderer_text_new(); /* Make the rows able to ellipzise (truncate with ...) the text */ g_object_set(G_OBJECT(textRenderer), ellipsize, PANGO_ELLIPSIZE_END, NULL);

Re: Beginner's question: About dialog

2006-05-07 Thread Van H Tran
Hi, my guess is that the gtk_show_about_dialog(), you're missing the value for verions, and also argument list is ended with a NULL. In your case, it does not. So that could the problem. Cheers, --- Peter Robinson [EMAIL PROTECTED] wrote: Hi guys and gals, I have recently started to learn

Gtkhtml question

2006-04-27 Thread Van H Tran
Hi all, Anyone using gtkhtml, _not_ gtkhtml2, library out there, please help me with this problem: I have a gtkhtml widget contained in a scrolled window. I want to be able to, when pressing Right Arrow key, jump to the first focus-able object in that html portion of the page displayed in that

gtk_scrolled_window doesn't scroll when used with viewport

2006-04-26 Thread Van H Tran
Hi! I want to have a scroll window, which contains a vbox. This vbox will later on be added with a list of check buttons, dynamically. snip GtkWidget *btn_list_vbox; ui_create_dialog() { ...create the dialog and few other widgets... /* scrolled window */ scrolled_window =

GtkTreeView PixBuf cell to display 2 images

2006-04-21 Thread Van H Tran
Hi! I want to implement some kind of FOLDER browser window using GtkTreeView. This tree has 2 columns, first column for some icon, and the second for the folder name I have 4 icons 1. icon of a Folder open 2. icon of a Folder closed 3. icon of a small + sign 4. icon of a small - sign If icon 1

GtktreeView Model segmentation fault

2006-03-13 Thread Van H Tran
Hi all, I get a Segmentation fault in a gtktreeview i'm using. Basically, it's a Treeview with expandable folders (like a file browser) The problem is: The program crashes very randomly when i just try to click to expand/collapse the folders, particularly when the tree has depth = 3. After a

Gtkhtml: how to append to the page without reloading the content

2006-02-23 Thread Van H Tran
Hi, I'm using gtkhtml library to display a list of items in a webpage. One possible way is to parse the whole page before displaying it but it will keep users waiting. I want to display some items, and then append it to the page, without reloading the content, _just_appending_, so that users

gtkhtml. Where is a good reference

2006-01-26 Thread Van H Tran
Hi all, Does any one know a good site on gtkhtml? It seems there are not that many compelete document on its API. Or are there any projects that use gtkhtml _extensively_ somewhere so that i can refer to? Thanks a lot for any reply Best regards, TranHoang

GtkSocket seems to block key events. How to unblock?

2005-07-20 Thread Van H Tran
Hi all, I have this GtkSocket embedded as a child (among a few other children) to a parent window. Whenver the focus is on the Socket, all the key events are not caught and therefore the parent window doesn't respond to these key events. Is there any way for the parent window to catch these