FLTK logo

STR #1727

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 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1727

Application:FLTK Library
Status:5 - New
Priority:3 - Moderate, e.g. unable to compile the software
Scope:2 - Specific to an operating system
Subsystem:Unassigned
Summary:FLTK2's X11 changing main icon
Version:2.0-current
Created By:gga
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 gga
20:07 Jul 04, 2007
I seem to be unable to change the main window's icon on X11 using fltk2.0.
I am trying to use similar code to  that of fltk1.1, with no success.

I'm doing either of:

#if 0
  this->icon((char *)XCreateBitmapFromData(fltk::xdisplay,
                                           DefaultRootWindow(fltk::xdisplay),
                                           (char *)sudoku_bits, sudoku_width,
                                           sudoku_height));
#endif

#if 0
  // XpmCreatePixmapFromData comes from libXpm (libgd-xpm* on Debian)
  Pixmap p, mask;
  if ( XpmCreatePixmapFromData(fltk::xdisplay,
                               DefaultRootWindow(fltk::xdisplay),
                               english_flag_xpm, &p, &mask, NULL) == XpmSuccess )
    {
      this->icon((char *)p);
    }
#endif


and the icon gets set, but the application segfaults as soon as the main window is shown.
 
     

Return to Bugs & Features | Post Text | Post File ]

 
 

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'.