Re: [gtk-osx-devel] Problem with dialog box icons
- From: Jim Charlton <jim jimc dyndns org>
- Cc: gtk-osx-devel-list gnome org
- Subject: Re: [gtk-osx-devel] Problem with dialog box icons
- Date: Thu, 30 Jan 2014 17:08:11 -0800
On 14-01-30 11:55 AM, John Ralls wrote:
On Jan 30, 2014, at 10:22 AM, Jim Charlton <jim jimc dyndns org> wrote:
On 14-01-30 09:05 AM, Ronan Waide wrote:
On 01/30/2014 04:42 PM, Jim Charlton wrote:
I have recently built gtkmm (jhbuild, meta-gtk-osx-bootstrap and then meta-gtk-osx-gtk3, and finally,
meta-gtk-osx-gtkmm3) on a MAC MAVERICKS machine. All went well. I then recompiled a substantial program.
After some minor adjustments, the code executed as previously compiled on a MAC LION machine... but... icon
images do not appear in the dialog boxes and when run from a console window I get the following error message.
Gtk-WARNING **: Could not find the icon 'dialog-warning-symbolic'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
hicolor is in the .../gtk/inst/share/icons directory... but it seems like it is ignored.
If I install the hicolor theme to /usr/local/share, then this message goes away but the icons are still
missing.
Anyone have any hints as to how I can get the icons back?
sounds like this bug:
https://gramps-project.org/bugs/view.php?id=7356
cheers,
Waider.
Thanks for the link. I have read all of the comments there and perused the documentation cited. It is an
interesting academic discussion... but I do not see clearly how I can edit my code to adjust to the new
reality of the deprecated GTK stock items. SInce I am working with gtkmm code, it is one level of
abstraction above the GTK+ code. So what do I do with lines like:
Gtk::MessageDialog dialog("Dialog message", FALSE, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_CLOSE);
to get a warning icon to appear in the dialog box? Any further hints?
I'm actually trying to figure that out now. In the case of the Gramps bug, most of the icons do appear. At
the moment I'm working the angle that there are some icons which are provided by some other package besides
hicolor-icon-theme; gnome-icon-theme seems a strong possiblity.
Regards,
John Ralls
I checked on installations of my program on various MAC OS versions.
Code that was compiled last year on a MAC LION OS using gtk-osx that had
the gtk stock items, displays the dialog-warning icon. When I search
for the icon image on the machine where the program was compiled, I find
it in .../gtk/source/gtk+-3.0/gtk/stock-icons/48/dialog-warning.png and
nowhere else. If I move the compiled code to a MAC MOUNTAIN LION
machine the icon also displays but that machine does not have a copy of
the dialog-warning.png file anywhere that I can find. Do icon images go
into a database or something??? On a linux (Ubuntu OS) using the high
contrast theme, the icon that displays is the one that is identical to
that found at
/usr/share/icons/HighContrast/48x48/status/dialog-warning.png. The
compiled code on Ubuntu is that which was compiled today with updated
Ubuntu packages (not sure if stock items are there or not).
What I find strange is that on a MAC machine (Mavericks) with the
hicolor theme installed, my code gives no error message about missing
dialog-warning image.. But the icon image is still a red X instead of
the correct image.
Hope some of this is helpful...
jim... Jim Charlton
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]