[gnome-calendar] Fixed GcalWeekView scrollbar not showing.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Fixed GcalWeekView scrollbar not showing.
- Date: Thu, 19 Jul 2012 17:28:00 +0000 (UTC)
commit 3cdd9cfabf4bf6f173575c653d0e3a6bf0a515f2
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Thu Jul 19 13:19:05 2012 -0400
Fixed GcalWeekView scrollbar not showing.
data/gtk-styles.css | 9 ++++++---
src/gcal-month-view.c | 2 --
src/gcal-week-view.c | 1 -
src/gcal-window.c | 7 +++++--
4 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/data/gtk-styles.css b/data/gtk-styles.css
index 9441882..53b2da1 100644
--- a/data/gtk-styles.css
+++ b/data/gtk-styles.css
@@ -11,7 +11,12 @@
@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 {
+GtkClutterOffscreen.contents {
+ background-color: #fafafa;
+ background-image: none;
+}
+
+GtkClutterOffscreen.contents .frame {
border: 0;
border-top: 1px lightgrey solid;
border-radius: 0px;
@@ -52,8 +57,6 @@
}
.calendar-view {
- background-color: #F6F6F6;
-
padding: 6px;
font: 10;
}
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index f66d2cd..0fda484 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -454,8 +454,6 @@ gcal_month_view_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding);
gtk_widget_get_allocation (widget, &alloc);
- gtk_render_background (context, cr, alloc.x, alloc.y, alloc.width, alloc.height);
-
gcal_month_view_draw_header (GCAL_MONTH_VIEW (widget), cr, &alloc, &padding);
gcal_month_view_draw_grid (GCAL_MONTH_VIEW (widget), cr, &alloc, &padding);
diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c
index fb87e46..1c04c9d 100644
--- a/src/gcal-week-view.c
+++ b/src/gcal-week-view.c
@@ -566,7 +566,6 @@ gcal_week_view_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding);
gtk_widget_get_allocation (widget, &alloc);
- gtk_render_background (context, cr, alloc.x, alloc.y, alloc.width, alloc.height);
/* setting the same line width for both windows */
cairo_set_line_width (cr, 0.3);
diff --git a/src/gcal-window.c b/src/gcal-window.c
index bacb382..1ea6e81 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -268,8 +268,6 @@ gcal_window_constructed (GObject *object)
gtk_widget_show (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);
@@ -279,6 +277,11 @@ gcal_window_constructed (GObject *object)
priv->notebook_actor,
CLUTTER_BIN_ALIGNMENT_FILL,
CLUTTER_BIN_ALIGNMENT_FILL);
+ context =
+ gtk_widget_get_style_context (
+ gtk_clutter_actor_get_widget (
+ GTK_CLUTTER_ACTOR (priv->notebook_actor)));
+ gtk_style_context_add_class (context, "contents");
/* sources view */
holder = gcal_floating_container_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]