Post 3463898 by cagatayy@mastodon.social
(DIR) More posts by cagatayy@mastodon.social
(DIR) Post #3446455 by PhotonQyv@mastodon.xyz
2019-01-27T23:39:22Z
0 likes, 0 repeats
Ok, I give up, on the understanding that there's no such thing as a dumb question...Given this code fragment:var provider = new Gtk.CssProvider ();provider.load_from_resource ("/com/github/bleakgrey/tootle/app.css");Where is the 'app.css' file stored that the second line loads.Really not up on my #Gtk-3.0
(DIR) Post #3460883 by PhotonQyv@mastodon.xyz
2019-01-28T09:29:12Z
0 likes, 0 repeats
Had a thought last night, is it baked in to the built executable at compile time?#Gtk
(DIR) Post #3461161 by cagatayy@mastodon.social
2019-01-28T09:47:45Z
0 likes, 0 repeats
@PhotonQyv If I understand correctly, yes. At least in the case of Tootle, the CSS file is added as a GResource (https://github.com/bleakgrey/tootle/blob/09119b4584427d47bf60d39263bcfe121d9d3a92/data/com.github.bleakgrey.tootle.gresource.xml#L4) and GResource documentation tells that “during the build the files are combined into a binary bundle that is linked into the executable” (https://developer.gnome.org/gio/stable/GResource.html#GResource.description).
(DIR) Post #3462119 by PhotonQyv@mastodon.xyz
2019-01-28T10:29:30Z
0 likes, 0 repeats
@cagatayyThank you, it's good to get confirmation of what suddenly dawned on me after an hour or two of trying to find the file itself. Since I couldn't see it being copied anywhere in the install step.I've not got enough hair to keep pulling it out (;*
(DIR) Post #3463765 by PhotonQyv@mastodon.xyz
2019-01-28T11:37:28Z
0 likes, 0 repeats
@cagatayy That's got it, now I have a #Tootle with my preferred font (:*That was actually a lot easier than I thought it would be, too (:*Just a case of giving the label that holds the toot's contents a CSS name, and putting a selector in the app.css file (:*Thanks for your help.
(DIR) Post #3463898 by cagatayy@mastodon.social
2019-01-28T11:42:25Z
0 likes, 0 repeats
@PhotonQyv No problem :)