<property name="position">6</property>
</packing>
</child>
+
+ <child>
+ <object class="GtkAlignment" id="alignment_j6">
+ <property name="visible">True</property>
+ <property name="left_padding">4</property>
+ <child>
+ <object class="GtkHBox" id="hbox1">
+ <property name="visible">True</property>
+ <property name="spacing">4</property>
+ <child>
+ <object class="GtkComboBox" id="LoggingLevel">
+ <property name="visible">True</property>
+ <property name="width_request">55</property>
+ <signal name="changed" handler="pref_changed_cb"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Logging Level</property>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">7</property>
+ </packing>
+ </child>
+
<child>
<object class="GtkCheckButton" id="allow_tweaks">
<property name="can_focus">True</property>
<signal name="toggled" handler="tweaks_changed_cb"/>
</object>
<packing>
- <property name="position">7</property>
+ <property name="position">8</property>
</packing>
</child>
<child>
<signal name="toggled" handler="hbfd_feature_changed_cb"/>
</object>
<packing>
- <property name="position">8</property>
+ <property name="position">9</property>
</packing>
</child>
</object>
"10",
};
+static options_map_t d_logging_opts[] =
+{
+ {"0", "0", 0, "0"},
+ {"1", "1", 1, "1"},
+ {"2", "2", 2, "2"},
+};
+combo_opts_t logging_opts =
+{
+ sizeof(d_logging_opts)/sizeof(options_map_t),
+ d_logging_opts
+};
+
static options_map_t d_container_opts[] =
{
{"MKV", "mkv", HB_MUX_MKV, "mkv"},
combo_name_map_t combo_name_map[] =
{
+ {"LoggingLevel", &logging_opts},
{"FileFormat", &container_opts},
{"PictureDeinterlace", &deint_opts},
{"tweak_PictureDeinterlace", &deint_opts},
subtitle_opts_set(builder, "Subtitles", user_data);
title_opts_set(builder, "title");
audio_track_opts_set(builder, "AudioTrack", user_data);
+ generic_opts_set(builder, "LoggingLevel", &logging_opts);
generic_opts_set(builder, "FileFormat", &container_opts);
generic_opts_set(builder, "PictureDeinterlace", &deint_opts);
generic_opts_set(builder, "tweak_PictureDeinterlace", &deint_opts);
static ghb_status_t hb_status;
void
-ghb_backend_init(GtkBuilder *builder, gint debug, gint update)
+ghb_combo_init(GtkBuilder *builder)
{
- /* Init libhb */
- h_scan = hb_init( debug, update );
- h_queue = hb_init( debug, 0 );
// Set up the list model for the combos
init_ui_combo_boxes(builder);
// Populate all the combos
ghb_update_ui_combo_box(builder, NULL, 0, TRUE);
}
+void
+ghb_backend_init(gint debug)
+{
+ /* Init libhb */
+ h_scan = hb_init( debug, 0 );
+ h_queue = hb_init( debug, 0 );
+}
+
void
ghb_backend_close()
{
gdouble *page,
gint *digits);
//const gchar* ghb_get_rate_string(gint rate, gint type);
-void ghb_backend_init(GtkBuilder *builder, gint debug, gint update);
+void ghb_combo_init(GtkBuilder *builder);
+void ghb_backend_init(gint debug);
void ghb_backend_close(void);
void ghb_add_job(GValue *js, gint unique_id);
void ghb_remove_job(gint unique_id);
<false />
<key>hbfd_feature</key>
<false />
+ <key>LoggingLevel</key>
+ <string>1</string>
<key>nocheckvquality</key>
<false />
<key>reduce_hd_preview</key>
g_debug("Done\n");
}
+
extern void queue_list_selection_changed_cb(void);
extern void queue_remove_clicked_cb(void);
extern void queue_list_size_allocate_cb(void);
g_signal_connect(buffer, "changed", (GCallback)x264_entry_changed_cb, ud);
ghb_file_menu_add_dvd(ud);
- ghb_backend_init(ud->builder, 1, 0);
+ ghb_combo_init(ud->builder);
g_debug("ud %p\n", ud);
g_debug("ud->builder %p\n", ud->builder);
ghb_prefs_to_ui(ud);
+ gint logLevel;
+ logLevel = ghb_settings_get_int(ud->settings, "LoggingLevel");
+ ghb_backend_init(logLevel);
+
if (ghb_settings_get_boolean(ud->settings, "hbfd"))
{
ghb_hbfd(ud, TRUE);
"</property>\n"
" </packing>\n"
" </child>\n"
+"\n"
+" <child>\n"
+" <object class="GtkAlignment" id="
+""alignment_j6">\n"
+" <property name="visible">Tr"
+"ue</property>\n"
+" <property name="left_padding"&"
+"gt;4</property>\n"
+" <child>\n"
+" <object class="GtkHBox" id=&"
+"quot;hbox1">\n"
+" <property name="visible"&g"
+"t;True</property>\n"
+" <property name="spacing"&g"
+"t;4</property>\n"
+" <child>\n"
+" <object class="GtkComboBox&qu"
+"ot; id="LoggingLevel">\n"
+" <property name="visible&quo"
+"t;>True</property>\n"
+" <property name="width_reque"
+"st">55</property>\n"
+" <signal name="changed""
+" handler="pref_changed_cb"/>\n"
+" </object>\n"
+" <packing>\n"
+" <property name="expand""
+";>False</property>\n"
+" <property name="position&qu"
+"ot;>0</property>\n"
+" </packing>\n"
+" </child>\n"
+" <child>\n"
+" <object class="GtkLabel""
+" id="label1">\n"
+" <property name="visible&quo"
+"t;>True</property>\n"
+" <property name="xalign""
+";>0</property>\n"
+" <property name="label""
+" translatable="yes">Logging Level</property>\n"
+" </object>\n"
+" <packing>\n"
+" <property name="position&qu"
+"ot;>1</property>\n"
+" </packing>\n"
+" </child>\n"
+" </object>\n"
+" </child>\n"
+" </object>\n"
+" <packing>\n"
+" <property name="position">7"
+"</property>\n"
+" </packing>\n"
+" </child>\n"
+"\n"
" <child>\n"
" <object class="GtkCheckButton" i"
"d="allow_tweaks">\n"
"="tweaks_changed_cb"/>\n"
" </object>\n"
" <packing>\n"
-" <property name="position">7"
+" <property name="position">8"
"</property>\n"
" </packing>\n"
" </child>\n"
"="hbfd_feature_changed_cb"/>\n"
" </object>\n"
" <packing>\n"
-" <property name="position">8"
+" <property name="position">9"
"</property>\n"
" </packing>\n"
" </child>\n"
" <dict>\n"
" <key>EncodeLogLocation</key>\n"
" <false />\n"
+" <key>LoggingLevel</key>\n"
+" <string>1</string>\n"
" <key>allow_tweaks</key>\n"
" <false />\n"
" <key>chapters_in_destination</key>\n"
<property name="position">6</property>
</packing>
</child>
+
+ <child>
+ <object class="GtkAlignment" id="alignment_j6">
+ <property name="visible">True</property>
+ <property name="left_padding">4</property>
+ <child>
+ <object class="GtkHBox" id="hbox1">
+ <property name="visible">True</property>
+ <property name="spacing">4</property>
+ <child>
+ <object class="GtkComboBox" id="LoggingLevel">
+ <property name="visible">True</property>
+ <property name="width_request">55</property>
+ <signal name="changed" handler="pref_changed_cb"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Logging Level</property>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">7</property>
+ </packing>
+ </child>
+
<child>
<object class="GtkCheckButton" id="allow_tweaks">
<property name="can_focus">True</property>
<signal name="toggled" handler="tweaks_changed_cb"/>
</object>
<packing>
- <property name="position">7</property>
+ <property name="position">8</property>
</packing>
</child>
<child>
<signal name="toggled" handler="hbfd_feature_changed_cb"/>
</object>
<packing>
- <property name="position">8</property>
+ <property name="position">9</property>
</packing>
</child>
</object>
<dict>
<key>EncodeLogLocation</key>
<false />
+ <key>LoggingLevel</key>
+ <string>1</string>
<key>allow_tweaks</key>
<false />
<key>chapters_in_destination</key>