mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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!
This commit is contained in:
parent
3c6b0fdfaf
commit
a04c2db340
1 changed files with 2 additions and 4 deletions
|
@ -836,12 +836,10 @@ gboolean
|
||||||
on_drawingareaView_configure_event (GtkWidget * widget,
|
on_drawingareaView_configure_event (GtkWidget * widget,
|
||||||
GdkEventConfigure * event, gpointer data)
|
GdkEventConfigure * event, gpointer data)
|
||||||
{
|
{
|
||||||
Display *display = GDK_WINDOW_XDISPLAY (GDK_WINDOW (widget->window));
|
gdk_window_move_resize (widget->window,
|
||||||
|
|
||||||
XMoveResizeWindow (display, GDK_WINDOW_XID (GDK_WINDOW (widget->window)),
|
|
||||||
widget->allocation.x, widget->allocation.y,
|
widget->allocation.x, widget->allocation.y,
|
||||||
widget->allocation.width, widget->allocation.height);
|
widget->allocation.width, widget->allocation.height);
|
||||||
XSync (display, False);
|
gdk_display_sync (gtk_widget_get_display (widget));
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue