Merge lp:~timchen119/notify-osd/notify-osd.lp404658 into lp:notify-osd

Proposed by Tim Chen
Status: Rejected
Rejected by: Sebastien Bacher
Proposed branch: lp:~timchen119/notify-osd/notify-osd.lp404658
Merge into: lp:notify-osd
Diff against target: 79 lines (+33/-21)
2 files modified
debian/changelog (+10/-0)
src/stack.c (+23/-21)
To merge this branch: bzr merge lp:~timchen119/notify-osd/notify-osd.lp404658
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Ubuntu Sponsors Pending
Review via email: mp+192467@code.launchpad.net

Commit message

Provide the "x-canonical-private-synchronous" to work with notifications different with LAYOUT_ICON_INDICATOR layout.
  Currently the "x-canonical-private-synchronous" interface only provide this layout to support brightness and volume control.

  This make following command behave correctly.
  $notify-send "RF-status" "enabled" -h string:x-canonical-private-synchronous:1 -h string:image_path:/tmp/test.jpg

  Canonical OEM projects need this function to

  * enable OSD for enable/disable WiFi or bluetooth with a hotkey
  * enable OSD for display switching with a hotkey
(LP: #404658)

Description of the change

  Provide the "x-canonical-private-synchronous" to work with notifications different with LAYOUT_ICON_INDICATOR layout.
  Currently the "x-canonical-private-synchronous" interface only provide this layout to support brightness and volume control.

  This make following command behave correctly.
  $notify-send "RF-status" "enabled" -h string:x-canonical-private-synchronous:1 -h string:image_path:/tmp/test.jpg

  Canonical OEM projects need this function to

  * enable OSD for enable/disable WiFi or bluetooth with a hotkey
  * enable OSD for display switching with a hotkey

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:472
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~timchen119/notify-osd/notify-osd.lp404658/+merge/192467/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/notify-osd-ci/5/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/notify-osd-trusty-amd64-ci/1
    SUCCESS: http://jenkins.qa.ubuntu.com/job/notify-osd-trusty-armhf-ci/1
    SUCCESS: http://jenkins.qa.ubuntu.com/job/notify-osd-trusty-i386-ci/1

Click here to trigger a rebuild:
http://10.97.0.26:8080/job/notify-osd-ci/5/rebuild

review: Needs Fixing (continuous-integration)
473. By Tim Chen

* Add changelog.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Lars Karlitski (larsu) wrote :

Thanks for this patch, but it doesn't fully fix bug #404658. The summary and body of a synchronous notification are not updated when a new synchronous notification is sent.

This patch also changes whitespace around the changed lines.

I've incorporated your patch in lp:~~larsu/notify-osd/update-sync.

Unmerged revisions

473. By Tim Chen

* Add changelog.

472. By Tim Chen

Provide the "x-canonical-private-synchronous" to work with notifications different with LAYOUT_ICON_INDICATOR layout.
Currently the "x-canonical-private-synchronous" interface only provide this layout to support brightness and volume control.

This make following command behave correctly.
$notify-send "RF-status" "enabled" -h string:x-canonical-private-synchronous:1 -h string:image_path:/tmp/test.jpg

Canonical OEM projects need this function to

* enable OSD for enable/disable WiFi or bluetooth with a hotkey
* enable OSD for display switching with a hotkey

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-09-17 22:04:19 +0000
+++ debian/changelog 2013-10-24 09:19:38 +0000
@@ -1,3 +1,13 @@
1notify-osd (0.9.35+13.10.20130917.1-0ubuntu2) UNRELEASE; urgency=low
2
3 * Provide the "x-canonical-private-synchronous" to work with notifications
4 different with LAYOUT_ICON_INDICATOR layout.
5 Currently the "x-canonical-private-synchronous" interface only provide
6 this layout to support brightness and volume control.
7 (LP: #404658)
8
9 -- Jian-Ding Chen (timchen119) <tim.chen119@canonical.com> Thu, 24 Oct 2013 17:15:38 +0800
10
1notify-osd (0.9.35+13.10.20130917.1-0ubuntu1) saucy; urgency=low11notify-osd (0.9.35+13.10.20130917.1-0ubuntu1) saucy; urgency=low
212
3 [ Sami Jaktholm ]13 [ Sami Jaktholm ]
414
=== modified file 'src/stack.c'
--- src/stack.c 2013-09-08 08:38:11 +0000
+++ src/stack.c 2013-10-24 09:19:38 +0000
@@ -630,6 +630,29 @@
630 g_free (sender);630 g_free (sender);
631 }631 }
632632
633 if (hints)
634 {
635 data = (GValue*) g_hash_table_lookup (hints, "x-canonical-private-synchronous");
636 compat = (GValue*) g_hash_table_lookup (hints, "synchronous");
637 if ((data && G_VALUE_HOLDS_STRING (data)) || (compat && G_VALUE_HOLDS_STRING (compat)))
638 {
639 if (sync_bubble != NULL
640 && IS_BUBBLE (sync_bubble))
641 {
642 g_object_unref (bubble);
643 bubble = sync_bubble;
644 /* Setup default value for default layout. */
645 bubble_set_value (bubble, -2);
646 }
647
648 if (data && G_VALUE_HOLDS_STRING (data))
649 bubble_set_synchronous (bubble, g_value_get_string (data));
650
651 if (compat && G_VALUE_HOLDS_STRING (compat))
652 bubble_set_synchronous (bubble, g_value_get_string (compat));
653 }
654 }
655
633 if (new_bubble && hints)656 if (new_bubble && hints)
634 {657 {
635 data = (GValue*) g_hash_table_lookup (hints, "x-canonical-append");658 data = (GValue*) g_hash_table_lookup (hints, "x-canonical-append");
@@ -665,27 +688,6 @@
665688
666 if (hints)689 if (hints)
667 {690 {
668 data = (GValue*) g_hash_table_lookup (hints, "x-canonical-private-synchronous");
669 compat = (GValue*) g_hash_table_lookup (hints, "synchronous");
670 if ((data && G_VALUE_HOLDS_STRING (data)) || (compat && G_VALUE_HOLDS_STRING (compat)))
671 {
672 if (sync_bubble != NULL
673 && IS_BUBBLE (sync_bubble))
674 {
675 g_object_unref (bubble);
676 bubble = sync_bubble;
677 }
678
679 if (data && G_VALUE_HOLDS_STRING (data))
680 bubble_set_synchronous (bubble, g_value_get_string (data));
681
682 if (compat && G_VALUE_HOLDS_STRING (compat))
683 bubble_set_synchronous (bubble, g_value_get_string (compat));
684 }
685 }
686
687 if (hints)
688 {
689 data = (GValue*) g_hash_table_lookup (hints, "value");691 data = (GValue*) g_hash_table_lookup (hints, "value");
690 if (data && G_VALUE_HOLDS_INT (data))692 if (data && G_VALUE_HOLDS_INT (data))
691 bubble_set_value (bubble, g_value_get_int (data));693 bubble_set_value (bubble, g_value_get_int (data));

Subscribers

People subscribed via source and target branches