Re: Displaying a (simple) list of strings
- From: Matías Alejandro Torres <torresmat gmail com>
- To: asdf <fia_wrc_fanatic yahoo com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Displaying a (simple) list of strings
- Date: Wed, 05 Dec 2007 01:01:40 -0300
Matías Alejandro Torres escribió:
An example of a GtkTreeView with a couple of strings.
About the 10 items limit I don't know how to do that. Maybe if you can
get the requested size of a row ( gtk_cell_renderer_get_size () ),
multiplying it by 10 and setting this size to the GtkTreeView (plus
headers and stuff) but is an error prone approach to me.
¿Anyway are you sure that limiting the amount of items that can be
displayed is comfortable to the user? Maybe if you pack the widgets
well, you won't need that.
Delete this line from the example (I was just checking something):
gtk_cell_renderer_text_set_fixed_height_from_font ((GtkCellRendererText*) renderer, 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]