~dylanmccall/notify-osd/sounds-support

« back to all changes in this revision

Viewing changes to src/stack.c

  • Committer: Dylan McCall
  • Date: 2010-03-27 23:49:23 UTC
  • Revision ID: dylanmccall@gmail.com-20100327234923-l4tgvil01ca80ptp
Implement suppress-sound hint. Haven't been able to test this, but it _should_ work, I think...

Show diffs side-by-side

added added

removed removed

Lines of Context:
762
762
                }
763
763
        }
764
764
 
 
765
        if (hints)
 
766
        {
 
767
                if ((data = (GValue*) g_hash_table_lookup (hints, "suppress-sound")))
 
768
                {
 
769
                        g_debug("Using suppress-sound hint\n");
 
770
                        if ((data && G_VALUE_HOLDS_BOOLEAN (data)))
 
771
                                bubble_set_suppress_sound (bubble, g_value_get_boolean(data));
 
772
                        else
 
773
                                g_warning ("suppress-sound hint is not a boolean value\n");
 
774
                }
 
775
        }
 
776
 
765
777
        log_bubble_debug (bubble, app_name,
766
778
                          (*icon == '\0' && data != NULL) ?
767
779
                          "..." : icon);