diff options
author | jstebbins <[email protected]> | 2009-11-02 18:26:11 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-11-02 18:26:11 +0000 |
commit | 7b2c8b07f3d88767f13850d5743092e4e043b212 (patch) | |
tree | bb8393e5824073cf5ba07641f976821ce2721e74 /gtk/src/preview.c | |
parent | 1e6b191a97edad3cd634b4972f53873d3d5001d9 (diff) |
LinGui: use a smaller font in audio settings controls
allows a small reduction in the width of the main window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2910 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r-- | gtk/src/preview.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c index 796867817..7d8b690fd 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -156,7 +156,11 @@ ghb_preview_init(signal_user_data_t *ud) GstBus *bus; GstElement *xover; +#if !defined(_WIN32) ud->preview->xid = GDK_DRAWABLE_XID(ud->preview->view->window); +#else + ud->preview->xid = GDK_WINDOW_HWND(ud->preview->view->window); +#endif ud->preview->play = gst_element_factory_make("playbin", "play"); //xover = gst_element_factory_make("xvimagesink", "xover"); //xover = gst_element_factory_make("ximagesink", "xover"); @@ -209,8 +213,13 @@ create_window(GstBus *bus, GstMessage *msg, gpointer data) { if (!gst_structure_has_name(msg->structure, "prepare-xwindow-id")) return GST_BUS_PASS; +#if !defined(_WIN32) gst_x_overlay_set_xwindow_id( GST_X_OVERLAY(GST_MESSAGE_SRC(msg)), preview->xid); +#else + gst_directdraw_sink_set_window_id( + GST_X_OVERLAY(GST_MESSAGE_SRC(msg)), preview->xid); +#endif gst_message_unref(msg); return GST_BUS_DROP; } break; |