fix Gtk-CRITICAL **: gtk_window_realize_icon: assertion 'info->icon_pixmap == NULL' failed

This commit is contained in:
Garux 2020-06-05 21:03:10 +03:00
parent 613cf37150
commit e11341f8f6

View File

@ -2995,7 +2995,7 @@ void MainFrame::Create(){
{ {
GdkPixbuf* pixbuf = pixbuf_new_from_file_with_mask( "bitmaps/icon.png" ); GdkPixbuf* pixbuf = pixbuf_new_from_file_with_mask( "bitmaps/icon.png" );
if ( pixbuf != 0 ) { if ( pixbuf != 0 ) {
gtk_window_set_icon( window, pixbuf ); gtk_window_set_default_icon( pixbuf );
g_object_unref( pixbuf ); g_object_unref( pixbuf );
} }
} }