* Source/x11/XGServerWindow.m (titlewindow::): Set NAME and ICON_NAME

WM properties (Patch #5014 from Yen-Ju Chen).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@22829 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2006-04-26 14:50:08 +00:00
parent 04738b5979
commit 031d24a0b4
6 changed files with 106 additions and 81 deletions

View file

@ -1,10 +1,10 @@
ANNOUNCE
********
1 ANNOUNCE
**********
This is version 0.10.2 of the GNUstep GUI Backend (`gnustep-back').
This is version 0.10.3 of the GNUstep GUI Backend (`gnustep-back').
What is the GNUstep GUI Backend?
================================
1.1 What is the GNUstep GUI Backend?
====================================
It is a back-end component for the GNUstep GUI Library. The
implementation of the GNUstep GUI Library is designed in two parts. The
@ -20,25 +20,25 @@ easily ported to other display systems.
Window's Systems. It works via a DPS emulation engine to emulate the
DPS functions required by the front-end system.
Noteworthy changes in version `0.10.2'
======================================
1.2 Noteworthy changes in version `0.10.3'
==========================================
The Backend can set UTF8 window titles where this is allowed.
Fixes. A lot of Cairo backend work.
Where can you get it? How can you compile it?
==============================================
1.3 Where can you get it? How can you compile it?
==================================================
The gstep-back-0.10.2.tar.gz distribution file has been placed at
<ftp://ftp.gnustep.org/pub/gnustep/core>.
The gstep-back-0.10.3.tar.gz distribution file has been placed at
`ftp://ftp.gnustep.org/pub/gnustep/core'.
Where do I send bug reports?
============================
1.4 Where do I send bug reports?
================================
Bug reports can be sent to the GNUstep bug list <bug-gnustep@gnu.org>
Obtaining GNU Software
======================
1.5 Obtaining GNU Software
==========================
Check out the GNUstep web site. (<http://www.gnustep.org/>) and the GNU
web site. (<http://www.gnu.org/>)
Check out the GNUstep web site. (`http://www.gnustep.org/') and the GNU
web site. (`http://www.gnu.org/')

View file

@ -1,3 +1,8 @@
2006-03-13 Adam Fedor <fedor@gnu.org>
* Source/x11/XGServerWindow.m (titlewindow::): Set NAME and ICON_NAME
WM properties (Patch #5014 from Yen-Ju Chen).
2006-03-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/cairo/XGCairoGlitzSurface.m

24
INSTALL
View file

@ -1,19 +1,19 @@
Installation
************
1 Installation
**************
Introduction
============
1.1 Introduction
================
This file documents the installation of the GNUstep Backend Library,
`gnustep-back'. If you are installing this package as part of the
GNUstep core package, read the file GNUstep-HOWTO for more complete
instructions on how to install the entire GNUstep package (including
this library). GNUstep-HOWTO is located at <http://www.gnustep.org>
this library). GNUstep-HOWTO is located at `http://www.gnustep.org'
You must have installed gnustep-gui before installing this library.
Configuration
=============
1.2 Configuration
=================
Configuration is performed by running the `configure' program at a
shell prompt. You may want to use some of the optional arguments to the
@ -37,7 +37,7 @@ backend, you could do this:
configure --enable-graphics=xlib --with-name=xlib
make install
make distclean
configure --enable-graphics=art --with-name=art
make install
@ -47,8 +47,8 @@ program:
defaults write NSGlobalDomain GSBackend libgnustep-xlib
Compilation
===========
1.3 Compilation
===============
To compile this library, type make. After this is complete, type make
install (make sure you are the root user). Some additional options you
@ -56,8 +56,8 @@ can use with make are `debug=yes' to make a debugging version of the
library and `shared=no' to make a static version of the library. See
the gstep-make package for more information on these options.
Installing
==========
1.4 Installing
==============
To install, type

93
NEWS
View file

@ -1,13 +1,18 @@
NEWS
****
1 NEWS
******
Noteworthy changes in version `0.10.2'
======================================
1.1 Noteworthy changes in version `0.10.3'
==========================================
Fixes. A lot of Cairo backend work.
1.2 Noteworthy changes in version `0.10.2'
==========================================
The Backend can set UTF8 window titles where this is allowed.
Noteworthy changes in version `0.10.1'
======================================
1.3 Noteworthy changes in version `0.10.1'
==========================================
The art graphics module is the default now. As was previously the case,
if the proper libraries are not found, the configuration will
@ -22,8 +27,8 @@ Cariro version 1.0, although you need to make some minor changes to the
Cairo library before it will work with GNUstep. Due to this, this module
is still considered beta. Ask on the mailing lists for help with this.
Noteworthy changes in version `0.10.0'
======================================
1.4 Noteworthy changes in version `0.10.0'
==========================================
The installed name of the backend now includes an interface version
number. This avoids the potential version mismatch between the
@ -32,8 +37,8 @@ frontend (GUI) library and the backend.
* Alpha blending was implemented for Windows, although it does not
seem to work on some machines.
Noteworthy changes in version `0.9.5'
=====================================
1.5 Noteworthy changes in version `0.9.5'
=========================================
* Added support for window alpha on X servers.
@ -41,8 +46,8 @@ Noteworthy changes in version `0.9.5'
* Some improvements to the Windows backend.
Noteworthy changes in version `0.9.4'
=====================================
1.6 Noteworthy changes in version `0.9.4'
=========================================
* Fast drawing on 8 bit displays was added (although it might only
speed things up on old X11 servers and/or remote servers).
@ -56,8 +61,8 @@ Noteworthy changes in version `0.9.4'
* Add internal window decoration handling.
Noteworthy changes in version `0.9.3'
=====================================
1.7 Noteworthy changes in version `0.9.3'
=========================================
* A number of W32 window event enhancements
@ -66,8 +71,8 @@ Noteworthy changes in version `0.9.3'
* libwraster is no longer checked for - image functions now in
frontend
Noteworthy changes in version `0.9.2'
=====================================
1.8 Noteworthy changes in version `0.9.2'
=========================================
* Art backend added support for grayscale, one-isblack colorspaces.
@ -77,27 +82,27 @@ Noteworthy changes in version `0.9.2'
* Better font and draw handling on Windows.
Noteworthy changes in version `0.9.1'
=====================================
1.9 Noteworthy changes in version `0.9.1'
=========================================
Color on 8 bit displays works correctly now. WindowMaker properties are
always set now in case another manager is emulating WindowMaker styles.
Noteworthy changes in version `0.9.0'
=====================================
1.10 Noteworthy changes in version `0.9.0'
==========================================
Some more improvements to copy/paste support following ICCCM
specifications (like COMPOUND_TEXT support).
Noteworthy changes in version `0.8.9'
=====================================
1.11 Noteworthy changes in version `0.8.9'
==========================================
* Much improved pasting support between X apps and GNUstep apps.
* Backend headers are no longer installed (now private).
Noteworthy changes in version `0.8.8'
=====================================
1.12 Noteworthy changes in version `0.8.8'
==========================================
Full multi-byte/unicode support for East Asian languages was added to
the xlib backend. The X11 server now supports use of the XIM input
@ -108,58 +113,58 @@ to Kazunobu Kuriyama.
* Art backend works with more versions of freetype.
Noteworthy changes in version `0.8.7'
=====================================
1.13 Noteworthy changes in version `0.8.7'
==========================================
Handle NSBezierPath glyph drawing in art backend. art backend compiles
with all freetype except 2.1.3 via ifdefs.
Noteworthy changes in version `0.8.6'
=====================================
1.14 Noteworthy changes in version `0.8.6'
==========================================
Bug fixes. See the gnustep-gui NEWS for changes.
Noteworthy changes in version `0.8.5'
=====================================
1.15 Noteworthy changes in version `0.8.5'
==========================================
Text system improvements. See the gnustep-gui NEWS for changes.
Noteworthy changes in version `0.8.3'
=====================================
1.16 Noteworthy changes in version `0.8.3'
==========================================
See the gnustep-gui NEWS for changes.
Noteworthy changes in version `0.8.2'
=====================================
1.17 Noteworthy changes in version `0.8.2'
==========================================
Improved font handling in art backend. Improved compositing with
transformations and clipping in art backend.
Noteworthy changes in version `0.8.1'
=====================================
1.18 Noteworthy changes in version `0.8.1'
==========================================
art (libart-based) backend added. Use ./configure -enable-graphics=art
to choose this backend.
Noteworthy changes in version `0.8.0'
=====================================
1.19 Noteworthy changes in version `0.8.0'
==========================================
Bug fixes.
Noteworthy changes in version `0.7.9'
=====================================
1.20 Noteworthy changes in version `0.7.9'
==========================================
Bug fixes.
Noteworthy changes in version `0.7.8'
=====================================
1.21 Noteworthy changes in version `0.7.8'
==========================================
Simplified backend selection using -enable-server and -enable-graphics.
Add -with-library-flags and -with-include-flags for adding additonal
flags. Set name with -with-name
Noteworthy changes in version `0.7.7'
=====================================
1.22 Noteworthy changes in version `0.7.7'
==========================================
First release. Most components extracted from xgps. The old backends,
xgps and xdps were depreciated in favor of this new backend, simply

14
README
View file

@ -1,12 +1,12 @@
README
******
1 README
********
This is version 0.10.2 of the GNUstep GUI Backend (`gnustep-back').
This is version 0.10.3 of the GNUstep GUI Backend (`gnustep-back').
Here is some introductory info to get you started:
Initial reading
===============
1.1 Initial reading
===================
* The file `ANNOUNCE' contains a very brief overview of the library.
It also tells you where to get the most recent version.
@ -15,8 +15,8 @@ Initial reading
* The file `INSTALL' gives instructions for installing the library.
How can you help?
=================
1.2 How can you help?
=====================
* Give us feedback! Tell us what you like; tell us what you think
could be better. Send us bug reports at <bug-gnustep@gnu.org>.

View file

@ -1538,6 +1538,21 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
}
XSetWMName(dpy, window->ident, &windowName);
XSetWMIconName(dpy, window->ident, &windowName);
{
/* Set _NET_WM_NAME and _NET_WM_ICON_NAME */
Atom _utf8 = XInternAtom (dpy, "UTF8_STRING", False);
Atom _net_wm_name = XInternAtom (dpy, "_NET_WM_NAME", False);
Atom _net_wm_icon_name = XInternAtom (dpy, "_NET_WM_ICON_NAME", False);
char *name = (char *)[window_title UTF8String];
XChangeProperty(dpy, window->ident, _net_wm_name, _utf8,
8, PropModeReplace,
(unsigned char *)name, strlen(name));
XChangeProperty(dpy, window->ident, _net_wm_icon_name, _utf8,
8, PropModeReplace,
(unsigned char *)name, strlen(name));
}
XFree(windowName.value);
}
}