[gtk+] text view: Avoid clang compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] text view: Avoid clang compiler warnings
- Date: Sun, 22 Mar 2015 19:22:43 +0000 (UTC)
commit c723eba1353f973e7ef6cb5f921cb109961cd9d8
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 22 15:19:17 2015 -0400
text view: Avoid clang compiler warnings
Again, our habit to use -1 as an unset value for enum types.
gtk/gtktextview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 13bade8..9895698 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -5992,7 +5992,7 @@ gtk_text_view_move_cursor (GtkTextView *text_view,
gtk_text_view_move_viewport (text_view, scroll_step, count);
if ((old_xpos == gtk_adjustment_get_target_value (priv->hadjustment) &&
old_ypos == gtk_adjustment_get_target_value (priv->vadjustment)) &&
- leave_direction != -1 &&
+ leave_direction != (GtkDirectionType)-1 &&
!gtk_widget_keynav_failed (GTK_WIDGET (text_view),
leave_direction))
{
@@ -6165,7 +6165,7 @@ gtk_text_view_move_cursor (GtkTextView *text_view,
if (step == GTK_MOVEMENT_DISPLAY_LINES)
gtk_text_view_set_virtual_cursor_pos (text_view, cursor_x_pos, -1);
}
- else if (leave_direction != -1)
+ else if (leave_direction != (GtkDirectionType)-1)
{
if (!gtk_widget_keynav_failed (GTK_WIDGET (text_view),
leave_direction))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]