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
1=== modified file 'os/os-scrollbar.c'
2--- os/os-scrollbar.c 2011-03-17 11:27:08 +0000
3+++ os/os-scrollbar.c 2011-03-17 19:24:26 +0000
4@@ -495,7 +495,7 @@
5
6 priv = scrollbar->priv;
7
8- gdk_window_get_position (gtk_widget_get_window (priv->parent), &win_x, &win_y);
9+ gdk_window_get_origin (gtk_widget_get_window (priv->parent), &win_x, &win_y);
10
11 if (priv->orientation == GTK_ORIENTATION_VERTICAL)
12 {
13@@ -1115,7 +1115,7 @@
14 {
15 gint x, y, x_pos, y_pos;
16
17- gdk_window_get_position (gtk_widget_get_window (priv->parent), &x_pos, &y_pos);
18+ gdk_window_get_origin (gtk_widget_get_window (priv->parent), &x_pos, &y_pos);
19
20 x = priv->thumb_all.x;
21 y = CLAMP (xevent->xmotion.y - priv->slider.height / 2,
22@@ -1151,7 +1151,7 @@
23 {
24 gint x, y, x_pos, y_pos;
25
26- gdk_window_get_position (gtk_widget_get_window (priv->parent), &x_pos, &y_pos);
27+ gdk_window_get_origin (gtk_widget_get_window (priv->parent), &x_pos, &y_pos);
28
29 x = CLAMP (xevent->xmotion.x - priv->slider.width / 2,
30 priv->thumb_all.x + priv->overlay.x,

Subscribers

People subscribed via source and target branches