summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-04-04 21:13:29 +0000
committerjstebbins <[email protected]>2009-04-04 21:13:29 +0000
commit0e8146cb77a2891a228d61fc5cfbca9d715e69fb (patch)
tree6e1b601c6d51d13cdda4aa7b291bd42e267144b2 /gtk/src/main.c
parentc836a955f7248d35808c0f5e00a72e40d86c1f46 (diff)
LinGui: preview and picture window changes
- split picture settings into it's own window - create overlay for preview window (like the mac ui, but not a pretty) - save window positions and preview display status between sessions git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2297 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 559d9799e..370086fdd 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -631,6 +631,19 @@ main (int argc, char *argv[])
// Start timer for monitoring libhb status, 500ms
g_timeout_add (500, ghb_timer_cb, (gpointer)ud);
// Everything should be go-to-go. Lets rock!
+
+ // Create floating window over preview image
+ GtkWidget *widget;
+ GdkWindow *parent, *win;
+
+ widget = GHB_WIDGET(ud->builder, "preview_image");
+ gtk_widget_realize(widget);
+ parent = gtk_widget_get_window(widget);
+ widget = GHB_WIDGET(ud->builder, "preview_hud");
+ gtk_widget_realize(widget);
+ win = gtk_widget_get_window(widget);
+ gdk_window_reparent(win, parent, 0, 0);
+
gtk_main ();
ghb_backend_close();
if (ud->queue)