time-selector: don't access dconf multiple times for the same key

Instead of accessing 3 times the same key, use the cached version and save up some time.
This commit is contained in:
Georges Basile Stavracas Neto
2015-01-03 15:31:05 -02:00
parent fa014972bc
commit c10ba6b228
3 changed files with 23 additions and 21 deletions
+3
View File
@@ -55,6 +55,9 @@ GType gcal_time_selector_get_type (void);
GtkWidget* gcal_time_selector_new (void);
void gcal_time_selector_set_time_format (GcalTimeSelector *selector,
gboolean format_24h);
void gcal_time_selector_set_time (GcalTimeSelector *selector,
gint hours,
gint minutes);