Giter Club home page Giter Club logo

Comments (9)

SteveGilham avatar SteveGilham commented on August 25, 2024

On the theme issue -- I used whatever the default out-of-the-box theme is for both the GTK2 and GTK3 installs in the screen shots I took, but I expect the answer to be "any theme that includes images for the GTK stock icon names as listed". Having not played with that side of things, I didn't expect that there would be no graceful fallback to the defaults for incomplete themes.

The tree view doesn't auto-expand; you have to drill down manually to get to the function you want to explore.

from altcover.

bentayloruk avatar bentayloruk commented on August 25, 2024

Thanks for the response Steve. I'm a newbie with GTK, so will try and figure out what is going on. My reading suggests that Adwaita is the default theme for GTK+3, but maybe it's messed in my install or something. Will do some digging.

I did try and drill down on the tree, but nothing happens. By drill down, I mean double click on the coverage.xml. I also tried a right click to see if there was an expand option. However, maybe this is related to the theme issue. I'll try and get that fixed first and then see what happens.

from altcover.

SteveGilham avatar SteveGilham commented on August 25, 2024

Having checked the current GTK+3 documentation on the subject, it looks like this may be what is going on:

Since GTK+ 3.10, stock items are deprecated.

The only icon that comes through, the one for font selection, is documented as

"gtk-select-font" ... has been deprecated since version 3.10 and should not be used in newly-written code.

whereas the others are like

"gtk-open" ... has been deprecated since version 3.10 and should not be used in newly-written code. Use named icon "document-open" or the label "_Open".

so my guess is that that the theme instance you are using has icons with the old names, but GTK is translating the old names in the code to the new names where new preferred names are documented, and those new names aren't in the theme.

Since the standard message-box dialogs also use stock items for status icons (warning, information, etc.) , this might be interfering with any messages raised about the coverage file -- waiting on a message-box that's a no-show would explain the non-responsive behaviour you are seeing.

from altcover.

SteveGilham avatar SteveGilham commented on August 25, 2024

As this is not something I can repro locally, here's a build of the visualizer that will produce some debug trace information about what it finds in the way of stock items (lines on the console starting DEBUG: ); it will also dump message and severity for any message boxes that it is about to display.

visualizer.zip

MD5 : b531 3d17 269d ec1f 1a60 4f0e 15ca 9429
SHA : a44e d7c0 4e48 658b 2895 e98d 5617 ad31 50fe c1cd
SHA2-256: d241 e91e c228 ecb2 23d5 4e1c c9cd 401a 1b32 da6c 06a5 74fd 3ff8 e7f9 d9d3 5bf6

unzip and dotnet path/to/AltCover.Visualizer.dll to run. It may give some clues about detecting what's happening so it can be coded around.

from altcover.

bentayloruk avatar bentayloruk commented on August 25, 2024

Amazing, thanks Steve. I was just sitting here with the morning coffee, trying to figure out the themes. Can't believe I'm struggling with getting a theme to install and work!

Anyway, I've done what you asked and this is the output from just running the visualizer. I've not then clicked on anything or tried to do anything with the visualizer.

~/Downloads/_Publish.visualizer
09:44 $ dotnet AltCover.Visualizer.dll

(AltCover.Visualizer:37259): Gtk-WARNING **: 09:44:26.806: Error loading theme icon 'document-open' for stock: Icon 'document-open' not present in theme Adwaita

(AltCover.Visualizer:37259): Gtk-WARNING **: 09:44:26.843: Error loading theme icon 'view-refresh' for stock: Icon 'view-refresh' not present in theme Adwaita

(AltCover.Visualizer:37259): Gtk-WARNING **: 09:44:26.843: Error loading theme icon 'help-about' for stock: Icon 'help-about' not present in theme Adwaita

