# HG changeset patch # User Sadrul Habib Chowdhury # Date 1183164943 0 # Node ID 1aa08373442f24c650017c913c51aa9f2f42d6d1 # Parent 65ed0916d3bcdd1fc36ae97148429d77974acd6a# Parent 1cd1e00e059c78f0f7360a1edc4a5ee05dad00ba merge of '4f8ab97003711152439b821c5bfa99036761afe9' and 'faad7a14fc692e8d3799948d63c004314395738b' diff -r 65ed0916d3bc -r 1aa08373442f libpurple/protocols/yahoo/yahoochat.c --- a/libpurple/protocols/yahoo/yahoochat.c Sat Jun 30 00:53:24 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoochat.c Sat Jun 30 00:55:43 2007 +0000 @@ -785,44 +785,6 @@ g_free(eroom); } -/* borrowed from gtkconv.c */ -static gboolean -meify(char *message, size_t len) -{ - /* - * Read /me-ify: If the message (post-HTML) starts with /me, - * remove the "/me " part of it (including that space) and return TRUE. - */ - char *c; - gboolean inside_html = 0; - - /* Umm.. this would be very bad if this happens. */ - g_return_val_if_fail(message != NULL, FALSE); - - if (len == -1) - len = strlen(message); - - for (c = message; *c != '\0'; c++, len--) { - if (inside_html) { - if (*c == '>') - inside_html = FALSE; - } - else { - if (*c == '<') - inside_html = TRUE; - else - break; - } - } - - if (*c != '\0' && !g_ascii_strncasecmp(c, "/me ", 4)) { - memmove(c, c + 4, len - 3); - return TRUE; - } - - return FALSE; -} - static int yahoo_chat_send(PurpleConnection *gc, const char *dn, const char *room, const char *what, PurpleMessageFlags flags) { struct yahoo_data *yd = gc->proto_data; @@ -839,7 +801,7 @@ msg1 = g_strdup(what); - if (meify(msg1, -1)) + if (purple_message_meify(msg1, -1)) me = 1; msg2 = yahoo_html_to_codes(msg1); diff -r 65ed0916d3bc -r 1aa08373442f libpurple/util.h --- a/libpurple/util.h Sat Jun 30 00:53:24 2007 +0000 +++ b/libpurple/util.h Sat Jun 30 00:55:43 2007 +0000 @@ -1105,12 +1105,13 @@ void purple_print_utf8_to_console(FILE *filestream, char *message); /** - * Checks for messages starting with "/me " + * Checks for messages starting (post-HTML) with "/me ", including the space. * * @param message The message to check * @param len The message length, or -1 * - * @return TRUE if it starts with /me, and it has been removed, otherwise FALSE + * @return TRUE if it starts with "/me ", and it has been removed, otherwise + * FALSE */ gboolean purple_message_meify(char *message, size_t len); diff -r 65ed0916d3bc -r 1aa08373442f pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sat Jun 30 00:53:24 2007 +0000 +++ b/pidgin/gtkconv.c Sat Jun 30 00:55:43 2007 +0000 @@ -2406,9 +2406,6 @@ return FALSE; } - gtkconv->auto_resize = TRUE; - g_idle_add(reset_auto_resize_cb, gtkconv); - gdk_pixbuf_animation_iter_advance(gtkconv->u.im->iter, NULL); buf = gdk_pixbuf_animation_iter_get_pixbuf(gtkconv->u.im->iter); @@ -4256,7 +4253,7 @@ if (sr.height < height + PIDGIN_HIG_BOX_SPACE) { gtkconv->auto_resize = TRUE; gtkconv->entry_growing = TRUE; - gtk_widget_set_size_request(gtkconv->lower_hbox, -1, height + PIDGIN_HIG_BOX_SPACE); + gtk_widget_set_size_request(gtkconv->entry, -1, height); g_idle_add(reset_auto_resize_cb, gtkconv); } } diff -r 65ed0916d3bc -r 1aa08373442f pidgin/gtkutils.c --- a/pidgin/gtkutils.c Sat Jun 30 00:53:24 2007 +0000 +++ b/pidgin/gtkutils.c Sat Jun 30 00:55:43 2007 +0000 @@ -176,7 +176,7 @@ sw = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), - GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); gtk_widget_show(sw);