pidgin/gtkconv.c

changeset 39711
ce5050149408
parent 39705
93e302035410
child 39759
ea1401483849
equal deleted inserted replaced
39710:94b96f22d069 39711:ce5050149408
45 #include "notify.h" 45 #include "notify.h"
46 #include "plugins.h" 46 #include "plugins.h"
47 #include "protocol.h" 47 #include "protocol.h"
48 #include "request.h" 48 #include "request.h"
49 #include "smiley-parser.h" 49 #include "smiley-parser.h"
50 #include "theme-loader.h"
51 #include "theme-manager.h"
52 #include "util.h" 50 #include "util.h"
53 #include "version.h" 51 #include "version.h"
54 52
55 #include "gtkinternal.h" 53 #include "gtkinternal.h"
56 #include "gtkdnd-hints.h" 54 #include "gtkdnd-hints.h"
166 static GList *busy_list = NULL; 164 static GList *busy_list = NULL;
167 static GList *xa_list = NULL; 165 static GList *xa_list = NULL;
168 static GList *offline_list = NULL; 166 static GList *offline_list = NULL;
169 static GHashTable *protocol_lists = NULL; 167 static GHashTable *protocol_lists = NULL;
170 static GHashTable *e2ee_stock = NULL; 168 static GHashTable *e2ee_stock = NULL;
171
172 static PurpleTheme *default_conv_theme = NULL;
173 169
174 static gboolean update_send_to_selection(PidginConvWindow *win); 170 static gboolean update_send_to_selection(PidginConvWindow *win);
175 static void generate_send_to_items(PidginConvWindow *win); 171 static void generate_send_to_items(PidginConvWindow *win);
176 172
177 /* Prototypes. <-- because Paco-Paco hates this comment. */ 173 /* Prototypes. <-- because Paco-Paco hates this comment. */
4466 **************************************************************************/ 4462 **************************************************************************/
4467 static void 4463 static void
4468 private_gtkconv_new(PurpleConversation *conv, gboolean hidden) 4464 private_gtkconv_new(PurpleConversation *conv, gboolean hidden)
4469 { 4465 {
4470 PidginConversation *gtkconv; 4466 PidginConversation *gtkconv;
4471 const char *theme_name;
4472 PurpleTheme *theme = NULL;
4473 GtkWidget *pane = NULL; 4467 GtkWidget *pane = NULL;
4474 GtkWidget *tab_cont; 4468 GtkWidget *tab_cont;
4475 PurpleBlistNode *convnode; 4469 PurpleBlistNode *convnode;
4476 GtkTargetList *targets; 4470 GtkTargetList *targets;
4477 4471
6513 } 6507 }
6514 6508
6515 return TRUE; 6509 return TRUE;
6516 } 6510 }
6517 6511
6518 PurpleTheme *
6519 pidgin_conversations_get_default_theme(void)
6520 {
6521 return default_conv_theme;
6522 }
6523
6524 void * 6512 void *
6525 pidgin_conversations_get_handle(void) 6513 pidgin_conversations_get_handle(void)
6526 { 6514 {
6527 static int handle; 6515 static int handle;
6528 6516
6535 void 6523 void
6536 pidgin_conversations_init(void) 6524 pidgin_conversations_init(void)
6537 { 6525 {
6538 void *handle = pidgin_conversations_get_handle(); 6526 void *handle = pidgin_conversations_get_handle();
6539 void *blist_handle = purple_blist_get_handle(); 6527 void *blist_handle = purple_blist_get_handle();
6540 char *theme_dir;
6541 6528
6542 e2ee_stock = g_hash_table_new_full(g_str_hash, g_str_equal, 6529 e2ee_stock = g_hash_table_new_full(g_str_hash, g_str_equal,
6543 g_free, g_object_unref); 6530 g_free, g_object_unref);
6544 6531
6545 /* Conversations */ 6532 /* Conversations */
6546 purple_prefs_add_none(PIDGIN_PREFS_ROOT "/conversations"); 6533 purple_prefs_add_none(PIDGIN_PREFS_ROOT "/conversations");
6547 purple_prefs_add_none(PIDGIN_PREFS_ROOT "/conversations/themes");
6548 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/use_smooth_scrolling", TRUE); 6534 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/use_smooth_scrolling", TRUE);
6549 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/close_on_tabs", TRUE); 6535 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/close_on_tabs", TRUE);
6550 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/send_bold", FALSE); 6536 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/send_bold", FALSE);
6551 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/send_italic", FALSE); 6537 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/send_italic", FALSE);
6552 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/send_underline", FALSE); 6538 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/send_underline", FALSE);

mercurial