'pupmessage' partial replacement for 'xmessage'

I have knocked up a very simple partial replacement for 'xmessage', named 'pupmessage', and converted some of the scripts in Woof to use it.

Woof commit:

Posted on 23 Mar 2012, 22:27


Posted on 24 Mar 2012, 5:36 by GCMartin
Is gcmessage and pupmessage the same?
Is pupmessage the same as gxmessage

Posted on 24 Mar 2012, 7:52 by BarryK
re gxmessage

I mentioned earlier that I don't like gxmessage.

Mostly it is because it renders windows with the text-cursor in the message -- right at the beginning. You can also click anywhere in the message and the cursor will move there.

This has happened because the author of gxmessage has used the wrong GTK widget for rendering the text, which is amateurish coding. It looks very unprofessional.

Posted on 24 Mar 2012, 10:49 by noryb009
text-cursor in gxmessage
This line in gxmessage.c can be changed to remove the text-cursor.

-	gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW(message_widget), TRUE);

+ gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW(message_widget), FALSE);

Posted on 28 Mar 2012, 2:29 by peebee
Xmessage link?
Hi Barry
I don't really understand why Precise doesn't have xmessage - but I am wondering whether you could include a link to pupmessage called xmessage just for compatibility with existing scripts otherwise they'll all have to be changed....
Sorry if this is a sill idea - but I did try it on Precise5.2.52 and it seemed to work.

Posted on 28 Mar 2012, 6:58 by disciple
why Precise doesn't have xmessage
> I don't really understand why Precise doesn't have xmessage

Because xmessage doesn't work with some foreign characters.

Except that some people say that it does if you define this resource...:
*international: true

Or maybe it is this:

Posted on 28 Mar 2012, 8:40 by BarryK
I played around with "*international: true", it didn't seem to make any difference.

Posted on 28 Mar 2012, 16:20 by BarryK
xmessage in Precise
Precise is supposed to have gxmessage, with xmessage a symlink to it. However, it seems that something somewhere is deleting it -- this is occurring in Woof during the build.
Another bug for me to fix.

Posted on 28 Mar 2012, 16:23 by BarryK
xmessage link to pupmessage
No, that is not going to fix it, as pupmessage is only a partial implementation of xmessage, and will be broken with some scripts.

Posted on 28 Mar 2012, 16:27 by BarryK
Unprofessional gxmessage
Thanks for that info about hiding the cursor in gxmessage -- I wonder why the author didn't do that?

But, my complaint doesn't end there. The calculation of box size is not very good. If you want to display a short message, it renders in a much bigger window, with lots of empty space, that again looks very unprofessional.

Posted on 29 Mar 2012, 4:03 by rodin.s
"*international: true"
Cyrillic is displayed in xmessage with "*international: true".