Rendering text with specified width

2005-03-13 Thread Lars Ræder
Hi! We're trying in Dia to render text at a specifc width (to fit within boxes) regardless of zoom factor. Since fonts don't scale linearly, this is kinda tricky. Is there a standard way in Pango now to say render this text at this width exactly (possibly just for a single line at a time)? I

GTK Script?

2005-03-13 Thread Peter van Eerten
Hi, Being used to Desktop Korn Shell (DTKSH) with the Digital Unix Common Desktop Environment, I wonder if something similar can be created for GTK? Would it not be nice to have a scripting language which is also capable of creating graphical user interfaces? Such a 'shell' could be

Re: GTK Script?

2005-03-13 Thread stian
Hi, Being used to Desktop Korn Shell (DTKSH) with the Digital Unix Common Desktop Environment, I wonder if something similar can be created for GTK? Would it not be nice to have a scripting language which is also capable of creating graphical user interfaces? Gtk+ has several language

Re: GTK Script?

2005-03-13 Thread Maciej Katafiasz
Dnia 14-03-2005, pon o godzinie 00:18 +0100, Peter van Eerten napisa: Being used to Desktop Korn Shell (DTKSH) with the Digital Unix Common Desktop Environment, I wonder if something similar can be created for GTK? Would it not be nice to have a scripting language which is also capable of

Re: How to get the first visible row in a tree view?

2005-03-13 Thread Gabriel de Perthuis
Le dimanche 13 mars 2005 19:14 +, David Rosal a crit : Hi. I have a scrollable tree view with a list of filenames, and I want to know which filename appears in the row at the top of the visible part of the tree view. I'll use this information later to restore the scrolling status of

Re: How to get the first visible row in a tree view?

2005-03-13 Thread Gabriel de Perthuis
Le dimanche 13 mars 2005 20:12 +0100, Gabriel de Perthuis a crit : Le dimanche 13 mars 2005 19:14 +, David Rosal a crit : The question is: is there any way to know the contents of the first visible row in a tree view? gtk_tree_view_get_tree_path_at_pos with the right position should

Re: How to get the first visible row in a tree view?

2005-03-13 Thread David Rosal
Gabriel de Perthuis wrote: Le dimanche 13 mars 2005 20:59 +, David Rosal a crit : It works! It gives me a valid path and I can retrieve the filename. But I get this warning: Gtk-CRITICAL **: gtk_tree_view_get_path_at_pos: assertion `tree_view-priv-bin_window != NULL' failed Maybe the

how to refresh treeview scrollbar that contain treeview

2005-03-13 Thread ALLs soft
i try with : gdk_window_process_updates(GTK_WIDGET(scrolledwindow)-window, TRUE); gdk_window_process_all_updates(); but not work, scrollbar position is stay on old position. somebody can help? thanks -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus

Re: poll(2) only can handle 256 fds?

2005-03-13 Thread John K Luebs
On Mon, Mar 14, 2005 at 03:15:06AM +0100, Markus Lausser wrote: On Fri, 2005-03-11 at 13:41, Gus Koppel wrote: Iago Rubio wrote: i get the message *** GLib *** : poll(2) failed due to: Invalid argument. thousand times when running my application. It seems that it

how to align text to right in GtkCellRendererText

2005-03-13 Thread Hubert Sokolowski
Hi! I add a text column to GtkTreeView using code renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes (col_titles[i], renderer, text,

Re: how to align text to right in GtkCellRendererText

2005-03-13 Thread David Necas (Yeti)
On Mon, Mar 14, 2005 at 08:16:36AM +0100, Hubert Sokolowski wrote: renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes (col_titles[i], renderer,

Re: how to align text to right in GtkCellRendererText

2005-03-13 Thread Hubert Sokolowski
On Mon, Mar 14, 2005 at 08:16:36AM +0100, Hubert Sokolowski wrote: renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes (col_titles[i], renderer,