FLTK logo

Re: [fltk/fltk] test/icon demo could use some improvements (Issue #297)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] test/icon demo could use some improvements (Issue #297) Albrecht Schlosser Nov 26, 2021  
 

Great enhancements, but I suggest to make the initialization simpler and easier to understand:

   window.show(argc,argv);
+  choice.do_callback();         // make default take effect
   return Fl::run();

Replace choice.do_callback(); with window->icon(0); or

  window->icon((Fl_RGB_Image*)0);          // reset window icon

(if the cast is necessary). OTOH "no icon" would be the default anyway, so why bother and set "no icon" explicitly?

You could also mention that the icon used in Alt+Tab is changed as well.

Another info (for the docs) would be that some window managers don't set a window (i.e. title bar) icon, notably Cinnamon (which I am using), although the taskbar and Alt+Tab icon is set.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.