Fixed GcalWeekView scrollbar not showing.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
+5
-2
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user