diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-31 21:02:28 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-04-05 14:56:38 +0200 |
commit | 169203951b1a338e0a7ef737238731619e5b8c4a (patch) | |
tree | 61eebf0a1f0a4b777e3ce58e779b2aa5fda31f63 /gtk/gtkprogressbar.c | |
parent | fc6de135fe30ad285c50267bc9d24e10135bcc2c (diff) | |
download | gtk+-169203951b1a338e0a7ef737238731619e5b8c4a.tar.gz |
widget: Remove clip from size-allocate vfunc
As the clip is no longer needed, get rid of it.
Diffstat (limited to 'gtk/gtkprogressbar.c')
-rw-r--r-- | gtk/gtkprogressbar.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c index 31fbec0ac7..2a4292306c 100644 --- a/gtk/gtkprogressbar.c +++ b/gtk/gtkprogressbar.c @@ -144,8 +144,7 @@ static void gtk_progress_bar_get_property (GObject *object, GParamSpec *pspec); static void gtk_progress_bar_size_allocate (GtkWidget *widget, const GtkAllocation *allocation, - int baseline, - GtkAllocation *out_clip); + int baseline); static void gtk_progress_bar_act_mode_enter (GtkProgressBar *progress); static void gtk_progress_bar_act_mode_leave (GtkProgressBar *progress); @@ -373,8 +372,7 @@ update_node_classes (GtkProgressBar *pbar) static void allocate_trough (GtkGizmo *gizmo, const GtkAllocation *allocation, - int baseline, - GtkAllocation *out_clip) + int baseline) { GtkProgressBar *pbar = GTK_PROGRESS_BAR (gtk_widget_get_parent (GTK_WIDGET (gizmo))); @@ -442,7 +440,7 @@ allocate_trough (GtkGizmo *gizmo, } } - gtk_widget_size_allocate (priv->progress_widget, &alloc,-1, out_clip); + gtk_widget_size_allocate (priv->progress_widget, &alloc,-1); } @@ -620,15 +618,12 @@ get_current_text (GtkProgressBar *pbar) static void gtk_progress_bar_size_allocate (GtkWidget *widget, const GtkAllocation *allocation, - int baseline, - GtkAllocation *out_clip) + int baseline) { - GtkAllocation child_clip = *allocation; GtkProgressBarPrivate *priv = gtk_progress_bar_get_instance_private (GTK_PROGRESS_BAR (widget)); gint bar_width, bar_height; gint text_width, text_height, text_min, text_nat; GtkAllocation alloc; - GtkAllocation text_clip; if (priv->orientation == GTK_ORIENTATION_HORIZONTAL) { @@ -650,8 +645,7 @@ gtk_progress_bar_size_allocate (GtkWidget *widget, alloc.width = bar_width; alloc.height = bar_height; - gtk_widget_size_allocate (priv->trough_widget, &alloc, -1, &child_clip); - gdk_rectangle_union (out_clip, &child_clip, out_clip); + gtk_widget_size_allocate (priv->trough_widget, &alloc, -1); if (!priv->show_text) return; @@ -680,8 +674,7 @@ gtk_progress_bar_size_allocate (GtkWidget *widget, alloc.height = text_height; } - gtk_widget_size_allocate (priv->label, &alloc, -1, &text_clip); - gdk_rectangle_union (out_clip, &text_clip, out_clip); + gtk_widget_size_allocate (priv->label, &alloc, -1); } static void |