summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2013-02-02 00:18:41 +0000
committerjstebbins <[email protected]>2013-02-02 00:18:41 +0000
commit2837d87bf7ac9255546976213e217d213dd10c1a (patch)
tree2a62b206bc5461768a88acd96c7195ec040559ee
parent7433cb189a1ec58a3fdcd625edb762cff5267277 (diff)
LinGui: add tooltips for subtitle options
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5233 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/ghb.ui58
-rw-r--r--gtk/src/main.c10
2 files changed, 68 insertions, 0 deletions
diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui
index 53e65b4cd..c697849fa 100644
--- a/gtk/src/ghb.ui
+++ b/gtk/src/ghb.ui
@@ -1,6 +1,64 @@
<?xml version="1.0"?>
<!--*- mode: xml -*-->
<interface>
+ <object class="GtkLabel" id="SubTrackLabel">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">&lt;b&gt;Track&lt;/b&gt;</property>
+ <property name="tooltip-text" translatable="yes">The source subtitle track
+
+You can choose any of the subtitles
+recognized in your source file.
+
+In addition, there is a special track option
+"Foreign Audio Search". This option will add
+an extra pass to the encode that searches for
+subtitles that may correspond to a foreign
+language scene. This option is best used in
+conjunction with the "Forced" option.</property>
+ <property name="use_markup">True</property>
+ </object>
+ <object class="GtkLabel" id="SubForcedLabel">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">&lt;b&gt;Forced Only&lt;/b&gt;</property>
+ <property name="tooltip-text" translatable="yes">Use only subtitles that have been flagged
+as forced in the source subtitle track
+
+"Forced" subtitles are usually used to show
+subtitles during scenes where someone is speaking
+a foreign language.</property>
+ <property name="use_markup">True</property>
+ </object>
+ <object class="GtkLabel" id="SubBurnedLabel">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">&lt;b&gt;Burned In&lt;/b&gt;</property>
+ <property name="tooltip-text" translatable="yes">Render the subtitle over the video.
+
+The subtitle will be part of the video and can not be disabled.</property>
+ <property name="use_markup">True</property>
+ </object>
+ <object class="GtkLabel" id="SubDefaultLabel">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">&lt;b&gt;Default&lt;/b&gt;</property>
+ <property name="tooltip-text" translatable="yes">Set the default output subtitle track.
+
+Most players will automatically display this
+subtitle track whenever the video is played.
+
+This is usefule for creating a "forced" track
+in your output.</property>
+ <property name="use_markup">True</property>
+ </object>
+ <object class="GtkLabel" id="SubSRTOffsetLabel">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">&lt;b&gt;SRT Offset&lt;/b&gt;</property>
+ <property name="tooltip-text" translatable="yes">Add (or subtract) an offset (in milliseconds)
+to the start of the SRT subtitle track.
+
+Often, the start of an external SRT file
+does not coincide with the start of the video.
+This setting allows you to synchronize the files.</property>
+ <property name="use_markup">True</property>
+ </object>
<object class="GtkAdjustment" id="adjustment1">
<property name="upper">100</property>
<property name="lower">1</property>
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 891abd088..9f3dc8b24 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -419,6 +419,8 @@ bind_subtitle_tree_model(signal_user_data_t *ud)
cell = gtk_cell_renderer_text_new();
column = gtk_tree_view_column_new_with_attributes(
_("Track"), cell, "text", 0, NULL);
+ widget = GHB_WIDGET(ud->builder, "SubTrackLabel");
+ gtk_tree_view_column_set_widget(column, widget);
gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column));
gtk_tree_view_column_set_min_width(column, 350);
gtk_tree_view_column_set_max_width(column, 350);
@@ -426,6 +428,8 @@ bind_subtitle_tree_model(signal_user_data_t *ud)
cell = gtk_cell_renderer_toggle_new();
column = gtk_tree_view_column_new_with_attributes(
_("Forced Only"), cell, "active", 1, "visible", 7, NULL);
+ widget = GHB_WIDGET(ud->builder, "SubForcedLabel");
+ gtk_tree_view_column_set_widget(column, widget);
gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column));
g_signal_connect(cell, "toggled", subtitle_forced_toggled_cb, ud);
@@ -433,6 +437,8 @@ bind_subtitle_tree_model(signal_user_data_t *ud)
gtk_cell_renderer_toggle_set_radio(GTK_CELL_RENDERER_TOGGLE(cell), TRUE);
column = gtk_tree_view_column_new_with_attributes(
_("Burned In"), cell, "active", 2, "visible", 8, NULL);
+ widget = GHB_WIDGET(ud->builder, "SubBurnedLabel");
+ gtk_tree_view_column_set_widget(column, widget);
gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column));
g_signal_connect(cell, "toggled", subtitle_burned_toggled_cb, ud);
@@ -440,12 +446,16 @@ bind_subtitle_tree_model(signal_user_data_t *ud)
gtk_cell_renderer_toggle_set_radio(GTK_CELL_RENDERER_TOGGLE(cell), TRUE);
column = gtk_tree_view_column_new_with_attributes(
_("Default"), cell, "active", 3, NULL);
+ widget = GHB_WIDGET(ud->builder, "SubDefaultLabel");
+ gtk_tree_view_column_set_widget(column, widget);
gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column));
g_signal_connect(cell, "toggled", subtitle_default_toggled_cb, ud);
cell = gtk_cell_renderer_text_new();
column = gtk_tree_view_column_new_with_attributes(
_("Srt Offset"), cell, "text", 4, "visible", 9, NULL);
+ widget = GHB_WIDGET(ud->builder, "SubSRTOffsetLabel");
+ gtk_tree_view_column_set_widget(column, widget);
gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column));