Merge lp:~charlesk/indicator-datetime/lp-1069177 into lp:indicator-datetime/13.04

Proposed by Charles Kerr
Status: Merged
Approved by: Lars Karlitski
Approved revision: 194
Merged at revision: 192
Proposed branch: lp:~charlesk/indicator-datetime/lp-1069177
Merge into: lp:indicator-datetime/13.04
Diff against target: 33 lines (+3/-5)
1 file modified
src/datetime-service.c (+3/-5)
To merge this branch: bzr merge lp:~charlesk/indicator-datetime/lp-1069177
Reviewer Review Type Date Requested Status
Lars Karlitski (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+131863@code.launchpad.net

Commit message

Fix the bug by ensuring that the dbusmenuitems in our appointment menuitem array are hidden if they're not currently in use.

Description of the change

Fix the bug by ensuring that the dbusmenuitems in our appointment menuitem array are hidden if they're not currently in use.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tom Jaeger (thjaeger) wrote :

By the same token, the hide_all_appointments call in month_changed_cb should probably be removed as well.

Revision history for this message
Charles Kerr (charlesk) wrote :

Good call.

194. By Charles Kerr

in month_changed_cb(), remove the call to hide_all_appointments() to avoid flicker, same idea as previous commit.

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

Looks good, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/datetime-service.c'
2--- src/datetime-service.c 2012-10-09 16:59:12 +0000
3+++ src/datetime-service.c 2012-11-01 08:52:21 +0000
4@@ -399,8 +399,10 @@
5 {
6 int i;
7
8- for (i=0; i<MAX_APPOINTMENT_MENUITEMS; i++)
9+ for (i=0; i<MAX_APPOINTMENT_MENUITEMS; i++) {
10 dbusmenu_menuitem_property_set_bool(appointments[i], DBUSMENU_MENUITEM_PROP_ENABLED, FALSE);
11+ dbusmenu_menuitem_property_set_bool(appointments[i], DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
12+ }
13 }
14
15 static gboolean
16@@ -415,8 +417,6 @@
17 user. */
18 dbusmenu_menuitem_property_remove(menuitem, CALENDAR_MENUITEM_PROP_MARKS);
19
20- hide_all_appointments ();
21-
22 g_idle_add(update_appointment_menu_items_idle, NULL);
23 return TRUE;
24 }
25@@ -446,8 +446,6 @@
26 }
27 }
28
29- hide_all_appointments ();
30-
31 start_time_appointments = new_time;
32
33 g_debug("Received day-selected with timestamp: %d -> %s",(int)start_time_appointments, ctime(&start_time_appointments));

Subscribers

People subscribed via source and target branches