On Mon, 9 Sep 2013, Ignacio Diaz-Emparanza wrote:
On 06/09/13 19:22, Allin Cottrell wrote:
>
> OK, let's see if we can get to the bottom of this. Here's how the first
> five items on the main-window Help menu have been specified in the gretl
> code to date:
>
> 1. ["manual" icon] Command reference
> 2. [no icon] Function reference
> ----
> 3. [PDF icon] User's Guide
> 4. [PDF icon] Command reference
> 5. [PDF icon] Keyboard shortcuts
>
> (And that's how I'm seeing them, on all the various gretl builds I've
> worked with.)
>
> But here's how they look for Ignacio (gretl CVS compiled on Ubuntu 12.04):
>
> 1. [gretl icon] Command reference
> 2. [no icon] Function reference
> ----
> 3. [gretl icon] User's Guide
> 4. [gretl icon] Command reference
> 5. [gretl icon] Keyboard shortcuts
>
> That is, both the "manual" icon and the PDF icon are replaced by the
> generic gretl icon, destroying the visual distinction between the two help
> formats.
>
> Now, I have no idea why the menu looks like that for Ignacio. Is anyone
> else seeing the same? Just maybe, the xpm files that underlie the gretl
> icons have got jumbled somehow. It might be worth deleting all the .xpm
> files in the "pixmaps" directory in the gretl source tree and reloading
> them from the CSV repository, and see if that makes any difference.
I did it.
>
> While I don't understand the source of the incorrect icons in Ignacio's
> build, I decided to make a small change in CVS anyway. Since all the PDF
> files have the same icon, it seemed inconsistent that entry 2 didn't have
> the same icon as entry 1. In addition the "manual" icon is not all that
> great, so I've replaced it with the stock help icon. So in CSV as of now
> here's how those 5 items should look:
>
> 1. [help icon] Command reference
> 2. [help icon] Function reference
> ----
> 3. [PDF icon] User's Guide
> 4. [PDF icon] Command reference
> 5. [PDF icon] Keyboard shortcuts
And now this is what I see:
1. [help icon] Command reference
2. [help icon] Function reference
----
3. [gretl icon] User's Guide
4. [gretl icon] Command reference
5. [gretl icon] Keyboard shortcuts
So is this what's going on: whenever we specify a "native gretl" icon for
a menu item, you're getting the gretl (the girl) icon, regardless of which
one was specified? What do you get as the icon for "Send to..." under the
main-window File menu? That's a gretl-supplied icon, it should appear as a
little envelope. (I notice from your screenshot, however, that the PDF
icon is showing up OK on the toolbar at the bottom of the main window.)
In the output of 'make' the unique reference I see about the
pixmap directory
is about gretl-logo.xpm. It seems that this icon is being copied to the
the directory where gretl is installed to. The line is:
/usr/bin/install -c -m 644 ../pixmaps/gretl-logo.xpm /opt/gretl/share/gretl
but I don't see anything about the file ../pixmaps/mini.pdf.xpm
It seems it is not being copied.
It doesn't have to be copied anywhere. Pixmaps such as mini.pdf.xpm are
"built in" -- they're included in gui2/toolbar.c and become part of the
program.
So far, I'm completely mystified. I did recently try building CVS gretl on
Ubuntu (an older version, 10.10) and the icons come out as intended.
Just in case it matters, are you building against gtk 2 or gtk 3?
(The default is gtk 2 but there's an --enable-gtk3 option to configure.)
And what does the relevant one of the following commands show?
pkg-config --modversion gtk+-2.0
pkg-config --modversion gtk+-3.0
Allin