-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary "id" member of TrNotification in gtk/notify.c (#851)
The "id" member's only purpose is to serve as the key for the active_notifications hash table. However, the same thing can be very easily achieved by switching the GHashTable's hash/equal functions to "direct", which just use the void pointers (which all keys are in a GHashTable) directly as if they were values, and use GUINT_TO_POINTER() when referring to this hash table's key. Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 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