[gtk/wip/baedert/for-master: 29/58] progressbar: Remove a few unneeded queue_resize() calls
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 29/58] progressbar: Remove a few unneeded queue_resize() calls
- Date: Wed, 5 Feb 2020 06:43:15 +0000 (UTC)
commit 690ea8a97150816b284fe9a2711ab55b2d391b1b
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]