aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/gd-main-icon-view.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-09-04 03:51:24 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-09-04 03:54:46 +0800
commitaea0c271af64fef12c887c04cc2f760aca8391f8 (patch)
tree264d2117207a5800e389712c0748948fb391b877 /lib/widgets/gd-main-icon-view.c
parent04b01c5b1c969978a825087be1e0d3c91598a890 (diff)
downloadgsoc2013-epiphany-aea0c271af64fef12c887c04cc2f760aca8391f8.tar
gsoc2013-epiphany-aea0c271af64fef12c887c04cc2f760aca8391f8.tar.gz
gsoc2013-epiphany-aea0c271af64fef12c887c04cc2f760aca8391f8.tar.bz2
gsoc2013-epiphany-aea0c271af64fef12c887c04cc2f760aca8391f8.tar.lz
gsoc2013-epiphany-aea0c271af64fef12c887c04cc2f760aca8391f8.tar.xz
gsoc2013-epiphany-aea0c271af64fef12c887c04cc2f760aca8391f8.tar.zst
gsoc2013-epiphany-aea0c271af64fef12c887c04cc2f760aca8391f8.zip
ephy-overview-store: hide the close button while animating a removed item
To do this, add the render policy as a column to the model and use it as a cellrenderer attribute. The default value is already PRELIT. When removing the cell, flip it to NEVER.
Diffstat (limited to 'lib/widgets/gd-main-icon-view.c')
-rw-r--r--lib/widgets/gd-main-icon-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/widgets/gd-main-icon-view.c b/lib/widgets/gd-main-icon-view.c
index 1f258f243..06584f7bc 100644
--- a/lib/widgets/gd-main-icon-view.c
+++ b/lib/widgets/gd-main-icon-view.c
@@ -19,6 +19,7 @@
*
*/
+#include "ephy-overview-store.h"
#include "ephy-removable-pixbuf-renderer.h"
#include "gd-main-icon-view.h"
#include "gd-main-view.h"
@@ -119,6 +120,8 @@ gd_main_icon_view_constructed (GObject *obj)
"active", GD_MAIN_COLUMN_SELECTED);
gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (self), cell,
"pixbuf", GD_MAIN_COLUMN_ICON);
+ gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (self), cell,
+ "render-policy", EPHY_OVERVIEW_STORE_CLOSE_BUTTON_RENDER_POLICY);
cell = gd_two_lines_renderer_new ();
g_object_set (cell,