[gimp/wip/animation: 299/373] plug-ins: prevent resize of animation playback widget when progress...
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/animation: 299/373] plug-ins: prevent resize of animation playback widget when progress...
- Date: Sat, 7 Oct 2017 02:19:51 +0000 (UTC)
commit 68d1ae08d7ac0abf1b742b1bfc47b9dd41f6ada5
Author: Jehan <jehan girinstud io>
Date: Mon Jan 9 01:19:28 2017 +0100
plug-ins: prevent resize of animation playback widget when progress...
... bar text length changes.
plug-ins/animation-play/widgets/animation-dialog.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-dialog.c
b/plug-ins/animation-play/widgets/animation-dialog.c
index d451d13..2b909ed 100755
--- a/plug-ins/animation-play/widgets/animation-dialog.c
+++ b/plug-ins/animation-play/widgets/animation-dialog.c
@@ -686,6 +686,14 @@ animation_dialog_constructed (GObject *object)
/*****************/
hbox = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
+ /* Without changing resize mode on the toolbar, it would change size when
+ * text length in the progress bar changes, and subsequently would the
+ * preview display.
+ * XXX: gtk_container_set_resize_mode() is deprecated in GTK+ 3.12, but I
+ * should check whether this issue still happens before removing the call, or
+ * find a new solution.
+ */
+ gtk_container_set_resize_mode (GTK_CONTAINER (hbox), GTK_RESIZE_QUEUE);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]