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
@@ -779,6 +779,9 @@ gcal_edit_dialog_new (gboolean format_24h)
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
priv->format_24h = format_24h;
gcal_time_selector_set_time_format (GCAL_TIME_SELECTOR (priv->start_time_selector), format_24h);
gcal_time_selector_set_time_format (GCAL_TIME_SELECTOR (priv->end_time_selector), format_24h);
return dialog;
}