@nbenitez ,
Thank you.
I will be using symbolic then.
Do I still have to write the conditionals or there is a guarantee that the icon will come as one type always?
I presume that 3-level if statement will still need to be written…
@nbenitez ,
Thank you.
I will be using symbolic then.
Do I still have to write the conditionals or there is a guarantee that the icon will come as one type always?
I presume that 3-level if statement will still need to be written…
You can use the cast macro directly, it returns NULL
if the cast failed, so you can either use the G_IS_xxx ()
macro or use the cast macro directly and then check the result for NULL
.
@nbenitez ,
I understand.
I meant to say that I couldn’t skip the comparison altogether, because GIcon returned from get_symbolic_icon() could still be any of the 3.
Right?
Thank you.
That is example code for you to use as a guidance, you’ll have to adapt it to your case.
@nbenitez ,
Yes, I understand. Thx.
One hopefully last question - is it possible to know the type of the volume (hard drive, CD-ROM, USB stick)?
This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.