[gtk/wip/baedert/for-master: 54/70] progressbar: Remove a few unneeded queue_resize() calls



commit 7c8975bb2a3922e9a8583a36d268c14000959a37
Author: Timm Bäder <mail baedert org>
Date:   Tue Jan 28 08:42:08 2020 +0100

    progressbar: Remove a few unneeded queue_resize() calls
    
    This will happen automatically when adding style classes, setting the
    label text, etc.

 gtk/gtkprogressbar.c | 7 -------
 1 file changed, 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));
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]