[PATCH] WM_CLASS default for gtk




------- Forwarded Message

>From ograf@fga.de Thu Dec 11 01:22:52 1997
Return-Path: <ograf@fga.de>
Delivered-To: petm@xcf.berkeley.edu
Received: (qmail 3938 invoked from network); 11 Dec 1997 01:22:48 -0000
Received: from slave1.komtron.com (uucp@194.77.5.34)
  by scam.xcf.berkeley.edu with SMTP; 11 Dec 1997 01:22:48 -0000
Received: (from uucp@localhost) by slave1.komtron.com (8.8.7/8.7.3) with UUCP id CAA07344; Thu, 11 Dec 1997 02:35:25 +0100
Received: by fga.de (8.8.5/8.8.5) id NAA28502
Received: by fga.de (8.8.5/8.8.5) id NAA00381
To: Peter Mattis    <petm@xcf.berkeley.edu>
Cc: Spencer Kimball <spencer@xcf.berkeley.edu>,
        Josh MacDonald <jmacd@xcf.berkeley.edu>
Subject: [PATCH] WM_CLASS default for gtk
X-Face: [8r}|"6`WFUT0kiC9dBT%edO~lI5Gwog0Z@Cl=Inx|2F=+DjY#0nGtclM)9lU
        c/8JJ%b&&^:&pWh&nYlQbGSk=WdL^%f!<6a:?n)V_snw7Zc+AW10az=||e8Kv
        1PV49Qe64*68G2`)M8O$mlLQ\!O}$d8]T\L?i@$;=WA~0B[k)O.^T'x?O^=EX
        %=gt6(:hG!-|%$EZGq-Dn6r%N6xqOC4voztttHxOMp!2$o+qPAcT2k&dgO~`%
        kVcW7C<3hK[g9vVpk'#B2(f"pN,jBh`
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: multipart/mixed;
 boundary="Multipart_Wed_Dec_10_13:07:17_1997-1"
Content-Transfer-Encoding: 7bit
From: Oliver Graf <ograf@fga.de>
Date: 10 Dec 1997 13:07:17 +0100
Message-ID: <m3wwhdieq2.fsf@indie.fga-intern.de>
Lines: 48
X-Mailer: Gnus v5.5/XEmacs 20.4(beta1) - "Century"

- --Multipart_Wed_Dec_10_13:07:17_1997-1
Content-Type: text/plain; charset=US-ASCII

Hi again!

Perhaps you don't like this patch (if this is the cause for not adding it),
but it would be nice if you can explain me why you are ignoring it (a "we
don't like it, because the X specification should be ignored" is enough).

As I see it, a NULL in the class hint is evil (if I misinterprete something
correct me, please).

If you just don't have added the patch, because there are to many
patches. Ignore the two first paragraphs.

Again a short description: The patch sets the default class to the capitalized 
progname and so avoids the nasty NULL (messing up WindowMaker for
example). Yes I know you can (must) set the class with '-class', but there a
lots of mails on the wmaker-list showing that nobody else knows. So a default
would cause a massive FAQ reduction on this list ;-)

The patch *should* merge with gtk+-cvs-971208. If it does not, it should be
fairly easy do merge it by hand.

Regards,
  Oliver.

- --Multipart_Wed_Dec_10_13:07:17_1997-1
Content-Type: text/plain; charset=US-ASCII

*** gtk+971025/gdk/gdk.c.orig	Sat Oct 25 23:08:49 1997
- --- gtk+971025/gdk/gdk.c	Sat Oct 25 23:10:13 1997
***************
*** 364,369 ****
- --- 364,374 ----
  					  10, 10, 10, 10, 0, 0 , 0);
    class_hint = XAllocClassHint();
    class_hint->res_name = gdk_progname;
+   if (gdk_progclass==NULL)
+     {
+       gdk_progclass=strdup(gdk_progname);
+       gdk_progclass[0]=toupper(gdk_progclass[0]);
+     }
    class_hint->res_class = gdk_progclass;
    XSetClassHint(gdk_display, gdk_leader_window, class_hint);
    XSetCommand(gdk_display, gdk_leader_window, argv_orig, argc_orig);

- --Multipart_Wed_Dec_10_13:07:17_1997-1--


------- End of Forwarded Message



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]