[atomix/wip/gtk3-port] Board: make sure selector is always above everything
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atomix/wip/gtk3-port] Board: make sure selector is always above everything
- Date: Mon, 12 Jan 2015 23:56:10 +0000 (UTC)
commit 82e44efcc599892c531d983fd06b5553c034d623
Author: Robert Roth <robert roth off gmail com>
Date: Tue Jan 13 01:55:51 2015 +0200
Board: make sure selector is always above everything
src/board-gtk.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/board-gtk.c b/src/board-gtk.c
index def9ec6..6b6387b 100644
--- a/src/board-gtk.c
+++ b/src/board-gtk.c
@@ -876,9 +876,11 @@ static void selector_move_to (SelectorData *data, guint row, guint col)
convert_to_canvas (board_theme, board_env, row, col, &x, &y);
- gtk_fixed_move (GTK_FIXED (board_canvas), data->selector, x, y);
+ g_object_ref (data->selector);
+ gtk_container_remove (GTK_CONTAINER (board_canvas), data->selector);
+ gtk_fixed_put (GTK_FIXED (board_canvas), data->selector, x, y);
+ g_object_unref (data->selector);
- gtk_fixed_move (GTK_FIXED (board_canvas), data->selector, x, y);
gtk_fixed_move (GTK_FIXED (board_canvas), data->arrow_left, x - tile_width, y);
gtk_fixed_move (GTK_FIXED (board_canvas), data->arrow_right, x + tile_width, y);
gtk_fixed_move (GTK_FIXED (board_canvas), data->arrow_top, x, y - tile_width);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]