Merge lp:~brandontschaefer/overlay-scrollbar/lp.1109114-1109113-CID-13652-13653 into lp:overlay-scrollbar

Proposed by Brandon Schaefer
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 365
Merged at revision: 367
Proposed branch: lp:~brandontschaefer/overlay-scrollbar/lp.1109114-1109113-CID-13652-13653
Merge into: lp:overlay-scrollbar
Diff against target: 36 lines (+4/-4)
1 file modified
os/os-scrollbar.c (+4/-4)
To merge this branch: bzr merge lp:~brandontschaefer/overlay-scrollbar/lp.1109114-1109113-CID-13652-13653
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+146250@code.launchpad.net

Commit message

One was an unused var, and the other was only used if using GTK3 so moved that into the #ifndef.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

+1

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 2012-11-30 07:51:59 +0000
3+++ os/os-scrollbar.c 2013-02-02 00:59:19 +0000
4@@ -1962,17 +1962,19 @@
5 {
6 Display *display;
7 GtkScrollbar *scrollbar;
8- OsScrollbarPrivate *priv;
9 XWindowChanges changes;
10 guint32 xid, xid_parent;
11 unsigned int value_mask = CWSibling | CWStackMode;
12 int res;
13
14 scrollbar = GTK_SCROLLBAR (user_data);
15- priv = get_private (GTK_WIDGET (scrollbar));
16
17 #ifdef USE_GTK3
18+ OsScrollbarPrivate *priv;
19+
20 /* Immediately set the bar to be active. */
21+ priv = get_private (GTK_WIDGET (scrollbar));
22+
23 priv->deactivable_bar = FALSE;
24 os_bar_set_active (priv->bar, TRUE, FALSE);
25 #endif
26@@ -3830,10 +3832,8 @@
27 {
28 if (use_overlay_scrollbar ())
29 {
30- GtkScrollbar *scrollbar;
31 OsScrollbarPrivate *priv;
32
33- scrollbar = GTK_SCROLLBAR (widget);
34 priv = get_private (widget);
35
36 if (priv->orientation == GTK_ORIENTATION_VERTICAL)

Subscribers

People subscribed via source and target branches