[gnome-calendar] event-widget: remove unused CSS tag name
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] event-widget: remove unused CSS tag name
- Date: Mon, 22 Dec 2014 13:42:22 +0000 (UTC)
commit a08a0a66c1c451112e6a23810de202f9e5274981
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sun Dec 21 11:28:12 2014 -0500
event-widget: remove unused CSS tag name
Since Gtk+ parses automatically widgets' name, there's no need of custom class
data/theme/gtk-styles.css | 12 ++++++------
src/gcal-event-widget.c | 4 ----
2 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/data/theme/gtk-styles.css b/data/theme/gtk-styles.css
index 67d6f59..9a4a498 100644
--- a/data/theme/gtk-styles.css
+++ b/data/theme/gtk-styles.css
@@ -56,12 +56,12 @@
color: alpha(@theme_fg_color, 0.4);
}
-.event-widget {
- border-radius: 2px;
- margin-top: 3px;
- margin-left: 6px;
- margin-bottom: 3px;
- margin-right: 6px;
+GcalEventWidget {
+ border-radius: 6px;
+ margin-top: 2px;
+ margin-left: 4px;
+ margin-bottom: 2px;
+ margin-right: 4px;
padding: 4px;
font: 10;
}
diff --git a/src/gcal-event-widget.c b/src/gcal-event-widget.c
index 432b91e..e5736a2 100644
--- a/src/gcal-event-widget.c
+++ b/src/gcal-event-widget.c
@@ -218,10 +218,6 @@ gcal_event_widget_init(GcalEventWidget *self)
gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
gtk_widget_set_can_focus (GTK_WIDGET (self), TRUE);
-
- gtk_style_context_add_class (
- gtk_widget_get_style_context (GTK_WIDGET (self)),
- "event-widget");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]