-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: signal 'destroy' is invalid for instance '0x823a5c270' of type '…
…GtkStatusIcon'
- Loading branch information
Showing
1 changed file
with
1 addition
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*- | ||
* Copyright (c) 2021-2022 Rozhuk Ivan <[email protected]> | ||
* Copyright (c) 2021-2023 Rozhuk Ivan <[email protected]> | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
|
@@ -166,13 +166,6 @@ gtk_mixer_tray_icon_dev_set(GtkStatusIcon *status_icon, gmp_dev_p dev) { | |
gtk_mixer_tray_icon_update(status_icon); | ||
} | ||
|
||
static void | ||
gtk_mixer_tray_icon_destroy(GtkWidget *window __unused, gpointer user_data) { | ||
gm_tray_icon_p tray_icon = user_data; | ||
|
||
free(tray_icon); | ||
} | ||
|
||
GtkStatusIcon * | ||
gtk_mixer_tray_icon_create(GtkWidget *main_window) { | ||
gm_tray_icon_p tray_icon; | ||
|
@@ -188,9 +181,6 @@ gtk_mixer_tray_icon_create(GtkWidget *main_window) { | |
g_object_set_data(G_OBJECT(tray_icon->status_icon), | ||
"__gtk_mixer_tray_icon", (void*)tray_icon); | ||
|
||
g_signal_connect(tray_icon->status_icon, | ||
"destroy", | ||
G_CALLBACK(gtk_mixer_tray_icon_destroy), tray_icon); | ||
g_signal_connect(G_OBJECT(tray_icon->status_icon), | ||
"scroll-event", | ||
G_CALLBACK(gtk_mixer_tray_icon_scroll), tray_icon); | ||
|