| 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" |
| 892 g_object_set_data(G_OBJECT(optmenu), "user_data", user_data); |
885 g_object_set_data(G_OBJECT(optmenu), "user_data", user_data); |
| 893 g_object_set_data(G_OBJECT(optmenu), "show_all", GINT_TO_POINTER(show_all)); |
886 g_object_set_data(G_OBJECT(optmenu), "show_all", GINT_TO_POINTER(show_all)); |
| 894 g_object_set_data(G_OBJECT(optmenu), "filter_func", filter_func); |
887 g_object_set_data(G_OBJECT(optmenu), "filter_func", filter_func); |
| 895 |
888 |
| 896 return optmenu; |
889 return optmenu; |
| 897 } |
|
| 898 |
|
| 899 void |
|
| 900 pidgin_setup_gtkspell(GtkTextView *textview) |
|
| 901 { |
|
| 902 #ifdef USE_GTKSPELL |
|
| 903 GError *error = NULL; |
|
| 904 char *locale = NULL; |
|
| 905 |
|
| 906 g_return_if_fail(textview != NULL); |
|
| 907 g_return_if_fail(GTK_IS_TEXT_VIEW(textview)); |
|
| 908 |
|
| 909 if (gtkspell_new_attach(textview, locale, &error) == NULL && error) |
|
| 910 { |
|
| 911 purple_debug_warning("gtkspell", "Failed to setup GtkSpell: %s\n", |
|
| 912 error->message); |
|
| 913 g_error_free(error); |
|
| 914 } |
|
| 915 #endif /* USE_GTKSPELL */ |
|
| 916 } |
890 } |
| 917 |
891 |
| 918 void |
892 void |
| 919 pidgin_save_accels_cb(GtkAccelGroup *accel_group, guint arg1, |
893 pidgin_save_accels_cb(GtkAccelGroup *accel_group, guint arg1, |
| 920 GdkModifierType arg2, GClosure *arg3, |
894 GdkModifierType arg2, GClosure *arg3, |