Bug#826609: gnome-calendar: does not start at all

2016-06-07 Thread Andreas Henriksson
Hello!

On Tue, Jun 07, 2016 at 12:57:59AM +0200, Michael Biebl wrote:
> Am 07.06.2016 um 00:41 schrieb Andreas Hilboll:
[...]
> >(gnome-calendar:4888): GLib-GIO-ERROR **: Settings schema 
> > 'org.gnome.shell.calendar' is not installed
> 
> That schema is provided by gnome-shell-common
> 
> We either need to add that as a dependency or (better) make
> gnome-calendar handle it gracefully if the schema doesn't exist.

The attached patch might help, but I also noticed that in the 3.21 series
gnome-calendar (and gnome-shell) has been migrated to use the
gsettings-desktop-schemas org.gnome.desktop.calendar schema instead.
I guess that makes it less interesting to gracefully handle missing
schema in favour of just adding a versioned dependency on
gsettings-desktop-schemas.

I guess we could just carry the patch until we update to 3.21.x/3.22
if someone verifies it actually works... Could you test rebuilding
the gnome-calendar package with the attached patch and see if it
solves your issue Andreas?

Regards,
Andreas Henriksson
From: Andreas Henriksson 
Subject: make gnome-calendar start even if gnome-shell schemas are missing

Bug-Debian: https://bugs.debian.org/826609

--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -1483,6 +1483,26 @@
   gtk_widget_class_set_css_name (widget_class, "calendar-view");
 }
 
+/* bind GNOME Shell' show week numbers property to GNOME Calendar's one */
+static void
+gcal_bind_gnome_shell_week_numbers_to_gcal (GcalYearView *self)
+{
+  GSettingsSchemaSource *defsrc;
+
+  /* bail out early if gnome-shell schema is not available. */
+  defsrc = g_settings_schema_source_get_default ();
+  if (!defsrc || g_settings_schema_source_lookup (defsrc,
+  "org.gnome.shell.calendar",
+  TRUE) == NULL) {
+self->shell_settings = NULL;
+return;
+  }
+
+  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);
+}
+
 static void
 gcal_year_view_init (GcalYearView *self)
 {
@@ -1501,10 +1521,7 @@
   self->end_selected_date = g_new0 (icaltimetype, 1);
   self->end_selected_date->zone = e_cal_util_get_system_timezone ();
 
-  /* 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);
+  gcal_bind_gnome_shell_week_numbers_to_gcal (self);
 
   gtk_list_box_set_header_func (GTK_LIST_BOX (self->events_sidebar), update_sidebar_headers, self, NULL);
   gtk_list_box_set_sort_func (GTK_LIST_BOX (self->events_sidebar), sidebar_sort_func, NULL, NULL);


Bug#826609: gnome-calendar: does not start at all

2016-06-06 Thread Michael Biebl
Am 07.06.2016 um 00:41 schrieb Andreas Hilboll:
> Package: gnome-calendar
> Version: 3.20.2-1+b1
> Severity: important
> 
> Dear Maintainer,
> 
> gnome-calendar does not start on my Strech amd64 system.  When invoking the 
> command 'gnome-calendar' in the terminal, I get the error message
> 
>$ gnome-calendar 
>
>(gnome-calendar:4888): GLib-GIO-ERROR **: Settings schema 
> 'org.gnome.shell.calendar' is not installed

That schema is provided by gnome-shell-common

We either need to add that as a dependency or (better) make
gnome-calendar handle it gracefully if the schema doesn't exist.

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#826609: gnome-calendar: does not start at all

2016-06-06 Thread Andreas Hilboll
Package: gnome-calendar
Version: 3.20.2-1+b1
Severity: important

Dear Maintainer,

gnome-calendar does not start on my Strech amd64 system.  When invoking the 
command 'gnome-calendar' in the terminal, I get the error message

   $ gnome-calendar 
   
   (gnome-calendar:4888): GLib-GIO-ERROR **: Settings schema 
'org.gnome.shell.calendar' is not installed
   
   Trace/breakpoint trap



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-calendar depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.26.0-1
ii  libatk1.0-0  2.20.0-1
ii  libc62.22-9
ii  libcairo-gobject21.14.6-1+b1
ii  libcairo21.14.6-1+b1
ii  libcamel-1.2-57  3.20.2-2
ii  libecal-1.2-19   3.20.2-2
ii  libedataserver-1.2-213.20.2-2
ii  libedataserverui-1.2-1   3.20.2-2
ii  libgdk-pixbuf2.0-0   2.34.0-1
ii  libglib2.0-0 2.48.1-1
ii  libgoa-1.0-0b3.20.1-1
ii  libgtk-3-0   3.20.5-4
ii  libical2 2.0.0-0.4
ii  libicu55 55.1-7
ii  libnspr4 2:4.12-2
ii  libnss3  2:3.23-2
ii  libnss3-1d   2:3.23-2
ii  libpango-1.0-0   1.40.1-1
ii  libpangocairo-1.0-0  1.40.1-1
ii  libsecret-1-00.18.3-1
ii  libsoup2.4-1 2.54.1-1
ii  libsqlite3-0 3.13.0-1
ii  libxml2  2.9.3+dfsg1-1

Versions of packages gnome-calendar recommends:
ii  evolution-data-server  3.20.2-2

gnome-calendar suggests no packages.

-- no debconf information