From: <nu...@co...> - 2012-06-21 10:22:41
|
matobinder 2012-06-21 01:47:25 +0900 (Thu, 21 Jun 2012) New Revision: 2a029d865dc9cc25c84f52b718ede0408b3111b6 https://github.com/ruby-gnome2/ruby-gnome2/commit/2a029d865dc9cc25c84f52b718ede0408b3111b6 Merged dd0c498: Merge pull request #115 from matobinder/master Log: Removed extra check for NIL, RVAL2BOXED() already checks this. Thanks for the comment kou Modified files: gtk2/ext/gtk2/rbgdkwindow.c Modified: gtk2/ext/gtk2/rbgdkwindow.c (+1 -1) =================================================================== --- gtk2/ext/gtk2/rbgdkwindow.c 2012-06-20 07:19:53 +0900 (2d68103) +++ gtk2/ext/gtk2/rbgdkwindow.c 2012-06-21 01:47:25 +0900 (d764599) @@ -602,7 +602,7 @@ static VALUE rg_set_cursor(VALUE self, VALUE cursor) { gdk_window_set_cursor(_SELF(self), - (GdkCursor*)(NIL_P(cursor) ? NULL : RVAL2BOXED(cursor, GDK_TYPE_CURSOR))); + RVAL2BOXED(cursor, GDK_TYPE_CURSOR)); return self; } #endif |