[gimp] app: undeprecate GimpStatusbar
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: undeprecate GimpStatusbar
- Date: Tue, 3 Jul 2018 21:27:51 +0000 (UTC)
commit 716412a80766b3b0fcd465acc828dd74e4fd53f9
Author: Michael Natterer <mitch gimp org>
Date: Tue Jul 3 23:25:24 2018 +0200
app: undeprecate GimpStatusbar
The call to gtk_container_resize_children() was probably completely
useless in GTK+ 3.x anyway.
app/display/gimpstatusbar.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/app/display/gimpstatusbar.c b/app/display/gimpstatusbar.c
index 80afca79a4..144aad57e8 100644
--- a/app/display/gimpstatusbar.c
+++ b/app/display/gimpstatusbar.c
@@ -402,8 +402,7 @@ gimp_statusbar_progress_start (GimpProgress *progress,
if (! statusbar->progress_active)
{
- GtkWidget *bar = statusbar->progressbar;
- GtkAllocation allocation;
+ GtkWidget *bar = statusbar->progressbar;
statusbar->progress_active = TRUE;
statusbar->progress_value = 0.0;
@@ -427,19 +426,9 @@ gimp_statusbar_progress_start (GimpProgress *progress,
gtk_widget_show (statusbar->cancel_button);
}
- gtk_widget_get_allocation (statusbar->label, &allocation);
-
gtk_widget_show (statusbar->progressbar);
gtk_widget_hide (statusbar->label);
- /* This shit is needed so that the progress bar is drawn in the
- * correct place in the cases where we suck completely and run
- * an operation that blocks the GUI and doesn't let the main
- * loop run.
- */
- gtk_container_resize_children (GTK_CONTAINER (statusbar));
- gtk_widget_size_allocate (statusbar->progressbar, &allocation);
-
if (! gtk_widget_get_visible (GTK_WIDGET (statusbar)))
{
gtk_widget_show (GTK_WIDGET (statusbar));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]