Mercurial > pidgin.yaz
comparison src/buddy_chat.c @ 3802:9bcb42faccc0
[gaim-migrate @ 3945]
Rewrote show_im_dialog and show_info_dialog.
Ported to gtkspell2. Gtkspell2 is a library available from
gtkspell.sf.net. It requires the pspell library. If you want the
"highlight misspelled words" feature to work, you must have this
library installed. If installed, configure will detect it and link
against it.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 26 Oct 2002 06:41:13 +0000 |
parents | 12b29552f1d7 |
children | 3c0bbaec90ed |
comparison
equal
deleted
inserted
replaced
3801:8cc3d7526043 | 3802:9bcb42faccc0 |
---|---|
28 #include <ctype.h> | 28 #include <ctype.h> |
29 #include <stdio.h> | 29 #include <stdio.h> |
30 #include <stdlib.h> | 30 #include <stdlib.h> |
31 #include <gtk/gtk.h> | 31 #include <gtk/gtk.h> |
32 #include "gtkimhtml.h" | 32 #include "gtkimhtml.h" |
33 #include "gtkspell.h" | 33 #ifdef USE_GTKSPELL |
34 #include <gtkspell/gtkspell.h> | |
35 #endif | |
34 #include <gdk/gdkkeysyms.h> | 36 #include <gdk/gdkkeysyms.h> |
35 | 37 |
36 #include "convo.h" | 38 #include "convo.h" |
37 #include "prpl.h" | 39 #include "prpl.h" |
38 | 40 |
1408 G_CALLBACK(entry_key_pressed), chatentry); | 1410 G_CALLBACK(entry_key_pressed), chatentry); |
1409 gtk_container_add(GTK_CONTAINER(frame), GTK_WIDGET(chatentry)); | 1411 gtk_container_add(GTK_CONTAINER(frame), GTK_WIDGET(chatentry)); |
1410 gtk_widget_set_usize(chatentry, buddy_chat_size.width, MAX(buddy_chat_size.entry_height, 25)); | 1412 gtk_widget_set_usize(chatentry, buddy_chat_size.width, MAX(buddy_chat_size.entry_height, 25)); |
1411 gtk_window_set_focus(GTK_WINDOW(win), chatentry); | 1413 gtk_window_set_focus(GTK_WINDOW(win), chatentry); |
1412 gtk_widget_show(chatentry); | 1414 gtk_widget_show(chatentry); |
1413 /*if (convo_options & OPT_CONVO_CHECK_SPELLING) | 1415 #ifdef USE_GTKSPELL |
1414 gtkspell_attach(GTK_TEXT(chatentry));*/ | 1416 if (convo_options & OPT_CONVO_CHECK_SPELLING) |
1415 | 1417 gtkspell_attach(GTK_TEXT(chatentry)); |
1418 #endif | |
1416 bbox = gtk_hbox_new(FALSE, 5); | 1419 bbox = gtk_hbox_new(FALSE, 5); |
1417 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0); | 1420 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0); |
1418 gtk_widget_show(bbox); | 1421 gtk_widget_show(bbox); |
1419 | 1422 |
1420 /* | 1423 /* |