Mercurial > geeqie
diff src/collect-table.c @ 333:767b53cd9ab7
Rename thumbnails related options.
author | zas_ |
---|---|
date | Sat, 12 Apr 2008 09:41:44 +0000 |
parents | 57a4ced53618 |
children | 4b2d7f9af171 |
line wrap: on
line diff
--- a/src/collect-table.c Sat Apr 12 09:12:37 2008 +0000 +++ b/src/collect-table.c Sat Apr 12 09:41:44 2008 +0000 @@ -205,11 +205,11 @@ { gint width; - if (!ct->show_text) return options->thumb_max_width; - - width = options->thumb_max_width + options->thumb_max_width / 2; + if (!ct->show_text) return options->thumbnails.max_width; + + width = options->thumbnails.max_width + options->thumbnails.max_width / 2; if (width < THUMB_MIN_ICON_WIDTH) width = THUMB_MIN_ICON_WIDTH; - if (width > THUMB_MAX_ICON_WIDTH) width = options->thumb_max_width; + if (width > THUMB_MAX_ICON_WIDTH) width = options->thumbnails.max_width; return width; } @@ -988,8 +988,8 @@ adj = gtk_tree_view_get_vadjustment(GTK_TREE_VIEW(ct->listview)); page_size = (gint)adj->page_increment; - row_height = options->thumb_max_height + THUMB_BORDER_PADDING * 2; - if (ct->show_text) row_height += options->thumb_max_height / 3; + row_height = options->thumbnails.max_height + THUMB_BORDER_PADDING * 2; + if (ct->show_text) row_height += options->thumbnails.max_height / 3; ret = page_size / row_height; if (ret < 1) ret = 1; @@ -1392,7 +1392,7 @@ else { GtkAdjustment *adj = gtk_tree_view_get_vadjustment(GTK_TREE_VIEW(ct->listview)); - widget_auto_scroll_start(ct->listview, adj, -1, options->thumb_max_height / 2, + widget_auto_scroll_start(ct->listview, adj, -1, options->thumbnails.max_height / 2, collection_table_auto_scroll_notify_cb, ct); } } @@ -1594,7 +1594,7 @@ if (cell && GQV_IS_CELL_RENDERER_ICON(cell)) { g_object_set(G_OBJECT(cell), "fixed_width", thumb_width, - "fixed_height", options->thumb_max_height, + "fixed_height", options->thumbnails.max_height, "show_text", ct->show_text, NULL); } }