[gnome-calendar] event-widget: remove alarm icon
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] event-widget: remove alarm icon
- Date: Thu, 14 Sep 2017 16:32:35 +0000 (UTC)
commit 766de8c025c28054cac557ce9532ae404e88a0fc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Sep 14 12:03:08 2017 -0300
event-widget: remove alarm icon
This tiny icon wasn't really adding any value, but was
cluttering an already information-intensive view.
data/ui/event-widget.ui | 13 -------------
src/gcal-event-widget.c | 10 +---------
2 files changed, 1 insertions(+), 22 deletions(-)
---
diff --git a/data/ui/event-widget.ui b/data/ui/event-widget.ui
index 9e73cf4..539a51d 100644
--- a/data/ui/event-widget.ui
+++ b/data/ui/event-widget.ui
@@ -33,19 +33,6 @@
</packing>
</child>
<child>
- <object class="GtkImage" id="alarm_icon">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon_name">alarm-symbolic</property>
- <property name="pixel_size">12</property>
- <property name="valign">center</property>
- </object>
- <packing>
- <property name="left_attach">2</property>
- <property name="top_attach">0</property>
- </packing>
- </child>
- <child>
<object class="GtkLabel" id="summary_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
diff --git a/src/gcal-event-widget.c b/src/gcal-event-widget.c
index da66089..8729fb5 100644
--- a/src/gcal-event-widget.c
+++ b/src/gcal-event-widget.c
@@ -38,7 +38,6 @@ struct _GcalEventWidget
GDateTime *dt_end;
/* widgets */
- GtkWidget *alarm_icon;
GtkWidget *event_box;
GtkWidget *hour_label;
GtkWidget *main_grid;
@@ -451,9 +450,6 @@ gcal_event_widget_set_event_internal (GcalEventWidget *self,
/* Tooltip */
gcal_event_widget_set_event_tooltip (self, event);
- /* Alarm icon */
- gtk_widget_set_visible (self->alarm_icon, gcal_event_has_alarms (event));
-
/* Hour label */
hour_str = get_hour_label (self);
@@ -562,14 +558,12 @@ gcal_event_widget_size_allocate (GtkWidget *widget,
gint minimum_grid_height;
gtk_label_set_line_wrap (GTK_LABEL (self->summary_label), TRUE);
- /* This is needed to push the alarm icon to the end of the widget */
- gtk_widget_set_hexpand (self->hour_label, TRUE);
gtk_container_child_set (GTK_CONTAINER (self->main_grid),
self->summary_label,
"left-attach", 0,
"top-attach", 1,
- "width", 3,
+ "width", 2,
NULL);
gtk_widget_get_preferred_height (self->event_box, &minimum_grid_height, NULL);
@@ -588,7 +582,6 @@ gcal_event_widget_size_allocate (GtkWidget *widget,
NULL);
gtk_label_set_line_wrap (GTK_LABEL (self->summary_label), FALSE);
- gtk_widget_set_hexpand (self->hour_label, FALSE);
}
}
@@ -813,7 +806,6 @@ gcal_event_widget_class_init (GcalEventWidgetClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/calendar/event-widget.ui");
- gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, alarm_icon);
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, event_box);
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, hour_label);
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, main_grid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]