diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-02-03 20:23:19 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2005-02-03 20:23:19 +0000 |
commit | 7782bba2c87b79bff8fa4e62ed84b95b74574617 (patch) | |
tree | 79d989164f0c8ab27e825ef98ef3c47a14c39228 /examples/xftview.c | |
parent | c7e3de50fdaec8436fd78b229bbdf04c6c9271d3 (diff) | |
download | pango-7782bba2c87b79bff8fa4e62ed84b95b74574617.tar.gz |
Open the file with mode "wb", include cairo-png.h.
2005-02-03 Owen Taylor <otaylor@redhat.com>
* examples/cairosimple.c: Open the file with mode "wb", include
cairo-png.h.
* examples/xftview.c examples/cairoview.c: Set WM_NORMAL_HINTS to avoid
triggering a metacity bug.
* examples/cairoview.c: Include cairo-xlib.h.
* configure.in: Add checks for the Win32 Cairo backend. (not committing
the code yet).
* examples/Makefile.am pango/Makefile.am: add CAIRO_CFLAGS.
* pango/pangocairo-fc.h pango/pangocairo-fcfont.c
pango/pangocairo-fcfontmap.c pango/pangofc-fontmap.[ch]: Rework
Cairo/Fontconfig backend to use the current Cairo API. Make
some PangoFcFontMap changes to enable that.
* pango/pango/pangocairo-private.h pango/pangocairo-render.c:
Update for cairo_font_t changes.
Diffstat (limited to 'examples/xftview.c')
-rw-r--r-- | examples/xftview.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/xftview.c b/examples/xftview.c index c559c8ee..0bfcec04 100644 --- a/examples/xftview.c +++ b/examples/xftview.c @@ -96,6 +96,7 @@ int main (int argc, char **argv) XEvent xev; unsigned long bg; int width, height; + XSizeHints size_hints; g_type_init(); @@ -126,6 +127,13 @@ int main (int argc, char **argv) get_options_string (), NULL, NULL, 0, NULL, NULL, NULL); + memset ((char *)&size_hints, 0, sizeof (XSizeHints)); + size_hints.flags = PSize | PMaxSize; + size_hints.width = width; size_hints.height = height; /* for compat only */ + size_hints.max_width = width; size_hints.max_height = height; + + XSetWMNormalHints (display, window, &size_hints); + while (1) { if (!XPending (display) && update_region) |