Commit bc0908c3 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Federico Mena Quintero

Checkpoint tile_table_reload()

Signed-off-by: 's avatarFederico Mena Quintero <federico@gnu.org>

svn path=/trunk/; revision=416
parent f8adf348
......@@ -22,6 +22,7 @@
#include "tile.h"
#include "nameplate-tile.h"
#include "libslab-utils.h"
G_DEFINE_TYPE (TileTable, tile_table, GTK_TYPE_TABLE)
......@@ -135,11 +136,15 @@ tile_table_reload (TileTable *this)
}
}
libslab_checkpoint ("tile_table_reload(): created %d tiles", n_tiles);
for (node = priv->tiles; node; node = node->next)
gtk_widget_destroy (GTK_WIDGET (node->data));
g_list_free (priv->tiles);
libslab_checkpoint ("tile_table_reload(): destroyed old tiles");
priv->tiles = NULL;
icon_size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
......@@ -164,6 +169,8 @@ tile_table_reload (TileTable *this)
g_list_free (tiles);
libslab_checkpoint ("tile_table_reload(): updating bins");
update_bins (this, priv->tiles);
g_object_notify (G_OBJECT (this), TILE_TABLE_TILES_PROP);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment