diff options
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/callbacks.c | 7 | ||||
-rw-r--r-- | gtk/src/ghb-3.12.ui | 2 | ||||
-rw-r--r-- | gtk/src/ghb-3.14.ui | 2 | ||||
-rw-r--r-- | gtk/src/ghb.ui | 2 |
4 files changed, 10 insertions, 3 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 0ef38486d..526f76e18 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -620,6 +620,13 @@ set_destination_settings(signal_user_data_t *ud, GhbValue *settings) g_string_append_printf(str, "%d", title); p += strlen("{title}"); } + else if (!strncmp(p, "{preset}", strlen("{preset}"))) + { + const gchar *preset_name; + preset_name = ghb_dict_get_string(settings, "PresetName"); + g_string_append_printf(str, "%s", preset_name); + p += strlen("{preset}"); + } else if (!strncmp(p, "{chapters}", strlen("{chapters}"))) { if (ghb_settings_combo_int(settings, "PtoPType") == 0) diff --git a/gtk/src/ghb-3.12.ui b/gtk/src/ghb-3.12.ui index 012634b3a..53179cee0 100644 --- a/gtk/src/ghb-3.12.ui +++ b/gtk/src/ghb-3.12.ui @@ -7188,7 +7188,7 @@ This file may be reloaded at a later time to edit your jobs and re-encode.</prop </child> <child> <object class="GtkEntry" id="auto_name_template"> - <property name="tooltip_text" translatable="yes">Available Options: {source} {title} {chapters} {date} {time} {quality} {bitrate}</property> + <property name="tooltip_text" translatable="yes">Available Options: {source} {title} {preset} {chapters} {date} {time} {quality} {bitrate}</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> diff --git a/gtk/src/ghb-3.14.ui b/gtk/src/ghb-3.14.ui index f52c93277..731132735 100644 --- a/gtk/src/ghb-3.14.ui +++ b/gtk/src/ghb-3.14.ui @@ -7191,7 +7191,7 @@ This file may be reloaded at a later time to edit your jobs and re-encode.</prop </child> <child> <object class="GtkEntry" id="auto_name_template"> - <property name="tooltip_text" translatable="yes">Available Options: {source} {title} {chapters} {date} {time} {quality} {bitrate}</property> + <property name="tooltip_text" translatable="yes">Available Options: {source} {title} {preset} {chapters} {date} {time} {quality} {bitrate}</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index a6b03f2f9..3f3f6ba73 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -7222,7 +7222,7 @@ This file may be reloaded at a later time to edit your jobs and re-encode.</prop </child> <child> <object class="GtkEntry" id="auto_name_template"> - <property name="tooltip_text" translatable="yes">Available Options: {source} {title} {chapters} {date} {time} {quality} {bitrate}</property> + <property name="tooltip_text" translatable="yes">Available Options: {source} {title} {preset} {chapters} {date} {time} {quality} {bitrate}</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> |