[ekiga] [windows] Fix video image position with new GTK library
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] [windows] Fix video image position with new GTK library
- Date: Fri, 17 Dec 2010 09:19:05 +0000 (UTC)
commit 98281b3d3f8b7e0df12b3b0d679feee15c8bc385
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date: Fri Dec 17 10:11:17 2010 +0100
[windows] Fix video image position with new GTK library
Fixes bug #635742.
I suppose that old ekiga code was written for a buggy GTK (see
bug #585310), and now, that GTK has been fixed, ekiga code should be
fixed too.
src/gui/main_window.cpp | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp
index 4f34df2..58f25d6 100644
--- a/src/gui/main_window.cpp
+++ b/src/gui/main_window.cpp
@@ -3986,9 +3986,15 @@ ekiga_main_window_expose_event (GtkWidget *widget,
display_info.x = video_widget->allocation.x;
display_info.y = video_widget->allocation.y;
-#ifdef WIN32
+#ifdef WIN32
display_info.hwnd = ((HWND) GDK_WINDOW_HWND (video_widget->window));
-#else
+ // translate coordinates from call_panel_frame to window
+ g_warn_if_fail (gtk_widget_translate_coordinates
+ (mw->priv->call_panel_frame,
+ gtk_widget_get_toplevel(mw->priv->call_panel_frame),
+ display_info.x, display_info.y,
+ &display_info.x, &display_info.y));
+#else
if (!mw->priv->video_widget_gc) {
mw->priv->video_widget_gc = gdk_gc_new (video_widget->window);
g_return_val_if_fail (mw->priv->video_widget_gc != NULL, handled);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]