Mercurial > pidgin
comparison plugins/gtk-signals-test.c @ 11033:50224ac8184d
[gaim-migrate @ 12919]
Ok, this is debug window filtering. Sadrul was going to do this with a text entry, but I like this better, feel free to disagree with me. It's not the prettiest in a couple places, most notable gtkmain.c where a bunch of categories that don't currently have a home get registered. I added some plugin_(un)load functions to some plugins to place the (un)register functions. Though I didn't do that for the prpls. Comments and cleanups welcome. (Oh, I've been seeing some crashes on quit, but I haven't been able to get it to happen reliably so I'm not sure if it's my code or some transient HEAD oscar/other crash.)
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 28 Jun 2005 06:13:07 +0000 |
parents | a9fb4493ae22 |
children | bb0d7b719af2 |
comparison
equal
deleted
inserted
replaced
11032:31c1c48daba1 | 11033:50224ac8184d |
---|---|
68 { | 68 { |
69 void *accounts_handle = gaim_gtk_account_get_handle(); | 69 void *accounts_handle = gaim_gtk_account_get_handle(); |
70 void *blist_handle = gaim_gtk_blist_get_handle(); | 70 void *blist_handle = gaim_gtk_blist_get_handle(); |
71 void *conv_handle = gaim_gtk_conversations_get_handle(); | 71 void *conv_handle = gaim_gtk_conversations_get_handle(); |
72 | 72 |
73 gaim_debug_register_category("gtk-signal-test"); | |
74 | |
73 /* Accounts subsystem signals */ | 75 /* Accounts subsystem signals */ |
74 gaim_signal_connect(accounts_handle, "account-modified", | 76 gaim_signal_connect(accounts_handle, "account-modified", |
75 plugin, GAIM_CALLBACK(account_modified_cb), NULL); | 77 plugin, GAIM_CALLBACK(account_modified_cb), NULL); |
76 | 78 |
77 /* Buddy List subsystem signals */ | 79 /* Buddy List subsystem signals */ |
83 /* Conversations subsystem signals */ | 85 /* Conversations subsystem signals */ |
84 gaim_signal_connect(conv_handle, "conversation-drag-ended", | 86 gaim_signal_connect(conv_handle, "conversation-drag-ended", |
85 plugin, GAIM_CALLBACK(conversation_drag_end_cb), NULL); | 87 plugin, GAIM_CALLBACK(conversation_drag_end_cb), NULL); |
86 | 88 |
87 return TRUE; | 89 return TRUE; |
90 } | |
91 | |
92 static gboolean | |
93 plugin_unload(GaimPlugin *plugin) | |
94 { | |
95 gaim_debug_unregister_category("gtk-signal-test"); | |
88 } | 96 } |
89 | 97 |
90 static GaimPluginInfo info = | 98 static GaimPluginInfo info = |
91 { | 99 { |
92 GAIM_PLUGIN_MAGIC, | 100 GAIM_PLUGIN_MAGIC, |
107 N_("Test to see that all ui signals are working properly."), | 115 N_("Test to see that all ui signals are working properly."), |
108 "Gary Kramlich <amc_grim@users.sf.net>", /**< author */ | 116 "Gary Kramlich <amc_grim@users.sf.net>", /**< author */ |
109 GAIM_WEBSITE, /**< homepage */ | 117 GAIM_WEBSITE, /**< homepage */ |
110 | 118 |
111 plugin_load, /**< load */ | 119 plugin_load, /**< load */ |
112 NULL, /**< unload */ | 120 plugin_unload, /**< unload */ |
113 NULL, /**< destroy */ | 121 NULL, /**< destroy */ |
114 | 122 |
115 NULL, /**< ui_info */ | 123 NULL, /**< ui_info */ |
116 NULL, /**< extra_info */ | 124 NULL, /**< extra_info */ |
117 NULL, | 125 NULL, |