[empathy] start and end positions in EmpathySmileyHit struct can't be negative. Change them to guint.
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] start and end positions in EmpathySmileyHit struct can't be negative. Change them to guint.
- Date: Thu, 26 Nov 2009 09:20:07 +0000 (UTC)
commit 212ea18a107e8ddfda82b3b754a1df2b7db9735f
Author: Xavier Claessens <xclaesse gmail com>
Date: Mon Nov 16 09:27:50 2009 +0100
start and end positions in EmpathySmileyHit struct can't be negative. Change them to guint.
libempathy-gtk/empathy-chat-text-view.c | 2 +-
libempathy-gtk/empathy-smiley-manager.h | 4 ++--
libempathy-gtk/empathy-theme-adium.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index aa8676b..6dd8b30 100644
--- a/libempathy-gtk/empathy-chat-text-view.c
+++ b/libempathy-gtk/empathy-chat-text-view.c
@@ -1263,7 +1263,7 @@ chat_text_view_insert_text_with_emoticons (EmpathyChatTextView *view,
EmpathyChatTextViewPriv *priv = GET_PRIV (view);
gboolean use_smileys = FALSE;
GSList *hits, *l;
- gint last = 0;
+ guint last = 0;
empathy_conf_get_bool (empathy_conf_get (),
EMPATHY_PREFS_CHAT_SHOW_SMILEYS,
diff --git a/libempathy-gtk/empathy-smiley-manager.h b/libempathy-gtk/empathy-smiley-manager.h
index f15dbc4..1d6eaac 100644
--- a/libempathy-gtk/empathy-smiley-manager.h
+++ b/libempathy-gtk/empathy-smiley-manager.h
@@ -55,8 +55,8 @@ typedef struct {
typedef struct {
GdkPixbuf *pixbuf; /* Pixbuf of the smiley */
const gchar *path; /* Filename of the smiley image */
- gint start; /* text[start:end] should be replaced by pixbuf */
- gint end;
+ guint start; /* text[start:end] should be replaced by pixbuf */
+ guint end;
} EmpathySmileyHit;
typedef void (*EmpathySmileyMenuFunc) (EmpathySmileyManager *manager,
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 5aae85c..78a218a 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -224,7 +224,7 @@ theme_adium_parser_smiley (GString *string,
gssize len,
gpointer user_data)
{
- gint last = 0;
+ guint last = 0;
if (use_smileys) {
EmpathySmileyManager *smiley_manager;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]