35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From a04c2db34042ba8f98ac2596cc8224f091fd7e8d Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Otte <otte@redhat.com>
|
|
Date: Sun, 14 Feb 2010 13:43:04 +0100
|
|
Subject: [PATCH] examples: Use gtk functions instead of libX11 functions in camerabin
|
|
|
|
Gets around the need to link to libX11 directly and provides the same
|
|
functionality.
|
|
To boost, it's more portable, too!
|
|
---
|
|
tests/examples/camerabin/gst-camera.c | 6 ++----
|
|
1 files changed, 2 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c
|
|
index 43934a8..71d217f 100644
|
|
--- a/tests/examples/camerabin/gst-camera.c
|
|
+++ b/tests/examples/camerabin/gst-camera.c
|
|
@@ -836,12 +836,10 @@ gboolean
|
|
on_drawingareaView_configure_event (GtkWidget * widget,
|
|
GdkEventConfigure * event, gpointer data)
|
|
{
|
|
- Display *display = GDK_WINDOW_XDISPLAY (GDK_WINDOW (widget->window));
|
|
-
|
|
- XMoveResizeWindow (display, GDK_WINDOW_XID (GDK_WINDOW (widget->window)),
|
|
+ gdk_window_move_resize (widget->window,
|
|
widget->allocation.x, widget->allocation.y,
|
|
widget->allocation.width, widget->allocation.height);
|
|
- XSync (display, False);
|
|
+ gdk_display_sync (gtk_widget_get_display (widget));
|
|
|
|
return TRUE;
|
|
}
|
|
--
|
|
1.6.6
|
|
|