Re: [gtk-osx-devel] Problem with dialog box icons
On 14-02-10 10:48 AM, John Ralls wrote: On Feb 10, 2014, at 9:42 AM, Jim Charlton j...@jimc.dyndns.org wrote: The difference in the two installations, one of which displays the icons, the other does not, is the presence of /usr/share/icons/gnome/* and /usr/share/icons/hicolor/* on the machine that does display the icons. Copying these directories from their position at 'gtk-prefix'/gtk/inst.share/icons to /usr/share/icons/ allows the program to display icons (black and white). Is there a flag for the compiler or an environment variable that I need to set to get the program to find the themes/icons at 'gtk-prefix'/gtk/inst/share/icons instead of /usr/share/icons ??? $XDG_DATA_DIRS, which is automatically set up by jhbuild shell and by the bundle launcher script. Regards, John Ralls H... I am not compiling my program within a jhbuild shell. I get a bunch of problems if I try to do that. And setting the $XDG_DATA_DIRS either in the bash shell or in the Makefile does not seem to work. If I put gtk_icon_theme_get_search_path() in my code and print the result it gives me /Users/jim/.local/share/icons which does not exist. I am not sure why the compiled code gives this path as it is not in my environment variables anywhere. ?? ___ Gtk-osx-devel-list mailing list Gtk-osx-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-osx-devel-list
Re: [gtk-osx-devel] Problem with dialog box icons
On 14-02-02 04:49 PM, John Ralls wrote: On Feb 1, 2014, at 8:19 PM, John Ralls jra...@ceridwen.us wrote: On Feb 1, 2014, at 3:50 PM, Jim Charlton j...@jimc.dyndns.org wrote: I edited the offending line in gtkselection.c to return FALSE; and then meta-gtk-osx-gtk3 built just fine. jim... Good. My faith in you is restored. ;-) I'll try to get that fixed, backported, and patched tomorrow. Matthias Classen fixed it right *after* releasing 3.10.7. I’ve added his change set as a patch so builds should be automatic. Those who already have a 3.10.7 checkout will need to stop the build and pick “6: wipe directory and start over” to apply the patch. Regards, John Ralls A follow-up on the problem of missing MeassageDialog icons. Even with the new patches (gtk+-3.10.7 gtkmm-3.10.1), I could not get the icons to appear. I was building and using meta-gtk-osx-gtk3 and meta-gtk-osx-gtkmm3. No icons. I then added 'jhbuild build meta-gtk-osx-core-themes. After that, compiling my test code containing Gtk::MessageDialog dialog(Dialog message, FALSE, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_CLOSE); dialog.run(); gave a black and white 'dialog-warning' icon. Not great but good enough. jim... Jim Charlton ___ Gtk-osx-devel-list mailing list Gtk-osx-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-osx-devel-list
Re: [gtk-osx-devel] Problem with dialog box icons
On 14-02-01 08:19 PM, John Ralls wrote: On Feb 1, 2014, at 3:50 PM, Jim Charlton j...@jimc.dyndns.org wrote: I edited the offending line in gtkselection.c to return FALSE; and then meta-gtk-osx-gtk3 built just fine. jim... Good. My faith in you is restored. ;-) I'll try to get that fixed, backported, and patched tomorrow. Regards, John Ralls Don't be too quick with the praise. I am still struggling. After building meta-gtk-osx-gtk3, I built meta-gtk-osx-gtkmm3, also with no problems. But when I compile a simple program, with a dialog box with Gtk::MESSAGE_WARNING, I get the same old run time error (no compiler error) and the dialog box does not have the proper icon. :-( I am using gtkmm code to create the dialog box ... as in... Gtk::MessageDialog dialog2(Dialog Message, FALSE, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_CLOSE); I will try with the gtk+ code tomorrow and see how that goes. jim... ___ Gtk-osx-devel-list mailing list Gtk-osx-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-osx-devel-list
Re: [gtk-osx-devel] Problem with dialog box icons
On 14-01-30 11:55 AM, John Ralls wrote: On Jan 30, 2014, at 10:22 AM, Jim Charlton j...@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 ___ Gtk-osx-devel-list mailing list Gtk-osx-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-osx-devel-list