Changeset 38e2250


Ignore:
Timestamp:
Sep 18, 2010, 5:07:40 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
5f0bcde
Parents:
6a35938
git-author:
David Benjamin <davidben@mit.edu> (08/15/10 16:12:07)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:40)
Message:
Use bool instead of int in owl_window
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • window.c

    r5ca3fb7 r38e2250  
    302302}
    303303
    304 int owl_window_is_shown(owl_window *w)
     304bool owl_window_is_shown(owl_window *w)
    305305{
    306306  return w->shown;
    307307}
    308308
    309 int owl_window_is_realized(owl_window *w)
     309bool owl_window_is_realized(owl_window *w)
    310310{
    311311  return w->win != NULL;
    312312}
    313313
    314 int owl_window_is_toplevel(owl_window *w)
     314bool owl_window_is_toplevel(owl_window *w)
    315315{
    316316  return w->pan != NULL;
    317317}
    318318
    319 int owl_window_is_subwin(owl_window *w)
     319bool owl_window_is_subwin(owl_window *w)
    320320{
    321321  return w->pan == NULL && !w->is_screen;
  • window.h

    r06adc25 r38e2250  
    44#include <glib.h>
    55#include <glib-object.h>
     6
     7#ifdef HAVE_STDBOOL_H
     8#include <stdbool.h>
     9#else
     10#ifndef HAVE__BOOL
     11#define _Bool signed char
     12#endif
     13#define bool _Bool
     14#define false 0
     15#define true 1
     16#define __bool_true_false_are_defined 1
     17#endif  /* HAVE_STDBOOL_H */
    618
    719G_BEGIN_DECLS
     
    4355void owl_window_show_all(owl_window *w);
    4456void owl_window_hide(owl_window *w);
    45 int owl_window_is_shown(owl_window *w);
    46 int owl_window_is_realized(owl_window *w);
    47 int owl_window_is_toplevel(owl_window *w);
    48 int owl_window_is_subwin(owl_window *w);
     57bool owl_window_is_shown(owl_window *w);
     58bool owl_window_is_realized(owl_window *w);
     59bool owl_window_is_toplevel(owl_window *w);
     60bool owl_window_is_subwin(owl_window *w);
    4961
    5062void owl_window_set_cursor(owl_window *w);
Note: See TracChangeset for help on using the changeset viewer.