[gimp] app: test-ui.c: use gimp_channel_is_empty() to check for a selection
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: test-ui.c: use gimp_channel_is_empty() to check for a selection
- Date: Fri, 3 Jul 2015 22:24:22 +0000 (UTC)
commit 64e506a0521b627bfca238d6a35f2d8ccf32d92a
Author: Michael Natterer <mitch gimp org>
Date: Wed Jul 1 11:55:26 2015 +0200
app: test-ui.c: use gimp_channel_is_empty() to check for a selection
app/tests/test-ui.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/app/tests/test-ui.c b/app/tests/test-ui.c
index 3b6df6e..857d910 100644
--- a/app/tests/test-ui.c
+++ b/app/tests/test-ui.c
@@ -364,11 +364,9 @@ alt_click_is_layer_to_selection (gconstpointer data)
gtk_tree_view = gtk_test_find_widget (dockable,
"Lock:",
GTK_TYPE_TREE_VIEW);
-
+
/* First make sure there is no selection */
- g_assert (! gimp_channel_bounds (selection,
- NULL, NULL, /*x1, y1*/
- NULL, NULL /*x2, y2*/));
+ g_assert (gimp_channel_is_empty (selection));
/* Now simulate alt-click on the background layer */
g_assert (gimp_ui_synthesize_click (gtk_tree_view,
@@ -381,9 +379,7 @@ alt_click_is_layer_to_selection (gconstpointer data)
/* Make sure we got a selection and that the active layer didn't
* change
*/
- g_assert (gimp_channel_bounds (selection,
- NULL, NULL, /*x1, y1*/
- NULL, NULL /*x2, y2*/));
+ g_assert (! gimp_channel_is_empty (selection));
g_assert (gimp_image_get_active_layer (image) == active_layer);
/* Now simulate alt-click on the empty layer */
@@ -397,9 +393,7 @@ alt_click_is_layer_to_selection (gconstpointer data)
/* Make sure that emptied the selection and that the active layer
* still didn't change
*/
- g_assert (! gimp_channel_bounds (selection,
- NULL, NULL, /*x1, y1*/
- NULL, NULL /*x2, y2*/));
+ g_assert (gimp_channel_is_empty (selection));
g_assert (gimp_image_get_active_layer (image) == active_layer);
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]