[gtk+/wip/attachment-parameters: 20/20] gdkattachmentparameters.c
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/attachment-parameters: 20/20] gdkattachmentparameters.c
- Date: Mon, 28 Sep 2015 20:53:42 +0000 (UTC)
commit 9302c48eddfba9671a92c92373ec15d0fafae0ce
Author: William Hua <william hua canonical com>
Date: Mon Sep 28 16:45:04 2015 -0400
gdkattachmentparameters.c
gdk/gdkattachmentparameters.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkattachmentparameters.c b/gdk/gdkattachmentparameters.c
index d5f3b06..aaf6e2c 100644
--- a/gdk/gdkattachmentparameters.c
+++ b/gdk/gdkattachmentparameters.c
@@ -791,6 +791,9 @@ gdk_attachment_parameters_choose_position (const GdkAttachmentParameters *parame
if (i)
{
+ offset->x = 0;
+ offset->y = 0;
+
if (position->x + width > bounds->x + bounds->width)
{
offset->x += bounds->x + bounds->width - width - position->x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]