Colin Walters <walters> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #224989|none |reviewed
status| |
--- Comment #3 from Colin Walters <
wal...@verbum.org> 2012-09-22 21:59:51 UTC ---
Review of attachment 224989:
--> (
https://bugzilla.gnome.org/review?bug=684620&attachment=224989)
This could use designer input.
::: gnome-session/gsm-manager.c
@@ +1371,3 @@
+ notif = notify_notification_new (title, description,
GSM_ICON_COMPUTER_FAIL);
+ notify_notification_set_timeout (notif, 15*1000);
+ notify_notification_add_action (notif, "link-click", link_text,
NOTIFY_ACTION_CALLBACK (on_link_clicked), (gpointer) uri, NULL);
Your cast here is subverting what the compiler was likely telling you - passing
a const char * here is wrong since the string may have been freed. You need to
g_strdup().
@@ +1372,3 @@
+ notify_notification_set_timeout (notif, 15*1000);
+ notify_notification_add_action (notif, "link-click", link_text,
NOTIFY_ACTION_CALLBACK (on_link_clicked), (gpointer) uri, NULL);
+ /* Give the notification daemon a chance to finish initialization */
Sigh =( Notifications popping up before the UI is initialized have always been
a very embarassing part of GNOME 2.
Oh well.