summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-07-02 23:54:56 +0000
committerjstebbins <[email protected]>2009-07-02 23:54:56 +0000
commitdb9e447eca084e5398cd5252cb737e047d11ac91 (patch)
tree917cd57666bebabce44c39c13e1612a45b51d63a /gtk/src/main.c
parent1613efe962d907d1a73112aeb17453b2a7c5107f (diff)
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
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c15
1 files changed, 15 insertions, 0 deletions
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 ();