(AltCover.Visualizer:37259): Gtk-WARNING **: 09:44:26.844: Error loading theme icon 'application-exit' for stock: Icon 'application-exit' not present in theme Adwaita
DEBUG: Stock.Open -> "gtk-open"
DEBUG:  "gtk-zoom-out"
DEBUG:  "gtk-zoom-in"
DEBUG:  "gtk-zoom-fit"
DEBUG:  "gtk-zoom-100"
DEBUG:  "gtk-yes"
DEBUG:  "gtk-unindent"
DEBUG:  "gtk-undo"
DEBUG:  "gtk-underline"
DEBUG:  "gtk-undelete"
DEBUG:  "gtk-strikethrough"
DEBUG:  "gtk-stop"
DEBUG:  "gtk-spell-check"
DEBUG:  "gtk-sort-descending"
DEBUG:  "gtk-sort-ascending"
DEBUG:  "gtk-select-font"
DEBUG:  "gtk-select-color"
DEBUG:  "gtk-select-all"
DEBUG:  "gtk-save-as"
DEBUG:  "gtk-save"
DEBUG:  "gtk-revert-to-saved"
DEBUG:  "gtk-remove"
DEBUG:  "gtk-refresh"
DEBUG:  "gtk-redo"
DEBUG:  "gtk-quit"
DEBUG:  "gtk-properties"
DEBUG:  "gtk-print-warning"
DEBUG:  "gtk-print-report"
DEBUG:  "gtk-print-preview"
DEBUG:  "gtk-print-paused"
DEBUG:  "gtk-print-error"
DEBUG:  "gtk-print"
DEBUG:  "gtk-preferences"
DEBUG:  "gtk-paste"
DEBUG:  "gtk-page-setup"
DEBUG:  "gtk-orientation-reverse-portrait"
DEBUG:  "gtk-orientation-reverse-landscape"
DEBUG:  "gtk-orientation-portrait"
DEBUG:  "gtk-orientation-landscape"
DEBUG:  "gtk-open"
DEBUG:  "gtk-ok"
DEBUG:  "gtk-no"
DEBUG:  "gtk-new"
DEBUG:  "gtk-network"
DEBUG:  "gtk-missing-image"
DEBUG:  "gtk-media-stop"
DEBUG:  "gtk-media-rewind"
DEBUG:  "gtk-media-record"
DEBUG:  "gtk-media-previous"
DEBUG:  "gtk-media-play"
DEBUG:  "gtk-media-pause"
DEBUG:  "gtk-media-next"
DEBUG:  "gtk-media-forward"
DEBUG:  "gtk-leave-fullscreen"
DEBUG:  "gtk-justify-right"
DEBUG:  "gtk-justify-left"
DEBUG:  "gtk-justify-fill"
DEBUG:  "gtk-justify-center"
DEBUG:  "gtk-jump-to"
DEBUG:  "gtk-italic"
DEBUG:  "gtk-info"
DEBUG:  "gtk-index"
DEBUG:  "gtk-indent"
DEBUG:  "gtk-home"
DEBUG:  "gtk-help"
DEBUG:  "gtk-harddisk"
DEBUG:  "gtk-goto-top"
DEBUG:  "gtk-goto-last"
DEBUG:  "gtk-goto-first"
DEBUG:  "gtk-goto-bottom"
DEBUG:  "gtk-go-up"
DEBUG:  "gtk-go-forward"
DEBUG:  "gtk-go-down"
DEBUG:  "gtk-go-back"
DEBUG:  "gtk-fullscreen"
DEBUG:  "gtk-floppy"
DEBUG:  "gtk-find-and-replace"
DEBUG:  "gtk-find"
DEBUG:  "gtk-file"
DEBUG:  "gtk-execute"
DEBUG:  "gtk-edit"
DEBUG:  "gtk-dnd-multiple"
DEBUG:  "gtk-dnd"
DEBUG:  "gtk-disconnect"
DEBUG:  "gtk-discard"
DEBUG:  "gtk-directory"
DEBUG:  "gtk-dialog-warning"
DEBUG:  "gtk-dialog-question"
DEBUG:  "gtk-dialog-info"
DEBUG:  "gtk-dialog-error"
DEBUG:  "gtk-dialog-authentication"
DEBUG:  "gtk-delete"
DEBUG:  "gtk-cut"
DEBUG:  "gtk-copy"
DEBUG:  "gtk-convert"
DEBUG:  "gtk-connect"
DEBUG:  "gtk-color-picker"
DEBUG:  "gtk-close"
DEBUG:  "gtk-clear"
DEBUG:  "gtk-cdrom"
DEBUG:  "gtk-caps-lock-warning"
DEBUG:  "gtk-cancel"
DEBUG:  "gtk-bold"
DEBUG:  "gtk-apply"
DEBUG:  "gtk-add"
DEBUG:  "gtk-about"
DEBUG: false <null>
DEBUG: true "gtk-open"
DEBUG: false <null>

from altcover.

SteveGilham avatar SteveGilham commented on August 25, 2024

The big list of DEBUG: "gtk-*" items is a dump of the result of a call to gtk_stock_list_ids; which means that we're still getting presented the old names and nothing else, with no inkling that anything is amiss.

Working from the other end of the problem ("is it plugged in?"), the document-open icon should be present in various sizes in directories /usr/share/icons/Adwaita/##x##/actions as document-open.png, and the index.theme should include at least one of those directories in the directory list. Any /usr/share/icons/default/index.theme should ideally only contain an "inherit from Adwaita" entry.

from altcover.

bentayloruk avatar bentayloruk commented on August 25, 2024

we're still getting presented the old names and nothing else, with no inkling that anything is amiss.

Understood.

the document-open icon should be present in various sizes in directories /usr/share/icons/Adwaita/##x##/actions

/usr/share/icons/Adwaita/ does not exist. There is one theme directory in there called hicolor and it only contains /##x##/apps directories.

It's clear that I don't really understand what is supposed to go where. I installed gtk-chtheme and installed some themes (in ~/.themes/). chtheme could see them and I could select different themes for that, but no joy with visualizer. However, it's not clear to me if that is just for GTK2. Anyway, I'm thinking I should close this issue for now, until I have a grip on my GTK installation and configuration. I don't want to waste your time on tutoring me in GTK!

from altcover.

SteveGilham avatar SteveGilham commented on August 25, 2024

Fair enough. I've been learning about these nuances, now, too.

from altcover.

bentayloruk avatar bentayloruk commented on August 25, 2024

Thanks for all your help Steve. I'll ping you if/when I manage to figure it out.

from altcover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.