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 ]

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
Summary:FLTK2's X11 changing main icon
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 top right image
#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,
                                           (char *)sudoku_bits, sudoku_width,

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

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

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


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