[gnome-calendar] Theming fixes.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Theming fixes.
- Date: Wed, 11 Jul 2012 14:52:03 +0000 (UTC)
commit 917984fa012336f73560826c6c034a3646cc8361
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Mon Jul 9 22:29:13 2012 -0400
Theming fixes.
GcalWindow::activew-view added notify.
data/gtk-styles.css | 9 +++++++--
src/gcal-window.c | 12 +++++++++++-
2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/data/gtk-styles.css b/data/gtk-styles.css
index a039970..7271f96 100644
--- a/data/gtk-styles.css
+++ b/data/gtk-styles.css
@@ -11,9 +11,14 @@
@define-color osd_toolbar_bg_b alpha(#101010, 0.80);
@define-color osd_toolbar_bg_c alpha(shade(@osd_base, 1.02), 0.80);
+.contents.frame {
+ border-top: 1px lightgrey solid;
+ border-radius: 0px;
+}
+
.sources-views {
- padding: 10px;
- border-radius: 10px;
+ padding: 12px;
+ border-radius: 0;
border-style: none;
background-image: -gtk-gradient(linear, left top, left bottom,
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 554e664..1956d33 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -260,12 +260,20 @@ gcal_window_constructed (GObject *object)
CLUTTER_BOX_ALIGNMENT_CENTER);
/* notebook widget for holding views */
+ holder = gtk_frame_new (NULL);
+
priv->notebook = gtk_notebook_new ();
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (priv->notebook), FALSE);
gtk_notebook_set_show_border (GTK_NOTEBOOK (priv->notebook), FALSE);
+
gtk_widget_show (priv->notebook);
- priv->notebook_actor = gtk_clutter_actor_new_with_contents (priv->notebook);
+ context = gtk_widget_get_style_context (holder);
+ gtk_style_context_add_class (context, "contents");
+ gtk_container_add (GTK_CONTAINER (holder), priv->notebook);
+ gtk_widget_show (holder);
+
+ priv->notebook_actor = gtk_clutter_actor_new_with_contents (holder);
clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (contents_layout_manager),
priv->notebook_actor,
@@ -463,6 +471,8 @@ gcal_window_set_active_view (GcalWindow *window,
NULL));
}
+ g_object_notify (G_OBJECT (window), "active-view");
+
update_range = ! gcal_view_contains (GCAL_VIEW (priv->views[priv->active_view]),
priv->active_date);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]