diff options
author | Timm Bäder <mail@baedert.org> | 2020-01-28 08:42:08 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-07 13:15:59 -0500 |
commit | e044656d9978e818c650a0575b48e46bbad1d6ab (patch) | |
tree | f7f743a5fc04020c893a1ab69ad01dc669f5f742 | |
parent | c0fef36692e987837f624504887a5844f888de07 (diff) | |
download | gtk+-e044656d9978e818c650a0575b48e46bbad1d6ab.tar.gz |
progressbar: Remove a few unneeded queue_resize() calls
This will happen automatically when adding style classes, setting the
label text, etc.
-rw-r--r-- | gtk/gtkprogressbar.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c index 541dbf71a2..c950dcfff2 100644 --- a/gtk/gtkprogressbar.c +++ b/gtk/gtkprogressbar.c @@ -833,8 +833,6 @@ gtk_progress_bar_set_text (GtkProgressBar *pbar, if (priv->label) gtk_label_set_label (GTK_LABEL (priv->label), text); - gtk_widget_queue_resize (GTK_WIDGET (pbar)); - g_object_notify_by_pspec (G_OBJECT (pbar), progress_props[PROP_TEXT]); } @@ -885,8 +883,6 @@ gtk_progress_bar_set_show_text (GtkProgressBar *pbar, g_clear_pointer (&priv->label, gtk_widget_unparent); } - gtk_widget_queue_resize (GTK_WIDGET (pbar)); - g_object_notify_by_pspec (G_OBJECT (pbar), progress_props[PROP_SHOW_TEXT]); } @@ -970,7 +966,6 @@ gtk_progress_bar_set_orientation (GtkProgressBar *pbar, _gtk_orientable_set_style_classes (GTK_ORIENTABLE (pbar)); update_node_classes (pbar); - gtk_widget_queue_resize (GTK_WIDGET (pbar)); layout = GTK_BOX_LAYOUT (gtk_widget_get_layout_manager (GTK_WIDGET (pbar))); gtk_orientable_set_orientation (GTK_ORIENTABLE (layout), GTK_ORIENTATION_VERTICAL); @@ -1000,7 +995,6 @@ gtk_progress_bar_set_inverted (GtkProgressBar *pbar, priv->inverted = inverted; update_node_classes (pbar); - gtk_widget_queue_resize (GTK_WIDGET (pbar)); g_object_notify_by_pspec (G_OBJECT (pbar), progress_props[PROP_INVERTED]); } @@ -1107,7 +1101,6 @@ gtk_progress_bar_set_ellipsize (GtkProgressBar *pbar, gtk_label_set_ellipsize (GTK_LABEL (priv->label), mode); g_object_notify_by_pspec (G_OBJECT (pbar), progress_props[PROP_ELLIPSIZE]); - gtk_widget_queue_resize (GTK_WIDGET (pbar)); } } |