summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/src/ghb.ui3
-rw-r--r--gtk/src/main.c15
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 ();