make notification non-persistent in gnome 3

Bug #970738 reported by Maarten Baert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
indicator-keylock
Fix Released
Medium
Thea Barnes

Bug Description

Indicator-keylock works fine in gnome 3 (linux mint 12), but the notification created by indicator-keylock is persistent, i.e. it stays in the notification tray forever. This can be fixed by setting the 'transient' hint. I've tried this and it seems to work fine now.

This is what I changed:
int main(int argc, char *argv[]) {
                if (self_notification == NULL) {
                        g_warning("Failed to create notifications.");
                } else {
+ notify_notification_set_hint_int32(self_notification, "transient", 1);
                        notify_notification_set_hint_string(self_notification,
                                                            "x-canonical-private-synchronous",
                                                            "indicator-keylock");

Revision history for this message
Thea Barnes (tsbarnes) wrote :

The fix has been committed, and thank you for finding that! I don't use GNOME Shell so I wasn't aware it made the notifications persistant by default.

Changed in indicator-keylock:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → T. Scott Barnes (tsbarnes)
Thea Barnes (tsbarnes)
Changed in indicator-keylock:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.