summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-04-24 14:59:23 +0000
committerjstebbins <[email protected]>2009-04-24 14:59:23 +0000
commit8ef10b861d39366a0ebda795a5c105fa32532dc7 (patch)
tree76f7a3e9c53724ba1e142999bec26095666e86c6 /gtk
parent60a94bdb9e2dc1cb8678d0050559f88f3bcee492 (diff)
LinGui: change some preset keys to sync with mac presets
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2353 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/ghb.ui2
-rw-r--r--gtk/src/hb-backend.c14
-rw-r--r--gtk/src/internal_defaults.xml2
-rw-r--r--gtk/src/presets.c14
4 files changed, 16 insertions, 16 deletions
diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui
index 0e6139893..bd9d2bb9a 100644
--- a/gtk/src/ghb.ui
+++ b/gtk/src/ghb.ui
@@ -4509,7 +4509,7 @@ the required multiple.</property>
</packing>
</child>
<child>
- <object class="GtkComboBox" id="PictureAlignment">
+ <object class="GtkComboBox" id="PictureModulus">
<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>
<signal name="changed" handler="scale_changed_cb"/>
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 3b69d9747..8deac8831 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -313,7 +313,7 @@ typedef struct
combo_name_map_t combo_name_map[] =
{
{"PicturePAR", &par_opts},
- {"PictureAlignment", &alignment_opts},
+ {"PictureModulus", &alignment_opts},
{"LoggingLevel", &logging_opts},
{"VideoQualityGranularity", &vqual_granularity_opts},
{"FileFormat", &container_opts},
@@ -2005,7 +2005,7 @@ ghb_update_ui_combo_box(GtkBuilder *builder, const gchar *name, gint user_data,
audio_track_opts_set(builder, "AudioTrack", user_data);
generic_opts_set(builder, "VideoQualityGranularity", &vqual_granularity_opts);
generic_opts_set(builder, "PicturePAR", &par_opts);
- generic_opts_set(builder, "PictureAlignment", &alignment_opts);
+ generic_opts_set(builder, "PictureModulus", &alignment_opts);
generic_opts_set(builder, "LoggingLevel", &logging_opts);
generic_opts_set(builder, "FileFormat", &container_opts);
generic_opts_set(builder, "PictureDeinterlace", &deint_opts);
@@ -2583,7 +2583,7 @@ picture_settings_deps(signal_user_data_t *ud)
if (pic_par == 1)
{
ghb_ui_update(ud, "autoscale", ghb_boolean_value(TRUE));
- ghb_ui_update(ud, "PictureAlignment", ghb_int_value(2));
+ ghb_ui_update(ud, "PictureModulus", ghb_int_value(2));
ghb_ui_update(ud, "PictureLooseCrop", ghb_boolean_value(TRUE));
}
enable_keep_aspect = (pic_par != 1 && pic_par != 2);
@@ -2599,7 +2599,7 @@ picture_settings_deps(signal_user_data_t *ud)
enable_disp_width = (pic_par == 3) && !keep_aspect;
enable_disp_height = FALSE;
- widget = GHB_WIDGET(ud->builder, "PictureAlignment");
+ widget = GHB_WIDGET(ud->builder, "PictureModulus");
gtk_widget_set_sensitive(widget, pic_par != 1);
widget = GHB_WIDGET(ud->builder, "PictureLooseCrop");
gtk_widget_set_sensitive(widget, pic_par != 1);
@@ -2660,7 +2660,7 @@ ghb_set_scale(signal_user_data_t *ud, gint mode)
// First configure widgets
- mod = ghb_settings_combo_int(ud->settings, "PictureAlignment");
+ mod = ghb_settings_combo_int(ud->settings, "PictureModulus");
pic_par = ghb_settings_combo_int(ud->settings, "PicturePAR");
keep_aspect = ghb_settings_get_boolean(ud->settings, "PictureKeepRatio");
autocrop = ghb_settings_get_boolean(ud->settings, "PictureAutoCrop");
@@ -2930,7 +2930,7 @@ set_preview_job_settings(hb_job_t *job, GValue *settings)
job->anamorphic.mode = ghb_settings_combo_int(settings, "PicturePAR");
job->anamorphic.modulus =
- ghb_settings_combo_int(settings, "PictureAlignment");
+ ghb_settings_combo_int(settings, "PictureModulus");
job->width = ghb_settings_get_int(settings, "scale_width");
job->height = ghb_settings_get_int(settings, "scale_height");
@@ -3475,7 +3475,7 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex)
job->grayscale = ghb_settings_get_boolean(js, "VideoGrayScale");
job->anamorphic.mode = ghb_settings_combo_int(js, "PicturePAR");
- job->anamorphic.modulus = ghb_settings_combo_int(js, "PictureAlignment");
+ job->anamorphic.modulus = ghb_settings_combo_int(js, "PictureModulus");
/* Add selected filters */
job->filters = hb_list_init();
diff --git a/gtk/src/internal_defaults.xml b/gtk/src/internal_defaults.xml
index 4a082fc7c..986463e09 100644
--- a/gtk/src/internal_defaults.xml
+++ b/gtk/src/internal_defaults.xml
@@ -176,7 +176,7 @@
<false />
<key>PictureLooseCrop</key>
<false />
- <key>PictureAlignment</key>
+ <key>PictureModulus</key>
<integer>16</integer>
<key>PictureDeblock</key>
<integer>0</integer>
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index 1c5869d4c..fead949bf 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -2261,25 +2261,25 @@ import_xlat_preset(GValue *dict)
{
case 0:
{
- if (ghb_dict_lookup(dict, "PictureAlignment") == NULL)
- ghb_dict_insert(dict, g_strdup("PictureAlignment"),
+ if (ghb_dict_lookup(dict, "PictureModulus") == NULL)
+ ghb_dict_insert(dict, g_strdup("PictureModulus"),
ghb_int_value_new(16));
} break;
case 1:
{
- ghb_dict_insert(dict, g_strdup("PictureAlignment"),
+ ghb_dict_insert(dict, g_strdup("PictureModulus"),
ghb_int_value_new(1));
} break;
case 2:
{
- if (ghb_dict_lookup(dict, "PictureAlignment") == NULL)
- ghb_dict_insert(dict, g_strdup("PictureAlignment"),
+ if (ghb_dict_lookup(dict, "PictureModulus") == NULL)
+ ghb_dict_insert(dict, g_strdup("PictureModulus"),
ghb_int_value_new(16));
} break;
default:
{
- if (ghb_dict_lookup(dict, "PictureAlignment") == NULL)
- ghb_dict_insert(dict, g_strdup("PictureAlignment"),
+ if (ghb_dict_lookup(dict, "PictureModulus") == NULL)
+ ghb_dict_insert(dict, g_strdup("PictureModulus"),
ghb_int_value_new(16));
} break;
}