From db9e447eca084e5398cd5252cb737e047d11ac91 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 2 Jul 2009 23:54:56 +0000 Subject: LinGui: fix a problem with subtitle controls and large fonts the controls would get the bottoms clipped if you used a large font git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2658 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/main.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gtk/src/main.c') diff --git a/gtk/src/main.c b/gtk/src/main.c index a3ec1f004..c089a7616 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -822,6 +822,21 @@ main (int argc, char *argv[]) gtk_status_icon_set_tooltip(si, "HandBrake"); #endif + // Ugly hack to keep subtitle table from bouncing around as I change + // which set of controls are visible + GtkRequisition req; + GtkWidget *widget; + gint height; + + widget = GHB_WIDGET(ud->builder, "SrtCodeset"); + gtk_widget_size_request( widget, &req ); + height = req.height; + widget = GHB_WIDGET(ud->builder, "srt_code_label"); + gtk_widget_size_request( widget, &req ); + height += req.height; + widget = GHB_WIDGET(ud->builder, "subtitle_table"); + gtk_widget_set_size_request(widget, -1, height); + // Everything should be go-to-go. Lets rock! gtk_main (); -- cgit v1.2.3