Skip to content

Commit

Permalink
Ok my mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropalau committed Aug 8, 2019
1 parent 9e2328b commit dd9dfc3
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions gtk-dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -3075,11 +3075,6 @@ static gboolean check_incoming_instance_change(PurpleAccount *account,
return 0;
}

static gpointer otrng_plugin_handle(void) {
static int handle;
return &handle;
}

static void connection_signing_off_cb(PurpleConnection *gc) {
GList *convs = NULL;
PurpleConversation *conv;
Expand Down Expand Up @@ -3163,11 +3158,11 @@ static void otrng_gtk_dialog_init(void) {
PURPLE_CALLBACK(dialog_quitting), NULL);

purple_signal_connect(purple_connections_get_handle(), "signing-off",
otrng_plugin_handle(),
otrng_plugin_handle,
PURPLE_CALLBACK(connection_signing_off_cb), NULL);

purple_signal_connect(purple_accounts_get_handle(), "account-signed-off",
otrng_plugin_handle(),
otrng_plugin_handle,
PURPLE_CALLBACK(account_signed_off_cb), NULL);

otrng_utils_init();
Expand Down Expand Up @@ -3195,12 +3190,12 @@ static void otrng_gtk_dialog_cleanup(void) {
PURPLE_CALLBACK(check_incoming_instance_change));

purple_signal_disconnect(purple_connections_get_handle(), "signing-off",
otrng_plugin_handle(),
PURPLE_CALLBACK(connection_signing_off_cb));
otrng_plugin_handle,
PURPLE_CALLBACK(connection_signing_off_cb));

purple_signal_disconnect(purple_accounts_get_handle(), "account-signed-off",
otrng_plugin_handle(),
PURPLE_CALLBACK(account_signed_off_cb));
otrng_plugin_handle,
PURPLE_CALLBACK(account_signed_off_cb));

/* If we're quitting, the imgstore will already have been destroyed
* by purple, but we should have already called dialog_quitting(),
Expand Down

0 comments on commit dd9dfc3

Please sign in to comment.