[gimp/wip/animation: 88/145] plug-ins: prevent resize of animation playback widget when progress...



commit d1fca46461c57594278916a375d572be5d2632a1
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]