Mercurial > pidgin.yaz
comparison src/plugins.c @ 522:11cbf8b403b6
[gaim-migrate @ 532]
If the window goes away, the config button gets disconnected. Set handler to 0.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 25 Jul 2000 00:33:51 +0000 |
parents | ae7c762775cd |
children | f03f041c1aa9 |
comparison
equal
deleted
inserted
replaced
521:0f179ac59e27 | 522:11cbf8b403b6 |
---|---|
463 gchar buffer[2048]; | 463 gchar buffer[2048]; |
464 guint text_len; | 464 guint text_len; |
465 void (*gaim_plugin_config)(); | 465 void (*gaim_plugin_config)(); |
466 char *error; | 466 char *error; |
467 | 467 |
468 if (confighandle) | 468 if (confighandle != 0) |
469 gtk_signal_disconnect(GTK_OBJECT(config), confighandle); | 469 gtk_signal_disconnect(GTK_OBJECT(config), confighandle); |
470 text_len = gtk_text_get_length(GTK_TEXT(plugtext)); | 470 text_len = gtk_text_get_length(GTK_TEXT(plugtext)); |
471 gtk_text_set_point(GTK_TEXT(plugtext), 0); | 471 gtk_text_set_point(GTK_TEXT(plugtext), 0); |
472 gtk_text_forward_delete(GTK_TEXT(plugtext), text_len); | 472 gtk_text_forward_delete(GTK_TEXT(plugtext), text_len); |
473 | 473 |
488 void hide_plugins(GtkWidget *w, gpointer data) { | 488 void hide_plugins(GtkWidget *w, gpointer data) { |
489 if (plugwindow) | 489 if (plugwindow) |
490 gtk_widget_destroy(plugwindow); | 490 gtk_widget_destroy(plugwindow); |
491 plugwindow = NULL; | 491 plugwindow = NULL; |
492 config = NULL; | 492 config = NULL; |
493 confighandle = 0; | |
493 } | 494 } |
494 | 495 |
495 void gaim_signal_connect(void *handle, enum gaim_event which, | 496 void gaim_signal_connect(void *handle, enum gaim_event which, |
496 void *func, void *data) { | 497 void *func, void *data) { |
497 struct gaim_callback *call = g_malloc(sizeof *call); | 498 struct gaim_callback *call = g_malloc(sizeof *call); |