| 27 #ifdef _WIN32 |
27 #ifdef _WIN32 |
| 28 # undef small |
28 # undef small |
| 29 # include <shellapi.h> |
29 # include <shellapi.h> |
| 30 #endif /*_WIN32*/ |
30 #endif /*_WIN32*/ |
| 31 |
31 |
| 32 #ifdef USE_GTKSPELL |
|
| 33 # include <gtkspell/gtkspell.h> |
|
| 34 # ifdef _WIN32 |
|
| 35 # include "win32/wspell.h" |
|
| 36 # endif |
|
| 37 #endif |
|
| 38 |
|
| 39 #include <gdk/gdkkeysyms.h> |
32 #include <gdk/gdkkeysyms.h> |
| 40 |
33 |
| 41 #include "conversation.h" |
34 #include "conversation.h" |
| 42 #include "debug.h" |
35 #include "debug.h" |
| 43 #include "desktopitem.h" |
36 #include "desktopitem.h" |
| 894 g_object_set_data(G_OBJECT(optmenu), "user_data", user_data); |
887 g_object_set_data(G_OBJECT(optmenu), "user_data", user_data); |
| 895 g_object_set_data(G_OBJECT(optmenu), "show_all", GINT_TO_POINTER(show_all)); |
888 g_object_set_data(G_OBJECT(optmenu), "show_all", GINT_TO_POINTER(show_all)); |
| 896 g_object_set_data(G_OBJECT(optmenu), "filter_func", filter_func); |
889 g_object_set_data(G_OBJECT(optmenu), "filter_func", filter_func); |
| 897 |
890 |
| 898 return optmenu; |
891 return optmenu; |
| 899 } |
|
| 900 |
|
| 901 void |
|
| 902 pidgin_setup_gtkspell(GtkTextView *textview) |
|
| 903 { |
|
| 904 #ifdef USE_GTKSPELL |
|
| 905 GError *error = NULL; |
|
| 906 char *locale = NULL; |
|
| 907 |
|
| 908 g_return_if_fail(textview != NULL); |
|
| 909 g_return_if_fail(GTK_IS_TEXT_VIEW(textview)); |
|
| 910 |
|
| 911 if (gtkspell_new_attach(textview, locale, &error) == NULL && error) |
|
| 912 { |
|
| 913 purple_debug_warning("gtkspell", "Failed to setup GtkSpell: %s\n", |
|
| 914 error->message); |
|
| 915 g_error_free(error); |
|
| 916 } |
|
| 917 #endif /* USE_GTKSPELL */ |
|
| 918 } |
892 } |
| 919 |
893 |
| 920 void |
894 void |
| 921 pidgin_save_accels_cb(GtkAccelGroup *accel_group, guint arg1, |
895 pidgin_save_accels_cb(GtkAccelGroup *accel_group, guint arg1, |
| 922 GdkModifierType arg2, GClosure *arg3, |
896 GdkModifierType arg2, GClosure *arg3, |