From: Andrea Zagli Date: Sat, 4 Dec 2010 09:08:51 +0000 (+0100) Subject: Adjustment on GooCanvas size allocation on GtkCalExViewDay. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=aa2b4fd05d99086397b38836bef47c6e1013bb8a;p=libgtkcalendarex Adjustment on GooCanvas size allocation on GtkCalExViewDay. --- diff --git a/src/gtkcalex.c b/src/gtkcalex.c index 64f3f5a..d2f419c 100644 --- a/src/gtkcalex.c +++ b/src/gtkcalex.c @@ -290,7 +290,7 @@ gtk_calex_size_request (GtkWidget *widget, border_width = gtk_container_get_border_width (GTK_CONTAINER (widget)); requisition->width += (border_width * 2); requisition->height += (border_width * 2); -g_message("gtkcalex requisition %d %d",requisition->width,requisition->height); +/*g_message("gtkcalex requisition %d %d",requisition->width,requisition->height);*/ } static void @@ -312,7 +312,9 @@ gtk_calex_size_allocate (GtkWidget *widget, bin = GTK_BIN (gtkcalex); priv = GTK_CALEX_GET_PRIVATE (gtkcalex); -g_message("gtkcalex allocation %d %d %d %d",allocation->x,allocation->y,allocation->width,allocation->height); + +/*g_message("gtkcalex allocation %d %d %d %d",allocation->x,allocation->y,allocation->width,allocation->height);*/ + gtk_widget_set_allocation (widget, allocation); border_width = gtk_container_get_border_width (GTK_CONTAINER (widget)); diff --git a/src/gtkcalexviewday.c b/src/gtkcalexviewday.c index 53940a3..89e330f 100644 --- a/src/gtkcalexviewday.c +++ b/src/gtkcalexviewday.c @@ -289,6 +289,8 @@ gtk_calex_view_day_draw (GtkCalExViewDay *gtk_calex_view_day) NULL); } } + + goo_canvas_set_bounds (GOO_CANVAS (priv->goo_canvas), 0, 0, allocation.width, y + 20); } static void @@ -341,7 +343,9 @@ gtk_calex_view_day_size_allocate (GtkWidget *widget, bin = GTK_BIN (gtkcalexvd); priv = GTK_CALEX_VIEW_DAY_GET_PRIVATE (gtkcalexvd); -g_message("gtkcalexviewday allocation %d %d %d %d",allocation->x,allocation->y,allocation->width,allocation->height); + +/*g_message("gtkcalexviewday allocation %d %d %d %d",allocation->x,allocation->y,allocation->width,allocation->height);*/ + gtk_widget_set_allocation (widget, allocation); border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));