aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-02 00:30:55 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-02 00:30:55 +0800
commitf4205e743dac600a40b20cccc87d049f591beda2 (patch)
tree4b5c9727e08d11449e535b6db1c72fee547c09ea
parent7281af564d14018e6ebb33bd2febb51228251552 (diff)
downloadgsoc2013-empathy-f4205e743dac600a40b20cccc87d049f591beda2.tar
gsoc2013-empathy-f4205e743dac600a40b20cccc87d049f591beda2.tar.gz
gsoc2013-empathy-f4205e743dac600a40b20cccc87d049f591beda2.tar.bz2
gsoc2013-empathy-f4205e743dac600a40b20cccc87d049f591beda2.tar.lz
gsoc2013-empathy-f4205e743dac600a40b20cccc87d049f591beda2.tar.xz
gsoc2013-empathy-f4205e743dac600a40b20cccc87d049f591beda2.tar.zst
gsoc2013-empathy-f4205e743dac600a40b20cccc87d049f591beda2.zip
[darcs-to-svn @ Handling /say msg and remove useless debug messages]
svn path=/trunk/; revision=19
-rw-r--r--libempathy-gtk/gossip-chat.c6
-rw-r--r--libempathy/gossip-message.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/libempathy-gtk/gossip-chat.c b/libempathy-gtk/gossip-chat.c
index 4414f5d26..d1e036936 100644
--- a/libempathy-gtk/gossip-chat.c
+++ b/libempathy-gtk/gossip-chat.c
@@ -507,7 +507,7 @@ chat_input_key_press_event_cb (GtkWidget *widget,
if (event->keyval == GDK_Tab && !(event->state & GDK_CONTROL_MASK)) {
return TRUE;
}
-g_print ("1\n");
+
/* Catch ctrl+up/down so we can traverse messages we sent */
if ((event->state & GDK_CONTROL_MASK) &&
(event->keyval == GDK_Up ||
@@ -533,7 +533,6 @@ g_print ("1\n");
return TRUE;
}
-g_print ("2\n");
/* Catch enter but not ctrl/shift-enter */
if (IS_ENTER (event->keyval) && !(event->state & GDK_SHIFT_MASK)) {
@@ -550,12 +549,10 @@ g_print ("2\n");
GTK_TEXT_VIEW (chat->input_text_view)->need_im_reset = TRUE;
return TRUE;
}
-g_print ("3\n");
chat_input_text_view_send (chat);
return TRUE;
}
-g_print ("4\n");
text_view_sw = gtk_widget_get_parent (GTK_WIDGET (chat->view));
@@ -578,7 +575,6 @@ g_print ("4\n");
return TRUE;
}
-g_print ("5\n");
return FALSE;
}
diff --git a/libempathy/gossip-message.c b/libempathy/gossip-message.c
index f4c756dd9..c4844e655 100644
--- a/libempathy/gossip-message.c
+++ b/libempathy/gossip-message.c
@@ -321,6 +321,9 @@ gossip_message_set_body (GossipMessage *message,
type = GOSSIP_MESSAGE_TYPE_ACTION;
body += 4;
}
+ else if (g_str_has_prefix (body, "/say")) {
+ body += 5;
+ }
if (body) {
priv->body = g_strdup (body);