Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3232)

Issue 189680044: Add ibus panel icon for plasma-desktop in KDE5. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 5 months ago by fujiwara
Modified:
9 years, 4 months ago
Reviewers:
shawn.p.huang, Peng
CC:
shawn.p.huang_gmail.com, fujiwara
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Add ibus panel icon for plasma-desktop in KDE5 plasma-desktop does not provide notification area for GtkStatusIcon (QSystemTrayIcon too). KDE5 provides AppIndicator or KStatusNotifierItem. KStatusNotifierItem uses QT5 code and C++. AppIndicator is an instance using dbus methods of KStatusNotifierItem and it supports GTK3. This implements the dbus method names directly so that activate menu is supported. http://blog.martin-graesslin.com/blog/2014/06/where-are-my-systray-icons/ https://lists.fedoraproject.org/pipermail/devel/2014-June/199782.html http://comments.gmane.org/gmane.comp.kde.devel.core/81971 BUG=https://code.google.com/p/ibus/issues/detail?id=1749 TEST=ui/appindicator/ibus-ui-appindicator

Patch Set 1 #

Total comments: 3

Patch Set 2 : Updated with message #3. #

Total comments: 2

Patch Set 3 : Updated with message #5. #

Total comments: 16

Patch Set 4 : Updated with message #7. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+740 lines, -71 lines) Patch
M configure.ac View 1 2 4 chunks +45 lines, -31 lines 0 comments Download
M src/ibusservice.c View 2 chunks +2 lines, -3 lines 0 comments Download
M ui/gtk3/Makefile.am View 1 2 4 chunks +22 lines, -2 lines 0 comments Download
A ui/gtk3/indicator.vala View 1 2 1 chunk +422 lines, -0 lines 0 comments Download
A ui/gtk3/notification-item.xml View 1 1 chunk +63 lines, -0 lines 0 comments Download
A ui/gtk3/notification-watcher.xml View 1 1 chunk +30 lines, -0 lines 0 comments Download
M ui/gtk3/panel.vala View 1 2 3 11 chunks +156 lines, -35 lines 0 comments Download

Messages

Total messages: 8
fujiwara
9 years, 5 months ago (2015-01-19 09:50:14 UTC) #1
Peng
On 2015/01/19 09:50:14, fujiwara wrote: Could you upload a screenshot for this new ui element?
9 years, 4 months ago (2015-02-04 15:34:30 UTC) #2
Peng
https://codereview.appspot.com/189680044/diff/1/ui/gtk3/panel.vala File ui/gtk3/panel.vala (right): https://codereview.appspot.com/189680044/diff/1/ui/gtk3/panel.vala#newcode43 ui/gtk3/panel.vala:43: #if INDICATOR Can we detect INDICATOR at the runtime ...
9 years, 4 months ago (2015-02-04 15:35:31 UTC) #3
fujiwara
Here is the screenshot: https://fujiwara.fedorapeople.org/ibus/20150206/ibus-indicator.png https://codereview.appspot.com/189680044/diff/1/ui/gtk3/panel.vala File ui/gtk3/panel.vala (right): https://codereview.appspot.com/189680044/diff/1/ui/gtk3/panel.vala#newcode43 ui/gtk3/panel.vala:43: #if INDICATOR On 2015/02/04 ...
9 years, 4 months ago (2015-02-06 12:07:10 UTC) #4
Peng
https://codereview.appspot.com/189680044/diff/20001/ui/gtk3/panel.vala File ui/gtk3/panel.vala (right): https://codereview.appspot.com/189680044/diff/20001/ui/gtk3/panel.vala#newcode94 ui/gtk3/panel.vala:94: init_status_icon(); Seems whatever, you will init status icon. So ...
9 years, 4 months ago (2015-02-06 16:51:16 UTC) #5
fujiwara
https://codereview.appspot.com/189680044/diff/20001/ui/gtk3/panel.vala File ui/gtk3/panel.vala (right): https://codereview.appspot.com/189680044/diff/20001/ui/gtk3/panel.vala#newcode94 ui/gtk3/panel.vala:94: init_status_icon(); On 2015/02/06 16:51:16, Peng wrote: > Seems whatever, ...
9 years, 4 months ago (2015-02-09 12:53:10 UTC) #6
Peng
lgtm with several comments https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala File ui/gtk3/panel.vala (right): https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala#newcode96 ui/gtk3/panel.vala:96: if (is_kde()) add {} if ...
9 years, 4 months ago (2015-02-11 16:40:19 UTC) #7
fujiwara
9 years, 4 months ago (2015-02-19 10:23:05 UTC) #8
https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala
File ui/gtk3/panel.vala (right):

https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala#newcode96
ui/gtk3/panel.vala:96: if (is_kde())
On 2015/02/11 16:40:18, Peng wrote:
> add {}
> 
> if () {
> } else {
> }

Done.

https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala#newcod...
ui/gtk3/panel.vala:593: else if (m_icon_type == IconType.INDICATOR) {
On 2015/02/11 16:40:18, Peng wrote:
> } else if () {

Done.

https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala#newcod...
ui/gtk3/panel.vala:600: m_indicator.set_status(Indicator.Status.PASSIVE);
On 2015/02/11 16:40:18, Peng wrote:
> if () {
> } else {
> }

Done.

https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala#newcod...
ui/gtk3/panel.vala:656: else if (m_icon_type == IconType.INDICATOR) {
On 2015/02/11 16:40:18, Peng wrote:
> } else if {

Done.

https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala#newcod...
ui/gtk3/panel.vala:1248: else if (m_icon_type == IconType.INDICATOR) {
On 2015/02/11 16:40:18, Peng wrote:
> } else if () {

Done.

https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala#newcod...
ui/gtk3/panel.vala:1268: else if (m_icon_type == IconType.INDICATOR) {
On 2015/02/11 16:40:18, Peng wrote:
> } else if () {

Done.

https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala#newcod...
ui/gtk3/panel.vala:1278: else if (m_icon_type == IconType.INDICATOR) {
On 2015/02/11 16:40:18, Peng wrote:
> } else if () {

Done.

https://codereview.appspot.com/189680044/diff/40001/ui/gtk3/panel.vala#newcod...
ui/gtk3/panel.vala:1285: else if (m_icon_type == IconType.INDICATOR) {
On 2015/02/11 16:40:18, Peng wrote:
> } else if () {

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b