Fixed GcalWeekView scrollbar not showing.

This commit is contained in:
Erick Pérez Castellanos
2012-07-19 13:19:05 -04:00
parent f33feaf6b1
commit 3cdd9cfabf
4 changed files with 11 additions and 8 deletions
+6 -3
View File
@@ -11,7 +11,12 @@
@define-color osd_toolbar_bg_b alpha(#101010, 0.80); @define-color osd_toolbar_bg_b alpha(#101010, 0.80);
@define-color osd_toolbar_bg_c alpha(shade(@osd_base, 1.02), 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: 0;
border-top: 1px lightgrey solid; border-top: 1px lightgrey solid;
border-radius: 0px; border-radius: 0px;
@@ -52,8 +57,6 @@
} }
.calendar-view { .calendar-view {
background-color: #F6F6F6;
padding: 6px; padding: 6px;
font: 10; font: 10;
} }
-2
View File
@@ -454,8 +454,6 @@ gcal_month_view_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding); gtk_style_context_get_padding (context, state, &padding);
gtk_widget_get_allocation (widget, &alloc); 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_header (GCAL_MONTH_VIEW (widget), cr, &alloc, &padding);
gcal_month_view_draw_grid (GCAL_MONTH_VIEW (widget), cr, &alloc, &padding); gcal_month_view_draw_grid (GCAL_MONTH_VIEW (widget), cr, &alloc, &padding);
-1
View File
@@ -566,7 +566,6 @@ gcal_week_view_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding); gtk_style_context_get_padding (context, state, &padding);
gtk_widget_get_allocation (widget, &alloc); 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 */ /* setting the same line width for both windows */
cairo_set_line_width (cr, 0.3); cairo_set_line_width (cr, 0.3);
+5 -2
View File
@@ -268,8 +268,6 @@ gcal_window_constructed (GObject *object)
gtk_widget_show (priv->notebook); 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_container_add (GTK_CONTAINER (holder), priv->notebook);
gtk_widget_show (holder); gtk_widget_show (holder);
@@ -279,6 +277,11 @@ gcal_window_constructed (GObject *object)
priv->notebook_actor, priv->notebook_actor,
CLUTTER_BIN_ALIGNMENT_FILL, CLUTTER_BIN_ALIGNMENT_FILL,
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 */ /* sources view */
holder = gcal_floating_container_new (); holder = gcal_floating_container_new ();