Re: gtk3 (GtkTextView) and MacOS

2015-02-28 Thread Roger Davis
Hi Jim, I suspect this may have something to do with how gtk3/gnome3 is built and/or configured on the Mac. I have no experience with the jhbuild environment and have always used the MacPorts packages, but have never made any attempt to dig into how the latter are built. As I said, I was

Re: gtk3 (GtkTextView) and MacOS

2015-02-27 Thread Jim Charlton
Roger: I tried your font changing solution to alter the font for my gtk3 application. I was unable to change the font by putting gtk-font-name in settings.ini regardless of where I put that file or the value of the environment variable XDG_CONFIG_HOME... or the actual font name. I found

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Jim Charlton
I had a similar problem with gtk3 and gtkmm3 programs on MacOS X (Yosemite) and Linux (Ubuntu). I am using jhbuild to install the gtk/gtkmm libraries on the Mac. The UI looks fine on Linux but not so good on the Mac. The problem appears to be the theme. On linux (Ubuntu), using

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Roger Davis
Wow, here's a shocker, to my own stupid self at least -- it appears that gtk3 is tied into the native MacOS font system! Thanks for the tip on fontconfig/fc-cache, Allin. Once I looked into this it became apparent that fontconfig had known all along about all kinds of fonts, but none of the

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Jim Charlton
Roger: I don't know if it will help or not... but I have used Gtk::TextView, the gtkmm wrapper for GtkTextView and have changed the fonts with the class method override_font. For example Gtk::TextView tv1; Pango::FontDescription *pfd = new Pango::FontDescription(Sans 8);

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Daniel Kasak
Sorry to wander slightly away from the original topic, but I'm also building gtk3 for OSX using jhbuild, and I've found a bunch of issues with themes and icons and fonts, as per the above discussion. I'm wondering where the 'responsibility' of setting up a nice vanilla configuration lies? Would

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Roger Davis
Thanks, Jim, your hint on setting XDG_CONFIG_HOME led me to a bunch of other useful info on the web that I have been slogging through all morning now. I have had some success but am still far from the finish line. On my Mac, if I set XDG_CONFIG_HOME to /opt/local/share/themes/HighContrast,

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Allin Cottrell
On Wed, 25 Feb 2015, Roger Davis wrote: Thanks, Jim, your hint on setting XDG_CONFIG_HOME led me to a bunch of other useful info on the web that I have been slogging through all morning now. I have had some success but am still far from the finish line. On my Mac, if I set XDG_CONFIG_HOME to

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Roger Davis
Hi all, So I finally have my problem fully solved for now, and here is a summary of the pertinent points. Beware that some of this may only apply to the MacPorts install of gtk3, I have no experience with any other type of gtk3 install on MacOS. (1) I had to set my XDG_CONFIG_HOME

gtk3 (GtkTextView) and MacOS

2015-02-24 Thread Roger Davis
Hi all, I have an application suite built on gtk3 which is targeted at both Linux (specifically CentOS 6 and 7) and MacOS X (Yosemite). Although the software is usable under MacOS I am having an ugly cosmetic problem there with my GtkTextView widgets, and other visual details are also not