summaryrefslogtreecommitdiff
path: root/snd-file.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>2018-02-23 16:22:29 +0100
committerIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>2018-02-23 16:22:29 +0100
commitb3b583be0f50487d478f02ee6c147848bdfcc73c (patch)
tree4e12aaceedbde1d991260c3fd9cd17675efec2fd /snd-file.c
parent1b3b1b2aeecc34416aa125e24abecda704a5c8ad (diff)
New upstream version 18.1
Diffstat (limited to 'snd-file.c')
-rw-r--r--snd-file.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/snd-file.c b/snd-file.c
index bdd0a4e..d1d1ea5 100644
--- a/snd-file.c
+++ b/snd-file.c
@@ -1216,6 +1216,18 @@ snd_info *finish_opening_sound(snd_info *sp, bool selected)
else superimpose_sound(sp);
}
}
+#if USE_GTK
+#if GTK_CHECK_VERSION(3, 0, 0)
+ if ((listener_exists()) &&
+ (sound_style(ss) != SOUNDS_IN_SEPARATE_WINDOWS))
+ {
+ int hgt;
+ hgt = widget_height(sound_pane(ss));
+ if (hgt > 50)
+ gtk_paned_set_position(GTK_PANED(sound_pane(ss)), (gint)(hgt * .8));
+ }
+#endif
+#endif
return(sp);
}