glk_set_window(NULL) should not be allowed
authorPhilip Chimento <philip.chimento@gmail.com>
Mon, 25 May 2009 18:46:49 +0000 (18:46 +0000)
committerPhilip Chimento <philip.chimento@gmail.com>
Mon, 25 May 2009 18:46:49 +0000 (18:46 +0000)
git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@92 ddfedd41-794f-dd11-ae45-00112f111e67

libchimara/window.c

index 5fd2447421d0d60d7af4d19842ad083b9486e659..4db770659a952fff583c673cb74f7770588c3090 100644 (file)
@@ -873,12 +873,13 @@ glk_window_clear(winid_t win)
  * @win: A window.
  *
  * Sets the current stream to @win's window stream. It is exactly equivalent to
- * <code>#glk_stream_set_current(#glk_window_get_stream(@win))</code>.
+ * |[ #glk_stream_set_current(#glk_window_get_stream(@win)) ]| 
+ * See <link linkend="chimara-Streams">Streams</link>.
  */
 void
 glk_set_window(winid_t win)
 {
-       VALID_WINDOW_OR_NULL(win, return);
+       VALID_WINDOW(win, return);
        glk_stream_set_current( glk_window_get_stream(win) );
 }