GtkIconView and missed highlight of the row
- From: "Giuseppe Torelli" <colossus73 gmail com>
- To: gtk-app-devel-list gnome org
- Subject: GtkIconView and missed highlight of the row
- Date: Mon, 17 Nov 2008 14:44:01 +0100
Hi,
I created a gtkcellrenderer this way:
pixbuf_cell = gtk_cell_renderer_pixbuf_new();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT
(img_struct->thumbnail_iconview), pixbuf_cell, FALSE);
g_object_set (pixbuf_cell, "width", 115, "xalign", 0.5, "yalign", 0.5, NULL);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT
(img_struct->thumbnail_iconview), pixbuf_cell, "pixbuf", 0, NULL);
And then I set some things on the iconview:
gtk_icon_view_set_selection_mode (GTK_ICON_VIEW
(img_struct->thumbnail_iconview), GTK_SELECTION_MULTIPLE);
gtk_icon_view_set_orientation (GTK_ICON_VIEW
(img_struct->thumbnail_iconview), GTK_ORIENTATION_HORIZONTAL);
gtk_icon_view_set_column_spacing (GTK_ICON_VIEW
(img_struct->thumbnail_iconview),0);
gtk_icon_view_set_row_spacing (GTK_ICON_VIEW
(img_struct->thumbnail_iconview),0);
gtk_icon_view_set_columns (GTK_ICON_VIEW
(img_struct->thumbnail_iconview), G_MAXINT);
gtk_container_add (GTK_CONTAINER (thumb_scrolledwindow),
img_struct->thumbnail_iconview);
The problem is that when I click on the thumbnail in the iconview it's
not highlighted with the blue background color.
Can you explain me where I'm wrong?
--
Colossus
Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]