diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 06:44:11 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 06:44:11 +0000 |
commit | 16882fc997ef4fb4d945beb0f60497f0873fc99b (patch) | |
tree | c0aaed7b0c8f3715325f626e6880ee6cc900eb60 /views | |
parent | 9abf8dd6daf601bd5215f612fd530ca009c2e5bd (diff) | |
download | chromium_src-16882fc997ef4fb4d945beb0f60497f0873fc99b.zip chromium_src-16882fc997ef4fb4d945beb0f60497f0873fc99b.tar.gz chromium_src-16882fc997ef4fb4d945beb0f60497f0873fc99b.tar.bz2 |
Rephrase this code to be slightly less verbose.
TBR=glen
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/119157
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/widget/root_view.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc index fd42412..08b7e6e 100644 --- a/views/widget/root_view.cc +++ b/views/widget/root_view.cc @@ -915,12 +915,9 @@ void RootView::SetActiveCursor(gfx::NativeCursor cursor) { previous_cursor_ = NULL; } #elif defined(OS_LINUX) - if (cursor) { - gdk_window_set_cursor(GetWidget()->GetNativeView()->window, cursor); + gdk_window_set_cursor(GetWidget()->GetNativeView()->window, cursor); + if (cursor) gdk_cursor_destroy(cursor); - } else { - gdk_window_set_cursor(GetWidget()->GetNativeView()->window, NULL); - } #endif } |