| [ 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 |
Subsystem: | Unassigned |
Summary: | FLTK2's X11 changing main icon |
Version: | 2.0-current |
Created By: | gga |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
| 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 ]
|
| |