Subject: gaim: Markup buttons toggle back when message is sent. Package: gaim Version: 1:1.1.1-1 Severity: normal
Markup buttons (bold, italic, underline, font) are triggered back into some predefined state even when "Default Formatting" is not checked in the "Message Text" of the Preferences. The attached patch fixes this problem. With this patch markup state get reset to the predefined format only when "Default Formatting" is checked.
I hope you like it. Igor
-- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.9 Locale: LANG=C, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Versions of packages gaim depends on:
ii libao2 0.8.5-1 Cross Platform Audio Output Librar
ii libaspell15 0.50.5-5 The GNU Aspell spell-checker runti
ii libatk1.0-0 1.8.0-4 The ATK accessibility toolkit
ii libaudiofile0 0.2.6-5 Open-source version of SGI's audio
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libgcrypt11 1.2.0-11 LGPL Crypto library - runtime libr
ii libglib2.0-0 2.6.1-2 The GLib library of C routines
ii libgnutls11 1.0.16-13 GNU TLS library - runtime library
ii libgtk2.0-0 2.4.14-2 The GTK+ graphical user interface
ii libgtkspell0 2.0.8-1 a spell-checking addon for GTK's T
ii libice6 4.3.0.dfsg.1-10 Inter-Client Exchange library
ii libpango1.0-0 1.6.0-3 Layout and rendering of internatio
ii libsm6 4.3.0.dfsg.1-10 X Window System Session Management
ii libstartup-notification0 0.7-1 library for program launch feedbac
ii libx11-6 4.3.0.dfsg.1-10 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte
ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu
-- no debconf information
--- src/gtkconv.c.orig 2004-11-27 14:25:41.000000000 -0500 +++ src/gtkconv.c 2005-01-20 16:21:09.000000000 -0500 @@ -217,6 +217,7 @@ { GaimGtkConversation *c = GAIM_GTK_CONVERSATION(conv); GaimConnection *gc = gaim_conversation_get_gc(conv); + GtkIMHtml *imhtml = GTK_IMHTML(c->entry); if (gc && gc->flags & GAIM_CONNECTION_HTML) { @@ -225,13 +226,13 @@ char *color; GdkColor fg_color, bg_color; - if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_bold")) + if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_bold") != imhtml->edit.bold) gtk_imhtml_toggle_bold(GTK_IMHTML(c->entry)); - if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_italic")) + if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_italic") != imhtml->edit.italic) gtk_imhtml_toggle_italic(GTK_IMHTML(c->entry)); - if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_underline")) + if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_underline") != imhtml->edit.underline) gtk_imhtml_toggle_underline(GTK_IMHTML(c->entry)); gtk_imhtml_toggle_fontface(GTK_IMHTML(c->entry), --- src/gtkimhtml.c.orig 2004-12-11 15:00:32.000000000 -0500 +++ src/gtkimhtml.c 2005-01-20 16:31:12.000000000 -0500 @@ -2710,9 +2710,6 @@ g_list_free(imhtml->scalables); imhtml->scalables = NULL; - gtk_imhtml_close_tags(imhtml, &start); - - g_signal_emit(object, signals[CLEAR_FORMAT], 0); g_object_unref(object); }