Merge lp:~cimi/overlay-scrollbar/fix-unity-restore-from-maximized into lp:overlay-scrollbar

Proposed by Andrea Cimitan
Status: Merged
Merged at revision: 165
Proposed branch: lp:~cimi/overlay-scrollbar/fix-unity-restore-from-maximized
Merge into: lp:overlay-scrollbar
Diff against target: 30 lines (+3/-3)
1 file modified
os/os-scrollbar.c (+3/-3)
To merge this branch: bzr merge lp:~cimi/overlay-scrollbar/fix-unity-restore-from-maximized
Reviewer Review Type Date Requested Status
Javier Jardón Approve
Review via email: mp+53882@code.launchpad.net

Description of the change

using gdk_window_get_origin instead gdk_window_get_position

To post a comment you must log in.
Revision history for this message
Javier Jardón (jjardon) wrote :

looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'os/os-scrollbar.c'
--- os/os-scrollbar.c 2011-03-17 11:27:08 +0000
+++ os/os-scrollbar.c 2011-03-17 19:24:26 +0000
@@ -495,7 +495,7 @@
495495
496 priv = scrollbar->priv;496 priv = scrollbar->priv;
497497
498 gdk_window_get_position (gtk_widget_get_window (priv->parent), &win_x, &win_y);498 gdk_window_get_origin (gtk_widget_get_window (priv->parent), &win_x, &win_y);
499499
500 if (priv->orientation == GTK_ORIENTATION_VERTICAL)500 if (priv->orientation == GTK_ORIENTATION_VERTICAL)
501 {501 {
@@ -1115,7 +1115,7 @@
1115 {1115 {
1116 gint x, y, x_pos, y_pos;1116 gint x, y, x_pos, y_pos;
11171117
1118 gdk_window_get_position (gtk_widget_get_window (priv->parent), &x_pos, &y_pos);1118 gdk_window_get_origin (gtk_widget_get_window (priv->parent), &x_pos, &y_pos);
11191119
1120 x = priv->thumb_all.x;1120 x = priv->thumb_all.x;
1121 y = CLAMP (xevent->xmotion.y - priv->slider.height / 2,1121 y = CLAMP (xevent->xmotion.y - priv->slider.height / 2,
@@ -1151,7 +1151,7 @@
1151 {1151 {
1152 gint x, y, x_pos, y_pos;1152 gint x, y, x_pos, y_pos;
11531153
1154 gdk_window_get_position (gtk_widget_get_window (priv->parent), &x_pos, &y_pos);1154 gdk_window_get_origin (gtk_widget_get_window (priv->parent), &x_pos, &y_pos);
11551155
1156 x = CLAMP (xevent->xmotion.x - priv->slider.width / 2,1156 x = CLAMP (xevent->xmotion.x - priv->slider.width / 2,
1157 priv->thumb_all.x + priv->overlay.x,1157 priv->thumb_all.x + priv->overlay.x,

Subscribers

People subscribed via source and target branches