]> git.0d.be Git - empathy.git/commitdiff
empathy-chat-text-view.c: fix shadow declarations and uint comparaisons
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 21 Oct 2009 16:22:44 +0000 (17:22 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 22 Oct 2009 09:43:49 +0000 (10:43 +0100)
libempathy-gtk/empathy-chat-text-view.c

index 894f9b84cea6c2e998cfe26d13a44bff475a4b93..5822a429d11c7e2e745898e833894e53db2136de 100644 (file)
@@ -359,7 +359,7 @@ chat_text_view_maybe_trim_buffer (EmpathyChatTextView *view)
        EmpathyChatTextViewPriv *priv;
        GtkTextIter         top, bottom;
        gint                line;
        EmpathyChatTextViewPriv *priv;
        GtkTextIter         top, bottom;
        gint                line;
-       gint                remove;
+       gint                remove_;
        GtkTextTagTable    *table;
        GtkTextTag         *tag;
 
        GtkTextTagTable    *table;
        GtkTextTag         *tag;
 
@@ -371,11 +371,11 @@ chat_text_view_maybe_trim_buffer (EmpathyChatTextView *view)
                return;
        }
 
                return;
        }
 
-       remove = line - MAX_LINES;
+       remove_ = line - MAX_LINES;
        gtk_text_buffer_get_start_iter (priv->buffer, &top);
 
        bottom = top;
        gtk_text_buffer_get_start_iter (priv->buffer, &top);
 
        bottom = top;
-       if (!gtk_text_iter_forward_lines (&bottom, remove)) {
+       if (!gtk_text_iter_forward_lines (&bottom, remove_)) {
                return;
        }
 
                return;
        }
 
@@ -506,7 +506,7 @@ chat_text_view_drag_motion (GtkWidget      *widget,
                            GdkDragContext *context,
                            gint            x,
                            gint            y,
                            GdkDragContext *context,
                            gint            x,
                            gint            y,
-                           guint           time)
+                           guint           time_)
 {
        /* Don't handle drag motion, since we don't want the view to scroll as
         * the result of dragging something across it. */
 {
        /* Don't handle drag motion, since we don't want the view to scroll as
         * the result of dragging something across it. */
@@ -1342,7 +1342,7 @@ empathy_chat_text_view_append_body (EmpathyChatTextView *view,
        g_match_info_free (match_info);
        g_regex_unref (uri_regex);
 
        g_match_info_free (match_info);
        g_regex_unref (uri_regex);
 
-       if (last < strlen (body)) {
+       if (last < (gint) strlen (body)) {
                gtk_text_buffer_get_end_iter (priv->buffer, &iter);
                chat_text_view_insert_text_with_emoticons (view,
                                                           &iter,
                gtk_text_buffer_get_end_iter (priv->buffer, &iter);
                chat_text_view_insert_text_with_emoticons (view,
                                                           &iter,