2009-06-29 Xan Lopez <xlopez@igalia.com>
authorxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Jun 2009 06:43:33 +0000 (06:43 +0000)
committerxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Jun 2009 06:43:33 +0000 (06:43 +0000)
        Reviewed by Jan Alonzo.

        Fix a couple of compiler warnings.

        * webkit/webkitwebnavigationaction.cpp:
        * webkit/webkitwebview.cpp:
        (webkit_web_view_real_move_cursor):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@45364 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/gtk/ChangeLog
WebKit/gtk/webkit/webkitwebnavigationaction.cpp
WebKit/gtk/webkit/webkitwebview.cpp

index 03eb194..fd43ed6 100644 (file)
@@ -1,3 +1,13 @@
+2009-06-29  Xan Lopez  <xlopez@igalia.com>
+
+        Reviewed by Jan Alonzo.
+
+        Fix a couple of compiler warnings.
+
+        * webkit/webkitwebnavigationaction.cpp:
+        * webkit/webkitwebview.cpp:
+        (webkit_web_view_real_move_cursor):
+
 2009-06-28  Xan Lopez  <xlopez@igalia.com>
 
         Fix the GTK+ build.
index 1d661d2..8e377c9 100644 (file)
@@ -109,8 +109,6 @@ static void webkit_web_navigation_action_set_property(GObject* object, guint pro
 static void webkit_web_navigation_action_init(WebKitWebNavigationAction* navigationAction)
 {
     navigationAction->priv = WEBKIT_WEB_NAVIGATION_ACTION_GET_PRIVATE(navigationAction);
-
-    WebKitWebNavigationActionPrivate* priv = navigationAction->priv;
 }
 
 static void webkit_web_navigation_action_finalize(GObject* obj)
index 0872dad..5b19856 100644 (file)
@@ -841,28 +841,28 @@ static gboolean webkit_web_view_real_move_cursor (WebKitWebView* webView, GtkMov
         granularity = ScrollByLine;
         if (count == 1)
             direction = ScrollDown;
-        else if (count == -1)
+        else
             direction = ScrollUp;
         break;
     case GTK_MOVEMENT_VISUAL_POSITIONS:
         granularity = ScrollByLine;
         if (count == 1)
             direction = ScrollRight;
-        else if (count == -1)
+        else
             direction = ScrollLeft;
         break;
     case GTK_MOVEMENT_PAGES:
         granularity = ScrollByPage;
         if (count == 1)
             direction = ScrollDown;
-        else if (count == -1)
+        else
             direction = ScrollUp;
         break;
     case GTK_MOVEMENT_BUFFER_ENDS:
         granularity = ScrollByDocument;
         if (count == 1)
             direction = ScrollDown;
-        else if (count == -1)
+        else
             direction = ScrollUp;
         break;
     default: