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
=== modified file 'os/os-scrollbar.c'
--- os/os-scrollbar.c 2012-11-30 07:51:59 +0000
+++ os/os-scrollbar.c 2013-02-02 00:59:19 +0000
@@ -1962,17 +1962,19 @@
1962{1962{
1963 Display *display;1963 Display *display;
1964 GtkScrollbar *scrollbar;1964 GtkScrollbar *scrollbar;
1965 OsScrollbarPrivate *priv;
1966 XWindowChanges changes;1965 XWindowChanges changes;
1967 guint32 xid, xid_parent;1966 guint32 xid, xid_parent;
1968 unsigned int value_mask = CWSibling | CWStackMode;1967 unsigned int value_mask = CWSibling | CWStackMode;
1969 int res;1968 int res;
19701969
1971 scrollbar = GTK_SCROLLBAR (user_data);1970 scrollbar = GTK_SCROLLBAR (user_data);
1972 priv = get_private (GTK_WIDGET (scrollbar));
19731971
1974#ifdef USE_GTK31972#ifdef USE_GTK3
1973 OsScrollbarPrivate *priv;
1974
1975 /* Immediately set the bar to be active. */1975 /* Immediately set the bar to be active. */
1976 priv = get_private (GTK_WIDGET (scrollbar));
1977
1976 priv->deactivable_bar = FALSE;1978 priv->deactivable_bar = FALSE;
1977 os_bar_set_active (priv->bar, TRUE, FALSE);1979 os_bar_set_active (priv->bar, TRUE, FALSE);
1978#endif1980#endif
@@ -3830,10 +3832,8 @@
3830{3832{
3831 if (use_overlay_scrollbar ())3833 if (use_overlay_scrollbar ())
3832 {3834 {
3833 GtkScrollbar *scrollbar;
3834 OsScrollbarPrivate *priv;3835 OsScrollbarPrivate *priv;
38353836
3836 scrollbar = GTK_SCROLLBAR (widget);
3837 priv = get_private (widget);3837 priv = get_private (widget);
38383838
3839 if (priv->orientation == GTK_ORIENTATION_VERTICAL)3839 if (priv->orientation == GTK_ORIENTATION_VERTICAL)

Subscribers

People subscribed via source and target branches