comparison plugins/gtik.c @ 4168:ebfb80bbe1ed

[gaim-migrate @ 4397] (00:16:51) faceprint: apply my g-signal patch too! </whine> (00:17:02) ChipX86: the what? (00:17:20) faceprint: sorry (00:17:23) faceprint: g-timeout, rather (00:17:28) ChipX86: ah good (00:17:33) faceprint: http://faceprint.com/code/gaim/g-timeout.20030101.1301.diff (00:17:33) ChipX86: yes, APPLY THAT (00:17:38) ChipX86: I need that (00:17:40) LSchiere: one at a time (00:17:51) faceprint: ChipX86: you need that? (00:17:56) ChipX86: for the conversation rewrite (00:17:59) faceprint: ahh (00:18:08) faceprint: it also fixes a memleak for msn users committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 02 Jan 2003 05:20:55 +0000
parents 07a3d1fae88f
children fefad67de2c7
comparison
equal deleted inserted replaced
4167:7002b6f16bdf 4168:ebfb80bbe1ed
134 134
135 /*-----------------------------------------------------------------*/ 135 /*-----------------------------------------------------------------*/
136 void remove_self(GtkWidget *w, void *handle) 136 void remove_self(GtkWidget *w, void *handle)
137 { 137 {
138 gtk_signal_disconnect(GTK_OBJECT(applet), destroycb); 138 gtk_signal_disconnect(GTK_OBJECT(applet), destroycb);
139 if (drawTimeID > 0) { gtk_timeout_remove(drawTimeID); } 139 if (drawTimeID > 0) { g_source_remove(drawTimeID); }
140 if (updateTimeID >0) { gtk_timeout_remove(updateTimeID); } 140 if (updateTimeID >0) { g_source_remove(updateTimeID); }
141 gtk_widget_destroy(applet); 141 gtk_widget_destroy(applet);
142 gaim_plugin_unload(handle); 142 gaim_plugin_unload(handle);
143 } 143 }
144 144
145 145
890 load_fonts(); 890 load_fonts();
891 updateOutput(); 891 updateOutput();
892 892
893 893
894 /* KEEPING TIMER ID FOR CLEANUP IN DESTROY */ 894 /* KEEPING TIMER ID FOR CLEANUP IN DESTROY */
895 drawTimeID = gtk_timeout_add(2,Repaint,drawing_area); 895 drawTimeID = g_timeout_add(2,Repaint,drawing_area);
896 updateTimeID = gtk_timeout_add(props.timeout * 60000, 896 updateTimeID = g_timeout_add(props.timeout * 60000,
897 (gpointer)updateOutput,"NULL"); 897 updateOutput,"NULL");
898 898
899 899
900 return NULL; 900 return NULL;
901 } 901 }
902 902
916 916
917 /* JHACK */ 917 /* JHACK */
918 /*-----------------------------------------------------------------*/ 918 /*-----------------------------------------------------------------*/
919 void gaim_plugin_remove() { 919 void gaim_plugin_remove() {
920 gtk_signal_disconnect(GTK_OBJECT(applet), destroycb); 920 gtk_signal_disconnect(GTK_OBJECT(applet), destroycb);
921 if (drawTimeID > 0) { gtk_timeout_remove(drawTimeID); } 921 if (drawTimeID > 0) { g_source_remove(drawTimeID); }
922 if (updateTimeID >0) { gtk_timeout_remove(updateTimeID); } 922 if (updateTimeID >0) { g_source_remove(updateTimeID); }
923 gtk_widget_destroy(applet); 923 gtk_widget_destroy(applet);
924 } 924 }
925 925
926 926
927 927