diff options
author | jstebbins <[email protected]> | 2009-07-02 23:54:56 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-07-02 23:54:56 +0000 |
commit | db9e447eca084e5398cd5252cb737e047d11ac91 (patch) | |
tree | 917cd57666bebabce44c39c13e1612a45b51d63a | |
parent | 1613efe962d907d1a73112aeb17453b2a7c5107f (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
-rw-r--r-- | gtk/src/ghb.ui | 3 | ||||
-rw-r--r-- | gtk/src/main.c | 15 |
2 files changed, 16 insertions, 2 deletions
diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index 1376541a6..a9a9c3255 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -2253,8 +2253,7 @@ audio-volume-medium</property> </packing> </child> <child> - <object class="GtkTable" id="table5"> - <property name="height_request">45</property> + <object class="GtkTable" id="subtitle_table"> <property name="visible">True</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> <property name="n_rows">2</property> 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 (); |