[gnome-calendar/gnome-3-20] Revert "year-view: check for desktop environment"
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-20] Revert "year-view: check for desktop environment"
- Date: Sun, 8 May 2016 16:29:58 +0000 (UTC)
commit 7d2be28efeea49e1e1b31632bd833a31f6bdabef
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun May 8 11:59:07 2016 -0300
Revert "year-view: check for desktop environment"
This reverts commit 649d03adaebfc929243ad73b5f4178818c9b0461.
src/gcal-year-view.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 5785080..69d8c8e 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -1499,14 +1499,10 @@ gcal_year_view_init (GcalYearView *self)
self->end_selected_date = g_new0 (icaltimetype, 1);
self->end_selected_date->zone = e_cal_util_get_system_timezone ();
- /* FIXME: this setting should be moved to gsettings-desktop-schemas */
- if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "GNOME") == 0)
- {
- /* bind GNOME Shell' show week numbers property to GNOME Calendar's one */
- self->shell_settings = g_settings_new ("org.gnome.shell.calendar");
- g_settings_bind (self->shell_settings, "show-weekdate", self, "show-week-numbers",
G_SETTINGS_BIND_DEFAULT);
- g_signal_connect_swapped (self->shell_settings, "changed::show-weekdate", G_CALLBACK
(gtk_widget_queue_allocate), self);
- }
+ /* bind GNOME Shell' show week numbers property to GNOME Calendar's one */
+ self->shell_settings = g_settings_new ("org.gnome.shell.calendar");
+ g_settings_bind (self->shell_settings, "show-weekdate", self, "show-week-numbers",
G_SETTINGS_BIND_DEFAULT);
+ g_signal_connect_swapped (self->shell_settings, "changed::show-weekdate", G_CALLBACK
(gtk_widget_queue_draw), self);
/* default number_of_columns and number_of_rows */
self->number_of_columns = 4;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]