[gtk+/gtk-3-14] text view: Avoid clang compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] text view: Avoid clang compiler warnings
- Date: Mon, 23 Mar 2015 03:34:20 +0000 (UTC)
commit cb1d02ecd73d7cecd633f8e8fbab1ede84c49181
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 5db2d4c..a3e403e 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -5880,7 +5880,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))
{
@@ -6053,7 +6053,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]