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 the tree view.
The question is: is there any way to know the conte
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
> st
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 posit
Gabriel de Perthuis wrote:
Better:
GdkRectangle r;
int xw, yw;
GtkTreePath* path = gtk_tree_path_new();
gtk_tree_view_get_visible_rect(tv, &r);
gtk_tree_view_tree_to_widget_coords(tv, r.x, r.y, &xw, &yw);
gtk_tree_view_get_tree_path_at_pos(tv, xw, xy, &path, NULL, NULL, NULL);
It works!
It gives m
Le dimanche 13 mars 2005 Ã 20:59 +, David Rosal a Ãcrit :
> Gabriel de Perthuis wrote:
>
> > Better:
> >
> > GdkRectangle r;
> > int xw, yw;
> > GtkTreePath* path = gtk_tree_path_new();
> >
> > gtk_tree_view_get_visible_rect(tv, &r);
> > gtk_tree_view_tree_to_widget_coords(tv, r.x, r.y, &xw,
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
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 Da
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 happens if i have accepted 100 < x < 200
> > > > tcp connect
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.
> > > > >
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",
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,
>
> 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,
>>
12 matches
Mail list logo