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
=== modified file 'src/datetime-service.c'
--- src/datetime-service.c 2012-10-09 16:59:12 +0000
+++ src/datetime-service.c 2012-11-01 08:52:21 +0000
@@ -399,8 +399,10 @@
399{399{
400 int i;400 int i;
401401
402 for (i=0; i<MAX_APPOINTMENT_MENUITEMS; i++)402 for (i=0; i<MAX_APPOINTMENT_MENUITEMS; i++) {
403 dbusmenu_menuitem_property_set_bool(appointments[i], DBUSMENU_MENUITEM_PROP_ENABLED, FALSE);403 dbusmenu_menuitem_property_set_bool(appointments[i], DBUSMENU_MENUITEM_PROP_ENABLED, FALSE);
404 dbusmenu_menuitem_property_set_bool(appointments[i], DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
405 }
404}406}
405407
406static gboolean408static gboolean
@@ -415,8 +417,6 @@
415 user. */417 user. */
416 dbusmenu_menuitem_property_remove(menuitem, CALENDAR_MENUITEM_PROP_MARKS);418 dbusmenu_menuitem_property_remove(menuitem, CALENDAR_MENUITEM_PROP_MARKS);
417419
418 hide_all_appointments ();
419
420 g_idle_add(update_appointment_menu_items_idle, NULL);420 g_idle_add(update_appointment_menu_items_idle, NULL);
421 return TRUE;421 return TRUE;
422}422}
@@ -446,8 +446,6 @@
446 }446 }
447 }447 }
448448
449 hide_all_appointments ();
450
451 start_time_appointments = new_time;449 start_time_appointments = new_time;
452450
453 g_debug("Received day-selected with timestamp: %d -> %s",(int)start_time_appointments, ctime(&start_time_appointments)); 451 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