After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 61892 - Setting window group title and icon
Setting window group title and icon
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
1.3.x
Other All
: Normal normal
: Small API
Assigned To: gtk-bugs
gtk-bugs
Depends on: 59724
Blocks:
 
 
Reported: 2001-10-07 17:40 UTC by Havoc Pennington
Modified: 2013-10-06 05:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Havoc Pennington 2001-10-07 17:40:10 UTC
The properties such as title, icon, etc. on the group leader are 
properties for the entire application. We need to think through which 
of these should be set - certainly the icon should be - and maybe add API
to handle doing so.
Comment 1 Matthias Clasen 2001-10-08 06:43:02 UTC
This interpretation of group leader windows goes beyond what the
ICCCM codifies and should probably be included in a EHWM revision.
Comment 2 Havoc Pennington 2001-10-08 13:51:50 UTC
Agree, I actually brought it up a while back I think - everyone agreed
that the only possible interpretation of "group" is "an application" -
and Jim Gettys said that was the original intent. The ICCCM does say
that properties of the group leader are properties of the entire group.

Anyway, people seem to agree on this, but we do need to write it down.
Comment 3 Gregory Merchan 2002-02-16 21:54:37 UTC
The public mail with Gettys' reply is:
http://mail.gnome.org/archives/wm-spec-list/2001-September/msg00002.html

The WM_TRANSIENT_FOR and WM_CLASS properties suffice for dialog
management and application identification, so to interpret a window
group as an application is wasteful of the property regardless of
the original intent. Furthermore, that does not seem to be the intent
any longer:

  ICCCM 4.1.11.  Window Groups

  A set of top-level windows that should be treated from the
  user's point of view as related (even though they may belong
  to a number of clients) should be linked together using the
  window_group field of the WM_HINTS structure.
  ...

Since IBM does play a role in TOG and the IBM CUA guidelines
describe a object called a work area which would need a window
group-like property, it would seem that the intent of grouping
is a form of task management. That is also far more useful
than operations on entire application which may be instantiated
multiple times for different purposes.
Comment 4 Havoc Pennington 2002-02-17 06:54:10 UTC
Work area is IMO far too much API complexity. 

The group leader hint is already correct in the meaning "application"
for nearly all apps.
Comment 5 Gregory Merchan 2002-02-17 23:48:27 UTC
> Work area is IMO far too much API complexity. 

Something I was using 9 years ago on a i486/33MHz with 8MB of RAM would
introduce too much API complexity?

The API is ridiculously simple - gtk_init() can probably handle most
of it.
In that, an argument such as --window-group=WINDOW would be parsed and
if the
value were good would be used to set the group leader. Then programs, such
as the file manager, which are invoking other programs would use a
suitable
program window ID, a folder for the file manager, as the argument of
 --window-group. (A file manager would only do this from folders marked as
work areas.) Programs invoked in this way would probably opt out of
session management because the group leader would suffice for this.
As I can find no restriction on groups within groups, the implementation
change may be as simple as setting the group hint on the
_gdk_leader_window
with the group leader from invocation.

The potential complexity lies in changing group associations at run-time,
but that is hardly a desireable API when programs are as poorly integrated
as they are now.


> The group leader hint is already correct in the meaning "application"
> for nearly all apps.

It is useless as such. That interpretation is most certainly not
required by the ICCCM. There are other hints that suffice for what purpose
a user may desire to care about an application instead of his work.
Comment 6 Owen Taylor 2003-08-07 21:26:01 UTC
Complexity of API and user interface don't necessarily require
lots of processing power. :-). User's brains don't scale with
their CPU.

I'm a bit leary about using the word "application" to mean
"window group" in the GTK+ API, because:

 - The application/process distinction is a bit confusing
 - We added g_set_application_name() in 2.2, as something
   all *processes* were supposed to call.

I think 'window group' is a less ambiguous term.
Comment 7 Matthias Clasen 2013-10-06 05:45:11 UTC
closing old bugs