general: Stop using get_allocated_width/height

gtk_widget_get_allocated_width and gtk_widget_get_allocated_height are
deprecated, let's use the recommended functions.
This commit is contained in:
Felipe Kinoshita
2023-05-30 05:13:34 -03:00
parent 407ec79a02
commit 72eb199f84
5 changed files with 20 additions and 19 deletions
+3 -3
View File
@@ -506,7 +506,7 @@ gcal_month_cell_get_content_space (GcalMonthCell *self)
gtk_style_context_get_padding (context, &padding);
gtk_style_context_get_border (context, &border);
return gtk_widget_get_allocated_height (GTK_WIDGET (self)) -
return gtk_widget_get_height (GTK_WIDGET (self)) -
gcal_month_cell_get_header_height (self) -
padding.top - padding.bottom -
border.top - border.bottom;
@@ -525,7 +525,7 @@ gcal_month_cell_get_header_height (GcalMonthCell *self)
gtk_style_context_get_padding (context, &padding);
gtk_style_context_get_border (context, &border);
return gtk_widget_get_allocated_height (self->header_box) +
return gtk_widget_get_height (self->header_box) +
gtk_widget_get_margin_top (self->header_box) +
gtk_widget_get_margin_bottom (self->header_box) +
padding.top + padding.bottom +
@@ -537,7 +537,7 @@ gcal_month_cell_get_overflow_height (GcalMonthCell *self)
{
g_return_val_if_fail (GCAL_IS_MONTH_CELL (self), -1);
return gtk_widget_get_allocated_height (self->overflow_button);
return gtk_widget_get_height (self->overflow_button);
}
gboolean