summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-05-02 23:58:23 +0000
committerjstebbins <[email protected]>2009-05-02 23:58:23 +0000
commit5ba946fe336baba0d53ae1ca61691d43982761c6 (patch)
tree55fb15037284f5e7536d3cfc3bdb28288b5f42a2 /gtk/src/main.c
parent1b8d2b8a650247865ffd461ece479f8b404f1bee (diff)
LinGui:
poll for dvd volume labels after the ui is fully displayed truncate leading and trailing spaces in volume labels sanitize volume label after making a copy instead of stepping on dvdreads private copy. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2370 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index d4a1e87cb..505142be5 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -54,6 +54,7 @@
#include "values.h"
#include "icons.h"
#include "callbacks.h"
+#include "queuehandler.h"
#include "x264handler.h"
#include "settings.h"
#include "resources.h"
@@ -641,7 +642,6 @@ main (int argc, char *argv[])
buffer = gtk_text_view_get_buffer (textview);
g_signal_connect(buffer, "changed", (GCallback)x264_entry_changed_cb, ud);
- ghb_file_menu_add_dvd(ud);
ghb_combo_init(ud->builder);
g_debug("ud %p\n", ud);
@@ -712,6 +712,10 @@ main (int argc, char *argv[])
}
// Start timer for monitoring libhb status, 500ms
g_timeout_add (500, ghb_timer_cb, (gpointer)ud);
+
+ // Add dvd devices to File menu
+ g_idle_add((GSourceFunc)ghb_file_menu_add_dvd, ud);
+
// Everything should be go-to-go. Lets rock!
gtk_main ();