[gnome-calendar] event-widget: always hide color box on vertical events
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] event-widget: always hide color box on vertical events
- Date: Fri, 1 Dec 2017 13:27:51 +0000 (UTC)
commit 8c4a0ca613b984e658a3f6ba1d4bfc383c0b467e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Dec 1 11:26:59 2017 -0200
event-widget: always hide color box on vertical events
Otherwise we get weird borders on Week view.
src/gcal-event-widget.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-event-widget.c b/src/gcal-event-widget.c
index fc23625..e0e5ca7 100644
--- a/src/gcal-event-widget.c
+++ b/src/gcal-event-widget.c
@@ -234,8 +234,15 @@ gcal_event_widget_update_style (GcalEventWidget *self)
context = gtk_widget_get_style_context (GTK_WIDGET (self));
gtk_style_context_add_class (context, "timed");
- gtk_widget_set_margin_start (self->stack, 0);
- gtk_widget_set_margin_end (self->stack, 2);
+ if (self->orientation == GTK_ORIENTATION_HORIZONTAL)
+ {
+ gtk_widget_set_margin_start (self->stack, 0);
+ gtk_widget_set_margin_end (self->stack, 2);
+ }
+ else
+ {
+ gtk_widget_set_visible (self->color_box, FALSE);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]