static void gtk_level_bar_size_allocate (GtkWidget *widget, GtkAllocation *allocation) { GTK_WIDGET_CLASS (gtk_level_bar_parent_class)->size_allocate (widget, allocation); _gtk_widget_set_simple_clip (widget, NULL); }
static void deepin_workspace_overview_size_allocate(GtkWidget* widget, GtkAllocation* allocation) { GTK_WIDGET_CLASS(deepin_workspace_overview_parent_class)->size_allocate( widget, allocation); DeepinWorkspaceOverview *self = DEEPIN_WORKSPACE_OVERVIEW (widget); if (gtk_widget_get_realized (widget)) gdk_window_move_resize (self->priv->event_window, allocation->x, allocation->y, allocation->width, allocation->height); _gtk_widget_set_simple_clip(widget, NULL); }
static void swatch_size_allocate (GtkWidget *widget, GtkAllocation *allocation) { GtkColorSwatch *swatch = GTK_COLOR_SWATCH (widget); gtk_widget_set_allocation (widget, allocation); if (gtk_widget_get_realized (widget)) gdk_window_move_resize (swatch->priv->event_window, allocation->x, allocation->y, allocation->width, allocation->height); _gtk_widget_set_simple_clip (widget, NULL); }
static void gtk_switch_size_allocate (GtkWidget *widget, GtkAllocation *allocation) { GtkSwitchPrivate *priv = GTK_SWITCH (widget)->priv; gtk_widget_set_allocation (widget, allocation); if (gtk_widget_get_realized (widget)) gdk_window_move_resize (priv->event_window, allocation->x, allocation->y, allocation->width, allocation->height); if (priv->is_active) priv->handle_x = gtk_widget_get_allocated_width (widget) / 2; else priv->handle_x = 0; _gtk_widget_set_simple_clip (widget, NULL); }